Skip to content

ICSHWI-5064; Verifying if device is connected to USB 2.0 port

Douglas Bezerra Beniz requested to merge (removed):Jira_task-ICSHWI-5058 into master

ICSHWI-5064; Verifying if device is connected to USB 2.0 then call ps4000aChangePowerSource() function;

Hello @hinkokocevar, during my tests I had some situations when device showed as plugged to USB 2.0 port (even when physically the port was 3.0); then looking at the manual I found this function, which is also used in the ps4000aCon.c example;

More details in chapter 4.3.3 (about ps4000aOpenUnit() funciton):

PicoScope 4824 only: If the function returns PICO_USB3_0_DEVICE_NON_USB3_0_PORT, the application must call ps4000aChangePowerSource() to complete the two-stage power-up sequence for a USB 2.0 port. Normally returns PICO_OK.

That helped me to don't stuck, su, maybe it would be useful to merge into your code, what do you say?

Merge request reports