sketchbook
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Functions | Variables
Uno_OWSniffer Namespace Reference

Functions

def sniff_TUT214
 
def sniff_115200
 

Variables

list RESET = ['\xF0', '\xE0', '\x90', ]
 
list RESET115200 = ['\x00\x00', ]
 
dictionary commands
 
tuple ser = serial.Serial('/dev/ttyACM0')
 

Function Documentation

def Uno_OWSniffer.sniff_115200 ( )
Sniffer always @115200.

Not according to official Standards/Specs but possible to implement
RESET and PRESENCE, READ and WRITE: 115200 Baud, 8 bits, no parity, 1 stop

(no switching of baud rates needed, thus we can control
the possition in the input buffer and it's not lossy)
def Uno_OWSniffer.sniff_TUT214 ( )
Sniffer according to official Standards/Specs.

TUTORIAL 214: Using a UART to Implement a 1-Wire Bus Master
RESET and PRESENCE: 9600 Baud, 8 bits, no parity, 1 stop
READ and WRITE: 115200 Baud, 8 bits, no parity, 1 stop

(fast switching of baud rates is possible, but we cannot
control the possition in the input buffer, thus it's lossy)

Variable Documentation

dictionary Uno_OWSniffer.commands
Initial value:
1 = {
2  0x55: ("MATCH_ROM", 7), # (command, # of data bytes)
3  0xF0: ("SEARCH_ROM", 0),
4 }
list Uno_OWSniffer.RESET = ['\xF0', '\xE0', '\x90', ]
list Uno_OWSniffer.RESET115200 = ['\x00\x00', ]
tuple Uno_OWSniffer.ser = serial.Serial('/dev/ttyACM0')