CN113489832B - Mobile terminal emergency number customizing method and device, terminal equipment and storage medium - Google Patents

Mobile terminal emergency number customizing method and device, terminal equipment and storage medium Download PDF

Info

Publication number
CN113489832B
CN113489832B CN202110817768.8A CN202110817768A CN113489832B CN 113489832 B CN113489832 B CN 113489832B CN 202110817768 A CN202110817768 A CN 202110817768A CN 113489832 B CN113489832 B CN 113489832B
Authority
CN
China
Prior art keywords
emergency
mobile terminal
emergency number
dialing
sim card
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.)
Active
Application number
CN202110817768.8A
Other languages
Chinese (zh)
Other versions
CN113489832A (en
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.)
Huizhou TCL Cloud Internet Corp Technology Co Ltd
Original Assignee
Huizhou TCL Cloud Internet Corp Technology 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 Huizhou TCL Cloud Internet Corp Technology Co Ltd filed Critical Huizhou TCL Cloud Internet Corp Technology Co Ltd
Priority to CN202110817768.8A priority Critical patent/CN113489832B/en
Publication of CN113489832A publication Critical patent/CN113489832A/en
Application granted granted Critical
Publication of CN113489832B publication Critical patent/CN113489832B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

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/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72403User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality
    • H04M1/72418User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality for supporting emergency services
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/2866Architectures; Arrangements
    • H04L67/30Profiles
    • 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
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/02Services making use of location information
    • H04W4/021Services related to particular areas, e.g. point of interest [POI] services, venue services or geofences
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W48/00Access restriction; Network selection; Access point selection
    • H04W48/08Access restriction or access information delivery, e.g. discovery data delivery
    • H04W48/14Access restriction or access information delivery, e.g. discovery data delivery using user query or user detection

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Human Computer Interaction (AREA)
  • Computer Security & Cryptography (AREA)
  • Business, Economics & Management (AREA)
  • Emergency Management (AREA)
  • Telephone Function (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

The invention discloses a method and a device for customizing an emergency number of a mobile terminal, terminal equipment and a storage medium, wherein the method comprises the following steps: presetting a lookup table containing emergency number groups respectively corresponding to equipment codes and SIM card information; detecting whether an emergency number configuration instruction is received or not; when an emergency number configuration instruction is detected, acquiring an equipment code and SIM card information of the mobile terminal; acquiring emergency number groups respectively corresponding to the equipment codes and the SIM card information through a lookup table, and configuring the emergency numbers of the mobile terminal according to the lookup table; and detecting a dialing instruction, judging whether the current dialing number is in an emergency number list, if so, starting an emergency dialing mode to dial the number, and if not, starting a common dialing mode to dial the number. The method aims to solve the problem that the default emergency number of the existing mobile terminal cannot meet the dialing mode of a special operator, so that the emergency number customizing mode of the mobile terminal is more diversified.

Description

Mobile terminal emergency number customizing method and device, terminal equipment and storage medium
Technical Field
The invention relates to the field of mobile terminals, in particular to a method and a device for customizing an emergency number of a mobile terminal, terminal equipment and a storage medium.
Background
In the prior art, in the existing mobile terminal device based on a mobile phone, the original system, such as MIUI, and the emergency number customization manner of the default emergency number of the chip platform, such as high-pass, co-distribution department, and bosom, cannot meet the special requirements of some regions and operators, for example, some regions or operators require that all emergency numbers need to be dialed through a normal dialing mode rather than an emergency dialing mode, and the emergency dialing mode is different from the normal dialing mode in that the emergency dialing mode can dial the call without network injection. Therefore, the existing mobile terminal emergency number customization mode lacks diversity.
Thus, there is still a need for improvement and development of the prior art.
Disclosure of Invention
The present invention provides a method, an apparatus, a terminal device and a storage medium for customizing an emergency number of a mobile terminal, which solve the technical problem that the emergency number of the mobile terminal in the prior art can only be determined by a native system and a platform, lacks diversity, and cannot meet special requirements of regions and operators.
In order to solve the technical problems, the technical scheme adopted by the invention is as follows:
a mobile terminal emergency number customizing method comprises the following steps:
presetting a lookup table containing emergency number groups respectively corresponding to equipment codes and SIM card information;
detecting whether an emergency number configuration instruction is received or not;
when an emergency number configuration instruction is detected, acquiring the equipment code and SIM card information of the mobile terminal;
acquiring emergency number groups respectively corresponding to the equipment codes and the SIM card information through a lookup table, and configuring the emergency numbers of the mobile terminal according to the lookup table;
and detecting a dialing instruction, judging whether the current dialing number is in an emergency number list, if so, starting an emergency dialing mode to dial the number, and if not, starting a common dialing mode to dial the number.
The method for customizing the emergency number of the mobile terminal, wherein the step of presetting the lookup table containing the emergency number groups respectively corresponding to the equipment code and the SIM card information comprises the following steps:
presetting an emergency number group corresponding to the equipment code of the mobile terminal;
an emergency number group corresponding to a combination of a mobile country code and a mobile network code in the SIM card information is set in advance.
The method for customizing the emergency number of the mobile terminal, wherein the step of presetting the lookup table containing the emergency number groups respectively corresponding to the equipment code and the SIM card information further comprises the following steps:
the preset configuration types of the emergency number groups comprise an emergency type, a non-emergency type, a null type and a reporting bottom layer number type.
The method for customizing the emergency number of the mobile terminal, wherein when the emergency number configuration instruction is detected, the step of acquiring the equipment code and the SIM card information of the mobile terminal comprises the following steps:
when an emergency number configuration instruction is detected;
controlling to obtain an equipment code of the mobile terminal and identifying whether an SIM card is inserted into an SIM card slot of the mobile terminal;
and when the SIM card is detected to be inserted into the mobile terminal, acquiring the mobile country code and the mobile network code in the SIM card information.
The method for customizing the emergency number of the mobile terminal comprises the following steps of obtaining emergency number groups respectively corresponding to the equipment code and the SIM card information through a lookup table, and configuring the emergency number of the mobile terminal according to the lookup table:
after acquiring the equipment code of the mobile terminal and the mobile country code and the mobile network code in the SIM card information;
respectively searching emergency number groups corresponding to the equipment codes and the combination of the mobile country codes and the mobile network codes through a lookup table, and acquiring the configuration types of the emergency number groups;
and configuring the emergency number of the mobile terminal according to the acquired emergency number group and the configuration type of the emergency number group.
The method for customizing the emergency number of the mobile terminal comprises the following steps of obtaining emergency number groups respectively corresponding to the equipment code and the SIM card information through a lookup table, and configuring the emergency number of the mobile terminal according to the lookup table:
when the configuration type is the emergency type, configuring the numbers in the emergency number group as the emergency numbers of the mobile terminal;
when the configuration type is a non-emergency type, detecting whether the emergency number configured on the bottom layer of the mobile terminal contains the number in the emergency number group, and if so, setting the number as a common number;
when the configuration type is an empty type, detecting emergency numbers configured on the bottom layer of the mobile terminal, and setting all the emergency numbers configured on the bottom layer of the mobile terminal as common numbers;
and when the configuration type is the reporting bottom-layer number type, keeping the original emergency number of the mobile terminal from being configured.
The method for customizing the emergency number of the mobile terminal, wherein the step of detecting the dialing instruction, judging whether the current dialing number is in an emergency number list, if so, starting the dialing number in an emergency dialing mode, and if not, starting the dialing number in a common dialing mode comprises the following steps:
when a dialing instruction is detected, judging whether a current dialing number is in an emergency number list of the mobile terminal;
if yes, starting an emergency dialing mode to dial the current dialing number;
and when the dialing number is not in the emergency number list of the mobile terminal, starting a common dialing mode to dial the current dialing number.
An emergency number customizing apparatus of a mobile terminal, wherein the apparatus comprises:
the preset module is used for presetting a lookup table which contains emergency number groups respectively corresponding to the equipment codes and the SIM card information and configuration types corresponding to the emergency number groups;
the starting instruction detection module is used for detecting whether the mobile terminal executes a starting instruction;
the acquisition module is used for acquiring a mobile terminal equipment code and a mobile country code and a mobile network code in the inserted SIM card information;
the searching module is used for searching the corresponding emergency number groups and the corresponding configuration types of the emergency number groups according to the acquired equipment codes, the mobile country codes and the mobile network codes through a preset searching table;
the configuration module is used for configuring the emergency number of the mobile terminal according to the searched emergency number group and the configuration type corresponding to the emergency number group;
and the dialing module is used for judging whether the current dialing number is an emergency number or not when a dialing instruction is detected, starting an emergency dialing mode dialing number at that time, and starting a common dialing mode dialing number when the current dialing number is judged not to be the emergency number.
A terminal device, wherein the terminal device comprises a memory, a processor and a mobile terminal emergency number customizing program which is stored on the memory and can run on the processor, and the processor realizes the steps of any one of the mobile terminal emergency number customizing methods when executing the mobile terminal emergency number customizing program.
A computer readable storage medium, having a mobile terminal emergency number customizing program stored thereon, which, when executed by a processor, implements the steps of any of the mobile terminal emergency number customizing methods.
Has the advantages that: compared with the prior art, the invention provides a mobile terminal emergency number customizing method, which adopts the following steps: presetting a lookup table containing emergency number groups respectively corresponding to equipment codes and SIM card information; detecting whether an emergency number configuration instruction is received or not; when an emergency number configuration instruction is detected, acquiring the equipment code and SIM card information of the mobile terminal; acquiring emergency number groups respectively corresponding to the equipment codes and the SIM card information through a lookup table, and configuring the emergency numbers of the mobile terminal according to the lookup table; and detecting a dialing instruction, judging whether the current dialing number is in an emergency number list, if so, starting an emergency dialing mode to dial the number, and if not, starting a common dialing mode to dial the number. The method can not only realize the configuration of the emergency number of the mobile terminal by a native system or a platform, but also configure the emergency number of the mobile terminal by the identification code of the mobile terminal and the mobile country code and the mobile network code in the SIM card information, thereby improving the diversity of the configuration of the emergency number of the mobile terminal and enabling the configured emergency number to adapt to more regions and special requirements of operators.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments described in the present invention, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
Fig. 1 is a flowchart of a detailed implementation of an emergency number customizing method for a mobile terminal according to an embodiment of the present invention.
FIG. 2 is a flow chart illustrating a further embodiment of the present invention.
Fig. 3 is a schematic block diagram of an emergency number customization apparatus for a mobile terminal according to an embodiment of the present invention.
Fig. 4 is a schematic diagram of an internal structure of a terminal device according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention clearer and clearer, the present invention is further described in detail below with reference to the accompanying drawings and examples. It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
It should be noted that, if directional indications (such as up, down, left, right, front, and back … …) are involved in the embodiment of the present invention, the directional indications are only used to explain the relative positional relationship between the components, the movement situation, and the like in a specific posture (as shown in the drawing), and if the specific posture is changed, the directional indications are changed accordingly.
In addition, if there is a description of "first", "second", etc. in an embodiment of the present invention, the description of "first", "second", etc. is for descriptive purposes only and is not to be construed as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include at least one such feature. In addition, technical solutions between various embodiments may be combined with each other, but must be realized by a person skilled in the art, and when the technical solutions are contradictory or cannot be realized, such a combination should not be considered to exist, and is not within the protection scope of the present invention.
For example, when using a mobile phone to dial an emergency number, a mobile terminal in the prior art usually dials a corresponding emergency number, for example, 120 or 110, to dial the corresponding emergency phone, because the mobile phone lists 120 or 110 as an emergency number that can be dialed in an emergency dialing mode according to a factory system or a chip when the mobile phone leaves a factory, and an operator or a local regulation 120 or 110 can dial in the emergency dialing mode. The emergency dialing mode is different from the ordinary dialing mode in that the emergency dialing mode can make a call without network registration, but the emergency dialing mode can normally make the call through the emergency dialing mode only by the support of a mobile phone and the local or other operators. So that emergency numbers for 999 cannot be dialed through the handset when the local or operator requires, for example, 999 dialing through emergency dial mode without the handset having 999 as an emergency number.
In order to solve the foregoing problems, an embodiment of the present invention provides a method for customizing an emergency number of a mobile terminal, where an emergency number configuration instruction automatically detects an Equipment Code (ECID) of the mobile terminal and a Mobile Country Code (MCC) and a Mobile Network Code (MNC) in SIM card information, and sets a number to be dialed in an emergency situation as an emergency number dialed in an emergency dialing mode or a general number dialed in a general dialing mode according to a combination of the identified ECID and the MCN + MNC. When a user dials an emergency number locally using a mobile terminal, the mobile terminal dials the emergency number through an emergency dialing mode or a normal dialing mode according to whether the emergency number is inquired, and dials the emergency number using a mode according with local rules. The problem that the default emergency number of the mobile terminal in the prior art is possibly different from certain regional dialing rules, so that the emergency number cannot be dialed is solved, the customization diversity of the emergency number of the mobile terminal is improved, and the user experience is improved.
Exemplary method
As shown in fig. 1, an embodiment of the present invention provides a method for customizing an emergency number of a mobile terminal, where the method for customizing an emergency number of a mobile terminal can be used in a mobile terminal. The method in the embodiment of the invention comprises the following steps:
s100, presetting a lookup table containing emergency number groups respectively corresponding to equipment codes and SIM card information;
in this embodiment, the device code of the mobile terminal and the emergency number group corresponding thereto, and the emergency number group corresponding to the combination of the mobile country code and the mobile network code in the SIM card information need to be preset, and the correspondence relationship is stored in the mobile terminal. Because the equipment codes of the mobile terminals in each region have certain regularity when the mobile terminals are produced or the mobile terminals sold to a certain region are produced, and the combination of the mobile country codes and the mobile network codes of the SIM card information of each region mobile network operator also has a corresponding relation with the region, the equipment codes and the SIM card information can be used for representing the region, namely representing the emergency number group corresponding to the region. The combination of the mobile country code and the mobile network code is the same as the mobile terminal device code to represent the network operator of a unique mobile device.
For example, for a device with an ECID XXXXXX01, representing that the region is a certain region in latin america, the corresponding emergency number group of the device code in the lookup table is the emergency number of the certain region in latin america; for example, if the combination of the mobile country code MCC and the mobile network code MNC is MCC + MNC-4 XX +00, which represents a certain region of asia, the corresponding emergency number group of the combination of MCC + MNC in the lookup table is an emergency number of the certain region of asia.
According to the emergency number dialing rule of a special area, the lookup table can also contain the configuration type corresponding to each emergency number group, for example, an operator in a certain area or a certain area requires only 112 as an emergency number which can be dialed in an emergency dialing mode, and other numbers which need emergency dialing in life, such as 16, 17 and 19, need to be dialed according to a common dialing mode of a common telephone; for another example, some regions only support 911 as an emergency number without 112 as an emergency number, but in the above example 112 is a factory default emergency number of the mobile terminal, in addition to configuring the numbers in the emergency number group as the emergency number of the mobile terminal, it is also necessary to set the number configuration in the emergency number group as the emergency number of the mobile terminal. The preset configuration types of the emergency number group comprise an emergency type, a non-emergency type, an empty type and a reporting bottom layer number type, wherein the emergency type is that numbers in the emergency number group are configured into an emergency number list of the mobile terminal; the non-emergency type is that numbers in the emergency number group are configured to be common numbers of the mobile terminal; the null type is that the default emergency number of the mobile terminal is set as a common number or all numbers in the mobile terminal are set as no emergency number; and reporting the type of the bottom-layer number as that the original default emergency number list of the mobile terminal is not processed. The difference between the mobile terminal dialing the ordinary number and the emergency number is that the mobile terminal can dial the emergency number without the need of network injection.
The emergency number group corresponding to the combination of the mobile terminal equipment code, the mobile country code and the mobile network code and the configuration type of the emergency number group are set, so that the emergency number configured by the mobile terminal is diversified, and the dialing requirement of special operators on the emergency number can be met.
Further, step S200, whether an emergency number configuration instruction is received;
in this embodiment, when the mobile terminal receives the emergency number configuration instruction, the mobile terminal device number and the SIM card information are obtained, and the emergency number configuration instruction may be set when the mobile terminal is powered on, or when the user manually presses the key of the emergency number configuration function, the emergency number configuration instruction is started. The configuration of the emergency number of the mobile terminal is performed when it is detected that the mobile terminal is executing a power-on instruction. The mobile terminal emergency number list can be stored in a ROM of the mobile terminal when the SIM card is switched and is not powered off or after the SIM card is configured, new SIM card information can not be obtained again in a manual refreshing mode when the set information is erased due to power failure of equipment, and the equipment code does not need to be obtained again if the equipment code is not changed. The step of manual configuration when the SIM card is switched can be omitted by adopting the mode of the starting configuration emergency number, the program loaded during starting can be reduced by adopting the mode of manual refreshing configuration, the starting speed is improved, and one of the starting configuration and the manual configuration can be freely selected according to the preference of a user.
Further, step S300, when the emergency number configuration instruction is detected, acquiring a device code and SIM card information of the mobile terminal;
in this embodiment, when the emergency number configuration instruction is detected, the device code ECID of the mobile terminal is obtained, whether a SIM card is currently inserted into the mobile terminal is determined, and the mobile country code and the mobile network code in the SIM card information are obtained when the SIM card is inserted into the mobile terminal.
When a plurality of SIM cards are inserted into the mobile terminal, the main card is used by default or the information of the SIM card which is set in the system by the user and is used for providing the emergency number configuration is acquired.
Further, step S400, obtaining emergency number groups respectively corresponding to the device code and the SIM card information through a lookup table, and configuring the emergency number of the mobile terminal according to the lookup table;
in this embodiment, according to the obtained mobile terminal device code and the combination of the mobile country code and the mobile network code in the SIM card information, the emergency number groups corresponding to the device code and the combination of MCC + MNC are respectively searched through the preset lookup table, and the emergency number of the mobile terminal is configured according to the configuration types of the two sets of emergency number groups respectively corresponding to the device code and the combination of MCC + MNC. The user can set up by oneself and use the urgent number group that equipment code corresponds to configure or use the urgent number group that MCC + MNC corresponds to configure for giving first place to, the main urgent number group that the preferred user that takes when the configuration of two sets of urgent number groups conflicts configures.
For example, when the default emergency numbers configured by the handset system of a certain user a are 110 and 120, and the emergency numbers that need to be dialed through the emergency dialing mode are 110, 120, 119 and 911 locally, and the current handset has no SIM card. When a user turns on the mobile phone, the mobile phone detects that a power-on instruction is being executed, for example, the device code of the mobile phone is ECID XXXXX03, the emergency number group corresponding to the device number of ECID XXXXXXX 03 is found to be 110, 120, 119 and 911 according to a preset lookup table, and when the configuration type of the emergency number group is an emergency type, the four numbers 110, 120, 119 and 911 are controlled to be configured as the emergency number of the mobile phone, and after the mobile phone configuration is finished, the user can dial the corresponding emergency service hotline through the numbers 110, 120, 119 and 911.
When the default emergency numbers configured by the mobile phone system of a certain user B are 110 and 120, only 120 and 119 are locally specified as emergency numbers which can be dialed through an emergency dialing mode, and 110 needs to be dialed through a normal dialing mode after the mobile phone is logged in. When the user turns on the mobile phone, the mobile phone detects that the SIM card information MCC + MNC is 5XX +01 in addition to the information of ECID XXXXXX 04. The handset detects that the emergency number group of the SIM card includes numbers 120, 119 and 110 through the lookup table, and the configuration type of both numbers 120 and 119 is emergency type, and the configuration type of 110 number is non-emergency type. In the process of emergency number configuration of the mobile phone, the default emergency number 120 configured by the mobile phone system is still the emergency number, 119 is the emergency number added through the emergency number group, and the original number 110 is removed from the emergency number list, and when the user dials 110, the number 110 is dialed by a normal dialing mode.
When the area where a certain user C is located specifies that all emergency numbers need to be dialed out through a common dialing mode, and the default emergency number of the mobile phone of the user is 110. When the user starts the mobile terminal, the mobile terminal acquires the equipment code with ECID of XXXXXXX 05 and the SIM card information with MCC + MCN of 5XX +01, and the user sets the equipment code as the main configuration, acquires the emergency number group corresponding to the equipment code with ECID of XXXXXXX 05 and the configuration type of the emergency number group, and controls the numbers in the emergency number list of the mobile terminal to be common numbers when the configuration type is empty.
When the emergency number of a certain user D area is 911 and the configuration type of the corresponding emergency number group is found to be the reporting bottom layer number type by the mobile phone, the default emergency number 911 configured by the mobile phone system is kept unchanged.
The mobile phone can be configured with various emergency number combinations by setting the emergency number group or the configuration mode of the specific number in the emergency number group, and a user can set according to the use condition of the user, so that the user experience is improved.
Further, step S500, detecting the dialing instruction, determining whether the current dialing number is in the emergency number list, if so, starting an emergency dialing mode to dial the number, and if not, starting a normal dialing mode to dial the number.
In this embodiment, when it is detected that the user uses the mobile terminal to dial, it is determined whether the dial number is in an emergency number list set by the mobile terminal, and then the emergency dial mode dial-out number is started, and when the dial number is not in the emergency number list, the normal dial mode dial-out number is started.
For example, when the user B dials 120 through the mobile phone, the mobile phone determines that the phone number of 120 is an emergency number, and then starts an emergency dialing mode to dial the number; when the mobile phone dials 110, the mobile phone starts a common dialing mode to dial out a number if the mobile phone judges that 110 is not in the emergency number list of the mobile phone; when the mobile phone dials the ordinary number of 135 x 00, the mobile phone judges that the number of 135 x 00 is not in the emergency number list, and then starts the ordinary dialing mode to dial the number.
According to the embodiment, when the mobile terminal dials the emergency call, the emergency call can be dialed through the designated emergency dialing mode or the designated ordinary dialing mode according to the requirements of the region and the region operator.
The invention is further illustrated in detail by the following specific application examples:
in this specific application embodiment, the mobile terminal takes a mobile phone as an example, as shown in fig. 2, a method for customizing an emergency number of a mobile terminal in this specific application embodiment includes the following steps:
s10, start, go to step S11;
s11, configuring the emergency number customization file in the mobile terminal in advance, and going to step S12;
s12, when using the mobile terminal to inquire the number or dial the call, obtaining the number dialed at present, and entering the step S13;
s13, reading the combination of MCC + MNC in the identification number ECID of the mobile terminal or the information of the SIM card, and entering the step S14;
s14, finding a group of emergency numbers corresponding to the identification number ECID or the combination of the SIM card information MCC + MNC and the configuration type thereof in the pre-configured emergency number customization file, and entering the step S15;
s15, judging whether the number is in the emergency number group of the preset emergency number designation file, if yes, entering the step S17, and if not, entering the step S16;
s16, when the number is not in the emergency number group, judging whether the number is the emergency number according to the default emergency number list of the mobile phone, if so, dialing the number through the emergency dialing mode, otherwise, dialing the number through the ordinary dialing mode, and entering the step S30;
s17, judging whether the number is an emergency type in the configuration type, if yes, entering the step S18, and if not, entering the step S19;
s18, when the configuration type of the number is judged to be the emergency type, returning the number to be the emergency number or dialing the number through the emergency dialing mode, and entering the step S30;
the return number is not an emergency number or the number is dialed through a normal dialing mode, and the step S30 is entered;
s19, judging whether the configuration type of the number is a non-emergency type or an empty type, if so, entering a step S20, and if not, entering a step S21;
s20, when the configuration type of the number is judged to be non-emergency type or null type, returning that the number is not emergency number or dialing through the ordinary dialing mode, and entering the step S30;
s21, when the configuration type of the number is judged not to be a non-emergency type or an empty type, acquiring an original emergency number list of the mobile terminal to judge whether the number is an emergency number, if so, returning the number to be the emergency number and dialing the number through an emergency dialing mode, if not, returning the number to be the non-emergency number and dialing the number through a common dialing mode, and entering the step S30;
and S30, ending.
As can be seen from the above, in the embodiment of the present invention, when a user dials a call or inquires a dialing type of the call using a mobile phone, the mobile phone determines whether the phone number is an emergency number according to a pre-configured assignment file, dials in an emergency dialing mode when determining that a currently dialed number is an emergency number, and dials in a normal dialing mode when determining that a currently dialed number is a normal number.
An appointed file containing an emergency number group corresponding to the equipment code ECID and the SIM card information respectively and the configuration type of the emergency number group are configured on the mobile phone in advance. When a user inquires or dials, the mobile phone acquires a current dialing number or a mobile phone number which is inquired currently, reads an identification number ECID of the mobile phone or an MCC + MNC combination in SIM card information, acquires an emergency number group corresponding to the ECID when the user sets the ECID as a main device number, acquires the emergency number group corresponding to the MCC + MNC when the user sets the ECID as a main device number, and acquires a configuration type of the emergency number group. Judging whether the current inquired or dialed number is in the emergency number group, if not, judging whether the number is the emergency number according to a default emergency number list of the mobile phone, if not, returning a corresponding inquiry result or dialing the number through a common dialing mode, and if so, returning the corresponding inquiry result or dialing the number through the emergency dialing mode. When the number is judged to be a number in the emergency number group, judging whether the configuration type of the number is an emergency type, if so, returning the inquiry result to be the emergency number or dialing the number through an emergency dialing mode, if not, further judging whether the configuration type of the number is a non-emergency or empty type, if so, returning the inquiry result to be the non-emergency number or dialing the number through a common dialing mode, and if not, judging whether the number is the emergency number according to a default emergency number list of the mobile phone.
Therefore, through the pre-configured finger file containing the emergency number groups respectively corresponding to the ECID and the MCC + MNC and the configuration types, the mobile terminal can not only configure the emergency number list of the mobile terminal when being started or manually configured, but also query whether the number is the emergency number group in the finger file when dialing, further acquire the configuration type of the number and judge whether the number is the emergency number or the common number.
The emergency number of the mobile terminal can be configured by users, mobile phone manufacturers and operators according to requirements, and the diversity of the configuration of the emergency number of the mobile terminal is improved.
As shown in fig. 3, an embodiment of the present invention provides an emergency number customizing apparatus for a mobile terminal, including: the system comprises a presetting module 310, a starting instruction detection module 320, an acquisition module 330, a searching module 340, a configuration module 350 and a dialing module 360. Specifically, the preset module 310 is configured to preset a lookup table including emergency number groups respectively corresponding to the device code and the SIM card information, and configuration types corresponding to the emergency number groups; the power-on instruction detection module 320 is configured to detect whether the mobile terminal is executing a power-on instruction; the acquiring module 330 is configured to acquire a mobile terminal device code and a mobile country code and a mobile network code in the inserted SIM card information; the searching module 340 is configured to search, through a preset lookup table, corresponding emergency number groups and configuration types corresponding to the emergency number groups according to the acquired device codes, the mobile country codes and the mobile network codes; the configuration module 350 is configured to configure the emergency number of the mobile terminal according to the found emergency number group and the configuration type corresponding to the emergency number group; the dialing module 360 is configured to determine whether the current dialing number is an emergency number when a dialing instruction is detected, start an emergency dialing mode dialing number when the current dialing number is determined to be not the emergency number, and start a normal dialing mode dialing number when the current dialing number is determined to be not the emergency number.
Based on the above embodiments, the present invention further provides a terminal device, and a schematic block diagram thereof may be as shown in fig. 4. The terminal equipment comprises a processor, a memory, a network interface and a display screen which are connected through a system bus. Wherein the processor of the terminal device is configured to provide computing and control capabilities. The memory of the terminal equipment comprises a nonvolatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operating system and the computer program to run on the non-volatile storage medium. The network interface of the terminal device is used for connecting and communicating with an external terminal through a network. The computer program is executed by a processor to implement a mobile terminal emergency number customization. The display screen of the terminal equipment can be a liquid crystal display screen or an electronic ink display screen.
It will be understood by those skilled in the art that the block diagram of fig. 4 is only a block diagram of a part of the structure related to the solution of the present invention, and does not constitute a limitation to the terminal device to which the solution of the present invention is applied, and a specific terminal device may include more or less components than those shown in the figure, or combine some components, or have a different arrangement of components.
In one embodiment, there is provided a terminal device comprising a memory, a processor, and a mobile terminal emergency number customizing program stored on and operable on the processor, the processor performing the steps of:
presetting a lookup table containing emergency number groups respectively corresponding to equipment codes and SIM card information;
detecting whether an emergency number configuration instruction is received or not;
when an emergency number configuration instruction is detected, acquiring the equipment code and SIM card information of the mobile terminal;
acquiring emergency number groups respectively corresponding to the equipment codes and the SIM card information through a lookup table, and configuring the emergency numbers of the mobile terminal according to the lookup table;
and detecting a dialing instruction, judging whether the current dialing number is in an emergency number list, if so, starting an emergency dialing mode to dial the number, and if not, starting a common dialing mode to dial the number.
Wherein, the step of presetting the lookup table containing the emergency number groups respectively corresponding to the equipment codes and the SIM card information comprises the following steps:
presetting an emergency number group corresponding to the equipment code of the mobile terminal;
an emergency number group corresponding to a combination of a mobile country code and a mobile network code in the SIM card information is preset.
Wherein, the step of presetting the lookup table containing the emergency number groups respectively corresponding to the equipment codes and the SIM card information further comprises:
the preset configuration types of the emergency number groups comprise an emergency type, a non-emergency type, a null type and a reporting bottom layer number type.
Wherein, when detecting the emergency number configuration instruction, the step of obtaining the equipment code and the SIM card information of the mobile terminal comprises:
when an emergency number configuration instruction is detected;
controlling to obtain an equipment code of the mobile terminal and identifying whether an SIM card is inserted into an SIM card slot of the mobile terminal;
and when the SIM card is detected to be inserted into the mobile terminal, acquiring the mobile country code and the mobile network code in the SIM card information.
The step of obtaining the emergency number groups respectively corresponding to the equipment codes and the SIM card information through the lookup table and configuring the emergency numbers of the mobile terminal according to the lookup table comprises the following steps:
after acquiring the equipment code of the mobile terminal and the mobile country code and the mobile network code in the SIM card information;
respectively searching emergency number groups corresponding to the equipment codes and the combination of the mobile country codes and the mobile network codes through a lookup table, and acquiring the configuration types of the emergency number groups;
and configuring the emergency number of the mobile terminal according to the acquired emergency number group and the configuration type of the emergency number group.
The step of obtaining the emergency number groups respectively corresponding to the equipment codes and the SIM card information through the lookup table and configuring the emergency numbers of the mobile terminal according to the lookup table further comprises:
when the configuration type is the emergency type, configuring the numbers in the emergency number group as the emergency numbers of the mobile terminal;
when the configuration type is a non-emergency type, detecting whether the emergency number configured on the bottom layer of the mobile terminal contains the number in the emergency number group, and if so, setting the number as a common number;
when the configuration type is an empty type, detecting emergency numbers configured on the bottom layer of the mobile terminal, and setting all the emergency numbers configured on the bottom layer of the mobile terminal as common numbers;
and when the configuration type is the reporting bottom-layer number type, keeping the original emergency number of the mobile terminal from being configured.
The step of detecting the dialing instruction, judging whether the current dialing number is in an emergency number list, if so, starting an emergency dialing mode dialing number, and if not, starting a common dialing mode dialing number comprises the following steps:
when a dialing instruction is detected, judging whether a current dialing number is in an emergency number list of the mobile terminal;
if yes, starting an emergency dialing mode to dial the current dialing number;
and when the dialing number is not in the emergency number list of the mobile terminal, starting a common dialing mode to dial the current dialing number.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above may be implemented by hardware instructions of a computer program, which may be stored in a non-volatile computer-readable storage medium, and when executed, may include the processes of the embodiments of the methods described above. Any reference to memory, storage, databases, or other media used in embodiments provided herein may include non-volatile and/or volatile memory. Non-volatile memory can include read-only memory (ROM), Programmable ROM (PROM), Electrically Programmable ROM (EPROM), Electrically Erasable Programmable ROM (EEPROM), or flash memory. Volatile memory can include Random Access Memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in a variety of forms such as Static RAM (SRAM), Dynamic RAM (DRAM), Synchronous DRAM (SDRAM), Double Data Rate SDRAM (DDRSDRAM), Enhanced SDRAM (ESDRAM), Synchronous Link DRAM (SLDRAM), Rambus Direct RAM (RDRAM), direct bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).
In summary, the present invention discloses a method, an apparatus, a terminal device and a storage medium for customizing an emergency number of a mobile terminal, wherein the method comprises: presetting a lookup table containing emergency number groups respectively corresponding to equipment codes and SIM card information; detecting whether an emergency number configuration instruction is received or not; when an emergency number configuration instruction is detected, acquiring the equipment code and SIM card information of the mobile terminal; acquiring emergency number groups respectively corresponding to the equipment codes and the SIM card information through a lookup table, and configuring the emergency numbers of the mobile terminal according to the lookup table; and detecting a dialing instruction, judging whether the current dialing number is in an emergency number list, if so, starting an emergency dialing mode to dial the number, and if not, starting a common dialing mode to dial the number. The method aims to solve the problem that the default emergency number of the existing mobile terminal cannot meet the dialing mode of a special operator, so that the emergency number customizing mode of the mobile terminal is more diversified.
It is to be understood that the invention disclosed is not limited to the examples described above, but may be modified or varied by those skilled in the art, all falling within the scope of the invention as defined by the appended claims.

