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, need to be calibrated: firstly remove the file /etc/pointercal.xinput, then click on the SystemAdministrationCalibrate Touchscreen on desktop to calibrate, more information you can find “Angstrom Resistive Touchsreen Calibration Steps.pdf”
2、 Audio test
Start terminal, then use command mplayer to test.
# mplayer FILENAME // such as: mplayer ~/chipsee/Music/AudioTest.aac
3、 Serial test
Connect COM1 on board to PC. Use software “SecureCRT” or “Putty” or some
others in PC. Connect keyboard and mouse to the board. Then press “Ctrl+Alt+F1(or F3~F6)” to get into tty1(tty3~tty6), enter user name root, no password. Go to chipsee folder start the test, Like Figure 2.
Notes: The system is no QtE by default, follow the steps in the CD(Angstrom/Documents/Qt-Angstrom) to set the environment. The QtE in Angstrom OS is not working well, by now user only can use mouse for the Qt apps.
# cd chipsee
# ./ChipseeTest -qws
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 a normal serial port, follow the steps here:
a) Edit the file uEnv.txt which you can find in the boot partition.
Change it to ttyO1, ttyO2 or ttyO4(RS232_2, RS485_1 and RS485_2), you can edit it like this:
Then you can use all the four serial ports as normal.
b) Stop the service in Angstrom
# systemctl disable serial-getty@ttyO0.service
# systemctl stop serial-getty@ttyO0.service
Now you can use the COM1 as normal serial port.
c) If you want to use COM1 as debug serial port, you need to edit the file uEnv.txt which you can find in the boot partition. And start the service:
# systemctl start serial-getty@ttyO0.service
d) Serial test: at the serial area, set Com COM2, set Baud 115200, click on “Open” It will send string “Succeed in sending message!!!” every two seconds. Click on the “SendMSG” button, it will send string “Succeed in sending message-manual!!!”. Every two seconds, it will read the received buffer, show the result to the received area.
From 1 Seial ports in system
4、 GPIO test
There are four inputs and four outputs. LOW is 0V, HIGH is 5V.
GPIO input terminal connected to the output connection terminal, IN1-4 are corresponding connect to OUT1-4. By setting GPIO_OUT area you will see GPIO_IN region corresponding change. Like figure 2.
||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
Click on “Network”, then click on “Ifconfig” to view the network information on board, click on “Refresh” to restart the network service, it will take five or six seconds to finish. Like Figure 3.
Click the time display area “Edit” icon to set the time and date, like Figure 4
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
By modifying the size “Brightness” can change the brightness of the backlight.
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
a) USB webcam
If you want to use USB webcam, you need to connect the webcam to the board before power on. Then choose ApplicationSound&VideoCheese Webcam Booth to take pictures.
b) USB-Wifi module
If you want to use the USB-Wifi module in the system, you need to edit the file /var/lib/connman/wifi.config, modify the router, the login name and password, save and reboot. The system will automatically connect the next time you start, the contents are as follows:
Type = wifi
Name = chipsee //router’s name
Security = AES //security mode
Passphrase = 1234567890 //password