Use AT commands over UART on mDot
- This topic has 6 replies, 2 voices, and was last updated 6 years, 7 months ago by
David Sun.
-
AuthorPosts
-
March 29, 2019 at 11:01 pm #27574
David Sun
ParticipantHi, so I’m trying to use the mDot as a LoRA module for another microcontroller through the use of AT commands.
I’ve hooked up my UART pins to pins 2 and 3 of the mDot for communication and try sending “AT” among other failed attempts, and I get no response from the mDot.
I can tell that the mDot is on, as I am measuring a current draw through a multimeter, so I’m lost at what the issue might be.
It is possible to use the mDot like a separate module and send packets over LoRA using just the AT commands sent over the UART pins on the default firmware, right?
I don’t have a development board, so I can’t simply plug the mDot to USB.
April 1, 2019 at 8:06 am #27577Leon Lindenfelser
ModeratorHi David,
Are you sending commands at 115200bps? Did you connect ground?
Leon
April 1, 2019 at 1:29 pm #27579David Sun
ParticipantHi Leon,
Yes, my baud is 115k and I connected ground. I can verify that it is not an issue with UART on my main microcontroller, as I can communicate with a different microcontroller just fine over UART using the same baud.
So I recently looked under an oscilloscope on the Tx pin of the Mdot and there wasn’t anything coming out, despite it being powered on and receiving a UART signal from my main one.
Maybe I have to reflash the firmware?
April 1, 2019 at 2:17 pm #27580Leon Lindenfelser
ModeratorHi David,
If the AT application is not loaded, that could be the issue.
The reset line has a weak pull up on it. So that should be fine.
Leon
April 1, 2019 at 5:10 pm #27582David Sun
ParticipantHi Leon,
So I reset it and checked under an oscilloscope again.
It seems that I am getting a response, but it is a very low voltage: not high enough for my main microcontroller to identify as a UART signal.
Any ideas on why that might be? I am just sending “AT” to see “OK” from the Mdot. See picture attached.
April 2, 2019 at 1:20 pm #27590Leon Lindenfelser
ModeratorHi David,
Please measure the voltage you are providing to the mdot. VDD is pin 1. The voltage needs to be in the range of 3.3v-5v.
What voltage is your host board expecting? Is it a direct connection to the UART… no transceiver or level shifters?
Kind regards,
LeonApril 2, 2019 at 1:34 pm #27591David Sun
ParticipantHi Leon,
VDD is 5V, which I confirmed to be the case on the scope.
It is indeed a direct connection to UART.
Also, I used another mDot in the meantime with the same microcontroller and connections, which sent back the “OK” correctly.
So I’m convinced this is definitely an issue with this particular mDot.
-
AuthorPosts
- You must be logged in to reply to this topic.