Bug 1813 - Unable to decode usb-c power when reading voltage signal
Summary: Unable to decode usb-c power when reading voltage signal
Status: CONFIRMED
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
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-12-06 10:40 CET by mks
Modified: 2023-05-06 07:40 CEST (History)
2 users (show)



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

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.
Comment 2 cedric 2023-05-06 07:40:39 CEST
"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."

I have been using pulseview to capture and view long-running analog signals. Pulseview can loose data in some circumstances (*). Therefore I am trying to move to sigrok-cli to first stream the data into a file, and  open that file to do analyses afterwards. 

For me it would be very useful if sigrok-cli is capable of working with mixed signal data. This would allow me to look at the input data to a DAC, and the generated analog values at the same time.

How can I help to make that happen?

* I've filed these bugs about Pulseview losing data:
https://sigrok.org/bugzilla/show_bug.cgi?id=1841 Request: Add auto-save while capturing
https://sigrok.org/bugzilla/show_bug.cgi?id=1842 Request: add confirmation before starting capture when there's already captured data