-
Notifications
You must be signed in to change notification settings - Fork 164
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
pqm: add a callback for the PQM ping task and handle the ping interna…
…lly. In order to avoid thread concurrency over the serial connection while acquiring data and also pinging the board, we need to handle the ping procedure internally. This can only be reproduced on Windows (my guess is that the different implementation of libserialport for Windows vs UNIX is the cause for this). Serial port calls return -995 at some point (which is the error code for no I/O access. After this happens there is no recovery for the serial connection and the plugin disconnects from the device. This happens after a random amount of time. This commit is a temporary workaround due to demand of users. But there is a task in progress for development and investigation on the IIOPingTask which should handle the plugin callback for the ping procedure but should also move the ping management in the DeviceManager rather than having it inside each plugin. Signed-off-by: AlexandraTrifan <[email protected]>
- Loading branch information
1 parent
6097841
commit 6d26a9f
Showing
7 changed files
with
51 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters