Mercurial > code > home > repos > homeauto
changeset 18:84af13435de7
move more ports to use /dev/serial/by-id/
Ignore-this: 4d9bc18902dfe08897c3e03579c87b23
author | drewp@bigasterisk.com |
---|---|
date | Sat, 03 Dec 2011 19:03:20 -0800 |
parents | d6c2b9b87f7b |
children | 5b3536174a9a |
files | service/frontDoorArduino/frontDoorArduino.py service/powerInverter/powerInverter.py service/theaterArduino/theaterArduino.py |
diffstat | 3 files changed, 3 insertions(+), 7 deletions(-) [+] |
line wrap: on
line diff
--- a/service/frontDoorArduino/frontDoorArduino.py Sat Dec 03 19:03:07 2011 -0800 +++ b/service/frontDoorArduino/frontDoorArduino.py Sat Dec 03 19:03:20 2011 -0800 @@ -181,12 +181,8 @@ if __name__ == '__main__': - port = '/dev/ttyUSB0' - if not os.path.exists(port): - port = '/dev/ttyUSB1' - config = { # to be read from a file - 'arduinoPort': port, + 'arduinoPort': '/dev/serial/by-id/usb-FTDI_FT232R_USB_UART_A6004bUG-if00-port0', 'servePort' : 9080, 'pollFrequency' : 1, 'boardName' : 'frontDoor', # gets sent with updates
--- a/service/powerInverter/powerInverter.py Sat Dec 03 19:03:07 2011 -0800 +++ b/service/powerInverter/powerInverter.py Sat Dec 03 19:03:20 2011 -0800 @@ -69,7 +69,7 @@ def reset(self): log.info("reopening serial port") - for port in ['/dev/ttyUSB0', '/dev/ttyUSB1']: + for port in ['/dev/serial/by-id/usb-0557_2008-if00-port0']: try: self.comm = Comm(port) break
--- a/service/theaterArduino/theaterArduino.py Sat Dec 03 19:03:07 2011 -0800 +++ b/service/theaterArduino/theaterArduino.py Sat Dec 03 19:03:20 2011 -0800 @@ -129,7 +129,7 @@ if __name__ == '__main__': config = { # to be read from a file - 'arduinoPort': '/dev/ttyUSB0', + 'arduinoPort': '/dev/serial/by-id/usb-FTDI_FT232R_USB_UART_A900cepU-if00-port0', 'servePort' : 9056, 'pollFrequency' : 20, 'post' : 'http://bang:9069/pinChange',