Modified udev rules to symlink openmvcam for serial; modified openmv-ide.py to open openmvcam symlink

This commit is contained in:
Michael Shimniok 2014-09-25 03:32:36 -06:00
parent 8467c67f06
commit 5e95efdac5
2 changed files with 2 additions and 1 deletions

View File

@ -2,6 +2,7 @@
#SUBSYSTEMS=="usb", ATTRS{idVendor}=="0483", ATTRS{idProduct}=="5740", MODE:="0666" #SUBSYSTEMS=="usb", ATTRS{idVendor}=="0483", ATTRS{idProduct}=="5740", MODE:="0666"
SUBSYSTEMS=="usb", ATTRS{idVendor}=="0483", ATTRS{idProduct}=="df11", MODE:="0666" SUBSYSTEMS=="usb", ATTRS{idVendor}=="0483", ATTRS{idProduct}=="df11", MODE:="0666"
SUBSYSTEMS=="usb", ATTRS{idVendor}=="f055", ATTRS{idProduct}=="9800", MODE:="0666" SUBSYSTEMS=="usb", ATTRS{idVendor}=="f055", ATTRS{idProduct}=="9800", MODE:="0666"
KERNEL=="ttyACM*", ATTRS{idVendor}=="f055", ATTRS{idProduct}=="9800", MODE:="0666", SYMLINK+="openmvcam"
# If you share your linux system with other users, or just don't like the # If you share your linux system with other users, or just don't like the
# idea of write permission for everybody, you can replace MODE:="0666" with # idea of write permission for everybody, you can replace MODE:="0666" with
# OWNER:="yourusername" to create the device owned by you, or with # OWNER:="yourusername" to create the device owned by you, or with

View File

@ -128,7 +128,7 @@ class OMVGtk:
self.terminal = self.builder.get_object('terminal') self.terminal = self.builder.get_object('terminal')
try: try:
# open VCP and configure the terminal # open VCP and configure the terminal
self.fd = os.open("/dev/ttyACM0", os.O_RDWR) self.fd = os.open("/dev/openmvcam", os.O_RDWR)
self.terminal.reset(True, True) self.terminal.reset(True, True)
self.terminal.set_size(80,24) self.terminal.set_size(80,24)
self.terminal.set_pty(self.fd) self.terminal.set_pty(self.fd)