http://cpham.perso.univ-pau.fr/WSN-MODEL/tool-html/imagesensor.html
http://cpham.perso.univ-pau.fr/LORA/RPIgateway.html
http://cpham.perso.univ-pau.fr/WSN-MODEL/tool-html/tools.html
不用考慮 ACK 和其他的嗎?
import serial import sys if len(sys.argv) < 2: thePort = "/dev/ttyUSB0" else: thePort = sys.argv[1] ser = serial.Serial(thePort, 115200, timeout=0) # flush everything that may have been received on the port to make sure that we start with a clean serial input ser.flushInput() while True: out = '' sys.stdout.write(ser.read(1024)) sys.stdout.flush()http://cpham.perso.univ-pau.fr/WSN-MODEL/tool-html/source/115200SerialToStdout.py
沒有留言:
張貼留言