Hi,
I need to change network in Android to 2G or 4G only. Is it possible to support it in driver ?
From logs I see that when I change network it respond to request:
use-Rlog/RLOG-RIL RILC: onRequest: SET_PREFERRED_NETWORK_TYPE datalen=4
but nothing happen. It should change mode with AT command AT+QCFG=“nwscanmode”.
RIL Version:
04-14 13:11:15.857 380 380 D use-Rlog/RLOG-RIL RILC: Quectel RIL Version: Quectel_Android_RIL_Driver_V3.3.58
Logs:
04-14 14:14:34.468 1045 1045 D Phone : setPreferredNetworkType: networkType = 11 modemRaf = 130023 rafFromType = 266240 filteredType = 11
04-14 14:14:34.486 1045 1045 D RILJ : [0120]> REQUEST_SET_PREFERRED_NETWORK_TYPE networkType = 11 [SUB0]
04-14 14:14:34.487 395 395 D use-Rlog/RLOG-RIL RILC: onRequest: SET_PREFERRED_NETWORK_TYPE datalen=4
04-14 14:14:34.490 1045 1206 D RILJ : [0120]< REQUEST_SET_PREFERRED_NETWORK_TYPE [SUB0]
04-14 14:14:34.505 1045 1045 I CSST : PrefNetworkNotification: sendMessage() w/values: ,true,-1,false,true
04-14 14:14:34.507 1045 1045 I CSST : canceling notifications: 1000
04-14 14:14:34.508 1045 1045 I CSST : PrefNetworkNotification: sendMessage() w/values: ,true,-1,false,true
04-14 14:14:34.509 1045 1045 I CSST : canceling notifications: 1000
04-14 14:14:34.619 1045 1045 D RILJ : [0121]> RIL_REQUEST_CDMA_QUERY_ROAMING_PREFERENCE [SUB0]
04-14 14:14:34.620 395 395 D use-Rlog/RLOG-RIL RILC: onRequest: CDMA_QUERY_ROAMING_PREFERENCE
04-14 14:14:34.620 395 395 E RILC : responseInt: Invalid response
04-14 14:14:52.965 1045 1045 D Phone : setPreferredNetworkType: networkType = 1 modemRaf = 130023 rafFromType = 32771 filteredType = 1
04-14 14:14:52.970 1045 1045 D RILJ : [0123]> REQUEST_SET_PREFERRED_NETWORK_TYPE networkType = 1 [SUB0]
04-14 14:14:52.971 395 395 D use-Rlog/RLOG-RIL RILC: onRequest: SET_PREFERRED_NETWORK_TYPE datalen=4
04-14 14:14:52.972 1045 1206 D RILJ : [0123]< REQUEST_SET_PREFERRED_NETWORK_TYPE [SUB0]
04-14 14:14:52.978 1045 1045 I CSST : PrefNetworkNotification: sendMessage() w/values: ,true,-1,false,true
04-14 14:14:52.982 1045 1045 I CSST : canceling notifications: 1000
04-14 14:14:52.983 1045 1045 I CSST : PrefNetworkNotification: sendMessage() w/values: ,true,-1,false,true