Ubuntu , C++ read data from serial and save

Hi, how are you?

this is a Ubuntu 16.04.2 LTS; I need to log data from 2 serial ports at same time.

I have 2 C++ small script (attached) to log data from ttySAC0 and ttySAC2 to a 2 separate files.

if i run both at same time, data in saved file is corrupted (and i need to run at same time).

ttySAC0 run at 115200bps and ttySAC2 at 230400 bps.

Need to implement threads or other similar to fix this issue.

Thanks, regards

Skills: C Programming, C++ Programming, Linux, Ubuntu

See more: linux serial port programming tutorial, linux uart c example, serial programming guide for posix operating systems, linux read serial port c, linux c++ serial port tutorial, c++ serial port communication linux example, serial port programming in c windows, linux serial port programming c example, delphi read data serial port, read data serial port qnx, ubuntu php read serial data, read data serial port java gui, read data serial port excel vba, read usb serial data java program, read data store database oracle serial port, read data serial port handshaking barcode scanner, read data scale serial port continuously, python script read data serial port, php read data serial port, read data xml save database

About the Employer:
( 15 reviews ) Mexico City, Mexico

Project ID: #15352778

Awarded to:


of course you need to use thread. two for reading data, one for storing reading to the file. I am expert on it Relevant Skills and Experience 15 years experiences o c++ and robotics project Proposed Milestones $50 US More

$50 USD in 1 day
(16 Reviews)

7 freelancers are bidding on average $41 for this job


Hi! I am a Computer Engineering Masters student. I am an expert on C/C++ and embedded systems. I can do your project. Please message me further details. Kind regards. Relevant Skills and Experience I have worked with More

$45 USD in 1 day
(27 Reviews)
$30 USD in 1 day
(7 Reviews)

Hi. Relevant Skills and Experience c/c++ programming, Linux Proposed Milestones $45 USD - for whole project Best regards.

$45 USD in 0 days
(0 Reviews)
$50 USD in 1 day
(1 Review)

hi Mr, I would love improve my skills and get the chance to work in this project, I have an experience with serial communication using c and c++, uart protocol.

$35 USD in 2 days
(0 Reviews)
$30 USD in 1 day
(0 Reviews)