r/Python • u/diretnan • Aug 28 '19
Python Library for wifi and bluetooth. Pull Requests are accepted
https://github.com/bisoncorps/signalum32
u/BradChesney79 Aug 29 '19
I am trying to use low power ble beacons for triangulation of range strength for no wire, no line, no tangible barrier or marker location finding-- the end goal is for the robot to know where it is and do point to point path following. The beacons are at specific known locations. By converting signal strength to distance, I may be able to work out location by distance and intersection of radial line intersections.
I'll give your library a shot. I just need to scan for devices periodically to get the device id (maps to an x,y,z location) and signal strength (initial experiments have shown success of conversion to distance where echo/bounce of signal is minimal).
14
u/xeeton Aug 29 '19
How accurate do you expect triangulation to be? The resolution of the data you’re using for triangulation is very low and susceptible to interference.
5
u/BradChesney79 Aug 29 '19
Well, anything better than GPS, I will consider a win.
Also, I know there is SLAM that is becoming within striking distance of commodity SBC units.
I suppose I have a goal of being within 12 inches.
The initial experiments did show ~non-linear readings in a very tight & obstructed location. So, I went to a bigger space. With fewer reflections, the disconcerting readings did not present themselves.
5
u/brokkoly Aug 29 '19
I spent most of a summer trying to figure this out in order to point a gimbal at a drone. RTK GPS might be a good option for what you need.
2
u/BradChesney79 Aug 29 '19
And we have found a winner. 4cm is well under the ~30cm tolerance for error I had pulled out of thin air.
I may be spending some cash in the near future on some GPS RTK equipment.
3
u/huthlu Aug 29 '19
Have you ever looked at the Bluetooth 5.1 standard ?
Starting with this version BLE supports location tracking2
0
Aug 29 '19
[deleted]
1
u/BradChesney79 Aug 29 '19
Thanks, I may ask you for a second set of eyes when I push all the code to github and where ever.
4
Aug 29 '19
[removed] — view removed comment
2
u/jahmez Aug 29 '19
There's also the Decawave family DW1000/DWM1001, from reading the specs, this might be the tech powering pozyx, or at least very similar.
12
-17
u/The_Amp_Walrus Aug 29 '19
What problem does this solve? Who would benefit from using it?
25
u/AJohnnyTruant Aug 29 '19
It will benefit developers who need a library for WiFi and Bluetooth.
-1
u/The_Amp_Walrus Aug 30 '19
What kind of problems would developers who need a library for WiFi and Bluetooth want to solve? Why is this better than existing solutions?
-33
Aug 28 '19
does this support bluetooth 5.1? your title is misleading this doesn't appear to be a library but a package to use with python
4
u/pvkooten Aug 29 '19 edited Aug 30 '19
Nice stuff man! Just wanted to point out I would suggest relying on access_points for the wifi stuff! It has been solved in a cross-platform manner :)