Receiving URCs during AT command execution

10 thoughts on “Receiving URCs during AT command execution

  1. Hi there!

    Time from time during execution of AT command we receive URC, that breaks our parser and hence – our program.

    Example:

    AT+CLCC

    +CIEV:4

     

    OK 

    or

    AT+CLCC

    NO CARRIER

     

    OK 

    Is it a bug? Or maybe we should execute some configurational AT commands to disable receiving URCs during AT command execution?

    Currentry we’re using the last version of firmware  GL865-QUAD-10.01.140-B005 in CMUX mode.

     

  2. Hi Cosmin Buhu,

     

    We have read the link wich you provide, but unfortunatly it does not answer/solve our problem.

     

    So as already mentioned we set:

    – AT+IPR=115200

    – AT#CPUMODE=3

    – endter CMUX

    and got next data from module:

     

    AT+CLCC

     

    +CIEV: rssi,4

     

    +CLCC: 1,0,0,0,0,"0934842970",129,""

     

    OK 

     

    and this is trace of this situation:

     

    20/06/14 09:07:25–L2       – VS CMUX Packet

    20/06/14 09:07:25–L2             [LY2: Direction: Download

    20/06/14 09:07:25–L2                   Packet length 14

    20/06/14 09:07:25–L2                     Address:07

    20/06/14 09:07:25–L2                       EA:1 CR:CMD Channel:#01

    20/06/14 09:07:25–L2                     Control:EF

    20/06/14 09:07:25–L2                       Type:UIH P/F:0

    20/06/14 09:07:25–L2                     Length:08

    20/06/14 09:07:25–L2                       Information Data:

    20/06/14 09:07:25–L2                         41 54 2B 43 4C 43 43 0D                           AT+CLCC<CR>

    20/06/14 09:07:25–L2                     FCS:2B

    20/06/14 09:07:25–L2                   

    20/06/14 09:07:25–L2                   Debug hex content:

    20/06/14 09:07:25–L2                   F9 07 EF 11 41 54 2B 43 4C 43 43 0D 2B F9         ….AT+CLCC<CR>+.

    20/06/14 09:07:25–L2             ]

    20/06/14 09:07:25–NF       – AT Unsolicited Flush Inst:0 State:ATP_STATE_IDLE Size:1

    20/06/14 09:07:25–NF       – AT  (80) value: 0

    20/06/14 09:07:25–NF       – VS TxQue UPort:UPORT_AT0 Ret:2019

    20/06/14 09:07:25–NF       – VS Tx UPort:UPORT_AT0 Req:2 Ret:2

    20/06/14 09:07:25–NF       – VS Tx UPort:UPORT_AT0 Req:13 Ret:13

    20/06/14 09:07:25–TT       – +CIEV: rssi,4

    20/06/14 09:07:25–NF       – VS Tx UPort:UPORT_AT0 Req:2 Ret:2

    20/06/14 09:07:25–NF       – AT Had RRAL_TCH_SIGNAL_IND from RR

    20/06/14 09:07:25–NF       – AT Got AT_ESCAPE_IND from FR

    20/06/14 09:07:25–NF       – AT Unsolicited Flush Inst:0 State:ATP_STATE_IDLE Size:0

    20/06/14 09:07:25–NF       – AT  (80) value: 0

    20/06/14 09:07:25–NF       – VS Rx UPort:UPORT_AT0 Req:64 Ret:8

    20/06/14 09:07:25–NF       – VS RxQue UPort:UPORT_AT0 Ret:0

    20/06/14 09:07:25–NF       – AT Parser Debug Inst:0 State:ATP_STATE_IDLE OldState:ATP_STATE_IDLE Pos:20 Val:8

    20/06/14 09:07:25–NF       – VS Port Config LPort:LPORT_CMUX1 BaudRate:NO_CHANGE Format:NO_CHANGE Echo:DISABLED Flow:NO_CHANGE EnableSentIndication:0

    20/06/14 09:07:25–TT       – AT Cmd: +CLCC

    20/06/14 09:07:25–TT       – *** BASIsSIMLocked 0 1 1

    20/06/14 09:07:25–NF       – AT Command Debug Pos:10 Val:10

    20/06/14 09:07:25–NF       – AT  (0) value: 2

    20/06/14 09:07:25–NF       – AT  (0) value: 0

    20/06/14 09:07:25–NF       – AT  (0) value: 1

    20/06/14 09:07:25–NF       – AT  (0) value: 1

    20/06/14 09:07:25–NF       – AT  (17) value: 2

    20/06/14 09:07:25–NF       – AT  (18) value: 2

    20/06/14 09:07:25–NF       – VS Tx UPort:UPORT_AT0 Req:2 Ret:2

    20/06/14 09:07:25–NF       – VS Tx UPort:UPORT_AT0 Req:36 Ret:36

    20/06/14 09:07:25–TT 1746579 +CLCC: 1,0,0,0,0,"0934842970",129,""

    20/06/14 09:07:25–L2       – VS CMUX Packet

    20/06/14 09:07:25–L2             [LY2: Direction: Upload

    20/06/14 09:07:25–L2                   Packet length 69

    20/06/14 09:07:25–L2                     Address:05

    20/06/14 09:07:25–L2                       EA:1 CR:ANS Channel:#01

    20/06/14 09:07:25–L2                     Control:EF

    20/06/14 09:07:25–L2                       Type:UIH P/F:0

    20/06/14 09:07:25–L2                     Length:3F

    20/06/14 09:07:25–L2                       Information Data:

    20/06/14 09:07:25–L2                         41 54 2B 43 4C 43 43 0D 0D 0A 2B 43 49 45 56 3A   AT+CLCC<CR><CR><LF>+CIEV:

    20/06/14 09:07:25–L2                         20 72 73 73 69 2C 34 0D 0A 0D 0A 2B 43 4C 43 43    rssi,4<CR><LF><CR><LF>+CLCC

    20/06/14 09:07:25–L2                         3A 20 31 2C 30 2C 30 2C 30 2C 30 2C 22 30 39 33   : 1,0,0,0,0,"093

    20/06/14 09:07:25–L2                         34 38 34 32 39 37 30 22 2C 31 32 39 2C 22 22      4842970",129,""

    20/06/14 09:07:25–L2                     FCS:E8

    20/06/14 09:07:25–L2                   

    20/06/14 09:07:25–L2                   Debug hex content:

    20/06/14 09:07:25–L2                   F9 05 EF 7F 41 54 2B 43 4C 43 43 0D 0D 0A 2B 43   ….AT+CLCC<CR><CR><LF>+C

    20/06/14 09:07:25–L2                   49 45 56 3A 20 72 73 73 69 2C 34 0D 0A 0D 0A 2B   IEV: rssi,4<CR><LF><CR><LF>+

    20/06/14 09:07:25–L2                   43 4C 43 43 3A 20 31 2C 30 2C 30 2C 30 2C 30 2C   CLCC: 1,0,0,0,0,

    20/06/14 09:07:25–L2                   22 30 39 33 34 38 34 32 39 37 30 22 2C 31 32 39   "0934842970",129

    20/06/14 09:07:25–L2                   2C 22 22 E8 F9                                    ,""..

    20/06/14 09:07:25–L2             ]

    20/06/14 09:07:25–NF       – VS Tx UPort:UPORT_AT0 Req:2 Ret:2

    20/06/14 09:07:25–NF       – AT Parser IN  Inst:0 State:ATP_STATE_PARSING OldState:ATP_STATE_SYNC CmdAnsw:ATP_CMD_RESULT_LINE_PARSED

    20/06/14 09:07:25–NF       – VS Debug Pos:1 UPort:UPORT_AT0 6

    20/06/14 09:07:25–NF       – VS TxCompletion UPort:UPORT_AT0 Req:6 Ret:6

    20/06/14 09:07:25–TT       – 

     

    20/06/14 09:07:25–OK

     

    20/06/14 09:07:25–

    20/06/14 09:07:25–NF       – VS Port Config LPort:LPORT_CMUX1 BaudRate:NO_CHANGE Format:NO_CHANGE Echo:ENABLED Flow:NO_CHANGE EnableSentIndication:0

    20/06/14 09:07:25–NF       – AT Parser OUT Inst:0 State:ATP_STATE_IDLE OldState:ATP_STATE_PARSING CmdAnsw:ATP_CMD_RESULT_LINE_PARSED

    20/06/14 09:07:25–L2 1746580 VS CMUX Packet

    20/06/14 09:07:25–L2             [LY2: Direction: Upload

    20/06/14 09:07:25–L2                   Packet length 14

    20/06/14 09:07:25–L2                     Address:05

    20/06/14 09:07:25–L2                       EA:1 CR:ANS Channel:#01

    20/06/14 09:07:25–L2                     Control:EF

    20/06/14 09:07:25–L2                       Type:UIH P/F:0

    20/06/14 09:07:25–L2                     Length:08

    20/06/14 09:07:25–L2                       Information Data:

    20/06/14 09:07:25–L2                         0D 0A 0D 0A 4F 4B 0D 0A                           <CR><LF><CR><LF>OK<CR><LF>

    20/06/14 09:07:25–L2                     FCS:4A

    20/06/14 09:07:25–L2                   

    20/06/14 09:07:25–L2                   Debug hex content:

    20/06/14 09:07:25–L2                   F9 05 EF 11 0D 0A 0D 0A 4F 4B 0D 0A 4A F9         ….<CR><LF><CR><LF>OK<CR><LF>J.

    20/06/14 09:07:25–L2             ] 

     

     

    I can’t understabd why had we got +CIEV inside AT+CLCC even that it 

    occur early?

      1. Hi Luca,

         

        Yes you are right, the echo is enabled.

         

        In our case, process of sending AT commands & analyzing AT responses and URCs are different & independent, that is why we need the echo.

         

        1. Hi Yuriy,

           

          since I’m not able to reproduce the issue, can you take a longer time trace please?

          What I need is a log starting long before the issue happens and lasting a while after the issue manifest.

          1. Hi Cosmin Buhu,

             

            I attached the full trac.rdt file which we have with this issue – look at 20/06/14 09:07:25.

            W e disabled almost all log flags in RTD tool, so if you need more trace data, please tell us which flags we need to enable. 

             

            Some hit about our use case: AT+CLCC command  executed every 200ms to monitor incoming and outgoing call state.

          2. Hi Luca Marcato,

             

            Sorry for corrupted file. I think this is becase of its size. That is why I am reattaching ziped version of the full trac.rdt file.