# HG changeset patch # User drewp # Date 1322967800 28800 # Node ID 0aafd40e4afcda63acdb7bc23e14c240a3ab65c6 # Parent b1c92ee20ff4ad06ebe475f077f5ff1f9dfdb282 move more ports to use /dev/serial/by-id/ Ignore-this: 4d9bc18902dfe08897c3e03579c87b23 darcs-hash:20111204030320-312f9-da93888bb0e3b2bc898eb34f3126706d0ac3aefa.gz diff -r b1c92ee20ff4 -r 0aafd40e4afc service/frontDoorArduino/frontDoorArduino.py --- 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 diff -r b1c92ee20ff4 -r 0aafd40e4afc service/powerInverter/powerInverter.py --- 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 diff -r b1c92ee20ff4 -r 0aafd40e4afc service/theaterArduino/theaterArduino.py --- 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',