Quectel connection manager fails to detect SIM card

Hi,I am using quectel-CM manager(version 1.5) for data connection in EC25G module.

I’m able to ping google.com after running quectel-CM.But I removed the SIM card then after some time internet connection was lost and this is ok.After inserting SIM card we should get normal operation back.But this is not happening.I’m unable to ping google.com.

Prints attached below for reference

/********************************************************/

root@apalis-imx6:~# quectel_cm -s jionet &
[1] 655
[11-09_07:49:00:837] Quectel_QConnectManager_Linux_V1.5
[11-09_07:49:00:838] Find /sys/bus/usb/devices/1-1.1.2 idVendor=0x2c7c idProduct=0x125
[11-09_07:49:00:838] Auto find qmichannel = /dev/cdc-wdm0
[11-09_07:49:00:838] Auto find usbnet_adapter = wwan0
[11-09_07:49:00:839] Modem works in QMI mode
[11-09_07:49:00:853] cdc_wdm_fd = 7
root@apalis-imx6:~# [11-09_07:49:00:938] Get clientWDS = 20
[11-09_07:49:00:969] Get clientDMS = 1
[11-09_07:49:01:001] Get clientNAS = 4
[11-09_07:49:01:033] Get clientUIM = 1
[11-09_07:49:01:066] Get clientWDA = 1
[11-09_07:49:01:097] requestBaseBandVersion EC25EFAR06A08M4G
[11-09_07:49:01:226] requestGetSIMStatus SIMStatus: SIM_READY
[11-09_07:49:01:226] requestSetProfile[1] jionet///0
[11-09_07:49:01:289] requestGetProfile[1] jionet///0
[11-09_07:49:01:322] requestRegistrationState2 MCC: 405, MNC: 854, PS: Attached, DataCap: LTE
[11-09_07:49:01:353] requestQueryDataCall IPv4ConnectionStatus: DISCONNECTED
[11-09_07:49:01:353] ifconfig wwan0 down
[11-09_07:49:01:363] ifconfig wwan0 0.0.0.0
[11-09_07:49:01:418] requestSetupDataCall WdsConnectionIPv4Handle: 0x8724c030
[11-09_07:49:01:545] ifconfig wwan0 up
[11-09_07:49:01:560] busybox udhcpc -f -n -q -t 5 -i wwan0
udhcpc: started, v1.31.1
[11-09_07:49:01:578] Clearing IP addresses on wwan0, upping it
udhcpc: sending discover
udhcpc: sending select for 26.8.47.52
udhcpc: lease of 26.8.47.52 obtained, lease time 7200
[11-09_07:49:01:849] Setting IP address 26.8.47.52 on wwan0
[11-09_07:49:01:862] Deleting routers
route: SIOCDELRT: No such process
[11-09_07:49:01:867] Adding router 26.8.47.53
[11-09_07:49:01:881] Recreating /run/connman/resolv.conf
[11-09_07:49:01:881] Adding DNS server 49.45.0.1
[11-09_07:49:05:130] requestRegistrationState2 MCC: 405, MNC: 854, PS: Attached, DataCap: LTE
[11-09_07:49:19:241] requestRegistrationState2 MCC: 405, MNC: 854, PS: Attached, DataCap: LTE
[11-09_07:49:48:683] requestRegistrationState2 MCC: 405, MNC: 854, PS: Attached, DataCap: LTE
[11-09_07:50:07:127] requestRegistrationState2 MCC: 405, MNC: 854, PS: Attached, DataCap: LTE
[11-09_07:50:17:507] requestRegistrationState2 MCC: 405, MNC: 854, PS: Attached, DataCap: LTE
[11-09_07:50:20:458] requestRegistrationState2 MCC: 405, MNC: 854, PS: Attached, DataCap: LTE
[11-09_07:55:30:256] requestQueryDataCall IPv4ConnectionStatus: DISCONNECTED
[11-09_07:55:30:256] ifconfig wwan0 down
[11-09_07:55:30:287] ifconfig wwan0 0.0.0.0
[11-09_07:55:30:351] requestRegistrationState2 MCC: 0, MNC: 0, PS: Detached, DataCap: UNKNOW
[11-09_07:55:31:952] requestRegistrationState2 MCC: 404, MNC: 49, PS: Detached, DataCap: UNKNOW
[11-09_07:55:31:983] requestRegistrationState2 MCC: 404, MNC: 49, PS: Detached, DataCap: UNKNOW

/*************************************************************************/
After removing the SIM “PS: Detached” message is coming and this is ok,after inserting SIM card also same message is showing.
Even with AT commands also SIM card is not detected.

Next i terminated the quectel-CM process and run it again.Here also showing as SIM_ABSENT even though SIM is present.

