Bluetooth Android App

Hi,

I want to be able to connect my android phone to the BeagleBone Black Wireless and use an app on my phone that will function as a joystick and send values over bluetooth to the beaglebone. I am looking for something similar to Blue Dot for the Raspberry Pi:

https://github.com/martinohanlon/BlueDot

Does anyone know of a similar app I can use for the BeagleBone Black? If I were to create the app myself, would it be difficult to interface the BBB bluetooth with the android app? Has anyone had success with a similar project? If you have can you please share any resources used for establishing the bluetooth connection and sending data back and forth.

Thanks!

Hi,

I want to be able to connect my android phone to the BeagleBone Black
Wireless and use an app on my phone that will function as a joystick and
send values over bluetooth to the beaglebone. I am looking for something
similar to Blue Dot for the Raspberry Pi:

https://github.com/martinohanlon/BlueDot

Does anyone know of a similar app I can use for the BeagleBone Black? If I
were to create the app myself, would it be difficult to interface the BBB
bluetooth with the android app? Has anyone had success with a similar
project? If you have can you please share any resources used for
establishing the bluetooth connection and sending data back and forth.

  BlueDot, itself, is a Python module, and

debian@beaglebone:~$ sudo pip3 install bluedot
[sudo] password for debian:
Collecting bluedot
  Downloading
https://files.pythonhosted.org/packages/d2/58/65f4f08d1237ffa955a85e4a4085589a8a7a9f42273ccaf7adfceb95ae25/bluedot-1.3.2-py3-none-any.whl
Installing collected packages: bluedot
Successfully installed bluedot-1.3.2

  What may NOT function is the interface to the bluetooth radio (I can't
test as I have BB Black, NO WIFI).

debian@beaglebone:~$ python3
Python 3.5.3 (default, Sep 27 2018, 17:25:39)
[GCC 6.3.0 20170516] on linux
Type "help", "copyright", "credits" or "license" for more information.

import bluedot

Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/usr/local/lib/python3.5/dist-packages/bluedot/__init__.py", line
1, in <module>
    from .dot import BlueDot, BlueDotPosition, BlueDotInteraction,
BlueDotSwipe, BlueDotRotation
  File "/usr/local/lib/python3.5/dist-packages/bluedot/dot.py", line 13, in
<module>
    from .btcomm import BluetoothServer
  File "/usr/local/lib/python3.5/dist-packages/bluedot/btcomm.py", line 7,
in <module>
    from .utils import (
  File "/usr/local/lib/python3.5/dist-packages/bluedot/utils.py", line 3,
in <module>
    import dbus
ImportError: No module named 'dbus'

[1]+ Stopped python3

debian@beaglebone:~$ sudo apt install python3-dbus
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following additional packages will be installed:
  python3-gi
Suggested packages:
  python-dbus-doc python3-dbus-dbg
The following NEW packages will be installed:
  python3-dbus python3-gi
0 upgraded, 2 newly installed, 0 to remove and 0 not upgraded.
Need to get 638 kB of archives.
After this operation, 1,254 kB of additional disk space will be used.
Do you want to continue? [Y/n]
Get:1 http://deb.debian.org/debian stretch/main armhf python3-dbus armhf
1.2.4-1+b1 [178 kB]
Get:2 http://deb.debian.org/debian stretch/main armhf python3-gi armhf
3.22.0-2 [460 kB]
Fetched 638 kB in 0s (936 kB/s)
Selecting previously unselected package python3-dbus.
(Reading database ... 73000 files and directories currently installed.)
Preparing to unpack .../python3-dbus_1.2.4-1+b1_armhf.deb ...
Unpacking python3-dbus (1.2.4-1+b1) ...
Selecting previously unselected package python3-gi.
Preparing to unpack .../python3-gi_3.22.0-2_armhf.deb ...
Unpacking python3-gi (3.22.0-2) ...
Setting up python3-dbus (1.2.4-1+b1) ...
Setting up python3-gi (3.22.0-2) ...
Processing triggers for libc-bin (2.24-11+deb9u4) ...
debian@beaglebone:~$

debian@beaglebone:~$ python3
Python 3.5.3 (default, Sep 27 2018, 17:25:39)
[GCC 6.3.0 20170516] on linux
Type "help", "copyright", "credits" or "license" for more information.

Why bluetooth?

Isn’t WiFi more easy/powerfull? Ie. a JavaScript app in a browser sending to a fcgi client on the BBB.