X-Git-Url: https://sigrok.org/gitweb/?p=libsigrokdecode.git;a=blobdiff_plain;f=decoders%2Fonewire%2F__init__.py;h=c43dabc4184dd9eb38471a82af7e78005f3d91f0;hp=b58dde707e9020c2aed610fadda39aeb63758a7f;hb=f4d0363dc492cebc3bc37adfbffaff6fafd55ff4;hpb=a2b13347895840f5e79238f504e0b6e322c133a1 diff --git a/decoders/onewire/__init__.py b/decoders/onewire/__init__.py index b58dde7..c43dabc 100644 --- a/decoders/onewire/__init__.py +++ b/decoders/onewire/__init__.py @@ -29,6 +29,13 @@ layered, the provided parser decodes the next layers: The higher layers (transport, presentation) are not decoded, since they are mostly device specific and it would take a lot of code to interpret them. +Sample rate: +A high enough sample rate is required to properly detect all the elements of +the protocol. A lower sample rate can be used if the master does not use +overdrive communication speed. The next minimal values should be used: +- overdrive available: 2MHz minimum, 5MHz suggested +- overdrive not available: 400kHz minimum, 1MHz suggested + Probes: 1-Wire requires a single signal, but some master implementations might have a separate signal use to deliver power to the bus during temperature conversion @@ -60,10 +67,10 @@ If link layer annotations are shown, possible issues with sample rate and sample timing are also shown. TODO: -- fix annotations to have event duration instead of begin end time - add CRC checks for network layer - add transport layer code - review link layer code, to check for protocol correctness +- define output protocol ''' from .onewire import *