On Sun, Jan 15, 2017 at 4:40 AM, Nick Edwards <nickedwa...@gmail.com> wrote:

> Hi,
>
> This is the first time I've posted here, if I am in the wrong place (or if
> IRC is better), please let me know and I will redirect my question.
>
> I have installed the latest decoding library and am using it with the
> versions of sigrok-cli shown at the bottom of the message.
>
> I am trying to decode a USB power delivery CSV file.  It should be a BIST
> request message.  The CSV is just several 1s followed by the signal of
> interest (preamble, SOPs, message header, etc).
>
> I am not getting any decoding output.
>
> Here is what I am entering and its result:
>
> caller@cli-1:~$ sigrok-cli -I csv:samplerate=50000000 -i padding.csv -P
> usb_power_delivery
> caller@cli-1:~$
>
> caller@cli-1:~$ sigrok-cli -I csv:samplerate=50000000 -i padding.csv -M
> usb_power_delivery
> libsigrok 0.3.0
> Acquisition with 1/1 channels at 50 MHz
> 0:11111111 11111111 11111101 01010101 01010101 01010101 01010101 01010101
> 0:01010101 01010101 01010100 01100011 01100011 00101010 10100111 01001001
> 0:11101111 01111011 11011110 11110111 11101011 11011101 01101001 11110100
> 0:10110101 11110110 11000010 10101010 10101010 10101010 10101010 10101010
> 0:10101010 10101010 10101000 11000110 11000110 01001001 01011110 01111010
> 0:01100101 10011011 11011111 01101110 10101101 10000101 01010101 01010101
> 0:01010101 01010101 01010101 01010101 01010101 01010101 01010101 01010101
> 0:010
>
> Am I doing something wrong with my cli command?  Or is there a problem
> with the csv file?
>


At least the sample rate you are faking is probably wrong, USB Power
Delivery basically uses a 600Khz waveform, yours is 2 orders of magnitude
too fast to be decoded.
Also the preamble is 'BMC-encoded', should look like more
 0010110100101101001011...




