2 ## This file is part of the sigrok project.
4 ## Copyright (C) 2012 Uwe Hermann <uwe@hermann-uwe.de>
6 ## This program is free software; you can redistribute it and/or modify
7 ## it under the terms of the GNU General Public License as published by
8 ## the Free Software Foundation; either version 2 of the License, or
9 ## (at your option) any later version.
11 ## This program is distributed in the hope that it will be useful,
12 ## but WITHOUT ANY WARRANTY; without even the implied warranty of
13 ## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 ## GNU General Public License for more details.
16 ## You should have received a copy of the GNU General Public License
17 ## along with this program; if not, write to the Free Software
18 ## Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
22 1-Wire protocol decoder.
24 The 1-Wire protocol enables bidirectional communication over a single wire (and
25 ground) between a single master and one or multiple slaves. The protocol is
27 - Link layer (reset, presence detection, reading/writing bits)
28 - Network layer (skip/search/match device ROM addresses)
29 - Transport layer (transport data between 1-Wire master and device)
33 The transport layer is the largest and most complex part of the protocol, since
34 it is very device specific. The decoder is parsing only a small part of the
38 The next link layer annotations are shown:
39 - RESET/PRESENCE True/False
40 The event is marked from the signal negative edge to the end of the reset
41 high period. It is also reported if there are any devices attached to the
43 The next network layer annotations are shown:
45 The 64bit value of the addressed device is displayed:
46 family code (1B) + serial number (6B) + CRC (1B)
47 - FUNCTION COMMAND val name
48 The requested FUNCTION command is displayed as an 8bit HEX value and by name.
50 Data intended for the transport layer is displayed as an 8bit HEX value.
53 - add CRC checks for transport layer
56 from .onewire_transport import *