quectel-CM, Network is unreachable

I am trying to use the EC21 dev kit on an embedded Android 10/kernel 4.19 STM32MP157F-ev1 board.
I have compiled both the GobiNet and QMI kernel modules and quectel-CM. For a dhcpc, I am using dhcptool. When I run quectel-CM I get:

[09-29_16:04:32:325] Quectel_QConnectManager_Linux_V1.5
[09-29_16:04:32:331] Find /sys/bus/usb/devices/2-1.1 idVendor=0x2c7c idProduct=0x121
[09-29_16:04:32:332] Auto find qmichannel = /dev/cdc-wdm0
[09-29_16:04:32:332] Auto find usbnet_adapter = wwan0
[09-29_16:04:32:333] Modem works in QMI mode
[09-29_16:04:32:421] cdc_wdm_fd = 7
[09-29_16:04:32:500] Get clientWDS = 5
[09-29_16:04:32:532] Get clientDMS = 1
[09-29_16:04:32:564] Get clientNAS = 2
[09-29_16:04:32:596] Get clientUIM = 2
[09-29_16:04:32:628] Get clientWDA = 1
[09-29_16:04:32:660] requestBaseBandVersion EG21GGBR07A09M1G
[09-29_16:04:32:788] requestGetSIMStatus SIMStatus: SIM_READY
[09-29_16:04:32:820] requestGetProfile[1] wireless.twilio.com///2
[09-29_16:04:32:852] requestRegistrationState2 MCC: 310, MNC: 410, PS: Attached, DataCap: LTE
[09-29_16:04:32:884] requestQueryDataCall IPv4ConnectionStatus: DISCONNECTED
[09-29_16:04:32:885] ifconfig wwan0 down
[09-29_16:04:32:990] ifconfig wwan0 0.0.0.0
[09-29_16:04:33:108] requestSetupDataCall WdsConnectionIPv4Handle: 0x86e96a10

[09-29_16:04:33:237] ifconfig wwan0 up
[09-29_16:04:33:334] /vendor/dhcpdbg wwan0
/vendor/dhcpdbg: dhcptool wwan0: do_dhcp failed: Network is unreachable

I have an ip address but can’t ping my gateway. Can anyone help?

Firstly, We won’t use quectel-CM on Android OS. Does your platform support RIL and telephony service.

Btw,
/vendor/dhcpdbg: dhcptool wwan0: do_dhcp failed: Network is unreachable
You need to usb usbmon to catch the dhcp request.

i am trying to send data on remote server using example tcp.c that you provide but i get this error kindly correct me .i am using quectel EC21quectelerror

It is another topic.
You can start this topic on Latest Technical Subjects/Open Solution topics - Quectel Forums

Sami_Tahir