IRNAS / ppk2-api-python

Power Profiling Kit 2 unofficial python api.
http://irnas.eu
GNU General Public License v2.0
145 stars 37 forks source link

Sampling Rate #29

Closed Jinyaox closed 1 year ago

Jinyaox commented 1 year ago

Hello, is there a way to change sampling rate for the device? If not, what is the default sampling rate for this sampling?

wlgrd commented 1 year ago

No. The sampling/reporting rate of the PPK2 is 100k samples/second.

Siddarth-Manja commented 1 year ago

Is there any script to average the obtained value to 10k samples/second the way it is done in the nRF connect desktop application?

wlgrd commented 1 year ago

Not right now.

mrx23dot commented 1 month ago

For me PPK2 always returns

16384 bytes in ppk2_test.get_data()
4096 analog samples in ppk2_test.get_samples(read_data)
with sleep(0.010)
or empty when there are no new samples

which doesn't match up with 100Ksps sampling rate you mentioned, should be 1000samples/10ms mentioning the sampling rate in code would be also nice.