Unable to get data from RuuviCollector to InfluxDB on Ubuntu

So, if I haven’t totally misunderstood, that’s something I’m able to do myself (maybe). Well, gonna fiddle aroud with my ubuntu anyway so might as well fiddle with bluetooth.

I don’t know what kind format is correct format for tag’s information but noticed this one in sudo btmon

HCI Event: LE Meta Event (0x3e) plen 57 #26 [hci0] 26.814749
LE Extended Advertising Report (0x0d)
Num reports: 1
Entry 0
Event type: 0x0010
Props: 0x0010
Use legacy advertising PDUs
Data status: Complete
Legacy PDU Type: ADV_NONCONN_IND (0x0010)
Address type: Random (0x01)
Address: D1:9D:98:5B:50:DD (Static)
Primary PHY: LE 1M
Secondary PHY: No packets
SID: no ADI field (0xff)
TX power: 127 dBm
RSSI: -68 dBm (0xbc)
Periodic advertising invteral: 0.00 msec (0x0000)
Direct address type: Public (0x00)
Direct address: 00:00:00:00:00:00 (OUI 00-00-00)
Data length: 0x1f
02 01 06 1b ff 99 04 05 11 da 22 5d c3 3c 00 00 …"].<…
ff f0 03 fc b2 f6 15 24 73 d1 9d 98 5b 50 dd …$s…[P.

At least it looks like it’s reasonable

And after that I found that same plen number from hcidump -X

HCI Event: LE Meta Event (0x3e) plen 57
Disconn Complete
0000: 01 10 00 01 d3 6a 55 e3 64 df 01 00 ff 7f d2 00 …jU.d…
0010: 00 00 00 00 00 00 00 00 1f 02 01 06 1b ff 99 04 …
0020: 05 10 34 21 28 c2 cf ff fc ff d0 03 f0 b8 36 69 …4!(…6i
0030: 13 17 df 64 e3 55 6a d3 …d.Uj.

Just quick note before heading to bed after fiddling around with bluetooth long enough. Very first time I tried to do something with Ruuvi tags I tried Bluewalker, I had no knowledge what-so-ever.

Anyway, just started ruuvi-collector service and started bluewalker to run in terminal and… I get data out from Ruuvi tags.

My friend was certain that Ubuntu 20.04 and bluetooth 5.0 wasn’t good combination but apparently I managed to do something for once.

Ps. happy new year pals.

2 Likes

Update after 6 months: something broke suddenly after shutdown and starting again my server.

Bluewalker is able to scan Ruuvi tags as it should be. Ruuvi Collector runs without problem.
Problem here, as far as I know, seems to be that hcidump doesn’t see data which Bluewalker sees.

If I stop Bluewalker and execute bluetoothctl and after that scan on and check hcidump, it shows data ( but won’t send it to InfluxDB ).

Permissions may get broken on update, this thread had similar problem and a solution: Bluetooth connectivity issues.

Let me know if it fixes your issue

1 Like

It seems that it was just those capabilities was missing. I executed for hcidump and hcitools, after reverting some of my own fidlings, it started to work. If only I would have asked that earlier.

Anyway, thanks for the info, otso!

Old threat… same problem.

I have new installation Rpi… I got data from RuuviCollector first few boots after setting up the system → Ruuvicollector → InfluxBD → Grafana. Then started problems.

At the moment I get warning Failed to start lescan.service: Transaction order is cyclic. See system logs for details. See system logs and 'systemctl status lescan.service' for details.

systemctl status lescan.service
● lescan.service - BLE Scanning Service
     Loaded: loaded (/etc/systemd/system/lescan.service; enabled; vendor preset: enabled)
     Active: inactive (dead)

elo 24 18:45:52 raspberrypi systemd[1]: multi-user.target: Found ordering cycle on lescan.service/start
elo 24 18:45:52 raspberrypi systemd[1]: multi-user.target: Found dependency on graphical.target/start
elo 24 18:45:52 raspberrypi systemd[1]: multi-user.target: Found dependency on multi-user.target/start
elo 24 18:45:52 raspberrypi systemd[1]: multi-user.target: Unable to break cycle starting with multi-user.target/start
elo 24 20:54:33 raspberrypi systemd[1]: lescan.service: Found ordering cycle on graphical.target/start
elo 24 20:54:33 raspberrypi systemd[1]: lescan.service: Found dependency on multi-user.target/start
elo 24 20:54:33 raspberrypi systemd[1]: lescan.service: Found dependency on lescan.service/start
elo 24 20:54:33 raspberrypi systemd[1]: lescan.service: Unable to break cycle starting with lescan.service/start

hcitool lescan gives BT devices MAC adresses nearby.

hcidump --raw gives only:

HCI sniffer - Bluetooth packet analyzer ver 5.55
device: hci0 snap_len: 1500 filter: 0xffffffff

What I should do?