WO2017166619A1 - 一种紧急通信号码确定方法、装置和电子设备 - Google Patents

一种紧急通信号码确定方法、装置和电子设备 Download PDF

Info

Publication number
WO2017166619A1
WO2017166619A1 PCT/CN2016/096627 CN2016096627W WO2017166619A1 WO 2017166619 A1 WO2017166619 A1 WO 2017166619A1 CN 2016096627 W CN2016096627 W CN 2016096627W WO 2017166619 A1 WO2017166619 A1 WO 2017166619A1
Authority
WO
WIPO (PCT)
Prior art keywords
numbers
country code
emergency communication
emergency
group
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Ceased
Application number
PCT/CN2016/096627
Other languages
English (en)
French (fr)
Inventor
何晓飞
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Le Holdings Beijing Co Ltd
Lemobile Information Technology (Beijing) Co Ltd
Original Assignee
Le Holdings Beijing Co Ltd
Lemobile Information Technology (Beijing) Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Le Holdings Beijing Co Ltd, Lemobile Information Technology (Beijing) Co Ltd filed Critical Le Holdings Beijing Co Ltd
Publication of WO2017166619A1 publication Critical patent/WO2017166619A1/zh
Anticipated expiration legal-status Critical
Ceased legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/725Cordless telephones
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72448User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions
    • H04M1/72457User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions according to geographic location
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/90Services for handling of emergency or hazardous situations, e.g. earthquake and tsunami warning systems [ETWS]

