while no new data seems to arrive over the CAN bus.
Notes
~This will usually not happen. Until now I only could reproduce this behavior once (on Linux).~
Update: Seem this happens a lot of times (on Linux). Sometimes the program only retrieves one message, sometimes it retrieves multiple hundred messages before the measurement is stuck. It also seems the ICOtronic hardware is in some kind of erronous state, if this happens once. Afterwards pretty much every subsequent measurement will get stuck as well. After resetting the system with the command:
icon stu reset
everything seems to work as expected again.
Suggested Solution
Add timeout to async for loop that iterates over data, if possible.
Problem Description
The
measure
subcommand oficon
might be stuck forever, if no new streaming data is sent over the CAN bus.Steps to Reproduce
Execute the following command:
Expected Result
The command reads streaming data for one second and then stores the result.
Actual Result
The command freezes:
while no new data seems to arrive over the CAN bus.
Notes
~This will usually not happen. Until now I only could reproduce this behavior once (on Linux).~
Update: Seem this happens a lot of times (on Linux). Sometimes the program only retrieves one message, sometimes it retrieves multiple hundred messages before the measurement is stuck. It also seems the ICOtronic hardware is in some kind of erronous state, if this happens once. Afterwards pretty much every subsequent measurement will get stuck as well. After resetting the system with the command:
everything seems to work as expected again.
Suggested Solution
Add timeout to
async for
loop that iterates over data, if possible.