Problem serial communication /dev/ttyMCC

Discussion in 'UDOO NEO' started by JonathanC, Mar 4, 2016.

  1. JonathanC

    JonathanC New Member

    Joined:
    Feb 25, 2016
    Messages:
    9
    Likes Received:
    5
    Hello,
    The virtualized serial ttyMCC is waiting the caracter end of line to print a message. For example, with a simple sketch like this I can't see the message with cat /dev/ttyMCC in the terminal :
    void setup
    {
    Serial.begin(38400);
    }
    void loop
    {
    Serial.print(45);
    delay(1000);
    }
    But if I add Serial.print("\n"), I receive it. So I tried to change parameters of /dev/ttyMCC with stty command but I can't. I don't have error message but there is no change. If I try to change the baud speed, I get the error : unable to perform all requested operations. Why ttyMCC parameters can't be modified ?
    Anyone can help ? Thanks
     
  2. waltervl

    waltervl UDOOer

    Joined:
    Dec 12, 2015
    Messages:
    2,314
    Likes Received:
    580
    You don't have to change the baudrate because it is virtual. Just use 115200.
    I suppose because it is virtual it is not behaving as a standard serial port. It is good that you found the eol issue. Now that you know it you also can program around it :) I think it is faster than wait for the Udoo team to fix it. They have higher priorities I suppose.
     
    JonathanC likes this.
  3. JonathanC

    JonathanC New Member

    Joined:
    Feb 25, 2016
    Messages:
    9
    Likes Received:
    5
    Ok, thanks for your answer. The default baudrate is 38400, this is not a lot but I will work with it.
     
  4. waltervl

    waltervl UDOOer

    Joined:
    Dec 12, 2015
    Messages:
    2,314
    Likes Received:
    580
    I have read somewhere here on the forum that the real baudrate is much higher in real time because it is a virtual serial. Setting the baudrate should have no influence on the performance of /dev/ttyMCC
     

Share This Page