2024-09-03 06:16 PM
We're working a camera based person fall detection device with STM32H747 and B-CAMS-OMV camera module, we want to interface GSM module with it to make alert calls in case of fall being detected but we're facing issues with the same.
We're not able to interface the GSM module properly with the board,
the GSM module is being powered up and getting connected to cellular network but it's not responding to commands from the board.
We're trying to set up USART communication between the board and the GSM module but the GSM module is not responding to the commands.
Kindly help us with the same.
2024-09-04 06:39 AM - edited 2024-09-04 08:35 AM
Hello,
Check baurate/parity/stop bit configuration.
2024-09-04 07:06 AM
@Mike_ST wrote:Check whether your module expects "\r\n" or just "\n" at the end of each AT command.
The AT command terminator should be just CR.
2024-09-04 07:13 AM
@KiruV wrote:We're trying to set up USART communication between the board and the GSM module but the GSM module is not responding to the commands.
So what testing/investigation/debugging have you done to find what's going on?
Before getting into embedded code, have you manually tested your interactions with the GSM module using a terminal?
In the Posting Tips are some hints on debugging serial comms:
Try those to see what's actually happening between your STM32 abd the GSM module...
2024-09-04 08:06 AM
Some GSM modules can echo back sent characters. Try sending simple AT commands like AT\r\n and see if you get an OK response.
2024-09-04 08:30 AM - edited 2024-09-04 08:36 AM
@liaifat85 wrote:Try sending simple AT commands like AT\r\n .
The command terminator is just CR:
https://portal.3gpp.org/desktopmodules/Specifications/SpecificationDetails.aspx?specificationId=323
https://www.itu.int/rec/T-REC-V.250 (supersedes the https://www.itu.int/rec/T-REC-V.25ter referenced in GSM07.07)
2024-09-06 01:57 AM
Yes, i have checked it again, yet it is not working
2024-09-06 02:06 AM
First in order to debug, I tried manually testing USART communication separately:
* I've separately tried USART communication between PC terminal and STM32 board- it works,
* Separately tried communication between GSM Module and Arduino-it works.
The GND of both the STM32 and GSM has been connected commonly.
the GSM is still not responding to the AT commands, I sent a simple AT command for which the module is supposed to reply with OK but it is not doing so.
Code:
Is there anything I could be doing wrong? What can i try to do now
2024-09-06 02:08 AM - edited 2024-09-06 10:58 AM
I tried to do so, but it's not giving an OK response.
2024-09-06 11:00 AM
I tried another debugging, I connected PD5(which is the USART2 Tx) to PD6(Rx) directly and tried a loopback test just to see if the channel is working.....it is not, the loopback test itself fails..
so i think the mistake is in the configuration and initialization itself,
but I can not tell what is wrong with the configurations, everything seems to be correct.