USB drive, TF card mount
When a USB drive or TF memory card is inserted, the storage device will be recognized as a node, typically represented as /dev/sdb1 or /dev/mmcblkp1, analogous to the Linux environment on a desktop PC.
The file system supports FAT, FAT32, EXT2/3/4, NTFS. 3DV-EdgeAI-32 does not support mounting, so you need to mount it manually. After writing data, please use the sync
or umount
command to safely disconnect, and use the sudo poweroff
command to perform system operation to avoid data corruption due to sudden power failure.
Mounting a USB drive
Insert the USB drive and use the dmesg
command to identify the corresponding device (e.g., sd):
[15460.953423] [5] sdb: sdb1
Then follow the steps below:
(1) Create a mount point:
mkdir disk
(2) Mount the USB drive:
sudo mount /dev/sdb1 disk
(3) List files on the USB drive:
ls disk
Mounting a TF Card
The mounting a TF card is similar to mounting a USB drive. Use the dmesg
command to obtain information about the corresponding mmcblk device:
[16220.776440] [4] mmcblk1: p1
Then follow the steps below:
(1) Create a mount point:
mkdir media
(2) Mount the TF card:
sudo mount /dev/mmcblk1p1 media
(3) List files on the TF card:
ls media
GSM/LTE
The GSM/LTE module can be verified only if the corresponding module is present and a SIM card is installed in the device.
(1) Start ModemManager:
root@Airbox:/tmp# systemctl start ModemManager
(2) List connected modems using mmcli
:
root@Airbox:/tmp# mmcli -L
/org/freedesktop/ModemManager1/Modem/0 [SIMCOM INCORPORATED] SIMCOM_SIM7600E-H
(3) Request properties of the detected modem:
root@Airbox:/tmp# mmcli -m 0
Output:
--------------------------------
General | dbus path: /org/freedesktop/ModemManager1/Modem/0
| device id: 594db863d9e04eddae926198d133ef6c96f1f397
--------------------------------
Hardware | manufacturer: SIMCOM INCORPORATED
| model: SIMCOM_SIM7600E-H
| firmware revision: LE20B04SIM7600M22
| supported: gsm-umts, lte
| current: gsm-umts, lte
| equipment id: 866442075295094
--------------------------------
System | device: /sys/devices/platform/5fb80000.pcie/pci0000:00/0000:00:00.0/0000:01:00.0/0000:02:02.0/0000:04:00.0/usb1/1-1/1-1.2
| drivers: option1
| plugin: SimTech
| primary port: ttyUSB2
| ports: ttyUSB0 (qcdm), ttyUSB2 (at), ttyUSB4 (audio),
| ttyUSB1 (gps), ttyUSB3 (at)
--------------------------------
Status | unlock retries: sim-pin (3), sim-puk (10), sim-pin2 (3), sim-puk2 (10)
| state: searching
| power state: on
| signal quality: 90% (recent)
--------------------------------
Modes | supported: allowed: 2g; preferred: none
| allowed: 3g; preferred: none
| allowed: 2g, 3g; preferred: none
| allowed: 2g, 3g; preferred: 2g
| allowed: 2g, 3g; preferred: 3g
| allowed: 2g, 3g, 4g; preferred: none
| current: allowed: any; preferred: none
--------------------------------
IP | supported: ipv4, ipv6, ipv4v6
--------------------------------
3GPP | imei: 866442075295094
| registration: searching
--------------------------------
3GPP EPS | ue mode of operation: csps-1
--------------------------------
SIM | dbus path: /org/freedesktop/ModemManager1/SIM/0
The modem uses several interfaces for data transmission and control:
- ttyUSB0 (qcdm) — Interface operates using the QCDM protocol.
- ttyUSB1 (gps) — GNSS data interface (not implemented).
- ttyUSB2 (at) — Interface for communication via AT commands.
- ttyUSB4 (audio) — PCM stream interface (not implemented).
- ttyUSB3 (at) — Interface for communication via AT commands.
GNSS
GNSS data is received through the serial port ttyS2. The port protocol is set to 115200n8. To check the data, use the cu
command:
(1) Set read permissions for the serial port device:
root@Airbox:/tmp# chmod 666 /dev/ttyS2
(2) Start receiving data from the positioning receiver:
root@Airbox:/tmp# cu -l ttyS2 -s 115200
Example output:
Connected.
$GNGGA,,,,,,0,00,,,M,,M,,*78
$GNGSA,A,1,,,,,,,,,,,,,,,,1*1D
$GNGSA,A,1,,,,,,,,,,,,,,,,2*1E
$GPGSV,1,1,00*79
$GLGSV,1,1,00*65
$GNRMC,,V,,,,,,,,0.0,E,N,V*5C
$GNZDA,,,,,00,00*56
$GNTXT,01,01,02,ANT_OPEN,B2,*33
~$
Disconnected.