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 . So I set
100u (also tested with
bluetooth_application_config.h , 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.