Claims (9)

1. A method for customizing an emergency number of a mobile terminal is characterized by comprising the following steps:
presetting a lookup table containing emergency number groups respectively corresponding to equipment codes and SIM card information;
detecting whether an emergency number configuration instruction is received or not;
when an emergency number configuration instruction is detected, acquiring the equipment code and SIM card information of the mobile terminal;
acquiring emergency number groups respectively corresponding to the equipment codes and the SIM card information through a lookup table, and configuring the emergency numbers of the mobile terminal according to the lookup table;
the step of obtaining the emergency number groups respectively corresponding to the equipment codes and the SIM card information through the lookup table and configuring the emergency numbers of the mobile terminal according to the lookup table further comprises the following steps:
when the configuration type is the emergency type, configuring the numbers in the emergency number group as the emergency numbers of the mobile terminal;
when the configuration type is a non-emergency type, detecting whether the emergency number configured on the bottom layer of the mobile terminal contains the number in the emergency number group, and if so, setting the number as a common number;
when the configuration type is an empty type, detecting emergency numbers configured on the bottom layer of the mobile terminal, and setting all the emergency numbers configured on the bottom layer of the mobile terminal as common numbers;
when the configuration type is a reporting bottom layer number type, the original emergency number of the mobile terminal is kept not to be configured;
and detecting a dialing instruction, judging whether the current dialing number is in an emergency number list, if so, starting an emergency dialing mode to dial the number, and if not, starting a common dialing mode to dial the number.
2. The method of claim 1, wherein the step of presetting the lookup table containing the emergency number groups respectively corresponding to the device code and the SIM card information comprises:
presetting an emergency number group corresponding to the equipment code of the mobile terminal;
an emergency number group corresponding to a combination of a mobile country code and a mobile network code in the SIM card information is preset.
3. The method as claimed in claim 2, wherein the step of presetting the lookup table containing the emergency number groups corresponding to the device code and the SIM card information further comprises:
the preset configuration types of the emergency number groups comprise an emergency type, a non-emergency type, a null type and a reporting bottom layer number type.
4. The method as claimed in claim 1, wherein the step of obtaining the device code and the SIM card information of the mobile terminal when the emergency number configuration command is detected comprises:
when an emergency number configuration instruction is detected;
controlling to obtain an equipment code of the mobile terminal and identifying whether an SIM card is inserted into an SIM card slot of the mobile terminal;
and when the SIM card is detected to be inserted into the mobile terminal, acquiring the mobile country code and the mobile network code in the SIM card information.
5. The method of claim 3, wherein the step of obtaining the emergency number groups respectively corresponding to the device code and the SIM card information through the lookup table, and configuring the emergency number of the mobile terminal according to the lookup table comprises:
after acquiring the equipment code of the mobile terminal and the mobile country code and the mobile network code in the SIM card information;
respectively searching emergency number groups corresponding to the equipment codes and the combination of the mobile country codes and the mobile network codes through a lookup table, and acquiring the configuration types of the emergency number groups;
and configuring the emergency number of the mobile terminal according to the acquired emergency number group and the configuration type of the emergency number group.
6. The method as claimed in claim 1, wherein the step of detecting the dialing command, determining whether the current dialing number is in the emergency number list, if so, starting the emergency dialing mode dialing number, and if not, starting the normal dialing mode dialing number comprises:
when a dialing instruction is detected, judging whether a current dialing number is in an emergency number list of the mobile terminal;
if yes, starting an emergency dialing mode to dial the current dialing number;
and when the dialing number is not in the emergency number list of the mobile terminal, starting a common dialing mode to dial the current dialing number.
7. An emergency number customizing apparatus of a mobile terminal, the apparatus comprising:
the preset module is used for presetting a lookup table which contains emergency number groups respectively corresponding to the equipment codes and the SIM card information and configuration types corresponding to the emergency number groups;
the starting instruction detection module is used for detecting whether the mobile terminal executes a starting instruction;
the acquisition module is used for acquiring a mobile terminal equipment code and a mobile country code and a mobile network code in the inserted SIM card information;
the searching module is used for searching the corresponding emergency number groups and the corresponding configuration types of the emergency number groups according to the acquired equipment codes, the mobile country codes and the mobile network codes through a preset searching table;
the search module is further specifically configured to:
when the configuration type is the emergency type, configuring the numbers in the emergency number group as the emergency numbers of the mobile terminal;
when the configuration type is a non-emergency type, detecting whether the emergency number configured on the bottom layer of the mobile terminal contains the number in the emergency number group, and if so, setting the number as a common number;
when the configuration type is an empty type, detecting emergency numbers configured on the bottom layer of the mobile terminal, and setting all the emergency numbers configured on the bottom layer of the mobile terminal as common numbers;
when the configuration type is a reporting bottom layer number type, the original emergency number of the mobile terminal is kept not to be configured;
the configuration module is used for configuring the emergency number of the mobile terminal according to the searched emergency number group and the configuration type corresponding to the emergency number group;
and the dialing module is used for judging whether the current dialing number is an emergency number or not when a dialing instruction is detected, starting an emergency dialing mode dialing number at that time, and starting a common dialing mode dialing number when the current dialing number is judged not to be the emergency number.
8. A terminal device, characterized in that the terminal device comprises a memory, a processor and a mobile terminal emergency number customizing program stored on the memory and operable on the processor, and the processor implements the steps of the mobile terminal emergency number customizing method according to any one of claims 1 to 6 when executing the mobile terminal emergency number customizing program.
9. A computer-readable storage medium, having stored thereon a mobile terminal emergency number customizing program, which, when executed by a processor, implements the steps of the mobile terminal emergency number customizing method according to any one of claims 1 to 6.
CN202110817768.8A 2021-07-20 2021-07-20 Mobile terminal emergency number customizing method and device, terminal equipment and storage medium Active CN113489832B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110817768.8A CN113489832B (en) 2021-07-20 2021-07-20 Mobile terminal emergency number customizing method and device, terminal equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110817768.8A CN113489832B (en) 2021-07-20 2021-07-20 Mobile terminal emergency number customizing method and device, terminal equipment and storage medium

