Exemple #1
0
def main():
    fo = FileOutput('log.txt')
    ssm = SelectMonitor('/dev/tty.usbserial-A6008srP', fo.callback)
    time.sleep(0.1)
    ssm.stop()
    time.sleep(0.3)
    ssm.read(0)
    time.sleep(0.1)
    ssm.get_rom_id()
    time.sleep(0.1)
    ssm.stop()
    #print "press a key to stop harvesting"
    #raw_input()
    #ssm.stop()
    time.sleep(0.1)
    ssm.close()
Exemple #2
0
def main():
    fo = FileOutput('log.txt')
    ssm = SelectMonitor('/dev/tty.usbserial-A6008srP', fo.callback)
    time.sleep(0.1)
    ssm.stop()
    time.sleep(0.3)
    ssm.read(0)
    time.sleep(0.1)
    ssm.get_rom_id()
    time.sleep(0.1)
    ssm.stop()
    #print "press a key to stop harvesting"
    #raw_input()
    #ssm.stop()
    time.sleep(0.1)
    ssm.close()