27 Star 5 Fork 54

qpy-doc-center / teedoc_with_qpydoc

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
modem.md 1.64 KB
一键复制 编辑 原始数据 按行查看 历史

modem - Device

The modem module provides the method of reading device information.

Get Device IMEI

modem.getDevImei

modem.getDevImei()

Gets the device IMEI.

Return Value

If successful, it returns the device IMEI in string type. If failed, it returns the integer value -1.

Example

>>> import modem
>>> modem.getDevImei()
'866327040830317'

Get Device Model

modem.getDevModel

modem.getDevModel()

Gets the device model.

Return Value

If successful, it returns the device model in string type. If failed, it returns the integer value -1.

Example

>>> modem.getDevModel()
'EC100Y'

Get Device Serial number

modem.getDevSN

modem.getDevSN()

Gets the device serial number.

Return Value

If successful, it returns the device serial number in string type. If failed, it returns the integer value -1.

Example

>>> modem.getDevSN()
'D1Q20GM050038341P'

Get Firmware Version

modem.getDevFwVersion

modem.getDevFwVersion()

Gets the device firmware version.

Return Value

If successful, it returns the device firmware version in string type. If failed, it returns the integer value -1.

Example

>>> modem.getDevFwVersion()
'EC100YCNAAR01A01M16_OCPU_PY'

Get Device Manufacture ID

modem.getDevProductId

modem.getDevProductId()

Gets the device manufacture ID.

Return Value

If successful, it returns the device manufacture ID in string type. If failed, it returns the integer value -1.

Example

>>> modem.getDevProductId()
'Quectel'
1
https://gitee.com/qpy-doc-center/teedoc_with_qpydoc.git
git@gitee.com:qpy-doc-center/teedoc_with_qpydoc.git
qpy-doc-center
teedoc_with_qpydoc
teedoc_with_qpydoc
main

搜索帮助