How to test serial ports on CC6 SBC with Yocto


Once the module booted properly with the yocto image,set the baud rate by using the below commands for one of the serial ports on CC6.    
root@ccimx6sbc:~# stty -F /dev/ttymxc2 115200
root@ccimx6sbc:~# stty -F /dev/ttymxc2 speed 115200

Connect PC serial port to ttymxc2 (UART3) on CC6 SBC ,I.E pins 6,7,8  on J29.
Open “Terminal” application on CC6 device.Use the below command to send the data to the UART3.
#echo “text”  > /dev/ttymxc2

You can see the below data at serial console in your PC.(pc should connect to the port with 115200 baud rate)
root@ccimx6sbc:~# text    
This means, TX pin of UART3 is working on CC6 SBC.?

Now use the below command at CC6 Terminal application.
#cat /dev/ttymxc2  
(This command will print the data that received at UART3 on CC6)

Send some text data from your PC serial console.Text data Press enter.
You can see the Text data in the Terminal application on CC6 device.This means, RX pin of UART3 is working on CC6 SBC.
Last updated: Aug 08, 2017

Recently Viewed Articles

No recently viewed articles
Contact a Digi expert and get started today! Contact Us