The cellular_comm_interface, which handles low level transfers between the modem and the cellular library, has provisions to report errors on receive / transmit (ie. caused by buffer overruns, etc.)
However, the pktio layer currently disregards this status information
|
( void ) pContext->pCommIntf->recv( pContext->hPktioCommIntf, ( uint8_t * ) pRead, |
|
bufferEmptyLength, |
|
CELLULAR_COMM_IF_RECV_TIMEOUT_MS, &bytesRead ); |
|
( void ) pContext->pCommIntf->send( pContext->hPktioCommIntf, |
|
( const uint8_t * ) &pContext->pktioSendBuf, newCmdLen, |
|
CELLULAR_COMM_IF_SEND_TIMEOUT_MS, &sentLen ); |
It would be beneficial if the errors on the low-level layer could be propagated back to the user API.
The
cellular_comm_interface, which handles low level transfers between the modem and the cellular library, has provisions to report errors on receive / transmit (ie. caused by buffer overruns, etc.)However, the
pktiolayer currently disregards this status informationFreeRTOS-Cellular-Interface/source/cellular_pktio.c
Lines 590 to 592 in 936d4f7
FreeRTOS-Cellular-Interface/source/cellular_pktio.c
Lines 1290 to 1292 in 936d4f7
It would be beneficial if the errors on the low-level layer could be propagated back to the user API.