Serial port C / C++ lib

1,055 views
Skip to first unread message

Bogdan Teodorescu

unread,
Jan 16, 2014, 8:35:03 AM1/16/14
to beagl...@googlegroups.com

Hello

I want to use BBB to read serial devices with serial Modbus protocol. Is there a library to include in C/C++ code to read/write from serial port (actually

USB adapter ttyUSB0), better a Modbus library for the serial port.

Thanks a lot

Bogdan

Dave Hylands

unread,
Jan 16, 2014, 11:49:02 AM1/16/14
to beagl...@googlegroups.com
Hi Bogan,


The file in the posix directory is for linux. The file in the mingw directory is for win32.

I've never coded for Modbus, so I don't know if there is missing functionality or not.

--
Dave Hylands
Shuswap, BC, Canada
http://www.davehylands.com

Bogdan Teodorescu

unread,
Jan 17, 2014, 1:22:49 AM1/17/14
to beagl...@googlegroups.com

Thanks

I will try

All the best

--
For more options, visit http://beagleboard.org/discuss
---
You received this message because you are subscribed to the Google Groups "BeagleBoard" group.
To unsubscribe from this group and stop receiving emails from it, send an email to beagleboard...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Björn Krombholz

unread,
Jan 20, 2014, 3:41:22 AM1/20/14
to beagl...@googlegroups.com
On 01/16/2014 02:35 PM, Bogdan Teodorescu wrote:

Hi,
We use libmodbus supporting MODBUS-RTU and -TCP: http://libmodbus.org/

Cross-Compiling it for ARM works fine with (tweak it for your own
toolchain):

./configure --host=arm-angstrom-linux-gnueabi --build=x86_64 ...



--
Björn Krombholz
pironex GmbH -- http://www.pironex.de
Reply all
Reply to author
Forward
0 new messages