Publications (2)

Publication Number Publication Date
CN113489832A CN113489832A (en) 2021-10-08
CN113489832B true CN113489832B (en) 2022-08-05

Family

ID=77942382

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110817768.8A Active CN113489832B (en) 2021-07-20 2021-07-20 Mobile terminal emergency number customizing method and device, terminal equipment and storage medium

Country Status (1)

Country Link
CN (1) CN113489832B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115334465B (en) * 2022-07-21 2023-09-08 深圳市磐鼎科技有限公司 Communication method and device in shutdown state, mobile terminal and storage medium
CN117119096A (en) * 2023-10-24 2023-11-24 Tcl通讯科技(成都)有限公司 Contact person information presetting method and device, storage medium and electronic equipment

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105282293A (en) * 2014-07-16 2016-01-27 中兴通讯股份有限公司 Dialing method, dialing device and dialing terminal
CN105827778B (en) * 2016-03-14 2019-02-19 青岛海信移动通信技术股份有限公司 A kind of method and device for initiating calling
CN107302757A (en) * 2017-06-26 2017-10-27 上海与德科技有限公司 The method of calling and device of emergency numbers
CN111279670A (en) * 2017-08-25 2020-06-12 深圳传音通讯有限公司 Emergency number matching method and device
CN107613099B (en) * 2017-08-28 2020-11-06 上海传英信息技术有限公司 Method and device for loading emergency number

