Questions tagged [libserial]

LibSerial is a C++ library for serial port programming on POSIX OSs.

LibSerial is a C++ library that aids in serial port programing on POSIX OSs by exposing serial ports as iostream objects. It has support for USB-to-Serial converters as well.

The source code is available on SourceForge at https://sourceforge.net/projects/libserial/.

37 questions
0
votes
1 answer

C++ libserial skipping 0x09

I am attempting to read data over serial from a Pixhawk flight controller which communicates via the Mavlink protocol. It sends 17 bytes, the first three being 0xFE, 0x09 followed by a counter that increments every message. I have confirmed this…
user4920346
0
votes
1 answer

Errors occur when trying including SerialStram.h from LibSerial

I try to use LibSerial’s class for serial communication (with an ATMega32A) through a COM port. As soon as I include the SerialStream.h I get several error messages from the file SerialPort.h. #include "SerialStream.h" You can see the errors I get…
Høg
  • 1
0
votes
1 answer

Errors using LibSerial

I have build some code using LibSerial but when i compile it i have this error messages: /tmp/ccUpE4te.o: In function `main': test.c:(.text+0x8d): undefined reference to `LibSerial::SerialStream::Open(std::string,…
0
votes
1 answer

LibSerial: cannot access SerialStream member functions

I am trying to do basic port programming, and it was suggested to me that I take a look at LibSerial. I built and installed the package, but I am having issues accessing any SerialStream member functions e.g. the following code (ls_ex.cpp)…
basil
  • 690
  • 2
  • 11
  • 30
0
votes
1 answer

Extra Characters Reading from Serial Port Using libserial on Linux

I have a very basic device with which I am trying to interact via a serial connection on Linux. I am on the steep part of the learning curve here, still, so please be gentle! Anyhow, I am able to control the device via Hyperterminal in Windows, or…
trymes
  • 21
  • 1
  • 5
0
votes
1 answer

LibSerial C++ Code does not run without Cutecom

I am trying to communicate through serial from Ubuntu 12.04 on to an ATxmega board using libserial. The problem that I am having is that my code does not run unless I run cutecom first. Unless I run cutecom first my program just freezes and does not…
-2
votes
1 answer

C++ store consecutive chars into an array

This could be a very trivial question, but I have been searching how to get around it without much luck. I have a function to read from the serial port using the libserial function, the response I will get always finishes with a carriage return or a…
Daniel Lara
  • 52
  • 1
  • 7
1 2
3