> >>>>
>
> sigrok-cli -V
> sigrok-cli 0.5.0
>
> Using libsigrok 0.3.0 (lib version 2:0:0).
> Using libsigrokdecode 0.3.0 (lib version 2:0:0).
>
> Supported hardware drivers:
>   agilent-dmm          Agilent U12xx series DMMs
>   appa-55ii            APPA 55II
>   asix-sigma           ASIX SIGMA/SIGMA2
>   atten-pps3203        Atten PPS3203T-3S
>   bbcgm-m2110          BBC Goertz Metrawatt M2110
>   brymen-bm857         Brymen BM857
>   cem-dt-885x          CEM DT-885x
>   center-309           Center 309
>   chronovu-la          ChronoVu LA8/LA16
>   colead-slm           Colead SLM
>   conrad-digi-35-cpu   Conrad DIGI 35 CPU
>   demo                 Demo driver and pattern generator
>   digitek-dt4000zc     Digitek DT4000ZC
>   fluke-dmm            Fluke 18x/28x series DMMs
>   gmc-mh-1x-2x-rs232   Gossen Metrawatt Metrahit 1x/2x, RS232 interface
>   gmc-mh-2x-bd232      Gossen Metrawatt Metrahit 2x, BD232/SI232-II
> interface
>   hameg-hmo            Hameg HMO
>   ikalogic-scanaplus   IKALOGIC ScanaPLUS
>   iso-tech-idm103n     ISO-TECH IDM103N
>   mastech-mas345       MASTECH MAS345
>   metex-m3640d         Metex M-3640D
>   metex-m4650cr        Metex M-4650CR
>   metex-me31           Metex ME-31
>   mic-98581            MIC 98581
>   mic-98583            MIC 98583
>   norma-dmm            Norma DM9x0 / Siemens B102x DMMs
>   ols                  Openbench Logic Sniffer
>   pce-pce-dm32         PCE PCE-DM32
>   peaktech-3410        PeakTech 3410
>   peaktech-4370        PeakTech 4370
>   radioshack-22-168    RadioShack 22-168
>   radioshack-22-805    RadioShack 22-805
>   radioshack-22-812    RadioShack 22-812
>   rigol-ds             Rigol DS
>   tecpel-dmm-8061-ser  Tecpel DMM-8061 (UT-D02 cable)
>   tekpower-tp4000zc    TekPower TP4000ZC
>   teleinfo             Teleinfo
>   tenma-72-7745-ser    Tenma 72-7745 (UT-D02 cable)
>   tenma-72-7750-ser    Tenma 72-7750 (UT-D02 cable)
>   tondaj-sl-814        Tondaj SL-814
>   uni-t-ut60a-ser      UNI-T UT60A (UT-D02 cable)
>   uni-t-ut60e-ser      UNI-T UT60E (UT-D02 cable)
>   uni-t-ut60g-ser      UNI-T UT60G (UT-D02 cable)
>   uni-t-ut61b-ser      UNI-T UT61B (UT-D02 cable)
>   uni-t-ut61c-ser      UNI-T UT61C (UT-D02 cable)
>   uni-t-ut61d-ser      UNI-T UT61D (UT-D02 cable)
>   uni-t-ut61e-ser      UNI-T UT61E (UT-D02 cable)
>   va-va18b             V&A VA18B
>   va-va40b             V&A VA40B
>   voltcraft-k204       Voltcraft K204
>   voltcraft-m3650cr    Voltcraft M-3650CR
>   voltcraft-m3650d     Voltcraft M-3650D
>   voltcraft-m4650cr    Voltcraft M-4650CR
>   voltcraft-me42       Voltcraft ME-42
>   voltcraft-vc820-ser  Voltcraft VC-820 (UT-D02 cable)
>   voltcraft-vc830-ser  Voltcraft VC-830 (UT-D02 cable)
>   voltcraft-vc840-ser  Voltcraft VC-840 (UT-D02 cable)
>
> Supported input formats:
>   binary               Raw binary
>   chronovu-la8         ChronoVu LA8
>   csv                  Comma-separated values (CSV)
>   vcd                  Value Change Dump
>   wav                  WAV file
>
> Supported output formats:
>   analog               Analog data
>   ascii                ASCII
>   binary               Raw binary
>   bits                 Bits
>   chronovu-la8         ChronoVu LA8
>   csv                  Comma-separated values (CSV)
>   gnuplot              Gnuplot
>   hex                  Hexadecimal
>   ols                  OpenBench Logic Sniffer
>   vcd                  Value Change Dump (VCD)
>
> Supported protocol decoders:
>   adns5020             Avago ADNS-5020 optical mouse sensor
>   am230x               Aosong AM230x/DHTxx/RHTxx
>   arm_etmv3            ARM Embedded Trace Macroblock
>   arm_itm              ARM Instrumentation Trace Macroblock
>   arm_tpiu             ARM Trace Port Interface Unit
>   aud                  Advanced User Debugger
>   avr_isp              AVR In-System Programming
>   avr_pdi              Atmel Program and Debug Interface
>   can                  Controller Area Network
>   dcf77                DCF77 time protocol
>   dmx512               Digital MultipleX 512
>   ds1307               Dallas DS1307
>   edid                 Extended Display Identification Data
>   eeprom24xx           24xx I²C EEPROM
>   em4100               RFID EM4100
>   em4305               RFID EM4205/EM4305
>   gpib                 General Purpose Interface Bus
>   guess_bitrate        Guess bitrate/baudrate
>   i2c                  Inter-Integrated Circuit
>   i2cdemux             I²C demultiplexer
>   i2cfilter            I²C filter
>   i2s                  Integrated Interchip Sound
>   ir_nec               IR NEC
>   ir_rc5               IR RC-5
>   jitter               Timing jitter calculation
>   jtag                 Joint Test Action Group (IEEE 1149.1)
>   jtag_stm32           Joint Test Action Group / ST STM32
>   lm75                 National LM75
>   lpc                  Low-Pin-Count
>   max7219              Maxim MAX7219/MAX7221
>   maxim_ds28ea00       Maxim DS28EA00 1-Wire digital thermometer
>   mdio                 Management Data Input/Output
>   midi                 Musical Instrument Digital Interface
>   mlx90614             Melexis MLX90614
>   modbus               Modbus RTU over RS232/RS485
>   mrf24j40             Microchip MRF24J40
>   mx25lxx05d           Macronix MX25Lxx05D
>   mxc6225xu            MEMSIC MXC6225XU
>   nrf24l01             Nordic Semiconductor nRF24L01/nRF24L01+
>   nunchuk              Nintendo Wii Nunchuk
>   onewire_link         1-Wire serial communication bus (link layer)
>   onewire_network      1-Wire serial communication bus (network layer)
>   pan1321              Panasonic PAN1321
>   parallel             Parallel sync bus
>   ps2                  PS/2
>   pwm                  Pulse-width modulation
>   qi                   Qi charger protocol
>   rfm12                RFM12 control protocol
>   rgb_led_spi          RGB LED string decoder (SPI)
>   rgb_led_ws281x       RGB LED string decoder (WS281x)
>   rtc8564              Epson RTC-8564 JE/NB
>   sdcard_sd            Secure Digital card (SD mode)
>   sdcard_spi           Secure Digital card (SPI mode)
>   spdif                Sony/Philips Digital Interface Format
>   spi                  Serial Peripheral Interface
>   spiflash             SPI flash chips
>   ssi32                Synchronous Serial Interface (32bit)
>   stepper_motor        Stepper motor position / speed
>   swd                  Serial Wire Debug
>   t55xx                RFID T55xx
>   tca6408a             Texas Instruments TCA6408A
>   timing               Timing calculation with frequency and averaging
>   tlc5620              Texas Instruments TLC5620
>   uart                 Universal Asynchronous Receiver/Transmitter
>   usb_packet           Universal Serial Bus (LS/FS) packet
>   usb_power_delivery   USB Power Delivery
>   usb_request          Universal Serial Bus (LS/FS) transaction/request
>   usb_signalling       Universal Serial Bus (LS/FS) signalling
>   wiegand              Wiegand interface
>   xfp                  10 Gigabit Small Form Factor Pluggable Module (XFP)
>   z80                  Zilog Z80 CPU
>
> ------------------------------------------------------------
> ------------------
> Developer Access Program for Intel Xeon Phi Processors
> Access to Intel Xeon Phi processor-based developer platforms.
> With one year of Intel Parallel Studio XE.
> Training and support from Colfax.
> Order your platform today. http://sdm.link/xeonphi
> _______________________________________________
> sigrok-devel mailing list
> sigrok-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/sigrok-devel
>
>
------------------------------------------------------------------------------
Developer Access Program for Intel Xeon Phi Processors
Access to Intel Xeon Phi processor-based developer platforms.
With one year of Intel Parallel Studio XE.
Training and support from Colfax.
Order your platform today. http://sdm.link/xeonphi
_______________________________________________
sigrok-devel mailing list
sigrok-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sigrok-devel

Reply via email to