The modem module provides the method of reading device information.
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'
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'
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'
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'
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'
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。