User manual

C hwtest
hwtest --cycles=1 --i2c --testrtc
executes the RTC test only
hwtest --cycles=1 --i2c --testlcd
executes the LCD test only
C.7. EPLD Test
Each UART has its own EPLD to switch between RS232, RS422 and RS485 modes. Current
configuration will be acquired and then switched to RS232 or RS422 depending on what the current
configuration was. The EPLDs will be chosen using serial port devices configured in --eplddev
option.
Example:
hwtest --cycles=1 --epld --eplddev=/dev/ttyS1 --eplddev=/dev/ttyS2
executes the EPLD test for both serial ports
C.8. USB Test
For USB test USB mass storage device should connected to the USB port. The device must be
properly detected and mounted. --usbmntdev option defines which device to mount.
Usage examples:
hwtest --cycles=1 --usb --usbmntdev=/dev/sda1
executes the USB test for the first detected mass storage device
hwtest --cycles=1 --usb --usbmntdev=/dev/sda1 --usbmntdev=/dev/sdb1
executes the USB test for the first and the second detected mass storage devices
C.9. CAN Test
The CAN test will be made between the internal CAN interface and the VScom USB-CAN device.
At first the USB-CAN sends one frame with the following data 0xDEADBEEF00000001, after
internal interface receives this frame it send the same frame in return. There is only one parameter
--canpseed to configure the CAN baudrate.
hwtest --cycles=1 --can --canspeed=20000
executes CAN test at 20Kbit/s
C.10. WLAN Button Test
WLAN Button test checks if WLAN button and WLAN button LED are functioning properly.
Starting the test will let the WLAN button LED light on. The button must be pressed during the
via –wbtimeout specified time slot. After pressing the button the LED will go off and the test is
successful.
hwtest --cycles=1 --wlanbtn --wbtimeout=5
executes WLAN button test for 5 seconds
May 2014 OnRISC User Manual 80