Actual measurement|Use and test of Feiling embedded OK3588-C development board 4G module

This trial report is provided by enthusiast  ouxiaolong , thanks for the support of ouxiaolong. Feiling Embedded will continue to carry out development board trial activities with prizes, and JD E-cards are waiting for you! Welcome everyone's continued attention.

Feiling embedded OK3588-C development board is a flagship product with strong performance. It adopts the split design of core board + bottom board. It is based on the Rockchip RK3588 processor design. The processor has ultra-high performance and includes 4-core Cortex-A55 and 4-core Cortex-A76 architecture, Cortex-A55 main frequency up to 1.8GHz, Cortex-A76 main frequency up to 2.4GHz, and built-in NPU, rich in functions, high playability. Today I will use the OK3588-C development board to use and test the 4G module.

1. Overview of Gobinet/QMI-WWAN/PPP dialing

1. Gobinet dialing

GOBI Qualcomm Gobi wireless broadband chip technology, only needs one module to support multiple mobile broadband networks and many mobile operators. Qualcomm says the new chip will be based on the Gobi 4G LTE wireless baseband, MDM9615 and MDM9215. This technology can carry out LTE connection under FDD and TDD network, and supports HSPA+ and EV-DO network, 2G/3G network at the same time. This means that users can use the high-speed 4G LTE network locally and use the 3G network elsewhere. The Gobi platform also provides a software enhancement layer on the basis of the MDM chipset, which makes it easier to use wireless connections under different technologies.

2. QMI-WWAN protocol dialing

QMI: Qualcom Message Interface

MSM: Mobile station mode

AP: Application Procesor

Qualcomm platforms are currently asymmetric multi-core, the most important ones are AP and Modem. How do two processors communicate? We regard AP and Modem as two hosts, and the problem becomes very simple. The TCP/IP protocol is not a very successful inter-process cross-host communication method. Qualcomm did not adopt this method, but drew on the framework design of TCP/IP.

Qualcomm MSM Interface, which is used for the interaction between AP and BP side. The popular saying is to let the device terminal TE (it can be mobile phone, PDA, computer)

Operate the AMSS system on the Qualcomm BP side, such as calling functions, reading data, setting NV items, etc.

3. PPP protocol dial-up: point-to-point protocol

PPP (point-to-point protocol) is used for data exchange and negotiation between MS and PC during the dial-up process. In the initial stage of the dial-up process, the direct PPP process between the PC and the MS is first started. After the dial-up is successful, it is necessary to rely on the PPP protocol to encapsulate the IP packet for data transmission.

Official website source code: https://ppp.samba.org

2. Driver inspection

First check whether there is USB device information.

Then check the device in the dev directory.

In addition, there is a qcqmi0 under dev.

Indicates that the driver has integrated GobiNet.

3. Dial-up Internet access

The dialer uses quectel-CM provided by Quectel, which is a 4G connection management program. After cross-compilation, the executable bin "quectel-CM" is obtained. Modify the Makefile under quectel-CM as follows, and then make

CC:= aarch64-linux-gnu-gcc

Put this bin on the OK3588-C development board and start it up. If there is no problem with the above-mentioned first and second drivers, you can directly execute the bin. Copy the quectel-CM executable program to the OK3588-C development board.

[Note] Mobile is [cmnet], Telecom is [ctnet].

$ ./quectel-CM -s ctnet &

root@ok3588:~# [03-16_23:36:36:353] WCDMA&LTE_QConnectManager_Linux&Android_V1.1.34

[03-16_23:36:36:356] ./quectel-CM profile[1] = ctnet///0, pincode = (null)

[03-16_23:36:36:364] Find /sys/bus/usb/devices/1-1 idVendor=2c7c idProduct=0125

[03-16_23:36:36:370] Find /sys/bus/usb/devices/1-1:1.4/net/usb0

[03-16_23:36:36:375] Find usbnet_adapter = usb0

