• You can use the following command to record sound. The -d parameter
indicate interrupt after # seconds, follow is 18 seconds
$ arecord -N -M -r 44100 -f S16_LE -c 2 -d 18 test.wav
• You can use the following command to playback the recorded sound above.
$ aplay -N -M test.wav
4.4. Serial Port
There are 5 serial ports, 2 RS232, and 3 RS485. The default hardware config
is 2 RS232 and 3 RS485. For the device node in system, please reference the
table 4-1:
Table 4-1 serial port device node
Ports
Device Node
RS232_1
/dev/ttymxc0
RS232_2
/dev/ttymxc1
RS485_3
/dev/ttymxc2
RS485_4
/dev/ttymxc3
RS485_5
/dev/ttymxc4
You can install “cutecom” to test the serial port:
$ sudo apt-get install cutecom
Only root user and use the serial port:
$ sudo cutecom
NOTE: All RS485 signals don’t mount on the 120Ohm Matched Resistance.
4.6. CAN
There are two-channel CAN buses, the system has integrated the can units. You
can use them to test CAN, you also can use the HT application to test them.