moteConnector Package

GenStackDefines Module

Standalone script to generate the StackDefines.py file.

This script extracts all the information it needs from the openwsn.h header file (part of the openwsn-fw repository), and generate the StackDefines.py file (part of the openwsn-sw repository).

To run it, just double-click on this file.

To have to check out the openwsn-fw and openwsn-sw side-by-side, i.e. you should have a directory with two subdirectories openwsn-fw/ and openwsn-sw/ somewhere on your computer.

openvisualizer.moteConnector.GenStackDefines.genComponentCodes()
openvisualizer.moteConnector.GenStackDefines.genErrorDescriptions()
openvisualizer.moteConnector.GenStackDefines.main()

OpenParser Module

class openvisualizer.moteConnector.OpenParser.OpenParser

Bases: openvisualizer.moteConnector.Parser.Parser

HEADER_LENGTH = 1
SERFRAME_ACTION_NO = 78
SERFRAME_ACTION_TOGGLE = 84
SERFRAME_ACTION_YES = 89
SERFRAME_MOTE2PC_CRITICAL = 67
SERFRAME_MOTE2PC_DATA = 68
SERFRAME_MOTE2PC_ERROR = 69
SERFRAME_MOTE2PC_INFO = 73
SERFRAME_MOTE2PC_REQUEST = 82
SERFRAME_MOTE2PC_STATUS = 83
SERFRAME_PC2MOTE_DATA = 68
SERFRAME_PC2MOTE_SETBRIDGE = 66
SERFRAME_PC2MOTE_SETROOT = 82
SERFRAME_PC2MOTE_TRIGGERICMPv6ECHO = 69
SERFRAME_PC2MOTE_TRIGGERSERIALECHO = 83
SERFRAME_PC2MOTE_TRIGGERTCPINJECT = 84
SERFRAME_PC2MOTE_TRIGGERUDPINJECT = 85

Parser Module

class openvisualizer.moteConnector.Parser.Parser(headerLength)

Bases: object

parseInput(input)
class openvisualizer.moteConnector.Parser.ParsingKey(index, val, parser)

Bases: object

ParserData Module

class openvisualizer.moteConnector.ParserData.ParserData

Bases: openvisualizer.moteConnector.Parser.Parser

HEADER_LENGTH = 2
IPHC_DAM = 0
IPHC_SAM = 4
MSPERSLOT = 15
parseInput(input)

ParserException Module

exception openvisualizer.moteConnector.ParserException.ParserException(errorCode, details=None)

Bases: exceptions.Exception

DESERIALIZE = 6
GENERIC = 1
NO_KEY = 5
TOO_SHORT = 2
UNKNOWN_OPTION = 4
WRONG_LENGTH = 3
descriptions = {1: 'generic parsing error', 2: 'input too short', 3: 'input of the wrong length', 4: 'no parser key', 5: 'no key', 6: 'deserialization error'}

ParserInfoErrorCritical Module

class openvisualizer.moteConnector.ParserInfoErrorCritical.ParserInfoErrorCritical(severity)

Bases: openvisualizer.moteConnector.Parser.Parser

HEADER_LENGTH = 1
SEVERITY_ALL = [73, 69, 67]
SEVERITY_CRITICAL = 67
SEVERITY_ERROR = 69
SEVERITY_INFO = 73
parseInput(input)

ParserStatus Module

class openvisualizer.moteConnector.ParserStatus.FieldParsingKey(index, val, name, structure, fields)

Bases: object

class openvisualizer.moteConnector.ParserStatus.ParserStatus

Bases: openvisualizer.moteConnector.Parser.Parser

HEADER_LENGTH = 4
parseInput(input)

SerialTester Module

class openvisualizer.moteConnector.SerialTester.SerialTester(moteProbeSerialPort)

Bases: openvisualizer.eventBus.eventBusClient.eventBusClient

DFLT_NUM_TESTPKT = 20
DFLT_TESTPKT_LENGTH = 10
DFLT_TIMEOUT = 5
formatList(l)
getStats()
quit()
setNumTestPkt(newNum)
setTestPktLength(newLength)
setTimeout(newTimeout)
setTrace(newTraceCb)
test(blocking=True)

StackDefines Module

moteConnector Module

class openvisualizer.moteConnector.moteConnector.moteConnector(serialport)

Bases: openvisualizer.eventBus.eventBusClient.eventBusClient

quit()