1、 Touch screen and buzzer test
Click on the screen, the mouse arrow stays in position triggered and the buzzer sounds, indicating that touch and buzzer work properly. After working for some time resistive touch screen may not be accurate, so they need to be calibrated: choose PreferencesCalibrate Touchscreen app to recalibrate, but it only works this time, if you reboot the System, you need to do it again. You can do it this way: delete the file /etc/pointercal.xinput, then reboot. You will see the calibrate app first before you access to the system. Just calibrate, the result will saved.
2、 Audio test
Start the terminal, then use command mplayer to test.
# mplayer FILENAME //such as: mplayer ~/Music/test.mp3
3、 Serial test
Connect COM1 on board to PC. Use software “SecureCRT” or “Putty” or some
others in PC. You will see the system information when the system start.
Note: There are four serial ports available on board, two are RS232 (COM1 and COM2), the others are RS485 (COM3 and COM4). And COM1(RS232) is used to debug the system, baud rate is 115200. The COM1(RS232) is used as debug serial port, users can communicate with the OS via it, just as Terminal did. If users want to use it as normal serial port, follow the steps here:
Edit the file /etc/inttab , at the end of the file.
T0:23:respawn:/sbin/getty –L ttyO0 115200 vt102
Change it to ttyO1, ttyO2 or ttyO4(RS232_2, RS485_1 and RS485_2), you can edit it like this:
# T0:23:respawn:/sbin/getty –L ttyO0 115200 vt102
Then you can use all the four serial ports as normal.
Serial test: Connect COM2 on board to PC. Use software “SecureCRT” or “Putty” or some others in PC, set BAUD as 9600.
# echo “This is a test” > /dev/ttyO1
You will see the string in PC, then change the ttyO1 to ttyO2/ttyO4 to test RS485.
From 1 Seial ports in system
1. GPIO test
There are four inputs and four outputs. LOW is 0V, HIGH is 5V.
||GPIO In System
To read and write the GPIO, you can do this: gpio49.
(1) Export gpio, if there is /sys/class/gpio/gpio49/, go to step (2).
# echo 49 > /sys/class/gpio/export
# echo 1 > /sys/class/gpio/gpio49/value
# cat /sys/class/gpio/gpio49/value
# ifconfig –a
You can see the information of CAN0, eth0.
6、 Date and Time
Check the system time
Set the system time
# date –s “2014-03-15 10:30:30”
# hwclock –w
Modify the time zone, such as China:
# ln -sf /usr/share/zoneinfo/Asia/Hong_Kong /etc/localtime
Modify the file /sys/class/backlight/backlight.10/Brightness to change the backlight.
range from 0 to 100, 0 means shutdown the backlight, 100 is the MAX value.
# echo 50 > /sys/class/backlight/backlight.10/Brightness
The buzzer will sound when the screen is touched, if you want to disable it, you can do this:
Capacitive touchscreen: Edit /sys/devices/ocp.3/44e0b000.i2c/i2c-0/0-0038/buzopen
“0” means disable.
# echo 0 > /sys/devices/ocp.3/44e0b000.i2c/i2c-0/0-0038/buzopen
Resistive touchscreen: Edit /sys/devices/ocp.3/44e0d000.tscadc/tsc/buzopen
“1” means enable.
# echo 1 > /sys/devices/ocp.3/44e0d000.tscadc/tsc/buzopen
9、 USB device
USB-Wifi module: The system support USB-Wifi module (rtl8723). If you want to get USB-Wifi module to work, you need to edit file: /etc/network/interfaces like this:
iface wlanX inet dhcp
wpa-ssid "Chipsee" //Router’ name
wpa-psk "1234567890" // Passwd
wlanX usual should be wlan0, you can use command ifconfig –a to make sure of that.