lamondlab / IteadSIM800

Raspberry Pi Python library for the Itead SIM800 GSM/GPRS module
45 stars 27 forks source link

Invalid Response #1

Closed ragingra closed 7 years ago

ragingra commented 7 years ago

2016-08-04 13:32:50,957 : DEBUG -> Setup 2016-08-04 13:32:50,958 : DEBUG -> Turn On 2016-08-04 13:32:50,958 : DEBUG -> Send AT Command: AT 2016-08-04 13:32:50,958 : DEBUG -> Attempt 1, (b'AT\r') 2016-08-04 13:32:52,033 : DEBUG -> Lines: ['ncorrec', 'Login incorrect', 't', 'Password:', 'rasraspberrypi login: Password:', 'Login incorrect', 't', 'Password:', 'rasraspberrypi login: Password:', 'Login incorrect', 't', 'Password:', 'rasraspberrypi login: Password:', 'Login incorrect', 't', 'Password:', 'rasraspberrypi login: Password:', 'Login incorrect', 't', 'Password:', 'rasraspberrypi login: Password: \r\rLogin incorrect\rt\r Password: \rrasraspberrypi loAT'] rasraspberrypi loAT,033 : DEBUG -> Line: rasraspberrypi login: Password: 2016-08-04 13:32:52,034 : DEBUG -> GSM module returned invalid response, check baud rate? 2016-08-04 13:32:52,034 : DEBUG -> Send AT Command: AT 2016-08-04 13:32:52,034 : DEBUG -> Attempt 1, (b'AT\r') 2016-08-04 13:32:53,054 : DEBUG -> Lines: ['AT'] 2016-08-04 13:32:53,055 : DEBUG -> Line: AT 2016-08-04 13:32:53,055 : DEBUG -> GSM module returned invalid response, check baud rate?

Apparently my baudrate isn't correct, would have presumed it would be the same as yours as I'm using a giffgaff sim as well... Using the Rasperry Pi 3 Model B with Itead SIM800 GSM/GPRS Add-on V2.0. Sorry if this is a silly problem, I'm a little new to the pi and using serial pins. Any ideas?

jazzycamel commented 7 years ago

Firstly, sorry for the delay in replying.

The issue is that you need to disable the Pi's serial console, which is enabled by default to allow you to login to the Pi with out network or mouse, mouse monitor and keyboard. You can either do this from raspi-config or by running sudo systemctl disable serial-getty@ttyAMA0.service.

Hope this solves your problem. I'll add a README to the repo at some point to explain the setup and a schematic for the hardware hookup. Thanks for your interest.

ragingra commented 7 years ago

Cheers for the response! Got it sorted a couple of days after I posted the issue.

Removed console=serial0,115200 from the cmdline.txt and it seemed to solve it for me.

I really appreciated your library for getting me started with my sim!