root@apalis-imx6:~# quectel_cm -s jionet &
[1] 1071
root@apalis-imx6:~# [11-09_07:57:36:289] Quectel_QConnectManager_Linux_V1.5
[11-09_07:57:36:292] Find /sys/bus/usb/devices/1-1.1.2 idVendor=0x2c7c idProduct=0x125
[11-09_07:57:36:292] Auto find qmichannel = /dev/cdc-wdm0
[11-09_07:57:36:292] Auto find usbnet_adapter = wwan0
[11-09_07:57:36:293] Modem works in QMI mode
[11-09_07:57:36:310] cdc_wdm_fd = 7
[11-09_07:57:36:402] Get clientWDS = 20
[11-09_07:57:36:434] Get clientDMS = 1
[11-09_07:57:36:466] Get clientNAS = 4
[11-09_07:57:36:498] Get clientUIM = 1
[11-09_07:57:36:530] Get clientWDA = 1
[11-09_07:57:36:562] requestBaseBandVersion EC25EFAR06A08M4G
[11-09_07:57:36:690] requestGetSIMStatus SIMStatus: SIM_ABSENT
[11-09_07:57:36:690] requestSetProfile[1] jionet///0
[11-09_07:57:36:754] requestGetProfile[1] jionet///0
[11-09_07:57:36:786] requestRegistrationState2 MCC: 404, MNC: 49, PS: Detached, DataCap: UNKNOW
[11-09_07:57:36:818] requestQueryDataCall IPv4ConnectionStatus: DISCONNECTED
[11-09_07:57:36:818] ifconfig wwan0 down
[11-09_07:57:36:848] ifconfig wwan0 0.0.0.0

/***********************************************************************/
Finally After rebooting the Apalis board sim card detected normally

root@apalis-imx6:~# quectel_cm -s jionet &
[1] 633
root@apalis-imx6:~# [11-09_07:58:49:691] Quectel_QConnectManager_Linux_V1.5
[11-09_07:58:49:693] Find /sys/bus/usb/devices/1-1.1.2 idVendor=0x2c7c idProduct=0x125
[11-09_07:58:49:693] Auto find qmichannel = /dev/cdc-wdm0
[11-09_07:58:49:693] Auto find usbnet_adapter = wwan0
[11-09_07:58:49:693] Modem works in QMI mode
[11-09_07:58:49:739] cdc_wdm_fd = 7
[11-09_07:58:49:828] Get clientWDS = 20
[11-09_07:58:49:859] Get clientDMS = 1
[11-09_07:58:49:891] Get clientNAS = 4
[11-09_07:58:49:923] Get clientUIM = 1
[11-09_07:58:49:954] Get clientWDA = 1
[11-09_07:58:49:988] requestBaseBandVersion EC25EFAR06A08M4G
[11-09_07:58:50:114] requestGetSIMStatus SIMStatus: SIM_READY
[11-09_07:58:50:114] requestSetProfile[1] jionet///0
[11-09_07:58:50:179] requestGetProfile[1] jionet///0
[11-09_07:58:50:211] requestRegistrationState2 MCC: 405, MNC: 854, PS: Attached, DataCap: LTE
[11-09_07:58:50:243] requestQueryDataCall IPv4ConnectionStatus: DISCONNECTED
[11-09_07:58:50:243] ifconfig wwan0 down
[11-09_07:58:50:277] ifconfig wwan0 0.0.0.0
[11-09_07:58:50:370] requestSetupDataCall WdsConnectionIPv4Handle: 0x87258ea0
[11-09_07:58:50:499] ifconfig wwan0 up
[11-09_07:58:50:548] busybox udhcpc -f -n -q -t 5 -i wwan0
udhcpc: started, v1.31.1
[11-09_07:58:50:608] Clearing IP addresses on wwan0, upping it
[ 35.033756] usb_otg_vbus: disabling
udhcpc: sending discover
udhcpc: sending select for 25.101.50.133
udhcpc: lease of 25.101.50.133 obtained, lease time 7200
[11-09_07:58:51:016] Setting IP address 25.101.50.133 on wwan0
[11-09_07:58:51:041] Deleting routers
route: SIOCDELRT: No such process
[11-09_07:58:51:073] Adding router 25.101.50.134
[11-09_07:58:51:133] Recreating /run/connman/resolv.conf
[11-09_07:58:51:133] Adding DNS server 49.45.0.1

/***************************************************************/

I think after power cycling the EC25G module only SIM card is detected.

Please suggest me any other solution to detect the SIM card with out doing power cycle.

Thank you in advance.
Regards,
Narayana Swamy

Hello,

SIM detection is disbabled by default. Also it requires your have SIM dection circuit desgined in your hardware.
Enabling commnad: AT+QSIMDET=1,<hign/low>. This command will take effect after reboot.

Best Regards,