Python Communication to UDOO Dual from Windows

Discussion in 'General Programming Discussion' started by r4gt4g, Jan 16, 2014.

  1. r4gt4g

    r4gt4g New Member

    Joined:
    Jan 13, 2014
    Messages:
    5
    Likes Received:
    0
    Hi I'm having an issue communicating with the UDOO Dual from Windows. I am able to upload a sketch via the IDE on Windows using a port that shows up as 'COM3'. However, the below code triggers a port error (I've commented out the linux portion of the code).

    Code:
    import time
    import serial
    import threading
    
    #port = serial.Serial('/dev/ttyS1', 115200)
    port = serial.Serial('COM3', 115200)
     
  2. r4gt4g

    r4gt4g New Member

    Joined:
    Jan 13, 2014
    Messages:
    5
    Likes Received:
    0
    So the issue, it turns out, was that the Arduino IDE must be closed in order to access the same serial connection (on a Windows system). The above code should work at opening a connection if you get pyserial installed correctly.
     

Share This Page