Problem interfacing gsm module with stm32h747 disco board
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2024-09-03 6: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.
- Labels:
-
ST boards
-
STM32H7 Series
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2024-09-04 6:39 AM - edited ‎2024-09-04 8:35 AM
Hello,
Check baurate/parity/stop bit configuration.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2024-09-04 7: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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2024-09-04 7: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?
- Is your code actually transmitting anything at all?
- Is your wiring correct & complete - eg, does the module require just TX/RX, or does it also need other lines?
- Is your code transmitting at the correct voltage, with correct baud rate, etc?
- If all the above are correct, is your code actually sending valid commands?
- Are the commands actually reaching the GSM module?
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...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2024-09-04 8: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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2024-09-04 8:30 AM - edited ‎2024-09-04 8: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)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2024-09-06 1:57 AM
Yes, i have checked it again, yet it is not working
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2024-09-06 2: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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2024-09-06 2:08 AM - edited ‎2024-09-06 10:58 AM
I tried to do so, but it's not giving an OK response.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎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.
