def __init__(self): # variables self.guiLock = threading.Lock() self.apiDef = IpMgrDefinition.IpMgrDefinition() self.notifClientHandler = None # create window self.window = dustWindow.dustWindow('MgrListener', self._windowCb_close) # add a connection frame self.connectionFrame = dustFrameConnection.dustFrameConnection( self.window, self.guiLock, self._connectionFrameCb_connected, frameName="manager connection", row=0, column=0) self.connectionFrame.apiLoaded(self.apiDef) self.connectionFrame.show() # add a table frame self.tableFrame = dustFrameTable.dustFrameTable( self.window, self.guiLock, frameName="received notifications", row=1, column=0) self.tableFrame.show()
def __init__(self): # variables self.guiLock = threading.Lock() self.apiDef = IpMgrDefinition.IpMgrDefinition() self.notifClientHandler = None # create window self.window = dustWindow.dustWindow( 'HrListener', self._windowCb_close, ) # add a connection frame self.connectionFrame = dustFrameConnection.dustFrameConnection( self.window, self.guiLock, self._connectionFrameCb_connected, frameName="manager connection", row=0,column=0 ) self.connectionFrame.apiLoaded(self.apiDef) self.connectionFrame.show() # add a table frame self.tableFrame = dustFrameTable.dustFrameTable( self.window, self.guiLock, frameName="received health reports", row=1,column=0, ) self.tableFrame.show()
def __init__(self): # variables self.guiLock = threading.Lock() self.apiDef = IpMgrDefinition.IpMgrDefinition() self.notifThread = None self.snapshotThread = None # create window self.window = dustWindow.dustWindow( 'Timelapse', self._windowCb_close, ) # add a connection frame self.connectionFrame = dustFrameConnection.dustFrameConnection( self.window, self.guiLock, self._connectionFrameCb_connected, frameName="manager connection", row=0,column=0 ) self.connectionFrame.apiLoaded(self.apiDef) self.connectionFrame.show() # add a table frame self.tableFrame = dustFrameTable.dustFrameTable( self.window, self.guiLock, frameName="network activity", row=1,column=0, ) self.tableFrame.show()
def __init__(self): # variables self.guiLock = threading.Lock() self.apiDef = IpMgrDefinition.IpMgrDefinition() self.notifThread = None self.snapshotThread = None # create window self.window = dustWindow.dustWindow( 'Timelapse', self._windowCb_close, ) # add a connection frame self.connectionFrame = dustFrameConnection.dustFrameConnection( self.window, self.guiLock, self._connectionFrameCb_connected, frameName="manager connection", row=0, column=0) self.connectionFrame.apiLoaded(self.apiDef) self.connectionFrame.show() # add a table frame self.tableFrame = dustFrameTable.dustFrameTable( self.window, self.guiLock, frameName="network activity", row=1, column=0, ) self.tableFrame.show()
def __init__(self): # variables self.guiLock = threading.Lock() self.apiDef = IpMoteDefinition.IpMoteDefinition() # initialize GUI window self.window = dustWindow.dustWindow('Upstream', self._windowCb_close) # create a sensor frame (don't show yet) self.sensorFrame = dustFrameSensorTx.dustFrameSensorTx( self.window, self.guiLock, frameName="sensor data to send", row=0, column=0) self.sensorFrame.show() # create a table frame self.tableFrame = dustFrameTable.dustFrameTable( self.window, self.guiLock, frameName="join state machine", row=1, column=0) # add a connection frame self.connectionFrame = dustFrameConnection.dustFrameConnection( self.window, self.guiLock, self._connectionFrameCb_connected, frameName="mote connection", row=2, column=0) self.connectionFrame.apiLoaded(self.apiDef) self.connectionFrame.show() # create a table frame self.textFrame = dustFrameText.dustFrameText(self.window, self.guiLock, frameName="tip", row=3, column=0) self.textFrame.setWrapLength(400) self.textFrame.show() output = [] output += [ 'Remember to reset your mote before starting this application.' ] output += [ 'The fields in the "sensor data to send" frame are preset with IPv6 address of the motedata.dustnetworks.com server, and the UDP port it is listening on. You can change this IPv6 address and UDP port to if you wish to send to a different server. Per the 6LoWPAN standard, a UDP port chosen between 61616 (0xF0B0) and 61631 (0xF0BF) results in the best compression, thus largest payload. See the mote API guide for further information.' ] output += [ 'Note: The "send to manager" and "send to host" button become active only once the mote has reached the READYTOSEND state.' ] self.textFrame.write('\n\n'.join(output)) # update in GUI elements self._updateGui()
def __init__(self): # variables self.guiLock = threading.Lock() self.apiDef = IpMoteDefinition.IpMoteDefinition() # initialize GUI window self.window = dustWindow.dustWindow('Upstream',self._windowCb_close) # create a sensor frame (don't show yet) self.sensorFrame = dustFrameSensorTx.dustFrameSensorTx( self.window, self.guiLock, frameName="sensor data to send", row=0,column=0) self.sensorFrame.show() # create a table frame self.tableFrame = dustFrameTable.dustFrameTable( self.window, self.guiLock, frameName="join state machine", row=1,column=0) # add a connection frame self.connectionFrame = dustFrameConnection.dustFrameConnection( self.window, self.guiLock, self._connectionFrameCb_connected, frameName="mote connection", row=2,column=0) self.connectionFrame.apiLoaded(self.apiDef) self.connectionFrame.show() # create a table frame self.textFrame = dustFrameText.dustFrameText( self.window, self.guiLock, frameName="tip", row=3,column=0) self.textFrame.setWrapLength(400) self.textFrame.show() output = [] output += ['Remember to reset your mote before starting this application.'] output += ['The fields in the "sensor data to send" frame are preset with IPv6 address of the motedata.dustnetworks.com server, and the UDP port it is listening on. You can change this IPv6 address and UDP port to if you wish to send to a different server. Per the 6LoWPAN standard, a UDP port chosen between 61616 (0xF0B0) and 61631 (0xF0BF) results in the best compression, thus largest payload. See the mote API guide for further information.'] output += ['Note: The "send to manager" and "send to host" button become active only once the mote has reached the READYTOSEND state.'] self.textFrame.write('\n\n'.join(output)) # update in GUI elements self._updateGui()