Uncategorized

SIM900 UART Problem

Asked 
Active today
Viewed 11 times
1

I use a module same as here with my RPI 4B and there were difficulties in communication between them two since the start. The module worked fine with my Arduino. It is connected via Rxd-Txd pins, 5V, ground and an additional external power to the module.

I’m trying to make it make calls with the help of python, and for now after entering python -m serial.tools.miniterm /dev/ttyAMA0 115200 to the RPI terminal and typing in blindly “AT” I get a series of backslashes which after a closer look turned out to be this: “␄␐␁␀” (EOT DLE SOH NUL). Which happily already is a response, but it’s still not an “OK” that’s expected after such command.

How could I solve this? I’ve surfed many google search results for RPI and SIM900 but none of them worked.

 New contributor
  • Hi Oresto, Welcome and nice to meet you. Congratulation to your happily getting a mysterious reply to your blind AT command. Your interesting story with Arduino implies all SIM 900 hardware/firmware go well. I think it is only the Rpi4B UART SIM900 teething problem that is slightly disturbing. So let us start with this wield guy “␄␐␁␀ (EOT DLE SOH NUL)” – tlfong01 23 mins ago   
  • I agree that you are a blind guy, blindly typing the “hello there?” command “AT”, though smartly expecting the correct reply “OK”. I think you are over ambitious or jumping start too high to start with a python test program. Usually I warn and recommend newbies to start from the very beginning, using a terminal emulator, checking out Rpi RxD TxD wiring by using the “loopback” test. But for the impatient newbie anxiously wanting a short cut answer, perhaps we go directly attack the weild SIM900 reply “EOT DLE SOH NUL”. – tlfong01 13 mins ago   
  • I need a couple of minutes to read the friendly user guide of the A6 SIM900 thing. In the mean time, I would suggest the impatient newbie, while waiting anxiously, kill his time by reading the following tutorial, explaining what the hell is “loopboack” test, and how to use a “teriminal emulator” to do the job “: Serial Port Debugging 101 : Loopback Test – Amita Singh Chauhan 2016dec07 medium.com/@amitasinghchauhan/…. Happy reading and cheers! – tlfong01 10 mins ago    

0

This “Question” is lacking detail (OS, did you enable serial) BUT the fundamental problem is you are trying to use /dev/ttyAMA0 which is connected to Bluetooth (except in the unlikely circumstance that you changed this).

See How do I make serial work on the Raspberry Pi3 , Pi3B+, PiZeroW

Categories: Uncategorized

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: