This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Sending logged data with BLE

Hello! I am working on a project in which I want to send stored sensor data to a smartphone whenever the phone is in range or at specific times of day.

Most of the communication examples I have found are based on sending data when it is updated by the peripheral, not on sending bulk data. So what is the best way of doing this? I have data from two distinct sensors along with time-stamp data that I want to send and it is important that all the data gets transmitted.

So far I have thought that maybe each sensor should have a characteristic and that I should update the values each time it gets read by the phone or something along those lines. The phone would try and read these characteristic values over and over until all the data has been read. Is this a reasonable way to accomplish what I want to do? Examples would be appreciated!

I also imagine that the peripheral device (battery driven) should advertise it's presence all the time and that the phone will only scan for it maybe once every hour or so.

I have the PCA 10001, nrF 6310 and I have been able to use the examples to transmitt some data to an Android phone.

Thanks

Related