@Bairon You need to create a permanent serial port on your Udoo. Follow the second part of this tutorial to see how it's made : https://myraspberryandme.wordpress.com/2013/11/20/bluetooth-serial-communication-with-hc-05/ This will create a device called "rfcomm0" in your /dev directory that you will be able to open like a file. The second part is to connect to that with your Android phone. You can use either an already made Serial Port app (Search for "Bluetooth SPP") or create your own. http://developer.android.com/reference/android/bluetooth/BluetoothSocket.html https://github.com/akexorcist/Android-BluetoothSPPLibrary http://digitalhacksblog.blogspot.ca/2012/05/android-example-bluetooth-simple-spp.html
dear @Frederick Blais i have stabilished a serial comm over bluetooth (trought /dev/rfcomm40), but how read this from arduino?? i see characters send by app on android and vice versa on serial monitor (/dev/rfcomm40), I tried modify /usr/share/arduino/lib/preferences.txt replacing serial.port=COM1 to serial.port=/dev/rfcomm40 but no solution, sorry for my bad english i´m a newbie on udoo/arduino. thanks a lot.
@Bairon You have to route /dev/rfcomm40 to /dev/ttyMCC by a program on the Linux side ( in C++/python/Perl etc) and send the data from one port to another and vice versa. See for example http://stackoverflow.com/questions/11759430/serial-port-routing-in-linux "Socat" could also work.
Hello Bairon, see this : http://superuser.com/questions/403331/how-do-i-link-two-serial-ports-in-gnu-linux
Yes i have read this and i apply the follow comand: Console 1: rfcomm listen 12:34:56:78:90:ab //android phone MAC arter phone is connected run in another console console2: socat /dev/rfcomm40,raw,echo=0,crnl /dev/ttyMCC,raw,echo=0,crnl it's work!! i have added to rc.local this script hciconfig hci0 piscan <- to make discoverable bluetooth sdptool add sp <- to add serial port rfcomm listen 12:34:56:78:90:ab <- to listen a smartphone but i`ll find a way to use socat when smartphone is connected automatically...
as mentioned it works with the socat comand, but this only starts when the device is created, as I can run socat automatically when rfcomm40 be created? maybe can use udev rule?
Hi!! Two years later... @Bairon you could document this process?? @Andrea Rovai the bluethoot use documentation exists?