PINE64
BLE Scanner - Printable Version

+- PINE64 (https://forum.pine64.org)
+-- Forum: PinePhone (https://forum.pine64.org/forumdisplay.php?fid=120)
+--- Forum: PinePhone Hardware (https://forum.pine64.org/forumdisplay.php?fid=122)
+--- Thread: BLE Scanner (/showthread.php?tid=14377)



BLE Scanner - EnjiNear - 07-07-2021

Hello!

I'm working on a project that requires a BLE scanner to upload data to a database over cell network. I'm thinking this would be a perfect application for a Pinephone but I am unsure where to start. I haven't been able to find any support documents on how to access the bluetooth hardware on the PP. Can anyone here point me in the right direction? I was thinking I could find some Raspberry Pi examples and go from there. I have some experience in developing for Raspberry Pi but not much.

So far, I have the Pinephone connected to my laptop via UART and have access to the phone. Thinking I can scrub something from this github repo: https://github.com/sailfish-on-dontbeevil/realtek-bt-firmware but I'm not really sure what. 

Cheers!


RE: BLE Scanner - awaittrot - 07-07-2021

I think most PinePhone distros expose Bluetooth and BLE interface via DBus. Atleast mobian use DBus.

A while back, I have wrote a python script to scan BLE device and print RSSI to console.
I uploaded the code here for reference, but I'm not intend to maintain this code any more. https://gitlab.com/awaittrot1/lescan


RE: BLE Scanner - biketool - 07-08-2021

(07-07-2021, 11:58 AM)EnjiNear Wrote: Hello!

I'm working on a project that requires a BLE scanner to upload data to a database over cell network. I'm thinking this would be a perfect application for a Pinephone but I am unsure where to start. I haven't been able to find any support documents on how to access the bluetooth hardware on the PP. Can anyone here point me in the right direction? I was thinking I could find some Raspberry Pi examples and go from there. I have some experience in developing for Raspberry Pi but not much.

So far, I have the Pinephone connected to my laptop via UART and have access to the phone. Thinking I can scrub something from this github repo: https://github.com/sailfish-on-dontbeevil/realtek-bt-firmware but I'm not really sure what. 

Cheers!

I have to run right now but there is a source link for a BTLE scanner on the Mobian app wishlist if I recall correctly.
https://wiki.mobian-project.org/doku.php?id=wishlist
Try compiling it and report how it works.


RE: BLE Scanner - TRS-80 - 07-09-2021

Do you mean BLE or regular Bluetooth?

And what kind of scanner? Like a barcode scanner? Or...?