Hey everyone,
I am experiencing a bit of a problem with getting data at higher sampling rate from RuuviTag using Raspberry Pi 3 B. Specifically, I tested a RuuviTag with the default firmware in the RAW mode. I modified the print_screen.py example to continuously get data from my RuuviTag. So far this setup worked fine β I get roughly the correct number of samples (smaller than perfect 1 Hz though).
The problems start when I try to increase the sampling rate of the tag by modifying firmware. I followed this thread [1]. So I set MAIN_LOOP_INTERVAL_RAW
to 100u
(also tested with 500u
) in bluetooth_application_config.h
[2], compiled the firmware and generated a DFU packet as follows:
nrfutil pkg generate --debug-mode --application _build/ruuvi_firmware.hex --hw-version 3 --sd-req 0x91 --key-file ~/git/ruuvitag_fw/keys/ruuvi_open_private.pem ruuvi_firmware_dfu.zip
Then I use nRF Connect to load the new firmware to the tag and it gets loaded successfully β at least I do not get any errors and the tagβs LED starts to blink with a higher frequency. When I launch my script again on the Raspberry Pi β I get fewer samples.
Does anyone have any idea why this happening or at least point me to the direction of where this problem might have occurred (e.g. script running on the Pi, firmware modification, BLE settings on the Pi)?
Thanks in advance.
[1] - Changing the broadcasting interval
[2] - https://github.com/ruuvi/ruuvitag_fw/blob/master/ruuvi_examples/ruuvi_firmware/bluetooth_application_config.h