Bug 1813 - Unable to decode usb-c power when reading voltage signal
Summary: Unable to decode usb-c power when reading voltage signal
Alias: None
Product: sigrok-cli
Classification: Unclassified
Component: Command-line options (show other bugs)
Version: 0.7.1
Hardware: Other Linux
: Normal major
Target Milestone: ---
Assignee: Nobody
Depends on:
Reported: 2022-12-06 10:40 CET by mks
Modified: 2022-12-06 19:44 CET (History)
1 user (show)

different command output (2.00 KB, text/plain)
2022-12-06 10:40 CET, mks

Note You need to log in before you can comment on or make changes to this bug.
Description mks 2022-12-06 10:40:22 CET
Created attachment 779 [details]
different command output

Applying this command using chromium-twinkie works fine:

"sigrok-cli -d chromium-twinkie --continuous -P usb_power_delivery:fulltext=yes"
which returns decoded messages.

but when trying to get the Vbus signals using:
"sigrok-cli  -d chromium-twinkie:analog_channels=2 --continuous -P usb_power_delivery:fulltext=yes"

it only shows the decoded signals without the voltage.

applying the command without "-P usb_power_delivery:fulltext=yes" provide all needed data but not decoded "CC1,CC2, Vbus-V,vbus-A"

So how can I get a decoded message with Vbus values at the same time ?

Attached commands outputs:
1-sigrok-cli -d chromium-twinkie --continuous -P usb_power_delivery:fulltext=yes

2-sigrok-cli  -d chromium-twinkie:analog_channels=2 --continuous

3-sigrok-cli  -d chromium-twinkie:analog_channels=2 --continuous -P usb_power_delivery:fulltext=yes
Comment 1 Gerhard Sittig 2022-12-06 19:44:02 CET
Get decoder output as well as analog channels' values at the same time? 
You can't with sigrok-cli, it's not really made for mixed signal data. 
The output that you currently observe is a byproduct of bug 881 (consider 
the output's order arbitrary).

I'd suggest you use the GUI if you need to inspect the timing relation 
of analog channels to the content of logic traces and potential results 
of decoding logic data.

Am tempted to set the status to WONTFIX, or alternatively to DUPLICATE.