Important changes to forums and questions
All forums and questions are now archived. To start a new conversation or read the latest updates go to forums.mbed.com.
9 years ago.
server to device query using coap
couple questions for discussion:
1. in the world of COAP, how would a server send a get/query to a wireless device that is in sleep mode? does the server need to know about the wake up frequency of the device?
2. for communication over sockets, a data session need to be activated (over GPRS for example) who would be responsible for establishing such connection in the case of a query from the server?
thank you Jamal
Question relating to:
8 years, 10 months ago.
CoAP itself doesn't speculate on how this behaviour is performed.
There is a related specification that uses CoAP by OMA called LWM2M (lightweight m2m). in LWM2M a device always phones home when it is online and tells the server any change in IP etc.
There is a special entry in the LWM2M standard for cellular devices which permits the CoAP packet to be sent over SMS.
This allows the client to respond with a CoAP packet over the SMS bearer so that no data session is required.
An alternative arrangement is that the SMS causes the client to re-register with the server and the response is made over the data bearer.
There isn't really any way around the problem of ad-hoc access from server-to-device unless the device is connected to some network.
If the IP of the device never changes, there is nothing to stop you communicating the sleep frequency to the server, so that the server only sends packets when the device is awake. But you would have to do all the sync yourself.
I hope this answers your question. If you need any clarification please ask more.