lamondlab / IteadSIM800

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

AT+CCID error and then NetworkStatus.NotRegistered #4

Closed Pitr2 closed 7 years ago

Pitr2 commented 7 years ago

Hello, Thank you for your code! I'm trying to make it work on my Raspberry, the only two things I've changed are the APN (and of course the username) and the serial port (ttyS0 instead of ttyAMA0) because i'm on a Raspberry Pi 3 (Raspbian 4.9 "Jessie"). I left the baudrate unchanged (9600).

When I run the code (I've tried both with Python 2.x and 3.x) I got the following output:

2017-10-03 08:16:58,151 : DEBUG -> Setup 2017-10-03 08:16:58,152 : DEBUG -> Turn On 2017-10-03 08:16:58,153 : DEBUG -> Send AT Command: AT 2017-10-03 08:16:58,154 : DEBUG -> Attempt 1, (b'AT\r') 2017-10-03 08:16:58,682 : DEBUG -> Lines: ['OK'] 2017-10-03 08:16:58,682 : DEBUG -> Line: OK 2017-10-03 08:16:58,683 : DEBUG -> GSM module ready. 2017-10-03 08:16:58,683 : DEBUG -> Set Echo Off 2017-10-03 08:16:58,684 : DEBUG -> Send AT Command: ATE0 2017-10-03 08:16:58,685 : DEBUG -> Attempt 1, (b'ATE0\r') 2017-10-03 08:16:59,212 : DEBUG -> Lines: ['OK'] 2017-10-03 08:16:59,213 : DEBUG -> Line: OK 2017-10-03 08:16:59,214 : DEBUG -> Send AT Command: ATE0 2017-10-03 08:16:59,215 : DEBUG -> Attempt 1, (b'ATE0\r') 2017-10-03 08:16:59,742 : DEBUG -> Lines: ['OK'] 2017-10-03 08:16:59,743 : DEBUG -> Line: OK Good to go! 2017-10-03 08:16:59,744 : DEBUG -> Get International Mobile Equipment Identity (IMEI) 2017-10-03 08:16:59,745 : DEBUG -> Send AT Command: AT+GSN 2017-10-03 08:17:00,286 : DEBUG -> Lines: ['86xxxxxxxxxxxxx', 'OK'] 2017-10-03 08:17:00,287 : DEBUG -> Response: OK 86xxxxxxxxxxxxx 2017-10-03 08:17:00,289 : DEBUG -> Get TA Revision Identification of Software Release 2017-10-03 08:17:00,290 : DEBUG -> Send AT Command: AT+CGMR 2017-10-03 08:17:00,845 : DEBUG -> Lines: ['Revision:1308B02SIM800M32_BT', 'OK'] 2017-10-03 08:17:00,846 : DEBUG -> Response: OK 2017-10-03 08:17:00,847 : DEBUG -> Parse Reply: Revision:1308B02SIM800M32_BT, Revision, :, 1 1308B02SIM800M32_BT 2017-10-03 08:17:00,848 : DEBUG -> Get SIM Integrated Circuit Card Identifier (ICCID) 2017-10-03 08:17:00,849 : DEBUG -> Send AT Command: AT+CCID 2017-10-03 08:17:01,383 : DEBUG -> Lines: ['ERROR'] 2017-10-03 08:17:01,384 : DEBUG -> Response: ERROR None 2017-10-03 08:17:01,384 : DEBUG -> Get Network Status 2017-10-03 08:17:01,385 : DEBUG -> Send AT Command: AT+CREG? 2017-10-03 08:17:01,924 : DEBUG -> Lines: ['+CREG: 0,0', 'OK'] 2017-10-03 08:17:01,925 : DEBUG -> Response: OK 2017-10-03 08:17:01,926 : DEBUG -> Parse Reply: +CREG: 0,0, +CREG: , ,, 1 NetworkStatus.NotRegistered

the SIM has no PIN code. How can I solve this Issue? Thank you again!

Pitr2 commented 7 years ago

Solved by changing the SIM with another one by a different provider... Seems like the Itead SIM800 shield does not support "Vodafone IT" provider.