Android-Nordic-Thingy icon indicating copy to clipboard operation
Android-Nordic-Thingy copied to clipboard

How to read the configuration parameters of The firmware v 2.2.0

Open FlorencDemrozi opened this issue 4 years ago • 5 comments

I am using the provided Android SDK, but I am facing some issues with the sampling frequency (we request 200Hz from the Motion sensors/raw data, but we receive at 120Hz). In the documentation here table Thingy configuration service are shown the config parameter, but they are not easily interpretable. Can you please help me to understand such a parameter? What do they mean?

  1. Advertising param characteristic
  2. Connection param characteristic

I really appreciate any help you can provide.

FlorencDemrozi avatar Dec 16 '20 12:12 FlorencDemrozi

I'll have to do some testing on this to see the issue you are facing @FlorencDemrozi

  • Advertising param characteristic has two values relating to advertisement parameters as shown in the documentation.
    • Advertising interval which is the interval between each advertisement packet.
    • Advertising timeout means how long should the peripheral advertise for.
  • Connection param characteristic
    • Connection interval is the time frame between two data packet transfers and has a minimum and maximum value
    • Slave latency is the interval that allows a peripheral to ignore requests coming from the phone in this case. That means a device may ignore certain read requests coming in from the phone during this time frame.
    • Connection supervision timeout is time frame a peripheral will wait for before assuming that the connection was lost.

roshanrajaratnam avatar Dec 16 '20 13:12 roshanrajaratnam

@roshanrajaratnam I have a similar problem. I am using two nordic devices with same firmware version, and after configuring the parameters, respectively:

  • advertising interval 20ms
  • advertising timeout 0ms
  • min connection interval 7,5ms
  • max connection interval 20ms
  • slave latency 0
  • supervision timeout 1000ms

I find that one Nordic samples at 170hz, while the second samples at 85hz. I would need to collect raw data simultaneously from both devices at the highest possible frequency (indicated at 200hz). Am I making a mistake in setting the parameters or is it not possible to sample at 200hz with two Nordic devices together?

How can I get as close as possible to the maximum frequency?

thank you in advance

Xiryl avatar Dec 16 '20 18:12 Xiryl

@roshanrajaratnam do you have any updates related to the sampling frequency and connection parameters issue?

Xiryl avatar Jan 13 '21 10:01 Xiryl

@Xiryl really sorry for the delay and as of now I've been prioritized with some other tasks. Could you kindly create a issue on DevZone on this please?

roshanrajaratnam avatar Jan 13 '21 11:01 roshanrajaratnam

Thanks, @roshanrajaratnam. I'm linking the thread issue that I've created on DevZone: https://devzone.nordicsemi.com/f/nordic-q-a/69583/nordic-thingy-52-ble-frequency-issue?ReplySortBy=CreatedDate&ReplySortOrder=Ascending

Xiryl avatar Jan 14 '21 22:01 Xiryl