Skip to content

Commit fe0e54b

Browse files
Jayceon Fu(付俊臣)Jayceon Fu(付俊臣)
authored andcommitted
修改modem模块格式不统一问题
1 parent 49272de commit fe0e54b

File tree

2 files changed

+31
-22
lines changed

2 files changed

+31
-22
lines changed

en-us/api/QuecPythonClasslib.md

Lines changed: 12 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4606,10 +4606,13 @@ It closes ADC.
46064606

46074607
* Return 0 if the execution is successful, otherwise return -1.
46084608

4609+
4610+
46094611
##### USB
46104612

46114613
It provides USB plug detection interface.
4612-
Note: The BC25PA platform does not support this module function.
4614+
Note : Currently only EC600S EC600N/EC800N/EC200U/EC600U platform support this function.
4615+
46134616
###### Create an USB Object
46144617

46154618
> from misc import USB
@@ -4656,7 +4659,7 @@ Note: The BC25PA platform does not support this module function.
46564659

46574660
* Return 0 if the execution is successful, otherwise return -1.
46584661

4659-
Example
4662+
* Example
46604663

46614664
```python
46624665
from misc import USB
@@ -4672,11 +4675,13 @@ def usb_callback(conn_status):
46724675
usb.setCallback(usb_callback)
46734676
```
46744677

4678+
4679+
46754680
##### USBNET
46764681

46774682
It provides the USB network adapter function.
46784683

4679-
NOTECurrently, only the ASR platform supports it.
4684+
NOTE : Currently only EC600S EC600N/EC800N/EC200U/EC600U platform support this function.
46804685

46814686
###### Setting the USBNET working type (Take effect after restart)
46824687

@@ -4686,7 +4691,7 @@ USBNET.set_worktype(type)
46864691

46874692
| Parameter | Type | Description |
46884693
| --------- | ---- | ------------------------------------------------------------ |
4689-
| type | int | USBNET working type Type_ECM – ECM mode Type_RNDIS – RNDIS mode |
4694+
| type | int | USBNET working type<br>Type_ECM – ECM mode <br>Type_RNDIS – RNDIS mode |
46904695

46914696
- Return Value
46924697

@@ -4780,6 +4785,8 @@ from misc import USBNET
47804785
USBNET.open()
47814786
```
47824787

4788+
4789+
47834790
#### modem - Related Device
47844791

47854792
Function: This module gets device information.
@@ -4794,10 +4801,8 @@ It gets IMEI of the device.
47944801

47954802
* None
47964803

4797-
Return Value
4798-
4804+
* Return Value
47994805
* Return the IMEI of string type of the device if the execution is successful, otherwise return -1.
4800-
48014806
* Example
48024807

48034808
```python

zh-cn/api/QuecPythonClasslib.md

Lines changed: 19 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -4873,7 +4873,7 @@ BC25PA平台和EC200U/EC600U平台不支持此方法。
48734873

48744874
* 返回值
48754875

4876-
int类型电压值
4876+
返回整形电压值
48774877

48784878
* 示例
48794879

@@ -5159,11 +5159,13 @@ ADC功能初始化。
51595159

51605160
0关闭成功,-1关闭失败。
51615161

5162+
5163+
51625164
##### USB
51635165

51645166
提供USB插拔检测接口。
51655167

5166-
注意:BC25PA平台不支持此模块
5168+
注意:当前仅EC600S/EC600N/EC800N/EC200U/EC600U平台支持该功能
51675169

51685170
###### 创建USB对象
51695171

@@ -5213,7 +5215,7 @@ ADC功能初始化。
52135215

52145216
注册成功返回整型0,失败返回整型-1
52155217

5216-
示例
5218+
* 示例
52175219

52185220
```python
52195221
from misc import USB
@@ -5229,11 +5231,13 @@ def usb_callback(conn_status):
52295231
usb.setCallback(usb_callback)
52305232
```
52315233

5234+
5235+
52325236
##### USBNET
52335237

52345238
提供USB网卡功能
52355239

5236-
注意:目前仅ASR和展锐平台支持
5240+
注意:当前仅EC600S/EC600N/EC800N/EC200U/EC600U平台支持该功能。
52375241

52385242
###### 设置USB网卡工作类型(重启生效)
52395243

@@ -5353,11 +5357,11 @@ USBNET.open()
53535357

53545358
* 参数
53555359

5356-
5360+
53575361

5358-
返回值
5362+
* 返回值
53595363

5360-
成功返回string类型设备的IMEI,失败返回整型值-1
5364+
成功返回string类型设备的IMEI,失败返回整型值-1
53615365

53625366
* 示例
53635367

@@ -5377,11 +5381,11 @@ USBNET.open()
53775381

53785382
* 参数
53795383

5380-
5384+
53815385

53825386
* 返回值
53835387

5384-
成功返回string类型设备型号,失败返回整型值-1
5388+
成功返回string类型设备型号,失败返回整型值-1
53855389

53865390
* 示例
53875391

@@ -5400,11 +5404,11 @@ USBNET.open()
54005404

54015405
* 参数
54025406

5403-
5407+
54045408

54055409
* 返回值
54065410

5407-
成功返回string类型设备序列号,失败返回整型值-1
5411+
成功返回string类型设备序列号,失败返回整型值-1
54085412

54095413
* 示例
54105414

@@ -5423,11 +5427,11 @@ USBNET.open()
54235427

54245428
* 参数
54255429

5426-
5430+
54275431

54285432
* 返回值
54295433

5430-
成功返回string类型固件版本号,失败返回整型值-1
5434+
成功返回string类型固件版本号,失败返回整型值-1
54315435

54325436
* 示例
54335437

@@ -5446,11 +5450,11 @@ USBNET.open()
54465450

54475451
* 参数
54485452

5449-
5453+
54505454

54515455
* 返回值
54525456

5453-
成功返回设备制造商ID,失败返回整型值-1
5457+
成功返回设备制造商ID,失败返回整型值-1
54545458

54555459
* 示例
54565460

0 commit comments

Comments
 (0)