summaryrefslogtreecommitdiff
path: root/decoders/modbus
AgeCommit message (Collapse)Author
2020-01-01modbus: Add missing annotation class names.Uwe Hermann
2020-01-01All PDs: Consistently use singular/plural for annotation classes/rows.Uwe Hermann
2019-11-29modbus: Ignore unknown/unsupported types.Uwe Hermann
Without this, e.g. the recently added 'IDLE' ptype of the UART decoder would cause issues.
2019-07-01modbus: Make the 'framegap' option an integer.Uwe Hermann
2019-06-30modbus: Make C->S and S->C configurable, add framegap option.Andrew Gregory
Change client->server and server->client to be separately configurable, allowing decoding at both the server (where client->server is RX and server->client is TX) and client (where client->server is TX and server->client is RX) ends of the link. It also allows monitoring of the bus on a single channel (where client->server and server->client are both RX (or TX)). When I tried to decode a bus capture, I found that when the transmitter was turned off it generated a false start bit, which in turn resulted in a false trailing byte from the UART decoder. This narrowed the inter-frame gap to the point where the Modbus decoder failed to recognise a new frame. The result was only the first frame of the capture decoded - all the rest of the frames failed to decode. I had to reduce the frame gap to allow subsequent frames to decode, and so made it a configurable option that defaults to the existing gap. Lastly, I fixed a call to puti() that incorrectly included the annotation prefix.
2019-03-15decoders: Add/update tags for each PD.Uwe Hermann
2017-12-22all decoders: introduce a reset() methodGerhard Sittig
Move initialization code of protocol decoders from the constructor to a new reset() helper method. The libsigrokdecode backend could run this method several times to clear the decoder's internal state, before new data from another acquisition gets fed to decode() calls.
2017-06-16Mark all stacked decoders as being PD API version 3.Uwe Hermann
This is not really relevant for stacked PDs currently (they can be used unmodified with either PDv2 or PDv3 low-level decoders), but it'll allow us to drop PDv2 support completely.
2017-01-07license: remove FSF postal address from boiler plate license textGerhard Sittig
Remove the FSF postal address as it might change (it did in the past). Reference the gnu.org website instead which is more stable.
2016-05-15Use consistent __init__() format across all PDs.Uwe Hermann
The previous **kwargs some PDs had is not actually ever used, so drop it.
2016-03-04Fix various incorrect PD license metadata fields.Uwe Hermann
Have the PD 'license' attribute match what the license header of the respective pd.py file actually says.
2015-07-18Add protocol decoder for Modbus RTU.Bart de Waal