Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
34 changes: 17 additions & 17 deletions en-us/api/QuecPythonClasslib.md
Original file line number Diff line number Diff line change
Expand Up @@ -379,7 +379,7 @@ Manually modify DNS information, you can check whether the modification is succe
| Parameter | Type | Description |
| ---------- | ------ | ------------------------------------------------------------ |
| 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. |
| sim_id | int | simid, range:0/1, default 0. |
| sim_id | int | simid, range:0/1, default 0,only SIM0 is supported now。 |
| priDns | string | Primary DNS |
| secDns | string | Secondary DNS |

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

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

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

Send APDU command to SIM card.

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

* Parameter

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

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

| Parameter | Type | Description |
| ----- | -------- | -------------------------------------------- |
| pid | int | PDP context index. |
| iptype | int | IP type. 0-IPV4, 1-IPV6, 2-IPV4 and IPV6. |
| apn | string | apn name, The maximum length is 63 bytes. |
| usrname | string | user name, The maximum length is 63 bytes. |
| password | string | password, The maximum length is 63 bytes. |
| authtype | int | Authentication type,0-No authentication, 1-PAP, 2-CHAP, 3-PAP AND CHAP(just for CATM Platform)|
| simid | int | simid<br>0 : SIM card 1<br/>1 : SIM card 2 |
| Parameter | Type | Description |
| --------- | ------ | ------------------------------------------------------------ |
| pid | int | PDP context index. |
| iptype | int | IP type. 0-IPV4, 1-IPV6, 2-IPV4 and IPV6. |
| apn | string | apn name, The maximum length is 63 bytes. |
| usrname | string | user name, The maximum length is 63 bytes. |
| password | string | password, The maximum length is 63 bytes. |
| authtype | int | Authentication type,0-No authentication, 1-PAP, 2-CHAP, 3-PAP AND CHAP(just for CATM Platform) |
| 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 |

* Return Value

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

| Parameter | Type | Description |
| ----- | -------- | -------------------------------------------- |
| pid | int | PDP context index. |
| simid | int | simid<br>0 : SIM card 1<br/>1 : SIM card 2 |
| Parameter | Type | Description |
| --------- | ---- | ------------------------------------------------------------ |
| pid | int | PDP context index. |
| 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 |

* Return Value

Expand Down
24 changes: 12 additions & 12 deletions zh-cn/api/QuecPythonClasslib.md
Original file line number Diff line number Diff line change
Expand Up @@ -380,7 +380,7 @@ if __name__ == '__main__':
| 参数 | 参数类型 | 参数说明 |
| ---------- | -------- | ------------------------------------------------------------ |
| profileIdx | int | PDP索引,ASR平台范围1-8,展锐平台范围1-7,一般设置为1,设置其他值可能需要专用apn与密码才能设置成功 |
| sim_id | int | simid, 范围:0 or 1 默认为0 |
| sim_id | int | simid, 范围:0 or 1 默认为0,目前仅支持0 |
| priDns | string | 需要设置的自定义DNS服务器 |
| secDns | string | 需要设置的自定义DNS服务器 |

Expand Down Expand Up @@ -412,10 +412,10 @@ if __name__ == '__main__':

* 参数

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

* 返回值

Expand Down Expand Up @@ -789,13 +789,13 @@ bytearray(b'\r\nERROR\r\n\n

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

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

* 参数

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

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

* 返回值

Expand Down Expand Up @@ -2469,10 +2469,10 @@ sms.setCallback(cb)

具体释义如下:

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

* 返回值

Expand Down