Skip to main content
Associate II
July 9, 2024
Solved

NUCLEO-G491RE communication with SIMCom SIM800A - Problems

  • July 9, 2024
  • 5 replies
  • 2736 views

Hi,

Hope you are doing good.

I am trying to transmit "AT" command using USART communication to SIM800A(SIM.COM). 

I am facing errors, should I write a separate GSM module. 

Thank you.

 

This topic has been closed for replies.
Best answer by Andrew Neil

@abhishek1991 wrote:

communication with GSM 800A - Steps Needed


Simple:

  1. Send valid AT command to the SIM800A;
  2. Receive reply from the SIM800A;
  3. Determine success/failure from the response, and proceed as appropriate.

 


@abhishek1991 wrote:

I am facing errors.


What "errors", exactly?

 


@abhishek1991 wrote:

should I write a separate GSM module. 


Modular software is generally accepted as A Good Thing.

However, putting code which "has errors" into a separate module will just give you a module which "has errors" - it won't, in itself, solve your errors.

 

https://community.st.com/t5/community-guidelines/how-to-write-your-question-to-maximize-your-chances-to-find-a/ta-p/575228

 

5 replies

Andrew Neil
Andrew NeilBest answer
Super User
July 9, 2024

@abhishek1991 wrote:

communication with GSM 800A - Steps Needed


Simple:

  1. Send valid AT command to the SIM800A;
  2. Receive reply from the SIM800A;
  3. Determine success/failure from the response, and proceed as appropriate.

 


@abhishek1991 wrote:

I am facing errors.


What "errors", exactly?

 


@abhishek1991 wrote:

should I write a separate GSM module. 


Modular software is generally accepted as A Good Thing.

However, putting code which "has errors" into a separate module will just give you a module which "has errors" - it won't, in itself, solve your errors.

 

https://community.st.com/t5/community-guidelines/how-to-write-your-question-to-maximize-your-chances-to-find-a/ta-p/575228

 

A complex system that works is invariably found to have evolved from a simple system that worked.A complex system designed from scratch never works and cannot be patched up to make it work.
Associate II
July 9, 2024

Hi, 

My main code goes like this and below that is my usart code. I just want to transmit "AT" string get back OK from SIM800A. Can you please help me how to proceed further ? 

 

 

Andrew Neil
Super User
July 9, 2024

You've marked my previous post as The Solution - but it seems this is not solved yet?

https://community.st.com/t5/community-guidelines/help-others-to-solve-their-issues/ta-p/575256#:~:text=If%20you%20accidentally%20chose%20the%20wrong%20post%20as%20solution%2C%20you%20can%20always%20revert%20this%20action%20by%20clicking%20%22Not%20the%20Solution%22

You still haven't said what were the "errors" you mentioned:

  • compiler errors in your code ?
  • "ERROR" replies from the SIM800A ?
  • other ?

 


@abhishek1991 wrote:

I just want to transmit "AT" string get back OK


Forget about the SIM800A for now - just connect your UART to a terminal.

Can you see anything being sent from your STM32?

 

A complex system that works is invariably found to have evolved from a simple system that worked.A complex system designed from scratch never works and cannot be patched up to make it work.
Associate II
July 9, 2024

Hi Andrew,

No, Not yet, I am working on it after usart is accomplished. Appreciate it. Thank you.