ROS, Arduino and Bluesmirf problem

67 views
Skip to first unread message

Chuck Untulis

unread,
Feb 21, 2012, 2:29:31 AM2/21/12
to hbrob...@googlegroups.com
I am trying to use a Bluetooth Bluesmirf to exchange message between Ubuntu and code running on an Arduino via rosserial. If I use a USB cable, I can communicate with the Arduino, but when I try to do that via bluetooth it fails.

I have tried to simplify things to have a simple program running on the Arduino that sits and waits for a "H" or "L" to switch the state of an LED on the Arduino. I am able to use the Bluetooth Devices interface on Ubuntu to connect the Bluesmirf.  The interface says that it is connected and assigned to /dev/rfcomm0.  When I try running Putty to connect to /dev/rfcomm0 (at various baud rates), it immediately fails with two messages - Unable to open connection and then Unable to open serial connection.

When I do a "ll /dev/rfcomm0", I see:
crw-rw---- 1 root dialout 216, 0 2012-02-20 23:21 /dev/rfcomm0

When I do a rfcomm show /dev/rfcomm0 I see
rfcomm0: 00:24:7E:30:E7:1A -> 00:06:66:00:69:F4 channel 1 connected [reuse-dlc tty-attached]
00:06:66:00:69:F4 is the mac address of the Bluesmirf, but I have no idea what device 00:24:7E:30:E7:1A references.

Has anyone used a Bluesmirf or other Bluetooth dongel to communicate between a program running on Ubuntu with code running on Arduino.  If you have done this, what is the magic to get it to work?

Thanks

Chuck

Ralph Gnauck

unread,
Feb 21, 2012, 2:34:47 AM2/21/12
to hbrob...@googlegroups.com
Chuck,
Make sure you are a member of the 'dialout' group.
 
Ralph


From: Chuck Untulis <chuck....@gmail.com>
To: hbrob...@googlegroups.com
Sent: Mon, February 20, 2012 11:29:31 PM
Subject: [HBRobotics] ROS, Arduino and Bluesmirf problem
--
You received this message because you are subscribed to the Google Groups "HomeBrew Robotics Club" group.
To post to this group, send email to hbrob...@googlegroups.com.
To unsubscribe from this group, send email to hbrobotics+...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/hbrobotics?hl=en.

Chuck Untulis

unread,
Feb 21, 2012, 2:49:41 AM2/21/12
to hbrob...@googlegroups.com
Hi Ralph,

Great. The error has gone away but putty does not seem to be working as I expected. I will keep working on it.

Thanks

Chuck
Reply all
Reply to author
Forward
0 new messages