当前位置:网站首页>MTK6225-紧急电话
MTK6225-紧急电话
2022-08-01 09:35:00 【51CTO】
开机后,检测SIM卡错误(无卡),进入:
EntryScrnSimErrorScreen()
ShowCategory123Screen()显示信息:插入SIM卡。
左软件:选项
右软件:紧急
设置按键响应:
1.按下右软件,直接拨预先设置的紧急号码。
进入:ShowMakeSOSCallScr(),
在这个函数中,首先预先设置:
AnsiiToUnicodeString(g_idle_context.DialPadCallBuffer, "112");
然后显示:ShowCategory165Screen():拨紧急号码?
注册响应:SetLeftSoftkeyFunction(EntryScrEmergencyCallDialing, KEY_EVENT_UP);
SetRightSoftkeyFunction(GoBackHistory, KEY_EVENT_UP);
按下左软件(选择“是”),进入:
EntryScrEmergencyCallDialing()
if (CheckValidEmergencyNo1(g_idle_context.DialPadCallBuffer))判断是否是紧急号码
如果是紧急号码,而且网络可用,就调用:MakeCall()拨号。
如果不是紧急号码,就显示错误信息。
2.手动输入号码,然后按下【SEND】键拨号(只能是紧急号码才能响应),进入:
HandleInsertSIMScrDigitEntry()
首先清空号码缓冲区:sprintf(g_idle_context.DialPadCallBuffer, "");
调用:DialSOSNumber()
显示输入的号码,设置左软件:保存,右软件:返回。
注册案件响应:
SetKeyHandler(EntryScrEmergencyCallDialing, KEY_SEND,
KEY_EVENT_UP);
SetCategory16RightSoftkeyFunction(GoBackHistory, KEY_EVENT_UP);
SetLeftSoftkeyFunction(IdleDialPadSavePhoneBook, KEY_EVENT_UP);
此时,如果按下[SEDN]键,就进入:EntryScrEmergencyCallDialing()。判断号码,然后拨号。
OVER!
边栏推荐
- Meeting OA (Upcoming Meetings & All Meetings)
- 50.【动态二维数组的运用】
- 指针的介绍及应用
- 【面试:并发篇39:多线程:线程池】ThreadPoolExecutor类-提交、停止
- redis
- C language game - minesweeper
- What's up with VS "Cannot find or open PDB file"?How to solve
- Manual upgrade and optimization tutorial of Lsky Pro Enterprise Edition
- Mysql数据库的部署以及初始化步骤
- Message queue interview latest finishing (2022)
猜你喜欢
What's up with VS "Cannot find or open PDB file"?How to solve
解析MySQL数据库:“SQL优化”与“索引优化”
various network protocols
可视化——Superset安装与部署
net stop/start mysql80 拒绝访问
How to ensure the consistency of database and cache data?
[Software Architecture Mode] The difference between MVVM mode and MVC mode
【数据集】各类绝缘子、鸟巢及防震锤数据集汇总
[Beyond programming] When the fig leaf is lifted, when people begin to accept everything
YOLOv7-Pose尝鲜,基于YOLOv7的关键点模型测评
随机推荐
对于小应用来讲,使用哪款数据库比较好?
Introduction to ADAS
50.【Application of dynamic two-dimensional array】
网络基础学习
WLAN networking experiment of AC and thin AP
Ogg synchronizes oracle to mysql, there may be characters that need to be escaped in the field, how to configure escape?
AC与瘦AP的WLAN组网实验
STM32个人笔记-嵌入式C语言优化
Naive Bayes--Study Notes--Basic Principles and Code Implementation
How programmers learn open source projects, this article tells you
How to ensure the consistency of database and cache data?
Pod environment variables and initContainer
高级驾驶辅助系统ADAS简介
Custom IP used in PCIE
Enterprise WeChat group: robot timing reminder function database configuration
Redis中间件(从搭建到弃坑)
BGP综合实验
notes....
How to query database configuration parameters in GBase 8c, such as datestyle
Meeting OA (Upcoming Meetings & All Meetings)