martinruenz / v360

This module allows you to remote control the VSN Mobil V.360° Camera.
GNU Lesser General Public License v3.0
5 stars 2 forks source link

Installing gattlib incredibly painful on BeagleBone or Rasberry Pi #4

Open paulcox opened 6 years ago

paulcox commented 6 years ago

There are a number of issues getting gattlib installed on BB and RasPi. The main reason is a hardcoded version of python 34 in a boost dependency. On the Pi, pip3 install gattlib failed so using pip3 download gattlib to grab the source then manually modifying the version to python 35 which is what's installed on the Stretch-based Raspbian that is current fixed the issue. On beagle there was a lot more to do. The gattlib source had to be download manually, then the 512MB RAM is enough and leads to weird compiler crashes so you have to add a 512MB swap partition. then on the beaglebone green you have to turn on bluetooth chip with sudo bb-wl18xx-bluetooth. All that and gattlib is still unable to find the camera, despite bluetoothctl having no problems:

debian@beaglebone:~/v360/examples$ python3 find_cameras.py
Found cameras:
debian@beaglebone:~/v360/examples$ sudo bluetoothctl
[NEW] Controller D0:B5:C2:C1:DF:66 beaglebone [default]
[NEW] Device BC:66:41:70:32:E7 V360Camera
[NEW] Device B4:99:4C:4B:BF:C5 V360Camera
martinruenz commented 6 years ago

I am not supporting this project anymore and won't release further updates. Do you want to create a fork with updates?

paulcox commented 6 years ago

I can do that. No way I can convince you to keep on this? At least until I can get your programs working on my end? I figured out that I needed to increase the timeout for your programs to work on Pi/Beagle. Now it find the camera (actually it's two devices it find that are both v360 and one seems to work). But am still struggling to the programs to run completely. The next hurdle is that python3 (I'm on 3.5.3) now won't let the the urlopen() function work anymore, complaining about https security. If I try the workaround to bypass the SSL: CERTIFICATE_VERIFY_FAIL then I get another error DH_KEY_TOO_SMALL !! Frustrating. It's connecting to bluetooth and wifi, I'm so close but really stuck on this one.