Also Published As

Publication number Publication date
CN113489832A (en) 2021-10-08

Similar Documents

Publication Publication Date Title
CN113489832B (en) Mobile terminal emergency number customizing method and device, terminal equipment and storage medium
KR100310817B1 (en) Method for controlling activation of mobile station and mobile station using same
US9391836B2 (en) Method and terminal for loading operator configuration information
JP2002519965A (en) A mobile radio system that can dynamically change identifiers
US20200037153A1 (en) Method and electronic device for automatically switching among plurality of profiles in esim
US7324811B2 (en) Method and devices for dialling services
US20040235467A1 (en) Method for updating a personal data file in mobile units of communication networks
US8577379B2 (en) Method of handling automatic call origination and system determination on multi-network mobile devices
EP2685780B1 (en) Mobile phone and data processing method therefor
EP1518369A1 (en) A method for establishing a connection between a mobile device and a second device
CN112468879A (en) Television user scene switching method, device and terminal based on fingerprint identification
EP1734706B1 (en) Controlling searches in a short-range radio system
CN103813439A (en) Method for terminal register and terminal
CN101518036B (en) Communication device and communication method
KR20070045645A (en) Mobile terminal and method for providing service using standby-screen
CN105979552B (en) Method and system for using manual PLMN selection mode
WO2004059956A1 (en) A method and a mobile terminal to simplify international calls
CN116567601A (en) Emergency call control method, system, chip module, equipment and medium
CN112423288A (en) Dialing analysis method and device, computer equipment and storage medium
CN113094070A (en) Application program switching method and device, storage medium and mobile terminal
CN113115482A (en) Terminal communication method and device based on android system, terminal and storage medium
CN112261640B (en) Method and device for eliminating SIM card firmware miscwitch, electronic equipment and storage medium
KR100483949B1 (en) Portable information terminal and control method
CN112969218B (en) Network registration method and device, electronic equipment and storage medium
CN115767509A (en) Parameter configuration method and device, terminal equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant