Problem with AT+CMGF=1 on HL6528 with some SIM card only

Hello everyone,
With one Sim card in particular (from a customer), when I initialise HL6528 using the following AT commands : “AT+IPR=115200”, “AT&K3E0V1”, “AT+CMEE=1”, “AT+KRIC=2,0”, “+KGPIOCFG=1,0,2”,“AT+KSYNC=2,1,1,1”, “AT+KGPIOCFG=2,0,2”, “AT+KSIMDET=1,1, AT+CMGF=1,AT*PSCSCN=1” I get the following error :

send[0]:AT+CMGF=1
RECV[0]:+CMS ERROR: 3

This error is not mentionned in the manual…
Same SIM card in Hilo works fine.
An other SIM card (from a different french provider) works fine in HL6528
BR,
Thomas

Hi hestia,

In AT guide 24.2.1. CME Error Codes
CME Error 3 means Operation not allowed; invalid number of parameters

e.g.
AT+CMGF=?
+CMGF: (0,1)
OK
AT+CMGF=11
+CME ERROR: 3

The AT+CMGF=1 should can work even without a SIM card.
Please try first AT+CMGF=? and AT+CMGF=1 again without a SIM card.

Hello Sierra_klin1,

  My modules answers well that I can use +CMGF=1 but it doesn't accept it at startup with some SIM cards inserted (if I remove the given SIM card and insert it afterward, it works...)

  The error message I get is not +CME ERROR:3 but +CMS ERROR:3 ... which is not mentionned in any AT manual..

Hope you could help .

Here my last test :

END POK_IN low 2s

    send[0]:AT+KSYNC=2,1,1,1#015

    2018-12-19 07:42:23,16,7,V4:, ../trunk/serveurHilo/outils.c(50816)read_from_modem()L180: RECV[0]:OK

    send[0]:AT+KGPIOCFG=2,0,2#015

    RECV[0]:OK

    send[0]:AT+KSIMDET=1,1#015

    RECV[0]:OK

    AT+CMGF=?#015

    RECV[0]:+CMGF: (0,1)

    RECV[0]:OK

    send[0]:AT+CMGF=1#015

    RECV[0]:+CMS ERROR: 3

Best regards,

Thomas

Here some logs that shows what I explained in my previous message
If “problematic” SIM card inserted after I send AT+CMGF=1 then it works ::

send[0]:AT+KSYNC=2,1,1,1#015
RECV[0]:OK
send[0]:AT+KGPIOCFG=2,0,2#015
RECV[0]:OK
send[0]:AT+KSIMDET=1,1#015
RECV[0]:OK
send[0]:AT*PSCSCN=1#015
RECV[0]:OK
send[0]:AT+CMGF=1#015
RECV[0]:OK
send[0]:AT+CPIN?#015
RECV[0]:+CME ERROR: 10
resetHard_Hilo
send[0]:AT+CPIN?#015
RECV[0]:+SIM: 1,1
RECV[0]:+KSUP: 1
RECV[0]:+CPIN: SIM PIN
RECV[0]:OK
Modem needs PIN, entering PIN…
send[0]:AT+CPIN=“0000”#015
RECV[0]:OK

With another SIM card that doesn’t create problem with “AT+CGF=1”, no pb:

send[0]:AT+KSYNC=2,1,1,1#015
RECV[0]:OK
send[0]:AT+KGPIOCFG=2,0,2#015
RECV[0]:OK
send[0]:AT+KSIMDET=1,1#015
RECV[0]:OK
send[0]:AT*PSCSCN=1#015
RECV[0]:OK
send[0]:AT+CMGF=1#015
RECV[0]:OK
send[0]:AT+CPIN?#015
RECV[0]:+CPIN: READY
RECV[0]:OK
PIN Ready
Modem initialisé

I also tried to send AT+CGMF=0 with the problematic SIM card and it triggers the same error

send[0]:AT+CMGF=0#015
RECV[0]:+CMS ERROR: 3

I suppose that with this problematic SIM card, the issue is linked to the fact that I send this AT command right after start up.

As AT+CMGF=1 is the default factory value, I will not send it anymore, thus it works fine BUT for me it sounds like a bug in HL6528…

Hope this helps in the diagnosis
Thanks in advance,
Thomas

Hi Thomas,

I never see such issue before.
Maybe you can try to send AT+CMGF=0 after some seconds of start up.
And check if the following ways can solve it or not.

AT+CPMS?
AT+CPMS=“SM”,“SM”,“SM”
AT+CPMS=“ME”,“ME”,“ME”
AT+CMGD=0,1 //Delete SMS Message
AT+CMGD=0,2 /Delete SMS Message
AT+CMGD=0,3 /Delete SMS Message
AT+CMGD=0,4 /Delete SMS Message
AT+CLCK=“SC”,0,“0000”,1 //Disable the PIN
AT+CLCK=“SC”,1,“0000”,1 //Enable the PIN

Hi Sierra_klin1,
If I send AT+CGMF=1 after gsmuxd is launched (which means almost 20s after HL startup), it works but this is not the best moment to do it:

gsmMuxd lance
initPortsSerieHilo(MUX1_PHYSIQUE_0)
fd port /dev/HiloMux1=20
fd port /dev/HiloMux2=21
fd port /dev/HiloMux3=22
fd port /dev/HiloMux4=23
send[0]:ATE0V1#015
RECV[0]:OK
ATE0V1#015
RECV[1]:OK
ATE0V1#015
RECV[2]:OK
ATE0V1#015
RECV[3]:OK
AT+CSTA=145#015
RECV[0]:OK
AT+CMGF=1#015
RECV[0]:OK
send[0]:AT+CSCS=“IRA”#015
RECV[0]:OK

I send the following command but not the others (same result with non problematic SIM card and problematic SIM card)

send[0]:AT+CPMS?#015
RECV[0]:+CPMS: “SM”,1,50,“SM”,1,50,“SM”,1,50

Thanks for your support

Hi Thomas,

Since HL6528 products are end of life, so no more FW release will be made.

Please note that the latest FW is v8.10, you can get from Sierra source website:
https://source.sierrawireless.com/resources/airprime/software/hl6528x-firmware-8,-d-,10/

I suggest to send AT+CGMF=1 after module get registered/attached with +CREG: 1 or +CGREG: 1.
And I’m not sure if disabling the PIN code can help in the case.

Let me know if it works or not.

Hi Sierra_klin1,

As mentionned in my previous topic, if I do AT+CGMF=1 after gsmMuxd start-up it works.
In that case, it module is not yet registered

send[0]:AT+CMGF=1#015
RECV[0]:OK
send[0]:AT+CSCS=“IRA”#015
RECV[0]:OK
send[0]:AT+KSREP?#015
RECV[0]:+KSREP: 1,0
RECV[0]:OK
send[0]:AT+CSMP?#015
RECV[0]:+CSMP: 17,167,0,0
RECV[0]:OK
send[0]:AT+CSQ#015
RECV[0]:+CSQ: 8,0
RECV[0]:OK
send[0]:AT*PSNTRG?#015
RECV[0]:*PSNTRG: 1,2,“208”,“01”,“6901”,“2A9B”,“Orange F”,1,0,0
RECV[0]:OK

At the present it seems to work like this. For me it is a bug
Best regards,
Thomas