Re: [beagleboard] Serial port C / C++ lib
On 01/16/2014 02:35 PM, Bogdan Teodorescu wrote: Hi, 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. 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 -- 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+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
[beagleboard] Serial port C / C++ lib
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 -- 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+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
Re: [beagleboard] Serial port C / C++ lib
Hi Bogan, On Thu, Jan 16, 2014 at 5:35 AM, Bogdan Teodorescu bogdan.teodore...@quartzmatrix.ro wrote: 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. I have a C++ SerialPort class in the following files: https://github.com/dhylands/projects/blob/master/common/SerialPort.h https://github.com/dhylands/projects/blob/master/common/posix/SerialPort.cpp https://github.com/dhylands/projects/blob/master/common/mingw/SerialPort.cpp The file in the posix directory is for linux. The file in the mingw directory is for win32. I also have some generic linux serial test code here: https://github.com/dhylands/projects/tree/master/host/sertest https://github.com/dhylands/projects/tree/master/host/sertest-select 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 -- 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+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
RE: [beagleboard] Serial port C / C++ lib
Thanks I will try All the best From: beagleboard@googlegroups.com [mailto:beagleboard@googlegroups.com] On Behalf Of Dave Hylands Sent: Thursday, January 16, 2014 6:49 PM To: beagleboard@googlegroups.com Subject: Re: [beagleboard] Serial port C / C++ lib Hi Bogan, On Thu, Jan 16, 2014 at 5:35 AM, Bogdan Teodorescu bogdan.teodore...@quartzmatrix.romailto:bogdan.teodore...@quartzmatrix.ro wrote: 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. I have a C++ SerialPort class in the following files: https://github.com/dhylands/projects/blob/master/common/SerialPort.h https://github.com/dhylands/projects/blob/master/common/posix/SerialPort.cpp https://github.com/dhylands/projects/blob/master/common/mingw/SerialPort.cpp The file in the posix directory is for linux. The file in the mingw directory is for win32. I also have some generic linux serial test code here: https://github.com/dhylands/projects/tree/master/host/sertest https://github.com/dhylands/projects/tree/master/host/sertest-select 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 -- 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+unsubscr...@googlegroups.commailto:beagleboard+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out. -- 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+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.