Skip to content

Commit 770954a

Browse files
[dataCall][net][sim]添加除1606平台支持SIM双卡simId可以为0/1,其它平台仅支持simId=0说明
1 parent bb0ae13 commit 770954a

File tree

2 files changed

+29
-29
lines changed

2 files changed

+29
-29
lines changed

en-us/api/QuecPythonClasslib.md

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -379,7 +379,7 @@ Manually modify DNS information, you can check whether the modification is succe
379379
| Parameter | Type | Description |
380380
| ---------- | ------ | ------------------------------------------------------------ |
381381
| profileIdx | int | PPDP context index. Range: 1-8 [volte version with the largest default PID is used to register IMS, please do not repeat the operation]. It is generally set to 1, if set as 2-8, the private APN and password may be required. |
382-
| sim_id | int | simid, range:0/1, default 0. |
382+
| sim_id | int | simid, range:0/1, default 0,only SIM0 is supported now。 |
383383
| priDns | string | Primary DNS |
384384
| secDns | string | Secondary DNS |
385385

@@ -411,7 +411,7 @@ Get APN Information of user. If only simID is specified, the default APN is obta
411411

412412
| Parameter | Type | Description |
413413
| ---------- | -------- | ------------------------------------------------------------ |
414-
| simid | int | simid, range:0/1 |
414+
| simid | int | simid, range:0/1;Only 1606 platform supports 0 or 1, other platforms can only be 0. |
415415
| profileIdx | int | PDP context index. Range for ASR : 1-8,range for unisoc : 1-7 |
416416

417417
* Return Value
@@ -764,13 +764,13 @@ Note: The prerequisite for successfully obtaining IMSI, ICCID, and phone number
764764

765765
Send APDU command to SIM card.
766766

767-
Note : Currently, only the ASR-1601 platform supports this function.
767+
Note : Currently, only the ASR-1603 platform supports this function.
768768

769769
* Parameter
770770

771771
| Parameter | Type | Description |
772772
| --------- | ------ | ------------------------------------------------------------ |
773-
| simId | int | SIM card id, range : 0 or 1 |
773+
| simId | int | SIM card id, range : 0 or 1;only SIM0 is supported now |
774774
| cmd | string | command passed on by the MT to the SIM in the format as described in GSM 51.011 |
775775

776776
* Return Value
@@ -2380,15 +2380,15 @@ This function sets APN. After setting, you need to restart or switch to mode 0 a
23802380
The number of parameters is 2:net.setApn(apn, simid)
23812381
The number of parameters is 7:net.setApn(pid, iptype, apn, usrname, password, authtype, simid)
23822382

