<https://lh3.googleusercontent.com/-KotplR_TUFc/Wd0pm78kPoI/AAAAAAAAAPM/spNSY4D1F7gbm20OndGBS7IoK0IeNi-nwCLcBGAs/s1600/BBB_UART_62500baud.png>
Hi folks,

Finally, I succeeded in resolving this problem:

        struct termios2 settings;

        m_fdSerial = open(m_pDevice.c_str(), O_RDWR | O_NOCTTY);
        if(m_fdSerial < 0)
        {
            //    TODO Daemon has no terminals, use syslog
            perror("open");
        }

        int r = ioctl(m_fdSerial, TCGETS2, &settings);
        if(r)
        {
            perror("ioctl");
        }

        settings.c_ispeed = settings.c_ospeed = 62500;
        settings.c_cflag &= ~CBAUD;
        settings.c_cflag |= BOTHER;

        r = ioctl(m_fdSerial, TCSETS2, &settings);
        if(r)
        {
            perror("ioctl");
        }

        while(1)
        {
            write(m_fdSerial, "U", 1);
        }

Running this code an the BBB (after enabling the uart1 overlay) gives this 
output:



This is exactly what was needed. ;)

-- 
For more options, visit http://beagleboard.org/discuss
--- 
You received this message because you are subscribed to the Google Groups 
"BeagleBoard" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/beagleboard/ed39af0a-0a4f-4469-9756-65b790db57bc%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to