Comments on: Talking to a Bluetooth Serial Module with a Raspberry Pi http://blog.dawnrobotics.co.uk/2013/11/talking-to-a-bluetooth-serial-module-with-a-raspberry-pi/ Tutorials and updates from Dawn Robotics Mon, 09 Nov 2015 16:39:02 +0000 hourly 1 http://wordpress.org/?v=3.7.11 By: Alan http://blog.dawnrobotics.co.uk/2013/11/talking-to-a-bluetooth-serial-module-with-a-raspberry-pi/#comment-976 Sat, 08 Aug 2015 21:20:08 +0000 http://blog.dawnrobotics.co.uk/?p=375#comment-976 Hi there,

Sorry for the delay in approving this comment.

Your configuration file looks reasonable, but I’ve no idea if it will work I’m afraid, as I don’t have experience trying to control 2 devices at the same time. Hopefully someone else can give you a more useful answer.

Also, if you’ve been able to make any further progress since you last posted then I’d be very interested to know how you got on. :)

Regards

Alan

]]>
By: khoulod http://blog.dawnrobotics.co.uk/2013/11/talking-to-a-bluetooth-serial-module-with-a-raspberry-pi/#comment-975 Tue, 04 Aug 2015 15:56:52 +0000 http://blog.dawnrobotics.co.uk/?p=375#comment-975 I am trying to control two arduino robots through raspberry pi using Bluetooth, I have already created the rfcomm file to control one robot, should i include the address of the second one in same rfcomm file? if yes, could someone please tell me how?I’ve done this is it correct?
# RFCOMM configuration file.

rfcomm0 {
# Automatically bind the device at startup
bind yes;

# Bluetooth address of the device
device 30:14:10:15:20:90;

# RFCOMM channel for the connection
channel 1;

# Description of the connection
comment “Example Bluetooth device”;
}

rfcomm1 {
# Automatically bind the device at startup
bind yes;

# Bluetooth address of the device

device 10:14:06:16:00:09;

# RFCOMM channel for the connection
channel 1;

# Description of the connection
comment “Example Bluetooth device”;
}

]]>
By: HARSHVARDHAN GUPTA http://blog.dawnrobotics.co.uk/2013/11/talking-to-a-bluetooth-serial-module-with-a-raspberry-pi/#comment-758 Sat, 28 Feb 2015 05:10:35 +0000 http://blog.dawnrobotics.co.uk/?p=375#comment-758 thanks for this tutorial, but I am getting the following error:
Creating device failed: org.bluez.Error.AuthenticationCanceled: Authentication Canceled

]]>
By: John http://blog.dawnrobotics.co.uk/2013/11/talking-to-a-bluetooth-serial-module-with-a-raspberry-pi/#comment-757 Tue, 24 Feb 2015 21:42:20 +0000 http://blog.dawnrobotics.co.uk/?p=375#comment-757 Hi I have followed these steps exactly and ones similar put on by UUGear, but when I get to the “rfcomm bind all” command the Pi always returns “Missing dev parameter” I copy the information exactly and have checked for errors and have no idea what is missing. Has anyone else had this problem?

]]>
By: yash http://blog.dawnrobotics.co.uk/2013/11/talking-to-a-bluetooth-serial-module-with-a-raspberry-pi/#comment-581 Sat, 06 Dec 2014 15:35:44 +0000 http://blog.dawnrobotics.co.uk/?p=375#comment-581 dude,
you are awesome!

This worked like a blast!
I am just testing my thermal printer which is connected via bluetooth,
It just simply worked and I got a print of what I wrote!

Many many thanks man!
Keep posting such articles..

]]>
By: Alan http://blog.dawnrobotics.co.uk/2013/11/talking-to-a-bluetooth-serial-module-with-a-raspberry-pi/#comment-534 Wed, 22 Oct 2014 10:18:52 +0000 http://blog.dawnrobotics.co.uk/?p=375#comment-534 Hi there,

It could be that the serial port hasn’t appeared properly for some reason. What do you get when you run

