Which is the best way of sending the data read from a sensor?

Hi,

I need to read the data from an acceleration sensor. I tried with a custom program of mine to simulate some data, but it is delaying too much.

I tried reducing the notification interval, but sometimes it just jumps numbers so to say, it should show 1,2,3. But now it shows 1,3,5.

Am I missing something?

Thank you!

  • Hi Karl,

    I am really sorry for the delay. I had to focus also on the reading of the sensor, the app for displaying the data and got stuck for a really long time. Now I had the chance to return and have a look at this issue again. 

    I see that now I am obtaining again .02 MB/s. I tried making 2 different threads, one that reads the values from the sensor ands stacks them in an array, and other one that sends the data. It is also not working.

    Having a look at the sniffer tool that you mentioned, I receive some things which I don't know if it is helpful to know, or how to interpret them. I see for example, that the updates in parameters to 2M and data length are being made. 

    But when I subscribe to the notifications, I see that the master is also taking quite some time to send something and it is empty, is this normal?

    Also, I don't see any warnings or errors.

    I attach some screenshots of the wireshark. If there is a better way to share the logs, please let me know.

    This first image is before any connection event

    This second image is when the connection happened

    This third image is before I subscribe

    This fourth image is during the subscription

    If there is any other information that might be useful, please let me know.

    Best regards, 

    Adrian Lopez

  • Now I figured out what to send, an apology.
    sniffer1.zip

    Best regards,

    Adrian Lopez

Related