Definitions

  • the present application relates to the field of intelligent terminal data processing, and in particular, to an emergency communication number determining method, apparatus, and electronic device.
  • Emergency Call refers to the use of mobile phones to dial alarms or help-seeking numbers such as 112, 110, 119, 120.
  • the urgency of these numbers allows countries to specify that they can use any network available at the time.
  • a set of emergency communication numbers are pre-stored in the mobile phone, and there are various storage forms, such as file storage and array storage.
  • the mobile phone In the case that the operator stops providing normal network services or the mobile phone is locked, the mobile phone only allows the user to broadcast the emergency communication number.
  • the system determines whether the number entered by the user is an emergency communication number. If it is an emergency communication number, the number will be broadcast, and if it is not, the broadcast will be rejected.
  • the emergency communication number pre-stored in the mobile phone is preset by the manufacturer at the factory according to its sales destination. If the user purchases a local mobile phone in a certain country, then In another country, local operators stop providing normal networks. In the case of a network service or when the mobile phone is locked, when the emergency communication number of the country is dialed, the mobile phone will judge the input incorrectly and refuse to broadcast the number. It can be seen that the existing emergency communication number setting mode will reduce the emergency. Convenience of communication operations.
  • the present application provides an emergency communication number determining method, including: acquiring a country code; obtaining a group of numbers according to the country code; and using the obtained group of numbers as an emergency communication number.
  • the acquiring the country code comprises: monitoring whether the mobile communication module is registered in the mobile network; and receiving the country code from the mobile network when the mobile communication module is registered in the mobile network.
  • the obtaining a set of numbers according to the country code comprises: comparing the obtained country code with a name of a pre-stored plurality of groups of numbers, wherein the name of each group of numbers is a three-digit decimal number; A group of numbers with the same country code.
  • the obtaining a set of numbers according to the country code comprises: sending the country code to a server; and receiving, by the server, a set of numbers fed back according to the country code.
  • the obtained group of numbers as the emergency communication number includes: determining whether the number in the emergency communication number list is identical to the obtained group number; when the number in the emergency communication number list is the same as the obtained one When the group numbers are not identical, the number in the emergency communication number list is cleared, and the obtained group number is written in the emergency communication number list.
  • an emergency communication number determining apparatus including: a country code acquiring unit, configured to acquire a country code; and an emergency number obtaining unit, configured to obtain one according to the country code Group number; an emergency number setting unit for using the obtained group of numbers as an emergency communication number.
  • the country code acquisition unit comprises: an network access monitoring unit, configured to monitor whether the mobile communication module is registered in the mobile network; and a country code receiving unit, configured to receive the mobile communication network when the mobile communication module is registered in the mobile network. code.
  • the emergency number obtaining unit includes: a local searching unit, configured to compare the acquired country code with a name of a pre-stored plurality of groups of numbers, wherein the name of each group of numbers is a three-digit decimal number; a local obtaining unit, Used to find a set of numbers whose names are the same as the country code.
  • the emergency number obtaining unit includes: a country code sending unit, configured to send the country code to the server; and an emergency number receiving unit, configured to receive a group of numbers fed back by the server according to the country code.
  • the emergency number setting unit includes: a number determining unit, configured to determine whether the number in the emergency communication number list is identical to the obtained group number; and a number resetting unit, configured to be in the emergency communication number list When the number is not exactly the same as the obtained group of numbers, the number in the emergency communication number list is cleared, and the obtained group of numbers is written in the emergency communication number list.
  • the application further provides an electronic device comprising at least one processor; and a memory communicatively coupled to the at least one processor; wherein the memory stores instructions executable by the at least one processor, The instructions are executed by the at least one processor to enable the at least one processor to acquire a country code; to obtain a set of numbers based on the country code; and to obtain the resulting set of numbers as an emergency communication number.
  • the acquiring the country code comprises: monitoring whether the mobile communication module is registered in the mobile network; and receiving the country code from the mobile network when the mobile communication module is registered in the mobile network.
  • the obtaining a set of numbers according to the country code comprises: comparing the obtained country code with a name of a pre-stored plurality of groups of numbers, wherein the name of each group of numbers is a three-digit decimal number; A group of numbers with the same country code.
  • the obtaining a set of numbers according to the country code comprises: sending the country code to a server; and receiving, by the server, a set of numbers fed back according to the country code.
  • the obtained group of numbers as the emergency communication number includes: determining whether the number in the emergency communication number list is identical to the obtained group number; when the number in the emergency communication number list is the same as the obtained one When the group numbers are not identical, the number in the emergency communication number list is cleared, and the obtained group number is written in the emergency communication number list.
  • the present application also provides a non-volatile computer storage medium storing the computer-executable instructions of computer-executable instructions that, when executed by an electronic device, enable an electronic device to acquire a country code;
  • the country code gets a set of numbers; the resulting set of numbers is used as the emergency communication number.
  • the acquiring the country code comprises: monitoring whether the mobile communication module is registered in the mobile network; and receiving the country code from the mobile network when the mobile communication module is registered in the mobile network.
  • the obtaining a set of numbers according to the country code comprises: comparing the obtained country code with a name of a pre-stored plurality of groups of numbers, wherein the name of each group of numbers is a three-digit decimal number; A group of numbers with the same country code.
  • the obtaining a set of numbers according to the country code comprises: sending the country code to a server; and receiving, by the server, a set of numbers fed back according to the country code.
  • the obtained group of numbers is used as an emergency communication number, including: judging tight Whether the number in the emergency communication number list is exactly the same as the obtained group number; when the number in the emergency communication number list is not exactly the same as the obtained group number, the number in the emergency communication number list is cleared, and The resulting set of numbers is written to the list of emergency communication numbers.
  • the embodiment of the present application further provides a computer program product, the computer program product comprising a computer program stored on a non-transitory computer readable storage medium, the computer program comprising program instructions, when the program instructions are executed by a computer
  • the computer is caused to perform the method of any of the above.
  • the emergency communication number can be obtained through the current country code, so as to dynamically modify the emergency communication number according to the country where the mobile phone is located, thereby making the emergency of the mobile phone
  • the communication system correctly judges whether or not the number input by the user is an emergency communication number, thereby improving the convenience of the emergency communication operation.
  • FIG. 1 is a flowchart of a communication control method according to an embodiment of the present application
  • FIG. 2 is a schematic structural diagram of a communication control apparatus according to an embodiment of the present application.
  • FIG. 3 is a schematic structural diagram of hardware of an electronic device according to an embodiment of the present application.
  • connection or integral connection; may be mechanical connection or electrical connection; may be directly connected, may also be indirectly connected through an intermediate medium, or may be internal communication of two components, may be wireless connection, or may be wired connection.
  • connection or integral connection; may be mechanical connection or electrical connection; may be directly connected, may also be indirectly connected through an intermediate medium, or may be internal communication of two components, may be wireless connection, or may be wired connection.
  • the embodiment of the present application provides an emergency communication number determining method, which may be performed by a smart phone, and the method includes:
  • MCC mobile country number
  • ITU mobile country number
  • Bit for example, China is 460.
  • MCC mobile country number
  • the carrier network is based on The MCC determines whether the user is an international roaming user. It can be seen that when the mobile phone communicates with the operator network, the country code can be obtained through the operator network; in addition, the simpler method is directly input by the user.
  • the obtained group of numbers is used as an emergency communication number. For example, if the local machine records the emergency number in an array form, the array is automatically rewritten; or the machine records the emergency number in the form of a file, and the number content in the file is automatically reset.
  • the emergency communication number can be obtained through the current country code, so as to dynamically modify the emergency communication number according to the country where the mobile phone is located, thereby making the emergency communication system of the mobile phone correct. It is judged whether or not the number input by the user is an emergency communication number, thereby improving the convenience of the emergency communication operation.
  • step S1 may include:
  • step S11 monitoring whether the mobile communication module is registered in the mobile network, and performing step S12 when the mobile communication module is registered in the mobile network, otherwise continuing to monitor;
  • the above preferred solution can automatically determine the country code when the mobile phone is powered on, and does not need to be set by the user, thereby improving the setting convenience.
  • step S2 may specifically include:
  • the above preferred solution determines the emergency communication number locally, does not need to perform network connection, and has a fast response speed and high convenience.
  • step S3 may include:
  • step S31 determining whether the number in the emergency communication number list is exactly the same as the obtained group number, that is, when the emergency number has been set before the mobile phone, it can be determined whether the previously set number and the currently determined number are the same; when the emergency communication If the number in the number list is not exactly the same as the obtained group of numbers, step S32 is performed, otherwise the method may be stopped.
  • the foregoing step S2 may specifically include:
  • the receiving server feeds back a set of numbers according to the country code. Specifically, after receiving the country code, the server may query a group of numbers according to the country code, and then directly feed the set of numbers to the mobile phone.
  • the above preferred solution determines the emergency communication number by the server, and the server facilitates updating the emergency number to ensure that the most accurate number is sent to the mobile phone.
  • An embodiment of the present application provides an emergency communication number determining apparatus. As shown in FIG. 2, the apparatus includes:
  • a country code obtaining unit 21 configured to acquire a country code
  • the emergency number obtaining unit 22 is configured to obtain a group of numbers according to the country code
  • the emergency number setting unit 23 is configured to use the obtained group of numbers as an emergency communication number.
  • the emergency communication number can be obtained through the current country code, so as to dynamically modify the emergency communication number according to the country where the mobile phone is located, thereby making the emergency communication system of the mobile phone correct. It is judged whether or not the number input by the user is an emergency communication number, thereby improving the convenience of the emergency communication operation.
  • the country code acquiring unit 21 includes:
  • An access monitoring unit is configured to monitor whether the mobile communication module is registered in the mobile network
  • the country code receiving unit is configured to receive the country code from the mobile network when the mobile communication module registers with the mobile network.
  • the above preferred solution can automatically determine the country code when the mobile phone is powered on, and does not need to be set by the user, thereby improving the setting convenience.
  • the emergency number setting unit 31 includes:
  • a number determining unit configured to determine whether the number in the emergency communication number list is identical to the obtained group of numbers
  • a number resetting unit configured to: when the number in the emergency communication number list is not exactly the same as the obtained group of numbers, clear the number in the emergency communication number list, and write the obtained group of numbers into the A list of urgent communication numbers.
  • the emergency number acquisition unit 22 may include:
  • a local search unit configured to compare the obtained country code with a name of a pre-stored plurality of groups of numbers, wherein the name of each group of numbers is a three-digit decimal number;
  • a local acquisition unit for finding a group of numbers having the same name as the country code is a local acquisition unit for finding a group of numbers having the same name as the country code.
  • the above preferred solution determines the emergency communication number locally, does not need to perform network connection, and has a fast response speed and high convenience.
  • the emergency number acquisition unit 22 includes:
  • a country code sending unit configured to send the country code to a server
  • the emergency number receiving unit is configured to receive a group of numbers fed back by the server according to the country code.
  • the above preferred solution determines the emergency communication number by the server, and the server facilitates updating the emergency number to ensure that the most accurate number is sent to the mobile phone.
  • the present application further provides an electronic device including at least one processor 810; and a memory 800 communicably coupled to the at least one processor 810; wherein the memory 800 stores Executing instructions executed by at least one processor 810, the instructions being executed by the at least one processor 810 to enable the at least one processor 810 to acquire a country code; obtaining a set of numbers based on the country code; A set of numbers is used as an emergency communication number.
  • the acquiring the country code includes: monitoring Whether the mobile communication module is registered in the mobile network; when the mobile communication module registers into the mobile network, receives the country code from the mobile network.
  • the obtaining a set of numbers according to the country code comprises: comparing the obtained country code with a name of a pre-stored plurality of groups of numbers, wherein the name of each group of numbers is A three-digit decimal number; find a set of numbers with the same name as the country code.
  • the obtaining a set of numbers according to the country code comprises: sending the country code to a server; and receiving, by the server, a set of numbers fed back according to the country code.
  • the obtained group of numbers is used as an emergency communication number, including: determining whether a number in the emergency communication number list is identical to the obtained group of numbers; when the emergency communication is performed When the number in the number list is not exactly the same as the obtained group number, the number in the emergency communication number list is cleared, and the obtained group number is written in the emergency communication number list.
  • the present application also provides a non-volatile computer storage medium storing the computer-executable instructions of computer-executable instructions that, when executed by an electronic device, enable an electronic device to acquire a country code;
  • the country code gets a set of numbers; the resulting set of numbers is used as the emergency communication number.
  • the acquiring the country code comprises: monitoring whether the mobile communication module is registered in the mobile network; and receiving the country code from the mobile network when the mobile communication module is registered in the mobile network.
  • the group is obtained according to the country code.
  • the number includes: comparing the obtained country code with the names of the pre-stored plurality of groups of numbers, wherein the name of each group of numbers is a three-digit decimal number; and finding a group of numbers having the same name as the country code.
  • the obtaining a set of numbers according to the country code comprises: sending the country code to a server; and receiving, by the server, a set of numbers fed back according to the country code.
  • the obtained group of numbers is used as an emergency communication number, including: determining whether the number in the emergency communication number list is identical to the obtained group of numbers; when the emergency communication When the number in the number list is not exactly the same as the obtained group number, the number in the emergency communication number list is cleared, and the obtained group number is written in the emergency communication number list.
  • the embodiment of the present application further provides a computer program product, the computer program product comprising a computer program stored on a non-transitory computer readable storage medium, the computer program comprising program instructions, when the program instructions are executed by a computer
  • the computer is caused to perform the method described in the above embodiments.
  • embodiments of the present application can be provided as a method, apparatus (device), or computer program product.
  • the present application can take the form of an entirely hardware embodiment, an entirely software embodiment, or an embodiment in combination of software and hardware.
  • the application can take the form of a computer program product embodied on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) including computer usable program code.
  • the computer program instructions can also be stored in a computer readable memory that can direct a computer or other programmable data processing device to operate in a particular manner, such that the instructions stored in the computer readable memory produce an article of manufacture comprising the instruction device.
  • the apparatus implements the functions specified in one or more blocks of a flow or a flow and/or block diagram of the flowchart.
  • These computer program instructions can also be loaded onto a computer or other programmable data processing device such that a series of operational steps are performed on a computer or other programmable device to produce computer-implemented processing for execution on a computer or other programmable device.
  • the instructions provide steps for implementing the functions specified in one or more of the flow or in a block or blocks of a flow diagram.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Environmental & Geological Engineering (AREA)
  • Business, Economics & Management (AREA)
  • Health & Medical Sciences (AREA)
  • Emergency Management (AREA)
  • Public Health (AREA)
  • Human Computer Interaction (AREA)
  • Telephonic Communication Services (AREA)
  • Telephone Function (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

本申请提供一种紧急通信号码确定方法、装置和电子设备,涉及智能终端数据处理领域,所述方法包括:获取国家码;根据所述国家码得到一组号码;将得到的一组号码作为紧急通信号码。本申请可通过当前的国家码得到紧急通信号码,以实现根据手机所处的国家,对紧急通信号码进行动态修改,进而可以使手机的紧急通信系统正确地判断用户输入的号码是否为紧急通信号码,由此可提高紧急通信操作的便利性。

Description

一种紧急通信号码确定方法、装置和电子设备
交叉引用
本申请要求在2016年03月31日提交中国专利局、申请号为201610196828.8、发明名称为“一种紧急通信号码确定方法及装置”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。
技术领域
本申请涉及智能终端数据处理领域,具体涉及一种紧急通信号码确定方法、装置和电子设备。
背景技术
紧急呼叫(Emergency Call)是指用手机拨打112、110、119、120之类的报警或求救号码,这些号码的紧急性使各国都规定它们可以使用任何当时可用的网络。
目前,手机中都会预存一组紧急通信号码,存储形式有多种,例如有文件形式存储、数组形式存储。在运营商停止提供正常网络服务的情况下或者手机处于锁定的情况下,手机只允许用户播出紧急通信号码,系统会在用户输入呼叫号码时,判断用户输入的号码是否为紧急通信号码,如果是紧急通信号码,则会将该号码播出,如果不是则会拒绝播出。
各个国家的紧急通信号码大多数是不相同的,但手机中预存的紧急通信号码是由生产方在出厂时根据其销售目的地预先设置的,如果用户在某国家购买了当地的手机然后来到另一国家,在当地运营商停止提供正常网 络服务的情况下或者手机处于锁定的情况下,拨打该国的紧急通信号码时,手机会判断输入有误,拒绝播出该号码,由此可见,现有的紧急通信号码设置方式会降低紧急通信操作的便利性。
发明内容
本申请要解决的是现有的紧急通信号码设置方式会降低紧急通信操作的便利性的问题。
有鉴于此,本申请提供了一种紧急通信号码确定方法,包括:获取国家码;根据所述国家码得到一组号码;将得到的一组号码作为紧急通信号码。
优选地,所述获取国家码,包括:监测移动通信模块是否注册入移动网络;当移动通信模块注册入移动网络时,接收来自移动网络的国家码。
优选地,所述根据所述国家码得到一组号码,包括:将获取的国家码与预存的多组号码的名称进行比对,其中每组号码的名称为三位十进制数字;找到名称与所述国家码相同的一组号码。
优选地,所述根据所述国家码得到一组号码,包括:向服务器发送所述国家码;接收服务器根据所述国家码反馈的一组号码。
优选地,所述将得到的一组号码作为紧急通信号码,包括:判断紧急通信号码列表中的号码是否与得到的一组号码完全相同;当所述紧急通信号码列表中的号码与得到的一组号码不完全相同时,清除所述紧急通信号码列表中的号码,并将得到的一组号码写入所述急通信号码列表。
相应地,本申请提供一种紧急通信号码确定装置,包括:国家码获取单元,用于获取国家码;紧急号码获取单元,用于根据所述国家码得到一 组号码;紧急号码设置单元,用于将得到的一组号码作为紧急通信号码。
优选地,所述国家码获取单元包括:入网监测单元,用于监测移动通信模块是否注册入移动网络;国家码接收单元,用于当移动通信模块注册入移动网络时,接收来自移动网络的国家码。
优选地,所述紧急号码获取单元包括:本地查找单元,用于将获取的国家码与预存的多组号码的名称进行比对,其中每组号码的名称为三位十进制数字;本地获取单元,用于找到名称与所述国家码相同的一组号码。
优选地,所述紧急号码获取单元包括:国家码发送单元,用于向服务器发送所述国家码;紧急号码接收单元,用于接收服务器根据所述国家码反馈的一组号码。
优选地,所述紧急号码设置单元包括:号码判断单元,用于判断紧急通信号码列表中的号码是否与得到的一组号码完全相同;号码重设单元,用于当所述紧急通信号码列表中的号码与得到的一组号码不完全相同时,清除所述紧急通信号码列表中的号码,并将得到的一组号码写入所述急通信号码列表。
本申请又提供了一种电子设备,包括至少一个处理器;以及,与所述至少一个处理器通信连接的存储器;其中,所述存储器存储有可被所述至少一个处理器执行的指令,所述指令被所述至少一个处理器执行,以使所述至少一个处理器能够获取国家码;根据所述国家码得到一组号码;将得到的一组号码作为紧急通信号码。
优选地,所述获取国家码,包括:监测移动通信模块是否注册入移动网络;当移动通信模块注册入移动网络时,接收来自移动网络的国家码。
优选地,所述根据所述国家码得到一组号码,包括:将获取的国家码与预存的多组号码的名称进行比对,其中每组号码的名称为三位十进制数字;找到名称与所述国家码相同的一组号码。
优选地,所述根据所述国家码得到一组号码,包括:向服务器发送所述国家码;接收服务器根据所述国家码反馈的一组号码。
优选地,所述将得到的一组号码作为紧急通信号码,包括:判断紧急通信号码列表中的号码是否与得到的一组号码完全相同;当所述紧急通信号码列表中的号码与得到的一组号码不完全相同时,清除所述紧急通信号码列表中的号码,并将得到的一组号码写入所述急通信号码列表。
本申请还提供了一种非易失性计算机存储介质,所述存储介质存储有计算机可执行指令的所述计算机可执行指令,当由电子设备执行时使得电子设备能够获取国家码;根据所述国家码得到一组号码;将得到的一组号码作为紧急通信号码。
优选地,所述获取国家码,包括:监测移动通信模块是否注册入移动网络;当移动通信模块注册入移动网络时,接收来自移动网络的国家码。
优选地,所述根据所述国家码得到一组号码,包括:将获取的国家码与预存的多组号码的名称进行比对,其中每组号码的名称为三位十进制数字;找到名称与所述国家码相同的一组号码。
优选地,所述根据所述国家码得到一组号码,包括:向服务器发送所述国家码;接收服务器根据所述国家码反馈的一组号码。
优选地,所述将得到的一组号码作为紧急通信号码,包括:判断紧 急通信号码列表中的号码是否与得到的一组号码完全相同;当所述紧急通信号码列表中的号码与得到的一组号码不完全相同时,清除所述紧急通信号码列表中的号码,并将得到的一组号码写入所述急通信号码列表。
本申请实施例还提供了一种计算机程序产品,所述计算机程序产品包括存储在非暂态计算机可读存储介质上的计算机程序,所述计算机程序包括程序指令,当所述程序指令被计算机执行时,使所述计算机执行上述任一所述的方法。
根据本申请提供的紧急通信号码确定方法、装置和电子设备,可通过当前的国家码得到紧急通信号码,以实现根据手机所处的国家,对紧急通信号码进行动态修改,进而可以使手机的紧急通信系统正确地判断用户输入的号码是否为紧急通信号码,由此提高了紧急通信操作的便利性。
附图说明
为了更清楚地说明本申请具体实施方式或现有技术中的技术方案,下面将对具体实施方式或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图是本申请的一些实施方式,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。
图1为本申请实施例提供的通信控制方法的流程图;
图2为本申请实施例提供的通信控制装置的结构示意图。
图3为本申请实施例中电子设备的硬件结构示意图。
具体实施方式
下面将结合附图对本申请的技术方案进行清楚、完整地描述,显然,所描述的实施例是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本申请保护的范围。
在本申请的描述中,需要说明的是,术语“中心”、“上”、“下”、“左”、“右”、“竖直”、“水平”、“内”、“外”等指示的方位或位置关系为基于附图所示的方位或位置关系,仅是为了便于描述本申请和简化描述,而不是指示或暗示所指的装置或元件必须具有特定的方位、以特定的方位构造和操作,因此不能理解为对本申请的限制。此外,术语“第一”、“第二”、“第三”仅用于描述目的,而不能理解为指示或暗示相对重要性。
在本申请的描述中,需要说明的是,除非另有明确的规定和限定,术语“安装”、“相连”、“连接”应做广义理解,例如,可以是固定连接,也可以是可拆卸连接,或一体地连接;可以是机械连接,也可以是电连接;可以是直接相连,也可以通过中间媒介间接相连,还可以是两个元件内部的连通,可以是无线连接,也可以是有线连接。对于本领域的普通技术人员而言,可以具体情况理解上述术语在本申请中的具体含义。
此外,下面所描述的本申请不同实施方式中所涉及的技术特征只要彼此之间未构成冲突就可以相互结合。
实施例1
本申请实施例提供一种紧急通信号码确定方法,该方法可以由智能手机执行,该方法包括:
S1,获取国家码,即移动国家号(MCC,Mobi le Country Code)。MCC的资源由国际电联统一分配和管理,唯一识别移动用户所属的国家,共3 位,例如中国为460。获取国家码的方式有多种,例如,由于MCC用于国际移动用户识别,它表示该移动用户所居住的国家,当手机在运营商网络上登录或申请某种业务时,运营商网络则根据MCC来判断该用户是否为国际漫游用户,由此可见在手机与运营商网络进行通信时,即可通过运营商网络得到国家码;除此之外,更为简单的方式是由用户直接输入。
S2,根据所述国家码得到一组号码。在此主要包括两种获得方式,一种是本地获得,即预先在手机中存储多组号码,然后根据国家码进行本地查找;另一种是远程获得,即通过与服务器通信获得一组号码,上述两种方式都是可行的,具体将在下文进行详细介绍。
S3,将得到的一组号码作为紧急通信号码,例如本机采用数组形式记录紧急号码,则自动重写该数组;或者本机采用文件形式记录紧急号码,则自动重置文件中的号码内容。
根据本申请实施例提供的紧急通信号码确定方法,可通过当前的国家码得到紧急通信号码,以实现根据手机所处的国家,对紧急通信号码进行动态修改,进而可以使手机的紧急通信系统正确地判断用户输入的号码是否为紧急通信号码,由此提高了紧急通信操作的便利性。
作为一个优选的实施方式,如图1所示,步骤S1可以包括:
S11,监测移动通信模块是否注册入移动网络,当移动通信模块注册入移动网络时执行步骤S12,否则继续监测;
S12,接收来自移动网络的国家码。
上述优选方案可以在手机开机入网时自动确定国家码,不必用户自己进行设置,由此可以提高设置便利性。
若在本地查找紧急通信号码,上述步骤S2具体可以包括:
S21,将获取的国家码与预存的多组号码的名称进行比对,其中每组号码的名称为三位十进制数字,关于预存的多组号码,例如可以是460(国家码代表中国)={110.120.119……}(与460相应的一组号码)、310(国家码代表美国)={911……}(与310相应的一组号码);
S22,找到名称与所述国家码相同的一组号码,如果之前获取的国家码为460,则可以找到相应的一组号码{110.120.119……}。
上述优选方案在本地确定紧急通信号码,不需要进行网络连接,其响应速度较快,便利性较强。
进一步地,上述步骤S3可以包括:
S31,判断紧急通信号码列表中的号码是否与得到的一组号码完全相同,即当手机之前已经设置过紧急号码时,可以判断之前设置的号码和当前确定的号码是否相同;当所述紧急通信号码列表中的号码与得到的一组号码不完全相同时,执行步骤S32,否则可以停止执行本方法。
S32,清除所述紧急通信号码列表中的号码,并将得到的一组号码写入所述急通信号码列表。
作为另一个优选的实施方,若远程查找紧急通信号码,上述步骤S2具体可以包括:
S’21,向服务器发送所述国家码;
S’22,接收服务器根据所述国家码反馈的一组号码,具体地,服务器在收到国家码后可以根据该国家码查询到一组号码,然后直接向手机反馈此一组号码。
上述优选方案由服务器确定紧急通信号码,服务器便于对紧急号码进行更新,以确保发给手机的是最准确的号码。
实施例2
本申请实施例提供一种紧急通信号码确定装置,如图2所示,该装置包括:
国家码获取单元21,用于获取国家码;
紧急号码获取单元22,用于根据所述国家码得到一组号码;
紧急号码设置单元23,用于将得到的一组号码作为紧急通信号码。
根据本申请实施例提供的紧急通信号码确定装置,可通过当前的国家码得到紧急通信号码,以实现根据手机所处的国家,对紧急通信号码进行动态修改,进而可以使手机的紧急通信系统正确地判断用户输入的号码是否为紧急通信号码,由此提高了紧急通信操作的便利性。
作为一个优选的实施方式,所述国家码获取单元21包括:
入网监测单元,用于监测移动通信模块是否注册入移动网络;
国家码接收单元,用于当移动通信模块注册入移动网络时,接收来自移动网络的国家码。
上述优选方案可以在手机开机入网时自动确定国家码,不必用户自己进行设置,由此可以提高设置便利性。
进一步地,所述紧急号码设置单元31包括:
号码判断单元,用于判断紧急通信号码列表中的号码是否与得到的一组号码完全相同;
号码重设单元,用于当所述紧急通信号码列表中的号码与得到的一组号码不完全相同时,清除所述紧急通信号码列表中的号码,并将得到的一组号码写入所述急通信号码列表。
若在本地查找紧急通信号码,所述紧急号码获取单元22可以包括:
本地查找单元,用于将获取的国家码与预存的多组号码的名称进行比对,其中每组号码的名称为三位十进制数字;
本地获取单元,用于找到名称与所述国家码相同的一组号码。
上述优选方案在本地确定紧急通信号码,不需要进行网络连接,其响应速度较快,便利性较强。
若远程查找紧急通信号码,所述紧急号码获取单元22包括:
国家码发送单元,用于向服务器发送所述国家码;
紧急号码接收单元,用于接收服务器根据所述国家码反馈的一组号码。
上述优选方案由服务器确定紧急通信号码,服务器便于对紧急号码进行更新,以确保发给手机的是最准确的号码。
实施例3
如图3所示,本申请又提供了一种电子设备,包括至少一个处理器810;以及,与所述至少一个处理器810通信连接的存储器800;其中,所述存储器800存储有可被所述至少一个处理器810执行的指令,所述指令被所述至少一个处理器810执行,以使所述至少一个处理器810能够获取国家码;根据所述国家码得到一组号码;将得到的一组号码作为紧急通信号码。
本实施例的所述电子设备,优选地,所述获取国家码,包括:监测 移动通信模块是否注册入移动网络;当移动通信模块注册入移动网络时,接收来自移动网络的国家码。
本实施例的所述电子设备,优选地,所述根据所述国家码得到一组号码,包括:将获取的国家码与预存的多组号码的名称进行比对,其中每组号码的名称为三位十进制数字;找到名称与所述国家码相同的一组号码。
本实施例的所述电子设备,优选地,所述根据所述国家码得到一组号码,包括:向服务器发送所述国家码;接收服务器根据所述国家码反馈的一组号码。
本实施例的所述电子设备,优选地,所述将得到的一组号码作为紧急通信号码,包括:判断紧急通信号码列表中的号码是否与得到的一组号码完全相同;当所述紧急通信号码列表中的号码与得到的一组号码不完全相同时,清除所述紧急通信号码列表中的号码,并将得到的一组号码写入所述急通信号码列表。
实施例5
本申请还提供了一种非易失性计算机存储介质,所述存储介质存储有计算机可执行指令的所述计算机可执行指令,当由电子设备执行时使得电子设备能够获取国家码;根据所述国家码得到一组号码;将得到的一组号码作为紧急通信号码。
本实施例的所述存储介质,优选地,所述获取国家码,包括:监测移动通信模块是否注册入移动网络;当移动通信模块注册入移动网络时,接收来自移动网络的国家码。
本实施例的所述存储介质,优选地,所述根据所述国家码得到一组 号码,包括:将获取的国家码与预存的多组号码的名称进行比对,其中每组号码的名称为三位十进制数字;找到名称与所述国家码相同的一组号码。
本实施例的所述存储介质,优选地,所述根据所述国家码得到一组号码,包括:向服务器发送所述国家码;接收服务器根据所述国家码反馈的一组号码。
本实施例的所述存储介质,优选地,所述将得到的一组号码作为紧急通信号码,包括:判断紧急通信号码列表中的号码是否与得到的一组号码完全相同;当所述紧急通信号码列表中的号码与得到的一组号码不完全相同时,清除所述紧急通信号码列表中的号码,并将得到的一组号码写入所述急通信号码列表。
实施例6
本申请实施例还提供了一种计算机程序产品,所述计算机程序产品包括存储在非暂态计算机可读存储介质上的计算机程序,所述计算机程序包括程序指令,当所述程序指令被计算机执行时,使所述计算机执行上述实施例所述的方法。
本领域的技术人员应明白,本申请的实施例可提供为方法、装置(设备)、或计算机程序产品。因此,本申请可采用完全硬件实施例、完全软件实施例、或结合软件和硬件方面的实施例的形式。而且,本申请可采用在一个或多个其中包含有计算机可用程序代码的计算机可用存储介质(包括但不限于磁盘存储器、CD-ROM、光学存储器等)上实施的计算机程序产品的形式。
本申请是参照实施例的方法、装置(设备)和计算机程序产品的流程图和/或方框图来描述的。应理解可由计算机程序指令实现流程图和/或方框图中的每一流程和/或方框、以及流程图和/或方框图中的流程和/或方框的结合。可提供这些计算机程序指令到通用计算机、专用计算机、嵌入式处理机或其他可编程数据处理设备的处理器以产生一个机器,使得通过计算机或其他可编程数据处理设备的处理器执行的指令产生用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的装置。
这些计算机程序指令也可存储在能引导计算机或其他可编程数据处理设备以特定方式工作的计算机可读存储器中,使得存储在该计算机可读存储器中的指令产生包括指令装置的制造品,该指令装置实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能。
这些计算机程序指令也可装载到计算机或其他可编程数据处理设备上,使得在计算机或其他可编程设备上执行一系列操作步骤以产生计算机实现的处理,从而在计算机或其他可编程设备上执行的指令提供用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的步骤。
显然,上述实施例仅仅是为清楚地说明所作的举例,而并非对实施方式的限定。对于所属领域的普通技术人员来说,在上述说明的基础上还可以做出其它不同形式的变化或变动。这里无需也无法对所有的实施方式予 以穷举。而由此所引伸出的显而易见的变化或变动仍处于本申请创造的保护范围之中。

Claims (21)

  1. 一种紧急通信号码确定方法,其特征在于,包括:
    获取国家码;
    根据所述国家码得到一组号码;
    将得到的一组号码作为紧急通信号码。
  2. 根据权利要求1所述的方法,其特征在于,所述获取国家码,包括:
    监测移动通信模块是否注册入移动网络;
    当移动通信模块注册入移动网络时,接收来自移动网络的国家码。
  3. 根据权利要求1所述的方法,其特征在于,所述根据所述国家码得到一组号码,包括:
    将获取的国家码与预存的多组号码的名称进行比对,其中每组号码的名称为三位十进制数字;
    找到名称与所述国家码相同的一组号码。
  4. 根据权利要求1所述的方法,其特征在于,所述根据所述国家码得到一组号码,包括:
    向服务器发送所述国家码;
    接收服务器根据所述国家码反馈的一组号码。
  5. 根据权利要求1所述的方法,其特征在于,所述将得到的一组号码作为紧急通信号码,包括:
    判断紧急通信号码列表中的号码是否与得到的一组号码完全相同;
    当所述紧急通信号码列表中的号码与得到的一组号码不完全相同时,清除所述紧急通信号码列表中的号码,并将得到的一组号码写入所述急通信号码列表。
  6. 一种紧急通信号码确定装置,其特征在于,包括:
    国家码获取单元,用于获取国家码;
    紧急号码获取单元,用于根据所述国家码得到一组号码;
    紧急号码设置单元,用于将得到的一组号码作为紧急通信号码。
  7. 根据权利要求6所述的装置,其特征在于,所述国家码获取单元包括:
    入网监测单元,用于监测移动通信模块是否注册入移动网络;
    国家码接收单元,用于当移动通信模块注册入移动网络时,接收来自移动网络的国家码。
  8. 根据权利要求6所述的装置,其特征在于,所述紧急号码获取单元包括:
    本地查找单元,用于将获取的国家码与预存的多组号码的名称进行比对,其中每组号码的名称为三位十进制数字;
    本地获取单元,用于找到名称与所述国家码相同的一组号码。
  9. 根据权利要求6所述的装置,其特征在于,所述紧急号码获取单元包括:
    国家码发送单元,用于向服务器发送所述国家码;
    紧急号码接收单元,用于接收服务器根据所述国家码反馈的一组号码。
  10. 根据权利要求6所述的装置,其特征在于,所述紧急号码设置单元包括:
    号码判断单元,用于判断紧急通信号码列表中的号码是否与得到的一组号码完全相同;
    号码重设单元,用于当所述紧急通信号码列表中的号码与得到的一组号码不完全相同时,清除所述紧急通信号码列表中的号码,并将得到的一组号码写入所述急通信号码列表。
  11. 一种电子设备,其特征在于包括至少一个处理器;以及,与所述至少一个处理器通信连接的存储器;其中,所述存储器存储有可被所述至少一个处理器执行的指令,所述指令被所述至少一个处理器执行,以使所述至少一个处理器能够
    获取国家码;
    根据所述国家码得到一组号码;
    将得到的一组号码作为紧急通信号码。
  12. 根据权利要求11所述的电子设备,其特征在于,所述获取国家码,包括:
    监测移动通信模块是否注册入移动网络;
    当移动通信模块注册入移动网络时,接收来自移动网络的国家码。
  13. 根据权利要求11所述的电子设备,其特征在于,所述根据所述国家码得到一组号码,包括:
    将获取的国家码与预存的多组号码的名称进行比对,其中每组号码的名称为三位十进制数字;
    找到名称与所述国家码相同的一组号码。
  14. 根据权利要求11所述的电子设备,其特征在于,所述根据所述国家码得到一组号码,包括:
    向服务器发送所述国家码;
    接收服务器根据所述国家码反馈的一组号码。
  15. 根据权利要求11所述的电子设备,其特征在于,所述将得到的一组号码作为紧急通信号码,包括:
    判断紧急通信号码列表中的号码是否与得到的一组号码完全相同;
    当所述紧急通信号码列表中的号码与得到的一组号码不完全相同 时,清除所述紧急通信号码列表中的号码,并将得到的一组号码写入所述急通信号码列表。
  16. 一种非易失性计算机存储介质,其特征在于:所述存储介质存储有计算机可执行指令的所述计算机可执行指令,当由电子设备执行时使得电子设备能够:
    获取国家码;
    根据所述国家码得到一组号码;
    将得到的一组号码作为紧急通信号码。
  17. 根据权利要求16所述的存储介质,其特征在于,所述获取国家码,包括:
    监测移动通信模块是否注册入移动网络;
    当移动通信模块注册入移动网络时,接收来自移动网络的国家码。
  18. 根据权利要求16所述的存储介质,其特征在于,所述根据所述国家码得到一组号码,包括:
    将获取的国家码与预存的多组号码的名称进行比对,其中每组号码的名称为三位十进制数字;
    找到名称与所述国家码相同的一组号码。
  19. 根据权利要求16所述的存储介质,其特征在于,所述根据所述 国家码得到一组号码,包括:
    向服务器发送所述国家码;
    接收服务器根据所述国家码反馈的一组号码。
  20. 根据权利要求16所述的存储介质,其特征在于,所述将得到的一组号码作为紧急通信号码,包括:
    判断紧急通信号码列表中的号码是否与得到的一组号码完全相同;
    当所述紧急通信号码列表中的号码与得到的一组号码不完全相同时,清除所述紧急通信号码列表中的号码,并将得到的一组号码写入所述急通信号码列表。
  21. 一种计算机程序产品,所述计算机程序产品包括存储在非暂态计算机可读存储介质上的计算机程序,所述计算机程序包括程序指令,其特征在于,当所述程序指令被计算机执行时,使所述计算机执行上述任一权利要求所述的方法。
PCT/CN2016/096627 2016-03-31 2016-08-25 一种紧急通信号码确定方法、装置和电子设备 Ceased WO2017166619A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201610196828.8A CN105847565A (zh) 2016-03-31 2016-03-31 一种紧急通信号码确定方法及装置
CN201610196828.8 2016-03-31

Publications (1)

Publication Number Publication Date
WO2017166619A1 true WO2017166619A1 (zh) 2017-10-05

Family

ID=56596440

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2016/096627 Ceased WO2017166619A1 (zh) 2016-03-31 2016-08-25 一种紧急通信号码确定方法、装置和电子设备

Country Status (2)

Country Link
CN (1) CN105847565A (zh)
WO (1) WO2017166619A1 (zh)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116719476A (zh) * 2023-05-26 2023-09-08 广州市玄武无线科技股份有限公司 一种手机号的压缩存储方法、装置、电子设备及存储介质

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105847565A (zh) * 2016-03-31 2016-08-10 乐视控股(北京)有限公司 一种紧急通信号码确定方法及装置
CN106792529A (zh) * 2016-12-20 2017-05-31 宇龙计算机通信科技(深圳)有限公司 一种紧急号码更新的方法及装置
CN111279670A (zh) * 2017-08-25 2020-06-12 深圳传音通讯有限公司 一种紧急号码匹配方法及匹配装置
WO2019037065A1 (zh) * 2017-08-25 2019-02-28 深圳传音通讯有限公司 一种紧急号码匹配方法及匹配装置
CN111770443A (zh) * 2020-07-17 2020-10-13 闻泰通讯股份有限公司 紧急号码更新方法、装置、终端及计算机可读存储介质
CN115955672A (zh) * 2022-12-23 2023-04-11 锐迪科创微电子(北京)有限公司 一种信息处理方法、装置、芯片及模组设备

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1959659A1 (en) * 2007-02-15 2008-08-20 Research In Motion Limited Emergency number selection for mobile communications device
CN102104675A (zh) * 2009-12-18 2011-06-22 深圳富泰宏精密工业有限公司 紧急服务号码设定系统及方法
CN104955011A (zh) * 2015-06-11 2015-09-30 努比亚技术有限公司 一种紧急号码的适配方法、装置及终端
CN105282293A (zh) * 2014-07-16 2016-01-27 中兴通讯股份有限公司 拨号方法、装置及终端
CN105847565A (zh) * 2016-03-31 2016-08-10 乐视控股(北京)有限公司 一种紧急通信号码确定方法及装置

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8340626B2 (en) * 2006-04-28 2012-12-25 Qualcomm Incorporated System and method for supporting voice call continuity for VOIP emergency calls
CN101384049A (zh) * 2008-09-28 2009-03-11 深圳华为通信技术有限公司 紧急号码的呼叫方法及通讯终端

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1959659A1 (en) * 2007-02-15 2008-08-20 Research In Motion Limited Emergency number selection for mobile communications device
CN102104675A (zh) * 2009-12-18 2011-06-22 深圳富泰宏精密工业有限公司 紧急服务号码设定系统及方法
CN105282293A (zh) * 2014-07-16 2016-01-27 中兴通讯股份有限公司 拨号方法、装置及终端
CN104955011A (zh) * 2015-06-11 2015-09-30 努比亚技术有限公司 一种紧急号码的适配方法、装置及终端
CN105847565A (zh) * 2016-03-31 2016-08-10 乐视控股(北京)有限公司 一种紧急通信号码确定方法及装置

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116719476A (zh) * 2023-05-26 2023-09-08 广州市玄武无线科技股份有限公司 一种手机号的压缩存储方法、装置、电子设备及存储介质
CN116719476B (zh) * 2023-05-26 2024-01-02 广州市玄武无线科技股份有限公司 一种手机号的压缩存储方法、装置、电子设备及存储介质

Also Published As

Publication number Publication date
CN105847565A (zh) 2016-08-10

Similar Documents

Publication Publication Date Title
WO2017166619A1 (zh) 一种紧急通信号码确定方法、装置和电子设备
US10485034B2 (en) Method, device and system for accessing wireless network
CN106465247B (zh) 漫游入网方法及装置
CN105101135A (zh) 通信终端的紧急呼叫处理方法与装置
CN110267254B (zh) eUICC的管理方法、eUICC、SM平台和系统
US10887745B2 (en) Method and device for sharing file between different terminals
CN106095814B (zh) 联系人处理方法及服务器
EP2747485A1 (en) Terminal frequency-band adaptation method and terminal
WO2016173348A1 (zh) 一种网络接入方法及移动通信终端
CN106465248B (zh) 漫游入网方法及装置
CN111066333A (zh) 能获取esim配置文件的装置
CN106413041A (zh) 移动终端小区驻留方法及装置
US10764819B2 (en) Network search method and apparatus under double-card mode, and computer storage medium
WO2016004198A1 (en) Network access method, apparatus, server and terminal
CN111131357B (zh) 投屏处理方法、装置和设备
CN104883704A (zh) 一种移动终端接入点参数的自动纠错方法和装置
CN107295503A (zh) 确定移动终端接入方式的方法、存储介质及移动终端
WO2017173798A1 (zh) 一种移动终端的系统安装方法、装置和电子设备
WO2017166704A1 (zh) 一种网络连接方法、装置和电子设备
CN107734489A (zh) 拨打紧急号码的方法、装置、存储介质及电子设备
CN105282862B (zh) 一种无线网络访问接入点连接方法及终端
CN112866984B (zh) 通话记录的同步方法、云平台和终端
WO2012100454A1 (zh) 一种移动终端及其参数设置方法
WO2015117318A1 (zh) 拨号方法、装置及终端
CN105407202A (zh) 一种远程查询联系人信息的方法及终端

Legal Events

Date Code Title Description
NENP Non-entry into the national phase

Ref country code: DE

121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 16896391

Country of ref document: EP

Kind code of ref document: A1

122 Ep: pct application non-entry in european phase

Ref document number: 16896391

Country of ref document: EP

Kind code of ref document: A1