You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -2135,16 +2135,25 @@ Function: Provides APIs to query/set network related performance.
2135
2135
2136
2136
##### Set APN
2137
2137
2138
-
>**net.setApn(apn, simid)**
2138
+
>**net.setApn(\*args)**
2139
2139
2140
2140
This function sets APN. After setting, you need to restart or switch to mode 0and then mode 1 through the `net.setmodemFun (mode)` interface for the setting to take effect.
This APIis a variable parameter function in Qualcomm/ASR_1803s/Unisoc(excluding EG915) platform, and the number of parameters is2or7. The number of parameters in other platforms is fixed at 2 :
2145
+
The number of parameters is2:net.setApn(apn, simid)
2146
+
The number of parameters is7:net.setApn(pid, iptype, apn, usrname, password, authtype, simid)
This APIis a variable parameter function in Qualcomm/ASR_1803s/Unisoc(excluding EG915) platform, and the number of parameters is1or2. The number of parameters in other platforms is fixed at 1 :
2187
+
The number of parameters is2:net.setApn(pid, simid)
* The BC25PA platform does not support this module function.
2180
2207
2208
+
* Example
2209
+
2210
+
```python
2211
+
>>> net.getApn(0)
2212
+
'3gnet'
2213
+
>>> net.getApn(1,0)
2214
+
(1, '3gnet', 'mia', '123', 2)
2215
+
```
2216
+
2181
2217
2182
2218
2183
2219
##### Obtain CSQ
@@ -2208,7 +2244,7 @@ This function obtains CSQ.
2208
2244
2209
2245
##### Obtain Neighbor Cell Information
2210
2246
2211
-
>**net.getCellInfo()**
2247
+
>**net.getCellInfo(\*args)**
2212
2248
2213
2249
This function obtains the information of Cell information.
2214
2250
@@ -2222,13 +2258,19 @@ case with one Parameter:
2222
2258
2223
2259
* Parameter
2224
2260
2225
-
*None
2261
+
This APIis a variable parameter function inBC25 platform, and the number of parameters is0or1. The number of parameters in other platforms is fixed at 0 :
2262
+
The number of parameters is0:net.getCellInfo()
2263
+
The number of parameters is1:net.getCellInfo(sinr_enable)
| enable |int|range:0/1, 0:disable to get sinr 1:enable to get sinr|
2226
2268
2227
2269
* Return Value
2228
2270
2229
2271
* If the execution is failed, -1is returned. If the execution is successful, the list of neighbor cell information including RATs GSM/UMTS/LTE are returned in the following format. And when the neighbor cell information for one RATis null, the corresponding list returned is null.
@@ -2329,6 +2371,12 @@ The function obtains the current RAT and the roaming configuration.
2329
2371
|16|GSM_LTE, dual link |
2330
2372
|17|UMTS_LTE, dual link. Not supported inEC100YandEC200S|
2331
2373
|18|GSM_UMTS_LTE, dual link. Not supported inEC100YandEC200S|
2374
+
|19|CATM, BG95 supported |
2375
+
|20|GSM_CATM, BG95 supported |
2376
+
|21|CATNB, BG95 supported |
2377
+
|22|GSM_CATNB, BG95 supported |
2378
+
|23|CATM_CATNB, BG95 supported |
2379
+
|24|GSM_CATM_CATNB, BG95 supported |
2332
2380
2333
2381
* Example
2334
2382
@@ -2397,6 +2445,24 @@ This function obtains the network mode.
2397
2445
|9| E TRAN A |
2398
2446
|10|NONE|
2399
2447
2448
+
* Note:For CATM platforms, see the following table
2449
+
2450
+
| Value|ACT Mode |
2451
+
|----|------------------|
2452
+
|0|GSM|
2453
+
|1|GSMCOMPACT|
2454
+
|2|UTRAN|
2455
+
|3|GSM wEGPRS |
2456
+
|4|UTRAN wHSDPA |
2457
+
|5|UTRAN wHSUPA |
2458
+
|6|UTRAN wHSDPA HSUPA|
2459
+
|7|E_UTRAN|
2460
+
|8|UTRANHSPAP|
2461
+
|9|E_UTRAN_CA|
2462
+
|10|E_UTRAN_NBIOT|
2463
+
|11|E_UTRAN_EMTC|
2464
+
|12|NONE|
2465
+
2400
2466
* Example
2401
2467
2402
2468
```python
@@ -2408,7 +2474,7 @@ This function obtains the network mode.
2408
2474
2409
2475
##### Obtain the Signal Strength
2410
2476
2411
-
>**net.getSignal()**
2477
+
>**net.getSignal(\*args)**
2412
2478
2413
2479
This function obtains the signal strength.
2414
2480
@@ -2422,13 +2488,19 @@ case with one Parameter:
2422
2488
2423
2489
* Parameter
2424
2490
2425
-
*None
2491
+
This APIis a variable parameter function inBC25 platform, and the number of parameters is0or1. The number of parameters in other platforms is fixed at 0 :
2492
+
The number of parameters is0:net.getCellInfo()
2493
+
The number of parameters is1:net.getCellInfo(sinr_enable)
@@ -2535,7 +2607,7 @@ This function obtains the registration state.
2535
2607
2536
2608
* If the execution is failed, -1is returned. If the execution is successful, a tupleis returned in the following format. The tuple contains voice and network registration information. The tuple starting with'voice\_' indicates voice registration information, and the tuple starting with'data\_' indicates network registration information:
2537
2609
2538
-
`([voice_state, voice_lac, voice_cid, voice_rat, voice_reject_cause, voice_psc], [data_state, data _lac, data _cid, data _rat, data _reject_cause, data _psc])`
0 commit comments