Open hshah44 opened 3 weeks ago
I need assistance to solidify my understanding and latch sync0.
Here are the steps to orchestrate this flow:
ec_init
ec_config_init
ec_configdc
ec_config_map
transition to EC_STATE_SAFE_OP
thread1
thread2
End result: ID: 1 (4097), Parent: 0, State: 0x14 (EC_STATE_NONE), Topology: 1, DC: 1, Delay: 0, StatusCode=0x27 (Freerun not supported)
Thread tasks (I kept it simple to understand the behavior)
void* cycle() { ec_send_processdata(); printf("wc: %d\n", wc); while(1) { wc = ec_receive_processdata(EC_TIMEOUTRET); usleep(100); ec_send_processdata(); } return NULL; } void* task() { printf("sleeping wc: %d\n", wc); sleep(2); printf("wokeup wc: %d\n", wc); transition(1, EC_STATE_OPERATIONAL); return NULL; }
Zipped up wireshark pcap file (step 6 - 7 above) capture.pcapng.zip
I need assistance to solidify my understanding and latch sync0.
Here are the steps to orchestrate this flow:
ec_init
ec_config_init
ec_configdc
ec_config_map
transition to EC_STATE_SAFE_OP
thread1
thread2
End result: ID: 1 (4097), Parent: 0, State: 0x14 (EC_STATE_NONE), Topology: 1, DC: 1, Delay: 0, StatusCode=0x27 (Freerun not supported)
Thread tasks (I kept it simple to understand the behavior)
Zipped up wireshark pcap file (step 6 - 7 above) capture.pcapng.zip