Udoo X86 Arduino script not outputting to serial on reboot

Discussion in 'UDOO X86' started by Udont314, May 31, 2019.

Tags:
  1. Udont314

    Udont314 New Member

    Joined:
    Mar 15, 2019
    Messages:
    8
    Likes Received:
    6
    I am running a simple script on the Arduino that is supposed to output to serial (/dev/ttyACM0). It works great in the Arduino IDE and can even been seen by running:

    sudo tail -f /dev/ttyACM0

    However, whenever I reboot the board and try to run sudo tail -f /dev/ttyACM0 without first running in the IDE, nothing shows up. If I open the IDE and open the serial monitor tool, it works fine. I can then close that window and run the tail command and it works. It appears that nothing is written to the serial port until the serial monitor tool is run in the IDE.

    Everything I can find in the Arduino and Udoo docs seem to indicate that the Arduino will run the last loaded script on boot. What's going on here? Is there something the IDE is doing to activate the serial port?
     
  2. Udont314

    Udont314 New Member

    Joined:
    Mar 15, 2019
    Messages:
    8
    Likes Received:
    6
    Update:

    I noticed that if I run:

    screen /dev/ttyACM0 9600

    I can see the output.
     
  3. waltervl

    waltervl UDOOer

    Joined:
    Dec 12, 2015
    Messages:
    2,140
    Likes Received:
    543
    Udont314 and evaloverde like this.
  4. Udont314

    Udont314 New Member

    Joined:
    Mar 15, 2019
    Messages:
    8
    Likes Received:
    6
    waltervl and evaloverde like this.
  5. Udont314

    Udont314 New Member

    Joined:
    Mar 15, 2019
    Messages:
    8
    Likes Received:
    6
    Just tried the libraries and the PHP class works great! Also, after playing with minicom I see why just using cat doesn't work on the serial port, especially without using stty which is sketchy at best. I did not try the PHP direct IO libraries since the Udoo Serial Libraries worked so easily.
     
    waltervl and evaloverde like this.
  6. evaloverde

    evaloverde Administrator Staff Member

    Joined:
    Apr 29, 2019
    Messages:
    161
    Likes Received:
    50
    It's always great to see you guys collaborate! Walter, thank you for being awesome (as always)
     
    waltervl likes this.

Share This Page