Skip to content

Instantly share code, notes, and snippets.

@wolkenarchitekt
Last active December 8, 2021 20:37
Show Gist options
  • Save wolkenarchitekt/de19c133f28d2b633ceb682bd0457a24 to your computer and use it in GitHub Desktop.
Save wolkenarchitekt/de19c133f28d2b633ceb682bd0457a24 to your computer and use it in GitHub Desktop.
ATOM UAV serial read USB
# Prerequisites:
# pip install pyserial==3.5
# Get USB device ID via lsusb
import serial
# Results in SerialException: Could not configure port: (25, 'Inappropriate ioctl for device')
ser = serial.Serial("/dev/bus/usb/003/014", baudrate=115200, stopbits=serial.STOPBITS_ONE, timeout=1)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment