/Scentronix-Embedded-Task

"Scentronix Embedded Task" orchestrates slave devices in production environments, enabling real-time monitoring, dynamic configuration, and efficient state management via serial communication.

Primary LanguageC++MIT LicenseMIT

Scentronix Embedded Task

"Scentronix Embedded Task" orchestrates slave devices in production environments, enabling real-time monitoring, dynamic configuration, and efficient state management via serial communication.

Tested on Ubuntu 23.10

Runs as expected.

How to run project:

  1. Run ./start.sh

  2. Note Output:

Creating virtual Rx/Tx byte streams..

/dev/pts/7 (TX)

/dev/pts/8 (RX)

  1. Run Senior executable:

./Senior /dev/pts/8 /dev/pts/7

  1. Run multiple instances of Junior.cpp:

./Junior 1 1 /dev/pts/7 /dev/pts/8

Run for each slave addresses (i.e: 1,2,13,14,15)

Arguments: Address , Device Type, TX PORT, RX PORT

Notes:

** FASYNC Flag removed in this line within the SerialPort library "fcntl(serialPort, F_SETFL, (FNDELAY));"

https://stackoverflow.com/questions/68531708/c-application-quits-without-error-on-serial-data-receive

To compile source codes if needed:

g++ -g Junior.cpp -o Junior -L/home/oruc/Desktop/embedded-software-developer-main/library/SerialPort -lSerialPort -ljsoncpp -I/home/oruc/Desktop/embedded-software-developer-main/library

g++ -g Senior.cpp -o Senior -L/home/oruc/Desktop/embedded-software-developer-main/library/SerialPort -lSerialPort -ljsoncpp -I/home/oruc/Desktop/embedded-software-developer-main/library