×

SparkFun Support and Front Desk will be closed on Thursday 11/14 from 1-2:30pm for a company event. Please plan to pick up your orders before or after this timeframe.

Member #421539

Member Since: March 21, 2013

Country: United States

  • I too am having problems with reading UART data from this board to the edison. I can read and write from and to the edison to a terminal via UART. I can read and write from the Arduino via the FTDI, but I cannot read data from the Arduino via the stacked connector that I assume connects to 0 and 1 on the Arduino.

    My Arduino code is:

    void setup()
    { // Open serial communications and wait for port to open: Serial.begin(9600);

    }

    void loop() // run over and over {

    if (Serial.available()) Serial.write(123); }

    My edison code is:

    import serial import time

    serialport = '/dev/ttyMFD1'

    print 'open ' + serialport ser = serial.Serial(serialport, 9600)

    print ser.portstr # check which port was really used counter = 0 while True: try: if ser.isOpen():
    print 'begin' data = ser.read() print 'reading: ' + str(data)

             time.sleep(1)
        except (KeyboardInterrupt, SystemExit):
             ser.close()
             raise
    

    print "done"

    Console output:

    root@kextrel:~/pythoncode# python uartread.py open /dev/ttyMFD1 /dev/ttyMFD1 begin

    Any help appreciated

No public wish lists :(