Bugzilla – Bug 708
9 bit UART decoding not working
Last modified: 2016-10-23 22:30:22 CEST
Created attachment 194 [details]
session file with 9bit 9600baud uart data
No decode output is shown when 9 bitUART decode is selected. Works fine when 8 bit decode is selected but with framing errors (as the data is 9 bit). Version 0.3.0-git-8f6b98f
*** Bug 747 has been marked as a duplicate of this bug. ***
Created attachment 250 [details]
fix uart decoder failure when num_data_bits=9
Current code gives the error:
srd: Protocol decoder instance uart: ValueError: bytes must be in range(0, 256)
when decoding 9-bit serial. Changing bytes() to bin() fixes the error and displays the proper number of bits.
Fixed in 98b8913915e8649cca83f543e84fbf128707b5fb.