emotional-cities / pluma-experiments

Data acquisition and benchmark workflows for the wearable data collection unit
MIT License
1 stars 0 forks source link

Validate Empatica connection at the start of the workflow #12

Open bruno-f-cruz opened 1 year ago

bruno-f-cruz commented 1 year ago

We have successfully implemented and tested #10.

However, it would be nice to validate that the server correctly started and that a connection was achieved. This could be don't by implementing some sort of handshake logic:

1 - Launch the Emmpatica Server and wait for it to start (10 seconds should be safe)

    • Once it starts, send a device_discover_list command and print the output to console to list all devices. If no message is received without a timeout period, crash the workflow since this will likely mean the a connection was not successfully established. 3 - Once successfully established, send the remaining stream-enabling messages

Some additional notes:

aspaNeuro commented 4 months ago

Currently we have a monitor that checks the connection and datastreams for all devices. we still need to: