From: Xiangfu L. <xi...@op...> - 2012-06-14 13:38:31
|
Hi Before run those[1] commands I applied this patch[2], but all I got is BIT STUFF ERROR or RESET Is the usb decode support low-speed device? attach is the sigrok output file. Xiangfu [1] rm -f usb-low-speed.sr sigrok-cli -d 0:samplerate=24mhz --time 1s -o usb-low-speed.sr --probes 1,2 sigrok-cli -i usb-low-speed.sr -a usb:dp=1:dm=0 usb: "BIT STUFF ERROR" usb: "BIT STUFF ERROR" usb: "BIT STUFF ERROR" usb: "BIT STUFF ERROR" usb: "BIT STUFF ERROR" usb: "BIT STUFF ERROR" usb: "BIT STUFF ERROR" usb: "BIT STUFF ERROR" usb: "BIT STUFF ERROR" usb: "BIT STUFF ERROR" ... [2] /usr/local/share/libsigrokdecode/decoders/usb$ diff -Naur usb.py.backup usb.py --- usb.py.backup 2012-06-14 16:52:30.361873504 +0800 +++ usb.py 2012-06-14 16:53:07.985873504 +0800 @@ -109,9 +109,9 @@ def start(self, metadata): self.samplerate = metadata['samplerate'] - if self.samplerate < 48000000: - raise Exception('Samplerate (%d) not sufficient for USB ' - 'decoding, need at least 48MHz' % self.samplerate) + #if self.samplerate < 48000000: + # raise Exception('Samplerate (%d) not sufficient for USB ' + # 'decoding, need at least 48MHz' % self.samplerate) # self.out_proto = self.add(srd.OUTPUT_PROTO, 'usb') self.out_ann = self.add(srd.OUTPUT_ANN, 'usb') |