Go Down

Topic: MKR1400 AT+CPIN? Problem (Read 3057 times) previous topic - next topic

innometrix

Hello, I tried all the examples of the MKRGSM library and I have the same problem each time.
The modem does not respond correctly to AT + CPIN?
I receive ERROR systematically after AT+CPIN?
My SIM card does not have a PIN, so I used #define SECRET_PINNUMBER     "".
I also tried gsmAccess.begin(NULL).
The SIM card works very well in a SIM900.
I have a 2000 mAh lipo battery full loaded.
The blink example works correctly (LED on pin 6 blink).
The TestModem example works correctly, i receive the modem IMEI.
The GsmWebClient stops at gsmAccess.begin.
In debug mode (GSM gsmAccess(true);) i can read :
AT
OK
AT+IPR=921600
OK
AT+UPSV=3
OK
AT+CPIN?
ERROR
AT+CPIN?
ERROR
AT+CPIN?
ERROR...........

sandeepmistry

Hi @innometrix,

Would it be possible for you to test with another SIM (maybe one from your cellphone)?

innometrix

Hi sandeepmistry,

I tested with 2 SIM cards.
I tested with and without pin code.
I tested with 2 differents batteries.
The 2 SIM cards work perfectly in a SIM900 modem and a telephone.
I think there is a problem with the reading module of the SIM card.

sandeepmistry

Could you please share a photo of the SIM inserted in the board. Thanks.

innometrix

Unfortunately I will not be able to take a picture before Monday.
Could you please share your photo of the SIM inserted in the board. Thanks a lot.

innometrix

#5
Dec 11, 2017, 08:55 am Last Edit: Dec 11, 2017, 09:00 am by innometrix
Here is the photo of the SIM inserted in the board.

sandeepmistry

Could you also share the carrier the SIM is for?

Were both the SIMs you tried from the same carrier?

innometrix

Both SIM card are multioperator sim card for IOT : Orange, Bouygues telecom, SFR.
Works very well in SIM900.

sandeepmistry

Can you please try the follow:

1) Load the following sketch on your board: https://github.com/arduino-libraries/MKRGSM/blob/master/examples/Tools/SerialGSMPassthrough/SerialGSMPassthrough.ino

2) Open the serial monitor

3) Set the end of line configuration to "BOTH NL & CR"

4) Enter the following AT commands, one at a time and the send button:

Code: [Select]

AT

AT+CMEE=2

AT+CPIN?


5) Copy the serial monitor output and paste here.


Thanks.

innometrix

AT

OK
AT+CMEE=2

OK
AT+CPIN?

+CME ERROR: SIM not inserted

sandeepmistry

Thank you for providing this. We have contacted Ublox customer support and will get back to you once we hear back.

innometrix


I tested your code with 3 differents SIM cards from differents providers, the result is the same: +CME ERROR: SIM not inserted.
I tested these 3 SIM cards in a SIM900 modem and the same AT commands work correctly, I have a return: READY when I send AT+CPIN?
I'm waiting for your feedback, thank you.

sandeepmistry

Hi @innometrix,

Can you please email support@arduino.cc and include a link to this forum thread. We will arrange a replacement board.

Thank you for your patience.

innometrix


Here, I just sent an email to support with the link to this forum.
Thanks a lot for your help.

innometrix

Hello, I received my new MKR1400 (replacement) and it works perfectly.
The previous one really had a problem of detection of the SIM.
Thank you again for your help.

Go Up