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.

UPD: *Serial is enabled, *Bluetooth disabled, *OS is Raspbian 10, *the module doesn't respond to any baudrate other than 115200 I'll try to get a level shifter and use it between RPi and module, the suggestion seems pretty logical and I wouldn't even think of devices using different voltages for UART. I'll post the results as soon as I get the shifter.

Oresto
  • 111
  • 2

2 Answers2

2

In addition to what Milliways said, you seem to use the wrong baudrate (115200 instead of 19200), unless of course you changed this too.

Edit: it appears that your module is configured to 115200. I would recommend you to get a USB to UART converter such as this one and make sure the module replies to the AT commands using a regular PC, to completely exclude RPi-related problems from the mix. If you can't get the module to work, it may simply be defective. It's not unheard of when ordering stuff on Aliexpress.

Dmitry Grigoryev
  • 28,277
  • 6
  • 54
  • 147
1

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

Milliways
  • 62,573
  • 32
  • 113
  • 225