USB Type-A / C
Rhino-X1 is equipped with one Type-C interface and four USB3.0 Type-A interfaces.
USB3.0 Type-A Interface Supports HOST mode with a theoretical maximum transfer rate of 5 Gbps.
Type-C Interface The Type-C interface supports USB 3.0 OTG and DP output.
Hardware Connection
To test the HOST mode function of the USB interfaces, we can verify the basic functions of devices connected to the USB ports and the read/write speed of USB flash drives.
Basic Function Test
We can connect card readers, mice, keyboards, and other devices to the USB interfaces, and test whether the devices are properly recognized and usable by plugging and unplugging them.
Note
All the following tests are performed in the AidLux system. Please refer to the Web Login section to log in to the system.
No Peripherals Connected Use the lsusb command to view the devices recognized by the current system.
lsusbTerminal output example:
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 004 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hubPeripherals Connected Connect devices such as card readers, mice, or keyboards to the USB interfaces, and use the lsusb command to check if new devices are added.
lsusbTerminal output example: A USB flash drive is connected to the USB interface.
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 004 Device 002: ID 0781:55a9 SanDisk Corp. SanDisk 3.2Gen1
Bus 004 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hubBy comparing the two output results, you can confirm that the newly connected USB device is properly recognized (the new device ID is 0781:55a9). After the USB device is recognized normally, you can verify that its functions work properly.
Read/Write Speed Test
Connect a USB flash drive to the USB interface and use the dd command to test its read/write speed.
Confirm the Storage Device Use the lsblk | egrep "sdi|NAME" command to confirm the device name of the USB flash drive.
lsblk | egrep "sdi|NAME"Terminal output example: Here, sdi is the device name of the current USB flash drive; replace it according to the actual situation.
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINTS
sdi 8:128 1 114.6G 0 disk
└─sdi1 8:129 1 114.6G 0 part /media/sdi1Test Write Performance
sudo dd if=/dev/zero of=/dev/sdi bs=1M count=100dd: A command-line tool in the Linux system used for copying and converting files.if=/dev/zero: Specifies the input file as/dev/zero, a special file that provides an infinite stream of null bytes.of=/dev/sdi: Specifies the output file as/dev/sdi(the USB flash drive device).bs=1M: Specifies the block size as 1MB.count=100: Specifies copying 100 blocks.
This command writes 100MB of null bytes to the USB flash drive and displays the write speed.
Terminal output example:
100+0 records in
100+0 records out
104857600 bytes (105 MB, 100 MiB) copied, 0.0451387 s, 2.3 GB/sTest Read Performance
sudo dd if=/dev/sdi of=/dev/null bs=1M count=100dd: A command-line tool in the Linux system used for copying and converting files.if=/dev/sdi: Specifies the input file as/dev/sdi(the USB flash drive device).of=/dev/null: Specifies the output file as/dev/null, a special file that discards all written data.bs=1M: Specifies the block size as 1MB.count=100: Specifies copying 100 blocks.
This command reads 100MB of data from the USB flash drive to /dev/null and displays the read speed.
Terminal output example:
100+0 records in
100+0 records out
104857600 bytes (105 MB, 100 MiB) copied, 0.0260768 s, 4.0 GB/s