A9 Serial Port problem

Discussion in 'UDOO NEO' started by Mikeee, Mar 2, 2016.

  1. Mikeee

    Mikeee Member

    Joined:
    Nov 1, 2013
    Messages:
    55
    Likes Received:
    17
    I have been trying to get access to a serial port from the A9. The command

    sudo stty -F /dev/ttyMCC 9600

    Fails with the following error

    stty: /dev/ttyMCC: unable to perform all requested operations
     
  2. waltervl

    waltervl UDOOer

    Joined:
    Dec 12, 2015
    Messages:
    2,314
    Likes Received:
    580
  3. Mikeee

    Mikeee Member

    Joined:
    Nov 1, 2013
    Messages:
    55
    Likes Received:
    17
    Thanks for the reply. I'm able to access the port with cu and with the Arduino IDE Serial monitor. My goal is to use Apache2 web server and php to access the serial port. The port will be connected to an Audio Distribution Amp. In order to get that to work I think stty has to function properly. The learning curve is very steep here.
     
  4. waltervl

    waltervl UDOOer

    Joined:
    Dec 12, 2015
    Messages:
    2,314
    Likes Received:
    580
  5. Mikeee

    Mikeee Member

    Joined:
    Nov 1, 2013
    Messages:
    55
    Likes Received:
    17
    waltervl likes this.
  6. virtualbruno

    virtualbruno New Member

    Joined:
    May 26, 2015
    Messages:
    10
    Likes Received:
    1
    I am trying to connect to the A9 Serial port UART#6,
    so far successfully connected via python to /dev/ttyMCC to communicate with the M4 ( a small program that turns on an output with the M4 ( Arduino ))
    where do I find the configuration in python for UART6?

    any hint appreciated Python nubee
     
  7. waltervl

    waltervl UDOOer

    Joined:
    Dec 12, 2015
    Messages:
    2,314
    Likes Received:
    580
  8. virtualbruno

    virtualbruno New Member

    Joined:
    May 26, 2015
    Messages:
    10
    Likes Received:
    1
    Thanks Walter!
    Tricky to find I will check it out right away and post back.
     
  9. virtualbruno

    virtualbruno New Member

    Joined:
    May 26, 2015
    Messages:
    10
    Likes Received:
    1
    Device Tree editor confirms the port is available after re-boot but python throws an error code 1:
    LXTerminal reports SerialException could not opent port /dev/ttymxc5,
    I tried verious combinations of Mxc5, mxc6 etc. none are recognized.
    This may be something for the factory to advise..
     
  10. Mikeee

    Mikeee Member

    Joined:
    Nov 1, 2013
    Messages:
    55
    Likes Received:
    17
    Just got a chance to try out the PHP Bidirectional Example and it works great. I originally wanted to use UART6 and the A9 for this project but now I can pass commands to the M4 with PHP and then send commands from the M4 to the external device via UART5 Pins 0, 1.

    The only problem I caused for myself was when installing Apache2 with Tasksel. I deselected LUBUNTU minimal install which caused the desktop to be trashed. Did this twice before realizing what was causing the Desktop to get trashed. Newbie mistake for sure.
     
    waltervl likes this.

Share This Page