当前位置:网站首页>Haas506 2.0 development tutorial - Advanced Component Library -modem Sim (only supports versions above 2.2)
Haas506 2.0 development tutorial - Advanced Component Library -modem Sim (only supports versions above 2.2)
2022-06-23 06:37:00 【Zhiyunfu】
haas506 2.0 Development tutorial - Advanced component library -modem.sim
1. obtain sim Card information
Case description :
- The development board networking needs to be inserted SIM card
- obtain ICCID、IMSI Etc .
main.py
from modem import sim
print(" obtain SIM Card status :",sim.getStatus())
print("ICCID:",sim.getIccid())
print("IMSI:",sim.getImsi())
Log output
obtain SIM Card status : 0
ICCID: 89860622310046855807
IMSI: 460065201385580
2.Class-sim
| getStatus | getIccid | getImsi |
|---|---|---|
| obtain SIM Card status | obtain ICCID | obtain IMSI |
sim - SIM Card function
- The function prototype :
modem.sim()
Parameter description : nothing
Return value : sim Object created successfully , return Name(sim)
getImsi - obtain IMSI( International mobile user identification number )
The functionality : obtain IMSI( International mobile user identification number )
The function prototype :
sim.getImsi()
Parameter description : nothing
Return value : return IMSI
getIccid - obtain ICCID( IC card identification number )
The functionality : obtain ICCID( IC card identification number )
The function prototype :
sim.getIccid()
Parameter description : nothing
Return value : return ICCID
getStatus - obtain SIM Card status
The functionality : obtain SIM Card status
The function prototype :
sim.getStatus()
Parameter description : nothing
Return value : Return value =0,sim The card is normal , Return value =-1,sim Abnormal card
边栏推荐
- What is a PDCA cycle? How to integrate PDCA cycle and OKR
- Day_02 传智健康项目-预约管理-检查项管理
- The softing datafeed OPC suite stores Siemens PLC data in an Oracle Database
- 索引——MySQL
- There are so many code comments! I laughed
- mysql如何将日期转为数字
- haas506 2.0開發教程-高級組件庫-modem.sms(僅支持2.2以上版本)
- RF content learning
- Possible pits in mongodb project
- 程序员的真实想法 | 每日趣闻
猜你喜欢

Redis sentry

Basic RF theory (DB)

sklearn sklearn中的模型调参利器 gridSearchCV(网格搜索)

聚焦智慧城市,华为携手中科星图共同开拓数字化新蓝海

Docker实战 -- 部署Redis集群与部署微服务项目

11、 Realization of textile fabric off shelf function

华为软件测试笔试真题之变态逻辑推理题

Illustration Google V8 18: asynchronous programming (I): how does V8 implement micro tasks?

Day_ 09 smart health project - mobile terminal development - Mobile quick login and permission control

Machine learning 3-ridge regression, Lasso, variable selection technique
随机推荐
MySQL ON DUPLICATE KEY 和 PgSQL ON CONFLICT(主键) 处理主键冲突
Day_07 传智健康项目-Freemarker
【踩坑记录】数据库连接未关闭连接,释放资源的坑
中台库存中的实仓与虚仓的业务逻辑设计
Laravel log channel 分组配置
聚焦智慧城市,华为携手中科星图共同开拓数字化新蓝海
haas506 2.0开发教程-高级组件库-modem.voiceCall(仅支持2.2以上版本)
CPU的功能和基本结构
Day_02 传智健康项目-预约管理-检查项管理
There are so many code comments! I laughed
图解 Google V8 # 17:消息队列:V8是怎么实现回调函数的?
Day_04 传智健康项目-预约管理-套餐管理
百度URL参数之LINK?URL参数加密解密研究(代码实例)
Repeated DNA sequences for leetcode topic resolution
Day_06 传智健康项目-移动端开发-体检预约
数值计算方法 Chapter7. 计算矩阵的特征值和特征向量
[resolved] "the unity environment took too long to respond. make sure that: \n“
Gridsearchcv (grid search), a model parameter adjuster in sklearn
C语言 踩坑:文档编码错误,导致base64中文编码错误
Softing dataFEED OPC Suite将西门子PLC数据存储到Oracle数据库中