Ask Your Question

Using rosserial to read data from a device

asked 2019-10-02 04:08:32 -0500

Juliette_ROS gravatar image

Hello, I am working on Ubuntu on a Virtual Machine (Virtual Box) and I need to collect data from a Battery Management System (BMS).

The connection is made by a USB cable and a USB Serial converter so I use a USB port as a serial port.

I managed to connect the BMS to my virtual machine and I can see it in the list when I type lsusb in the terminal of Ubuntu :

BUS 001 Device 003: ID 0403:6001 Future Technology Devices International, Ltd FT232 Serial (UART) IC

Now my problem is that I need to read the data from this BMS and I understood that rosserial could help me, but I just started to use ROS one week ago and I don't know how to use this.

Could you please give me some information about how to use rosserial to read this data please ?

Thank you !

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2019-10-02 04:58:31 -0500

Rosserial may not be what you need to use in this case, rosserial is designed to be used with micro-controllers where you are writing the firmware yourself. It gives you access to a limited set of ROS message handling functions directly from the micro-controller code.

If you're writing the firmware of the battery management system yourself then you could use rosserial for this. If the hardware already has it own firmware and you need to read and write data to the serial port to communicate with it then you'll need to use a conventional serial library for this.

I've used boost io in C++ for this before, or you could use pySerial if you're working in python.

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



Asked: 2019-10-02 04:08:32 -0500

Seen: 20 times

Last updated: Oct 02