ls -alh /dev/rfcomm1

and

lsusb

Regards

Alan

]]>
By: Javier http://blog.dawnrobotics.co.uk/2013/11/talking-to-a-bluetooth-serial-module-with-a-raspberry-pi/#comment-530 Tue, 21 Oct 2014 07:34:54 +0000 http://blog.dawnrobotics.co.uk/?p=375#comment-530 Thanks for the tut!
When I do this line: bluetoothSerial = serial.Serial(“/dev/rfcomm1″,baudrate=9600)
I get this error:
Process Process-3:
Traceback (most recent call last):
File “/usr/lib/python2.7/multiprocessing/process.py”, line 258, in _bootstrap
self.run()
File “/usr/lib/python2.7/multiprocessing/process.py”, line 114, in run
self._target(*self._args, **self._kwargs)
File “/home/pi/Desktop/Car/RPiCar/BluetoothServer.py”, line 7, in startBluetoothServer
bluetoothSerial = serial.Serial(“/dev/rfcomm1″,baudrate=9600)
File “/usr/lib/python2.7/dist-packages/serial/serialutil.py”, line 260, in __init__
self.open()
File “/usr/lib/python2.7/dist-packages/serial/serialposix.py”, line 280, in open
self._reconfigurePort()
File “/usr/lib/python2.7/dist-packages/serial/serialposix.py”, line 409, in _reconfigurePort
termios.tcsetattr(self.fd, TERMIOS.TCSANOW, [iflag, oflag, cflag, lflag, ispeed, ospeed, cc])
error: (5, ‘Input/output error’)

Do you have any thoughts?

]]>
By: Alan http://blog.dawnrobotics.co.uk/2013/11/talking-to-a-bluetooth-serial-module-with-a-raspberry-pi/#comment-511 Thu, 02 Oct 2014 14:49:58 +0000 http://blog.dawnrobotics.co.uk/?p=375#comment-511 Hi Kim,

That error is sometimes caused if you have another program using the serial port, have you got another program such as cutecom running?

If that’s not the problem then I’d actually recommend using a separate serial program like cutecom to test that the serial port works, before you try to use it with Python.

On the Raspberry Pi you can install cutecom with

sudo apt-get install cutecom

When you run cutecom (needs to be run from the desktop) you type the name of your serial port in, select the baud rate and then open the connection. At that point you should should be able to send a message with 2 numbers to the Arduino.

Best of luck.

Regards

Alan

]]>
By: kim http://blog.dawnrobotics.co.uk/2013/11/talking-to-a-bluetooth-serial-module-with-a-raspberry-pi/#comment-507 Wed, 01 Oct 2014 13:36:45 +0000 http://blog.dawnrobotics.co.uk/?p=375#comment-507 i have a error

Traceback (most recent call last):
File “bluetooth_serial_example.py” , line 21, in
buetoothSerial.write( “{0} {1}”.format(a,b ))
file “/usr/lib/python2.7/dist-packages/serial/serialposix.py”, line 485, inwrite
raise SerialException(‘write failed: %s’ % (v,))
serial.serialutil.SerialException: write failed: [Errno 5] Input/output error

…. what i shoud do…. help me…

]]>
By: Alan http://blog.dawnrobotics.co.uk/2013/11/talking-to-a-bluetooth-serial-module-with-a-raspberry-pi/#comment-418 Thu, 17 Jul 2014 18:36:40 +0000 http://blog.dawnrobotics.co.uk/?p=375#comment-418 Hi Theo, It’s tough to know what to suggest here. It’s odd that the test script fails on the write command, as by that point, it looks like it’s opened the /dev/rfcomm1 serial port. Also odd that it didn’t ask for the password (perhaps time to go back to DisplayKeyboard?). At this point I would test to see if reading from the serial port works. You can modify the Arduino test program to write data using Serial.println and then listen for it using a serial monitor such as cutecom.

Sorry I can’t be more help, but it’s tough without having the specific devices to hand.

Regards

Alan

]]>