
UBC-220 User Manual
26
2.5.9
RS232 Test
As you can see below, there are 2 RS-232 supported by UBC-220. /dev/ttymxc0 is
reserved for UBC-220 debug port (UBC-220 DEBUG_CONSOLE), the other one
could be applied by the user.
#setserial -g /dev/ttymxc*
/dev/ttymxc0, UART: undefined, Port: 0x0000, IRQ: 58
/dev/ttymxc1, UART: undefined, Port: 0x0000, IRQ: 59
Below test was done with four 2.54mm pitch mini jumpers. Advantech P/N is
1653003100. This mini jumper is a bridge connecting Tx and Rx.
2.5.9.1
/dev/ttymxc1 testing (COM)
#stty -F /dev/ttymxc1 -echo
#cat /dev/ttymxc1
[CTRL+Z]
#echo hello > /dev/ttymxc1
#fg
Hello
[CTRL+C]
2.5.10
Watchdog Timer Test
1.
Executing ‘ wdt_driver_test.out ‘
./wdt_driver_test.out 5 10
0
Usage: wdt_driver_test <timeout> <sleep> <test>
timeout: value in seconds to cause wdt timeout/reset
sleep: value in seconds to service the wdt
test: 0 - Service wdt with ioctl(), 1 - with write()
2.
Please try below command to set timeout as 10 seconds, system will reboot
after then.
#/unit_tests/wdt_driver_test.out 5 10
0
Starting wdt_driver (timeout: 10, sleep: 5, test: ioctl)
Trying to set timeout value=10 seconds
The actual timeout was set to 10 seconds
Now reading back -- The timeout is 10 seconds
Press [CTRL+C] then you should be able to see below result:
imx2-wdt imx2-wdt.0: Unexpected close: Expect reboot!
Then system will reboot in 10 seconds.
2.5.11
Photo Demo Test
Execute the following commands to run the Photo demo application on UBC-220.
#cd /tools
#./fbv Advantech.jpg
Then you can see the photo demo on the default display screen.
Содержание UBC-220
Страница 6: ...UBC 220 User Manual vi...
Страница 12: ...UBC 220 User Manual 4...
Страница 36: ...UBC 220 User Manual 28...
Страница 37: ...Chapter 3 3 Software Functionality This chapter details the Linux operating system on the UBC 220 platform...
Страница 52: ...UBC 220 User Manual 44...