First of all, thanks for your post domen.petric...it helped me in doing some step further in making SIM800 ADD-ON working on my raspberry pi (something not really straightforward).
I don't know if it's just my problem, but, important thing, i had to unplug the SIM800 hat from raspberry and powering it separately with another power supply. Then, i connected TX, RX and GND pins (8,10,14).
With this set-up, the SIM800 seems connecting to the carrier (status led blinking slowly).
The problem now is that i get a strange error executing test_sms.py:
pi@raspy-lab:~/Code/phone/sim-module $ python3 test_sms.py
[2019-10-04 17:34:37,239] INFO: opening port
[2019-10-04 17:34:37,241] INFO: initializing SIM900 session
[2019-10-04 17:34:37,285] DEBUG: __sendRawBytes, sending: bytearray(b'AT\r\n')
[2019-10-04 17:34:39,489] DEBUG: __sendRawBytes, sending: bytearray(b'AT\r\n')
[2019-10-04 17:34:39,492] ERROR: 'ascii' codec can't decode byte 0xfc in position 0: ordinal not in range(128)
[2019-10-04 17:34:39,695] DEBUG: __sendRawBytes, sending: bytearray(b'AT\r\n')
[2019-10-04 17:34:41,899] DEBUG: __sendRawBytes, sending: bytearray(b'AT\r\n')
[2019-10-04 17:34:44,103] DEBUG: __sendRawBytes, sending: bytearray(b'AT\r\n')
[2019-10-04 17:34:46,304] ERROR: error initializing session: 'ascii' codec can't decode byte 0xfc in position 0: ordinal not in range(128)
DONE
Does someone have any clues?
Thanks
domen.petric wrote: ↑Mon Jul 25, 2016 8:46 pm
Since it was some middle way between more tutorials i am writing here the solution for that combination of hardware and software.
Maybe all steps aren't necessary.
1.) Install fresh raspbian Jessie.
2.) connect GSM module RPI GSM ADD-on v2.0 800SIM to RPI, insert SIMcard, module is powerd from RPI so no need for power cable. search for power button and press it (lead near antena should be on all the time, other flash sometimes, also power flash is on all the time)
3.)Go to setting
-Expand Filesystem
-Boot options>Console
-Advance options > serial > disable
-reboot
4.)sudo systemctl disable
serial-getty@ttyAMA0.service
5.) I changed baud rate 38400 maybe it is not necessary but i found out my provider uses that one
Code: Select all
pi@raspberrypi:~/Desktop/sim-module-master $ cat /boot/cmdline.txt
dwc_otg.lpm_enable=0 console=serial0,38400 console=tty1 root=/dev/mmcblk0p2 rootfstype=ext4 elevator=deadline fsck.repair=yes rootwait
6.) Add
Code: Select all
enable_uart=1
dtoverlay=pi3-miniuart-bt
to /boot/config.txt
7.) reboot
8.) download
https://github.com/JFF-Bohdan/sim-module and forget about minicom

9.) edit test_*.py files and run thme with
python3, if you are having problems edit log and change loging from INFO to DEBUG
10.) Enjoy