Bluetooth serial communication - serial port transparent transmission

asked 2018-05-04 04:25:17 -0500

BhanuKiran.Chaluvadi gravatar image

updated 2018-05-04 06:23:07 -0500


I two devices Bluno nano(arduino Uno) and Bluno Link (Bluetooth dongle) just to give a reference to the hardware. I am able to establish the connection between them and can monitor the data through the arduino serial monitor (just connect both of them to different pc's). I also got this piece of code online and it is working as expected (can read and write data).

But it is also mentioned in one of the ROS answers that using rosserial is more reliable. So when i ran

$ rosrun rosserial_python _port:=/dev/ttyACM0 _baud:=115200
[ERROR] [1525425583.457823]: Creation of publisher failed: unpack requires a string argument of length 2
[ERROR] [1525425598.423438]: Lost sync with device, restarting...

This my running on Bluno nano (arduino Uno)

void setup() {
  Serial.begin(115200);  //initial the Serial

void loop() {
  if (Serial.available())  {
    Serial.write(;//send what has been received
edit retag flag offensive close merge delete


But it is also mentioned in one of the ROS answers that using rosserial is more secure.

please link us to the question where this statement is made.

I doubt very much that security is improved by using rosserial.

gvdhoorn gravatar imagegvdhoorn ( 2018-05-04 04:28:32 -0500 )edit

Just update the question with the link. Just as a remainder that question was posted in dec 2014.

BhanuKiran.Chaluvadi gravatar imageBhanuKiran.Chaluvadi ( 2018-05-04 04:51:08 -0500 )edit

I'm sorry, but I don't see any (new) links?

gvdhoorn gravatar imagegvdhoorn ( 2018-05-04 05:23:50 -0500 )edit

Sorry, I might have forgotten to save the edit. please check it now.

BhanuKiran.Chaluvadi gravatar imageBhanuKiran.Chaluvadi ( 2018-05-04 05:34:13 -0500 )edit

The comment about using rosserial says the protocol makes it more reliable not more secure. These are two very different concepts.

PeteBlackerThe3rd gravatar imagePeteBlackerThe3rd ( 2018-05-04 05:35:15 -0500 )edit

@PeterBlacker Ok, Updated.

BhanuKiran.Chaluvadi gravatar imageBhanuKiran.Chaluvadi ( 2018-05-04 06:24:41 -0500 )edit

Never used ROSSERIAL but the error seems to be saying you should be sending 2 bytes at a time. Is that what you are doing when creating the publisher? Maybe you're using a 1 byte variable?

billy gravatar imagebilly ( 2018-05-07 19:09:14 -0500 )edit