[03-16_23:36:36:380] Find /sys/bus/usb/devices/1-1:1.4/GobiQMI/qcqmi0

[03-16_23:36:36:386] Find qmichannel = /dev/qcqmi0

[03-16_23:36:36:454] Get clientWDS = 7

[03-16_23:36:36:486] Get clientDMS = 8

[03-16_23:36:36:518] Get clientNAS = 9

[03-16_23:36:36:550] Get clientUIM = 10

[03-16_23:36:36:583] Get clientWDA = 11

[03-16_23:36:36:614] requestBaseBandVersion EC20CEFAGR06A08M4G

[03-16_23:36:36:710] requestGetSIMStatus SIMStatus: SIM_READY

[03-16_23:36:36:710] requestSetProfile[1] ctnet///0

[03-16_23:36:36:774] requestGetProfile[1] ctnet///0

[03-16_23:36:36:806] requestRegistrationState2 MCC: 0, MNC: 0, PS: Detached, DataCap: UNKNOW

[03-16_23:36:36:837] requestQueryDataCall IPv4ConnectionStatus: DISCONNECTED

[03-16_23:36:36:902] requestRegistrationState2 MCC: 0, MNC: 0, PS: Detached, DataCap: UNKNOW

[03-16_23:36:40:870] requestRegistrationState2 MCC: 0, MNC: 0, PS: Detached, DataCap: UNKNOW

[03-16_23:36:41:958] requestRegistrationState2 MCC: 0, MNC: 0, PS: Detached, DataCap: UNKNOW

[03-16_23:36:42:118] requestRegistrationState2 MCC: 0, MNC: 0, PS: Attached, DataCap: 1XEVDO_REVB

[03-16_23:36:42:182] requestRegistrationState2 MCC: 0, MNC: 0, PS: Attached, DataCap: 1XEVDO_REVB

[03-16_23:36:42:214] requestSetupDataCall QMUXResult = 0x1, QMUXError = 0xe

[03-16_23:36:44:166] requestRegistrationState2 MCC: 460, MNC: 11, PS: Detached, DataCap: UNKNOW

[03-16_23:36:45:158] requestRegistrationState2 MCC: 460, MNC: 11, PS: Attached, DataCap: LTE

[03-16_23:36:45:222] requestRegistrationState2 MCC: 460, MNC: 11, PS: Attached, DataCap: LTE

[03-16_23:36:45:285] requestSetupDataCall WdsConnectionIPv4Handle: 0x871aef60

[03-16_23:36:45:382] requestRegistrationState2 MCC: 460, MNC: 11, PS: Attached, DataCap: LTE

[03-16_23:36:45:413] requestQueryDataCall IPv4ConnectionStatus: CONNECTED

[03-16_23:36:45:478] ifconfig usb0 up

[03-16_23:36:45:496] Fail to access /usr/share/udhcpc/default.script, errno: 2 (No such file or directory)

[03-16_23:36:45:500] busybox udhcpc -f -n -q -t 5 -i usb0

udhcpc: started, v1.30.1

udhcpc: sending discover

udhcpc: sending select for 10.21.127.53

udhcpc: lease of 10.21.127.53 obtained, lease time 7200

[03-16_23:36:46:534] requestRegistrationState2 MCC: 460, MNC: 3, PS: Attached, DataCap: 1XEVDO_REVB

[03-16_23:36:46:566] requestRegistrationState2 MCC: 460, MNC: 3, PS: Attached, DataCap: 1XEVDO_REVB

This means that the dial-up is successful, and of course the IP information can also be viewed.

The next step is to ping to see if you can connect to the Internet.

# ping 211.149.226.120

You can see that the external network can be pinged.

In this way, the device can be used as a mobile gateway, and with a wireless network, it can be used as a wireless router.

Guess you like

Origin blog.csdn.net/m0_46665078/article/details/131245303