Using Bluetooth for Sending serial data - Printable Version +- PINE64 (https://forum.pine64.org) +-- Forum: PINE A64(+) (https://forum.pine64.org/forumdisplay.php?fid=4) +--- Forum: Pine A64 Hardware, Accessories and POT (https://forum.pine64.org/forumdisplay.php?fid=32) +---- Forum: Wifi/BT Module (https://forum.pine64.org/forumdisplay.php?fid=33) +---- Thread: Using Bluetooth for Sending serial data (/showthread.php?tid=2187) |
Using Bluetooth for Sending serial data - Arjun - 09-11-2016 I'm using Ubuntu long sleep OS on pine64+, I'm trying to send serial data from the pine 64+ to the Arduino UNO over bluetooth. For that i installed Bluez package and when i check for the bluetooth device using "Hcitool dev", its empty. But i checked the status of bluetooth using "etc/init.d/bluetooth status", the result is, Quote:● bluetooth.service - Bluetooth service When i add a USB bluetooth adapter to pine 64+, it gets detected and works fine. I tried this using the procedure given in the following link: http://blog.whatgeek.com.pt/2015/09/bluetooth-communication-between-raspberry-pi-and-arduino/ RE: Using Bluetooth for Sending serial data - pfeerick - 09-11-2016 Hi Arjun, I'll be in the same boat as you shortly, as the USB power meter I use when monitoring the pine64 has a bluetooth interface to allow for logging, so I'll be able to add that data I'm currently logging about the board. In the mean time, it might be worth having a look over this thread, as it seems that xalius was trying to get it to work, and seemed to have some luck in getting it loaded up and working. (09-11-2016, 03:04 AM)Arjun Wrote: I'm using Ubuntu long sleep OS on pine64+, I'm trying to send serial data from the pine 64+ to the Arduino UNO over bluetooth. RE: Using Bluetooth for Sending serial data - Arjun - 09-12-2016 In Bluetoothctl, it is not recognizing the controller. The result in bluetoothctl is, " No default controller available". RE: Using Bluetooth for Sending serial data - Arjun - 09-13-2016 Hurray!! The problem is solved,, i used "Debian Linux Jessie with Mate GUI Image [20160701] by lenny.raposo with Longsleep kernel", in that image bluetooth problem is already solved. Now i'm able to send serial data to arduino. RE: Using Bluetooth for Sending serial data - HayseedGeek - 09-13-2016 (09-13-2016, 07:44 AM)Arjun Wrote: Hurray!! I'm absolutely not a distro or kernel builder, so take this for what it is, a probative question based mostly upon ignorance of the work involved, but here goes: Ubuntu is Debian based, so it seems feasible to think someone who knew what they were doing could look at the diffs between the two subsystems and incorporate what works in Debian in the Ubuntu distro? RE: Using Bluetooth for Sending serial data - pfeerick - 09-13-2016 (09-13-2016, 07:44 AM)Arjun Wrote: Hurray!! Would you be able to elaborate a bit further? Are you still using bluez? What are you using to send/receive data from the Arduino? It looks like anakratis is having trouble, and is on the same distro image... but isn't able to see anything in blueman? I'm interested in knowing what's involved in getting it working also... but from the command line on debian in my case. RE: Using Bluetooth for Sending serial data - Arjun - 09-14-2016 No, i didn't use Bluez, i used bluetoothctl. I also used the same image which he was using, but i followed these steps: In command line: 1. I entered "Bluetoothctl", which showed Code: droot@pine64:/home/debian# bluetoothctl That proves bluetooth controller is detected. 2. Then "power on" command inside bluetoothctl Code: [bluetooth]# power on 3. Then "agent on" Code: [bluetooth]# agent on 4. Then "default-agent" Code: [bluetooth]# default-agent 5. Then "scan on" which ll list all surrounding bluetooth devices. 6. Then for pairing, " pair <dev addr>" dev addr will be like "98:01:23:89:56:89" If asked for pswd, enter it. 7. Then "paired-devices" command, will list all the paired devices, here u can cross check the pairing confirmation. That's it. RE: Using Bluetooth for Sending serial data - MarkHaysHarris777 - 09-14-2016 Thanks-- very helpful. RE: Using Bluetooth for Sending serial data - elpiti - 10-13-2016 Are you sure, after pairing the devices you can connect to the bluetooth module HC- connected to arduino?, bucause I use bluetoothclt on DEBIAN, but the devices connect for a second, and then it disconnects! I'm trying to do the same as you but I have no success using blueman, bluez, bluetoothctl RE: Using Bluetooth for Sending serial data - Arjun - 10-19-2016 (10-13-2016, 08:01 PM)elpiti Wrote: Are you sure, after pairing the devices you can connect to the bluetooth module HC- connected to arduino?, bucause I use bluetoothclt on DEBIAN, I'm connecting to HC-05 using this command: rfcomm connect hci0 20:16:24:23:69:32 1 |