nRF9160 persistent socket in eDRX

My device is connected all the time to a server with a persistent socket.  I’m using eDRX power save modes so current will stay low in my battery operated product. During operation the server can send data to the device.  From another article it looks like this data is stored in a cellular network buffer and then during the next paging cycle is received by the modem.  How do I know something is available for me to process?  Do I have to keep polling with a socket receive command?  That seems like it would eat up my battery.   Recommendations on how I should best approach this for low power would be great.

Thanks for the help,

Chris

Parents Reply
  • Hi,

     

    Normally you'd let poll time out, as there's not much else that can interrupt it, except when there's activity on the socket itself.

    I do not see any immediate way to interrupt it mid-sequence other than the above, except maybe closing the socket (which should give you a POLLNVAL)? I suppose you could try to call poll sequentially, ie. split it up into 20*1min timeouts?

     

    Kind regards,

    Håkon

Children
No Data
Related