Ask Your Question
0

rosserial and hidraw devices ?

asked 2019-06-26 10:02:12 -0600

Shanika gravatar image

Hello,

I used rosserial_python to send data from my robot to my Raspberry Pi with a Bluetooth dongle but now, I want to use a 2.4 GHz WiFi dongle. The device, when I type ls /dev, appears as hidraw2.

When I try rosrun rosserial_python serial_node.py /dev/hidraw2,

I have this error : [ERROR] [....]: Error opening serial: COuld not configure port: (22, 'Invalid argument')

Can't I use this WiFi Dongle ?

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2019-06-27 02:02:19 -0600

gvdhoorn gravatar image

Well .. a hidraw device is not a serial port. rosserial works with serial ports by default. As you can see from the error, it's trying to initialise your hidraw device as-if it were a serial port, but fails (expectedly I'd say).

You'll either have to somehow make the hidraw device pretend it's a serial port, or extend rosserial to be able to work with your specific device.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

2 followers

Stats

Asked: 2019-06-26 10:02:12 -0600

Seen: 35 times

Last updated: Jun 26 '19