Skip to content

Reading all data comes from multi serial port and logging them without missing any data using round robib buffer

License

Notifications You must be signed in to change notification settings

balcilar/Logging-MultiSerialPort

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 

Repository files navigation

Multi SerialPort Read&Write

This code is for logging all data comes from multi serial ports without missing any data on ubuntu systems. Round robin buffer system was used in that code. Reader thread puts the read-data into round robin buffer. Writer thread picks up the data from buffer and writes them into file.

Compile

$ gcc main.cpp -o test  -pthread

Run

Executables accept one additional argument which specify how many second wait before launching threads.

$ ./test 1

About

Reading all data comes from multi serial port and logging them without missing any data using round robib buffer

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages