Bug 1102

Summary: Wishlist: Improve handling of disconnected devices
Product: PulseView Reporter: Soeren Apel <soeren>
Component: UIAssignee: Nobody <nobody>
Status: CONFIRMED ---    
Severity: normal    
Priority: Normal    
Version: unreleased development snapshot   
Target Milestone: ---   
Hardware: All   
OS: All   

Description Soeren Apel 2017-12-29 20:17:28 CET
Situation 1: device was disconnected and not reconnected

User expectation: selecting the device in the device dropdown shouldn't be possible anymore

Current behavior: selecting the device is possible but the session is empty (no device)

Possible solution: when libusb tells libsigrok that the USB device was disconnected, it should tell PV so that the entry can be greyed out
Comment 1 Soeren Apel 2017-12-29 20:21:13 CET
Also, when the device is reconnected, the entry should become enabled again.

This however seems tricky to implement in libsigrok as it's unclear how libsigrok would be able to determine that the newly connected USB device is a device that was connected before. Maybe a device scan should be initiated by libsigrok every time a USB device is connected?