2383-
| Parameter | Type | Description |
2384-
| ----- | -------- | -------------------------------------------- |
2385-
| pid | int | PDP context index. |
2386-
| iptype | int | IP type. 0-IPV4, 1-IPV6, 2-IPV4 and IPV6. |
2387-
| apn | string | apn name, The maximum length is 63 bytes. |
2388-
| usrname | string | user name, The maximum length is 63 bytes. |
2389-
| password | string | password, The maximum length is 63 bytes. |
2390-
| authtype | int | Authentication type,0-No authentication, 1-PAP, 2-CHAP, 3-PAP AND CHAP(just for CATM Platform)|
2391-
| simid | int | simid<br>0 : SIM card 1<br/>1 : SIM card 2 |
2383+
| Parameter | Type | Description |
2384+
| --------- | ------ | ------------------------------------------------------------ |
2385+
| pid | int | PDP context index. |
2386+
| iptype | int | IP type. 0-IPV4, 1-IPV6, 2-IPV4 and IPV6. |
2387+
| apn | string | apn name, The maximum length is 63 bytes. |
2388+
| usrname | string | user name, The maximum length is 63 bytes. |
2389+
| password | string | password, The maximum length is 63 bytes. |
2390+
| authtype | int | Authentication type,0-No authentication, 1-PAP, 2-CHAP, 3-PAP AND CHAP(just for CATM Platform) |
2391+
| simid | int | simid,(Only 1606 platform supports 0 or 1, other platforms can only be 0<br>0 : SIM card 1<br/>1 : SIM card 2 |
23922392

23932393
* Return Value
23942394

@@ -2422,10 +2422,10 @@ This function obtains the current APN.
24222422
The number of parameters is 2:net.setApn(pid, simid)
24232423
The number of parameters is 1:net.setApn(simid)
24242424

2425-
| Parameter | Type | Description |
2426-
| ----- | -------- | -------------------------------------------- |
2427-
| pid | int | PDP context index. |
2428-
| simid | int | simid<br>0 : SIM card 1<br/>1 : SIM card 2 |
2425+
| Parameter | Type | Description |
2426+
| --------- | ---- | ------------------------------------------------------------ |
2427+
| pid | int | PDP context index. |
2428+
| simid | int | simid, (Only 1606 platform supports 0 or 1, other platforms can only be 0)<br>0 : SIM card 1<br/>1 : SIM card 2 |
24292429

24302430
* Return Value
24312431

zh-cn/api/QuecPythonClasslib.md

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -380,7 +380,7 @@ if __name__ == '__main__':
380380
| 参数 | 参数类型 | 参数说明 |
381381
| ---------- | -------- | ------------------------------------------------------------ |
382382
| profileIdx | int | PDP索引,ASR平台范围1-8,展锐平台范围1-7,一般设置为1,设置其他值可能需要专用apn与密码才能设置成功 |
383-
| sim_id | int | simid, 范围:0 or 1 默认为0 |
383+
| sim_id | int | simid, 范围:0 or 1 默认为0,目前仅支持0 |
384384
| priDns | string | 需要设置的自定义DNS服务器 |
385385
| secDns | string | 需要设置的自定义DNS服务器 |
386386

@@ -412,10 +412,10 @@ if __name__ == '__main__':
412412

413413
* 参数
414414

415-
| 参数 | 参数类型 | 参数说明 |
416-
| ---------- | -------- | -------------------------------------------------- |
417-
| simid | int | simid,范围:0/1 |
418-
| profileIdx | int | 可选参数,PDP索引,ASR平台范围1-8,展锐平台范围1-7 |
415+
| 参数 | 参数类型 | 参数说明 |
416+
| ---------- | -------- | ------------------------------------------------------ |
417+
| simid | int | simid,范围:0/1;仅1606平台支持0/1双卡,其它平台只有0 |
418+
| profileIdx | int | 可选参数,PDP索引,ASR平台范围1-8,展锐平台范围1-7 |
419419

420420
* 返回值
421421

@@ -789,13 +789,13 @@ bytearray(b'\r\nERROR\r\n\n
789789

790790
将命令APDU通过modem传递给SIM卡,然会返回响应APDU
791791

792-
注意:当前仅ASR-1601平台支持
792+
注意:当前仅ASR-1603平台支持
793793

794794
* 参数
795795

796796
| 参数 | 参数类型 | 参数说明 |
797797
| ----- | -------- | ------------------------------------------------------------ |
798-
| simId | int | sim id, 范围:0 or 1 |
798+
| simId | int | sim id, 范围:0 or 1 ,目前仅支持0 |
799799
| cmd | string | command passed on by the MT to the SIM in the format as described in GSM 51.011 |
800800

801801
* 返回值
@@ -2434,7 +2434,7 @@ sms.setCallback(cb)
24342434
| usrname | string | 用户名,可为空,最大长度不超过64字节 |
24352435
| password| string | 用户名,可为空,最大长度不超过64字节 |
24362436
| authtype| int | 加密方式,0-不加密,1-PAP2-CHAP3-PAP AND CHAP(CATM平台支持)|
2437-
| simid | int | simid<br> 0 -1<br> 1 -2 |
2437+
| simid | int | simid,(仅1606平台支持0/1双卡,其它平台只有0)<br> 0 -1 <br> 1 -2 |
24382438

24392439
* 返回值
24402440

@@ -2469,10 +2469,10 @@ sms.setCallback(cb)
24692469

24702470
具体释义如下:
24712471

2472-
| 参数 | 参数类型 | 参数说明 |
2473-
| ----- | -------- | ------------------------------- |
2474-
| pid | int | PDP索引 |
2475-
| simid | int | simid<br/> 0 -1<br/> 1 -2 |
2472+
| 参数 | 参数类型 | 参数说明 |
2473+
| ----- | -------- | ------------------------------------------------------------ |
2474+
| pid | int | PDP索引 |
2475+
| simid | int | simid,(仅1606平台支持0/1双卡,其它平台只有0)<br/> 0 -1 <br/> 1 -2 |
24762476

24772477
* 返回值
24782478

0 commit comments

Comments
 (0)