Description
When setting different RAT of the modem, the ublox modem needs to deregister from the network. This is done by sending AT+COPS=2 which in response generates the following URCs:
+CREG: 0
+CGREG: 0
+CGEV: ME DETACH
However, the ATHandler
processes only the first URC (+CREG)
and the other URCs are missed consequently resulting in at_overflow
and return error -3012 (_last_err)
.
[00042148][INFO][CELL]: AT TX ( 9): AT+COPS=2
[00042149][INFO][CELL]: AT TX ( 1):
[00043596][DBG ][CELL]: AT OoB readable 1, len 0
[00043596][INFO][CELL]: AT RX ( 6): OK
[00043597][INFO][CELL]: AT RX ( 5): +CR
[00043597][INFO][CELL]: AT RX ( 5): EG: 0
[00043598][INFO][CELL]: AT RX ( 5): +
[00043660][INFO][CELL]: AT RX ( 2): CG
[00043715][DBG ][CELL]: +CREG: NotRegistered, LAC -1, cell -1, RAT unknown
[00043808][INFO][CELL]: AT RX (13): REG: 0+CG
[00043887][INFO][CELL]: AT RX (13): EV: NW DETACH
[00043954][ERR ][CELL]: AT overflow
[00044006][INFO][CELL]: AT RX ( 2):
[00044067][INFO][CELL]: AT ERR (29): +: EV: NW DETACH<00><00><00><1D><00><00><00><00><00><00><00><00><00>
[00044568][DBG ][CELL]: AT error -3012
[00044568][DBG ][CELL]: AT OoB done
Is there any solution to parse multiple URCs.
Description
Issue request type
[ ] Question
[ ] Enhancement
[X] Bug