📅  最后修改于: 2022-03-11 14:45:49.307000             🧑  作者: Mango
>>> from serial import Serial
>>> from pyubx2 import UBXReader
>>> stream = Serial('/dev/tty.usbmodem14101', 9600, timeout=3)
>>> ubr = UBXReader(stream)
>>> (raw_data, parsed_data) = ubr.read()
print(parsed_data)