cristicsordas / raspi_robot

0 stars 0 forks source link

Add processing of read responses in the c++ application #7

Closed cristicsordas closed 1 year ago

cristicsordas commented 1 year ago

The server application should be able to send back responses to message requests through the socket communication. Implement a tx response for the response of the light sensor controlled by the PCF8591 driver. DoD: Send from the python application through the socket communication the message "2 0" The python application has to receive the values of the sensors.

cristicsordas commented 1 year ago

implemented with this commit 5cd524f5866fe26492aacfa9bc2f4c40531dd069

Tests: Started the socket server app (aesdsocket) on the raspberry pi and the python application on the PC. The python application is sending cyclic every 200 ms the request "2 0" to the raspberry pi. The logs in python app show the results received from the raspberry pi. They contain the values of the left and right light sensors: left b'03001f' 31 right b'03000f' 15 left b'03001f' 31 right b'03003f' 63 left b'030000'