wjwwood_serial Unable to open port

asked 2016-07-26 03:18:37 -0600

Josephlin gravatar image

updated 2016-07-27 01:26:08 -0600

HI everyone!

I used wjwwood_serial to connect my RS232.And i installed by use sudo apt-get install ros-indigo-serial in computer1 and laptop.

Then I created package and wrote code, let it can listen to ROS node. And it can run perfect in computer1,but when i copy this package to laptop and run. It shows Unable to open port.

my code:https://drive.google.com/folderview?id=0B02FisAlf-IXTGVmclV0UW11QTg&usp=sharing

what happened? thank for any help and advice!

best regard!

edit retag flag offensive close merge delete

Comments

Has your user the rights to use the serial port on the laptop? Try sudo chmod 666 /dev/ttyS0 (or whatever your serial port is)

fsteinhardt gravatar image fsteinhardt  ( 2016-07-26 04:21:55 -0600 )edit

thank you! i sloved the problem by use sudo chmod 666 /dev/ttyUSB0. so it is the permission problem

Josephlin gravatar image Josephlin  ( 2016-07-27 01:25:37 -0600 )edit

Hi! I am new for ROS, i am wondering if you could tell/teach me how to create package and why should we do it. THX!

Allen_Feng gravatar image Allen_Feng  ( 2016-09-26 00:47:12 -0600 )edit

Hi ! I just see the email this weekend,i so sorry for reply too late.If you want to use this package,you just need to sudo apt-get install ros-indigo-serial .Then you can use serial like in python or c++,just like #include <serial serial.h="">.

Josephlin gravatar image Josephlin  ( 2016-10-10 05:48:47 -0600 )edit
Josephlin gravatar image Josephlin  ( 2016-10-10 05:48:59 -0600 )edit

Hi, can you send me the serial example as the link is no longer available?

KirillRomanov gravatar image KirillRomanov  ( 2018-02-08 04:14:58 -0600 )edit