Hello,
We are working on a network of low energy sensors that work without connection. The sensors have a configurable service, so from time to time it makes itself available for new configuration of the service that it is running. Based only on advertisements and observers.
We are using the scan_request and scan_response to either increase the amount of data to be transferred and to ACK the instructions from the network to the sensors.
It works like this:
- Every 30 seconds the low energy sensor broadcasts an ADV, with the "scan_response" active. Making itself available for configuration or service request.
- If the network node (raspberry or smartphone) wants to reconfigure the sensor application, it sends a scan_request.
- If the sensor receives the scan_request, it sends the scan_response and right after it turns on the scanner for a short time (3ms or 5ms), so it can receive the configuration bytes.
- The network node sends the configuration message through ADV right after receiving the scan_response from the sensor. In this case the scan_response is seen like an ACK and the flag in time to synchronize the communication.
My questions are:
- Is 3ms or 5ms enough time to receive the advertisement from the network node?
- How should I configure this short scanner on the sensor regarding the frequency channels?
- Does it seems like its going to work?
Thanks a lot!