Hi,
I'm creating this
thread in order to get some details about the applications i'm currently coding.
I have to create a system based on TINI module which acqauires datas from a satellite sensor, gets it y serial comm, to the TINI, which sends it over Ethernet to a computer.
At the moment, I can read by RS232, send over Ethernet. So overally it works fine. However I still have to follow some requirements :
-I have to read and send every seconds.
-Any datas that has not changed since the previous one must not be sent.
-Managing threads.
here is the code :
I commented the code as much as I can unfortunatly it's in french.
I meet the following problems , I don't see how to time this operation, I thought it was thanks to the setEnableReceiveTimeOut function but it doesn't seem so.
I have to give a clear defintion of my thread management, is the volatile attribute I used for this running variable correct?
Le thanks
regards