URC frame not handled correctly

Aperta
#179 3 commenti 1 reazione 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
18/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Ferma
Stack tecnologico
c
Ambito
networking

Direzione di ricerca

The URC handling is in the cellular library's AT-message dispatch, where the _handleMsgType path reports AT_UNDEFINED for unprefixed messages such as "SRING: 1" and no undefined callback is registered. Start by finding where the undefined-type callback is set and how unprefixed URCs are matched against the expected prefix list. Done means a registered handler receives the SRING URC and the debug log no longer reports a failed message type.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

Hi there,

I started to port the driver to ME310G1 modem inspired from SARA-R4 driver.
Connexion is now working and I'm currently porting the socket layer.
I'm facing the lib do not handle URC correctly.

Once socket is opened, the ME310 send URC "SRING: x" (with x=socket ID) to inform data are available.
but this URC is not handled by the lib. instead i get

DEBUG [ME310 ] 12 bytes received (..SRING: 1..)
DEBUG [CELLULAR ] AT Read 12 bytes, data[200080c6]
INFO [CELLULAR ] AT_UNDEFINED message received SRING: 1
ERROR [CELLULAR ] No undefined callback for AT_UNDEFINED type message SRING: 1 received.
ERROR [CELLULAR ] recvdMsgType is AT_UNDEFINED for Message: SRING: 1, cmd NULL
DEBUG [CELLULAR ] _handleMsgType failed 11

If i right understood the lib source, URC message can't be without prefix.. but it is the case here..

Lingua principale
C
Stelle
101
Fork
73
Merge medio
28g 19h
PR unite (30g)
1

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di FreeRTOS/FreeRTOS-Cellular-Interface

Tutte le issue di FreeRTOS/FreeRTOS-Cellular-Interface

Issue simili

Altre issue su C

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.