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
| authType | int | Authentication type. 0-No authentication, 1-PAP, 2-CHAP, 3-PAP AND CHAP(just for CAT-M platform). |
351
351
| flag | int | This parameter is optional. The default value is 0, indicating that only a user_apn.json file is created to save user APN information. If the value is 1, the user_apn.json file is created to save user APN information, and the APN information is used for PDP context activation immediately. |
@@ -2135,16 +2133,25 @@ Function: Provides APIs to query/set network related performance.
2135
2133
2136
2134
##### Set APN
2137
2135
2138
-
>**net.setApn(apn, simid)**
2136
+
>**net.setApn(\*args)**
2139
2137
2140
2138
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 :
2143
+
The number of parameters is2:net.setApn(apn, simid)
2144
+
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 :
2185
+
The number of parameters is2:net.setApn(pid, simid)
* The BC25PA platform does not support this module function.
2180
2205
2206
+
* Example
2207
+
2208
+
```python
2209
+
>>> net.getApn(0)
2210
+
'3gnet'
2211
+
>>> net.getApn(1,0)
2212
+
(1, '3gnet', 'mia', '123', 2)
2213
+
```
2214
+
2181
2215
2182
2216
2183
2217
##### Obtain CSQ
@@ -2208,7 +2242,7 @@ This function obtains CSQ.
2208
2242
2209
2243
##### Obtain Neighbor Cell Information
2210
2244
2211
-
>**net.getCellInfo()**
2245
+
>**net.getCellInfo(\*args)**
2212
2246
2213
2247
This function obtains the information of Cell information.
2214
2248
@@ -2222,13 +2256,19 @@ case with one Parameter:
2222
2256
2223
2257
* Parameter
2224
2258
2225
-
*None
2259
+
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 :
2260
+
The number of parameters is0:net.getCellInfo()
2261
+
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
2266
2227
2267
* Return Value
2228
2268
2229
2269
* 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 +2369,12 @@ The function obtains the current RAT and the roaming configuration.
2329
2369
|16|GSM_LTE, dual link |
2330
2370
|17|UMTS_LTE, dual link. Not supported inEC100YandEC200S|
2331
2371
|18|GSM_UMTS_LTE, dual link. Not supported inEC100YandEC200S|
2372
+
|19|CATM, BG95 supported |
2373
+
|20|GSM_CATM, BG95 supported |
2374
+
|21|CATNB, BG95 supported |
2375
+
|22|GSM_CATNB, BG95 supported |
2376
+
|23|CATM_CATNB, BG95 supported |
2377
+
|24|GSM_CATM_CATNB, BG95 supported |
2332
2378
2333
2379
* Example
2334
2380
@@ -2397,6 +2443,24 @@ This function obtains the network mode.
2397
2443
|9| E TRAN A |
2398
2444
|10|NONE|
2399
2445
2446
+
* Note:For CATM platforms, see the following table
2447
+
2448
+
| Value|ACT Mode |
2449
+
|----|------------------|
2450
+
|0|GSM|
2451
+
|1|GSMCOMPACT|
2452
+
|2|UTRAN|
2453
+
|3|GSM wEGPRS |
2454
+
|4|UTRAN wHSDPA |
2455
+
|5|UTRAN wHSUPA |
2456
+
|6|UTRAN wHSDPA HSUPA|
2457
+
|7|E_UTRAN|
2458
+
|8|UTRANHSPAP|
2459
+
|9|E_UTRAN_CA|
2460
+
|10|E_UTRAN_NBIOT|
2461
+
|11|E_UTRAN_EMTC|
2462
+
|12|NONE|
2463
+
2400
2464
* Example
2401
2465
2402
2466
```python
@@ -2408,7 +2472,7 @@ This function obtains the network mode.
2408
2472
2409
2473
##### Obtain the Signal Strength
2410
2474
2411
-
>**net.getSignal()**
2475
+
>**net.getSignal(\*args)**
2412
2476
2413
2477
This function obtains the signal strength.
2414
2478
@@ -2422,13 +2486,19 @@ case with one Parameter:
2422
2486
2423
2487
* Parameter
2424
2488
2425
-
*None
2489
+
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 :
2490
+
The number of parameters is0:net.getCellInfo()
2491
+
The number of parameters is1:net.getCellInfo(sinr_enable)
@@ -2535,7 +2605,7 @@ This function obtains the registration state.
2535
2605
2536
2606
* 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
2607
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])`
|MODE|int|I2C working mode:<br />I2C.STANDARD_MODE : 0 Standard mode<br />I2C.FAST_MODE : 1 Fast mode |
5975
6061
5976
6062
- Pin Correspondence
@@ -11060,13 +11146,13 @@ $GNGSA,A,3,31,3
11060
11146
11061
11147
Module function: the module provides a bare flash area and a special read-write interface for customers to store important information, and the information will not be lost after burning the firmware (burning the firmware without this function cannot be guaranteed not to be lost). Provide a storage and read interface, not a delete interface.
11062
11148
11063
-
>At present, only ec600n and ec600s series projects are supported
11149
+
At present, only ec600n and ec600s series projects are supported
0 commit comments