garatronic / nadhat

Raspberry Pi zero GSM/GPRS extension hat
12 stars 11 forks source link

PIN code return ERROR #1

Open al1138 opened 6 years ago

al1138 commented 6 years ago

Hello, I have installed nadhat on a Raspberry pi3+, everything seems ok (using /dev/ttyS0 port) but when I try to set the PIN code, I get the message "ERROR":

Thanks for your help !

minicom try :

minicom -b 115000 -o -D /dev/ttyS0

at
OK
at+csca="+33695000695" 
OK
at+cmgs="+336xxxx" 
ERROR
at+cgmi 
SIMCOM_Ltd

OK
at+cgmm
SIMCOM_SIM800C

OK
at+cpin=0000
ERROR

sms.py try :

python sms.py "+336xxxxxxxxx" "my text" -o ORANGE -cp 0000 -p "/dev/ttyS0"
operator_sms=ORANGE, receiver_nb=+336xxxxxxxxx, serial_port=/dev/ttyS0, code_pin=0000, sms=my text
The SIM800C has booted
AT
Answers : OK
AT+CPIN=0000
Code PIN sent... wait 10 secondes.
Wait for 5 more seconds...
Check the slow blinking LED rate...
OK not received : No communication with the nadhat board
al1138 commented 6 years ago

Hello, I found the issue : my SIM card don't need a PIN, that's ok now 👍