BLE Scanner
#1
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-dontbeevi...t-firmware but I'm not really sure what. 

Cheers!
  Reply
#2
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
  Reply
#3
(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-dontbeevi...t-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.
  Reply
#4
Do you mean BLE or regular Bluetooth?

And what kind of scanner? Like a barcode scanner? Or...?
Cheers,
TRS-80

What is Free Software and why is it so important for society?

Protocols, not Platforms

For the most Linux-y experience on your Linux phone, try SXMO!

I am (nominally) the Armbian Maintainer for PineBook Pro (although severely lacking in time these days).
  Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)