当前位置:网站首页>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
边栏推荐
- Skilled use of slicing operations
- Laravel log channel 分组配置
- Day_04 傳智健康項目-預約管理-套餐管理
- Plot+seaborn+folium: a visual exploration of Abbey's rental housing data
- The softing datafeed OPC suite stores Siemens PLC data in an Oracle Database
- Link of Baidu URL Parameters? Recherche sur le chiffrement et le décryptage des paramètres d'URL (exemple de Code)
- 射频基础理论(dB)
- LeetCode笔记:Weekly Contest 298
- How to maintain secure encryption of email communication with FDA?
- 30 data visualization tips that can not be ignored
猜你喜欢

同步开关电源降低EMI布局 dv/dt di/dt

中台库存中的实仓与虚仓的业务逻辑设计

Softing dataFEED OPC Suite将西门子PLC数据存储到Oracle数据库中

Jour 13 Projet de santé mentale - chapitre 13

Day_03 传智健康项目-预约管理-检查组管理

Day_ 06 smart health project - mobile terminal development - physical examination appointment

图解 Google V8 # 17:消息队列:V8是怎么实现回调函数的?

haas506 2.0开发教程-高级组件库-modem.sms(仅支持2.2以上版本)

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

从 WAN 到 SD-WAN 边缘设备的网络架构
随机推荐
Day_ 06 smart health project - mobile terminal development - physical examination appointment
解析创客教育中的造物原理
English语法_形容词比较级 - 3级变化
279.完全平方数
下载oss文件并修改文件名
Day_07 传智健康项目-Freemarker
Day_ 03 smart communication health project - appointment management - inspection team management
Basic RF theory (DB)
haas506 2.0开发教程-高级组件库-modem.voiceCall(仅支持2.2以上版本)
2022-01-12: give a positive array arr, length N, subscript 0~n-1, a
C语言去除字符串尾部的换行(或其他字符)
Docker实战 -- 部署Redis集群与部署微服务项目
Detailed explanation of redis persistence, master-slave and sentry architecture
百度URL参数之LINK?URL参数加密解密研究(代码实例)
C# wpf 附加属性实现界面上定义装饰器
【Leetcode】431. Encode n-ary tree to binary tree (difficult)
C language removes line breaks (or other characters) at the end of strings
Fastdata pole | insight report on e-commerce consumption of young Chinese users 2021
Dora's Google SEO tutorial (1) SEO novice guide: establishment of preliminary optimization thinking
射频内容学习