5G Datacard
Note
This section currently covers only the external dongle: Quectel RM500K datacard.
Suggested Solution for Connecting to 5G Network - RM500K Datacard
Note
Developers need to buy a 5G datacard from a 3rd-party supplier. We suggest that developers use the Quectel RM500K datacard for the 5G solution. It uses MediaTek’s T700 5G chipset.
Important
IoT Yocto has pre-integrated and tested the basic functions of this 5G dongle. Kernel support for this dongle has been enabled by default. However, developers still need to integrate a proprietary user space dial-up utility by themselves. Please get the user space utility and further support from the 3rd-party vendor who sells the dongle. IoT Yocto provides the integration template as a reference in the IoT Yocto BSP.
For more detailed information on the RM500K module, please contact Quectel or the re-seller. Reference Link: https://www.quectel.com/5g-iot-modules.
Quectel RM500K datacard is a USB 3.0 interface 5G dongle. It uses USB RNDIS
interface as the data path to forward data between the reference board and the 5G MODEM.
A pseudo USB TTY interface (usually /dev/ttyUSB5) as the control path to access 5G MODEM via MediaTek’s
proprietary MIPC command set.
Kernel Configuration for RM500K Dongle
RM500K 5G dongle uses generic USB serial WWAN driver. The following kernel configuration is required for RM500K 5G dongle. These kernel configurations have been enabled by default in IoT Yocto.
CONFIG_USB_NET_RNDIS_HOST=y
CONFIG_USB_SERIAL=y
CONFIG_USB_SERIAL_WWAN=m
CONFIG_USB_SERIAL_OPTION=m
These kernel settings have been applied to all IoT Yocto platforms in the following kernel configuration template.
https://gitlab.com/mediatek/aiot/rity/meta-rity/-/blob/kirkstone/meta/recipes-kernel/linux/linux-mtk/usbnet.cfg
How to Integrate User Space Dial-up Utility
IoT Yocto provides an integration recipe template for developers as a reference for this 5G dongle.
https://gitlab.com/mediatek/aiot/rity/meta-rity/-/blob/kirkstone/meta/recipes-connectivity/mipc/mipc.bb
Please request the datasheet and utility from the re-seller or 3rd-party vendor. It is easy to build the dial-up utility with this template. Simply replace the following 3 parameters according to the developing environment.
SRC_URI: URI to the repository of the source code is stored.
SRCREV: The commit hash value in the source git repository to be used.
LIC_FILES_CHKSUM: The checksum of the "LICENSE" file you added into source.
If the settings are correct, the dial-up utility sample_datacall_V1.2 and MIPC library should be able to compile
with bitbake command.
bitbake mipc
To install the dial-up utility into rity-demo-image, simply add mipc in file src/meta-rity/meta/recipes-rity/packagegroups/packagegroup-rity-net.bb.
You could also add IMAGE_INSTALL:append = "mipc" in local.conf if you want to apply the change to the local workspace only.
RDEPENDS:${PN} = " \
networkmanager \
networkmanager-nmcli \
iperf3 \
mipc \
"
Note
Don’t forget to install the dial-up utility by bitbake rity-demo-image after the source code has been compiled successfully.
Important
The actual integration steps may change depending on the firmware and software differences of the dongle. Please get support from the re-seller or 3rd-party vendor, including datasheets and software updates.
Use Dial-up Utility to Connect the Network
Simply insert the 5G SIM card into the dongle and run the command to connect to the network.
We have sample_datacall_V1.2 in this example.
sample_datacall_V1.2
After the dial-up utility has been launched, it will request the user to input the TTY information interactively for sending MIPC commands to access the MODEM.
Please input the device name(ex: /dev/ttyUSB5) : /dev/ttyUSB5
Note
Some SIM cards require a PIN CODE to unlock. It requires some customization to the dial-up utility. Please contact the re-seller or 3rd-party vendor for the usage of the corresponding API in MIPC library.
If the connection is successful, the user should be able to ping IPv4 or IPv6 network via ethX interface, which is used by USB RNDIS class driver of this dongle.
Note
The compatibility of IPv4 or IPv6 depends on the firmware and software updates from the vendors. Please get support from the re-seller or 3rd-party vendor.