Navigation

    IO Rodeo Forum

    • Register
    • Login

    Software retain serial address?

    Colorimeter
    2
    2
    3668
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • F
      fisherba last edited by

      The address for the serial port always resets to /dev/tty.usbmodem upon opening the colorimeter software. I have looked through the arduino sketches, but do not see a place to designate the port name. Can someone direct me to this? Most of the time the device will be used on one computer, so I would like to change this default.

      W 1 Reply Last reply Reply Quote 0
      • W
        Will Dickson @fisherba last edited by

        @fisherba

        This wouldn't be in the Arduino sketch - it is in the Python software that run on the host computer. In particular see the constants.py file in "python/Colorimeter/colorimeter/" sub-directory in the repository https://bitbucket.org/iorodeo/colorimeter/src

        The default ports are set on lines 8-10 of constants.py as shown below.

        DFLT_PORT_WINDOWS = 'com1' 
        DFLT_PORT_LINUX = '/dev/ttyACM0' 
        DFLT_PORT_DARWIN = '/dev/tty.usbmodem'
        

        You should be able to change it to whatever you like.

        1 Reply Last reply Reply Quote 0
        • First post
          Last post