Data updating method and device, electronic equipment and storage medium
By realizing timely update of the emergency number list in the emergency call system, the emergency call failure problem caused by inconsistent emergency number configuration is solved, and the system reliability and user security are improved.
Patent Information
- Application Number
- CN202311575746.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-11-23
- Publication Date
- 2025-05-23
AI Technical Summary
In an emergency call system, the accuracy of emergency number configuration depends on the correct configuration of terminal equipment. However, the promotion of globalization and changes in operator policies have led to frequent changes in the demand for emergency numbers. If it cannot be updated in time, it may lead to accidents such as emergency call failure.
A data update method is proposed, which obtains emergency number modification requirements through the server, generates emergency number data to be issued, and sends it to the target terminal device to update the emergency number list stored in the setting storage unit of the terminal device.
It realizes timely updates to the emergency number list, avoids emergency call failures caused by inconsistent configurations, and improves the reliability and user security of the emergency call system.
Smart Images

Figure CN120034608A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of computer technology, and in particular to a data updating method, device, electronic device and storage medium. Background Art
[0002] The field of emergency calls refers to the behavior and technology of people seeking help and assistance from relevant agencies or personnel through telephone or other communication methods in an emergency. Emergency call systems usually call emergency service agencies such as hospitals or fire departments to seek help, which depends on the accuracy of the terminal emergency number configuration.
[0003] However, terminal globalization is advancing at an increasingly rapid pace, and emergency number configurations vary among countries and operators. Changes in regional policies and operators will lead to frequent changes in emergency number requirements. If they are not updated in a timely manner, accidents such as user emergency call failures will occur. Summary of the invention
[0004] The present application aims to solve one of the technical problems in the related art at least to some extent.
[0005] To this end, the present application proposes a data updating method, device, electronic device and storage medium to achieve timely updating of the emergency number list.
[0006] In one aspect, an embodiment of the present application provides a data updating method, which is applied to a target terminal device, including:
[0007] Acquire the emergency number data sent by the server; wherein the emergency number data is sent when the server generates the emergency number data to be sent based on the emergency number carried in the acquired emergency number modification requirement;
[0008] According to the emergency number data, the emergency number list stored in the setting storage unit of the target terminal device is updated; wherein the setting storage unit is a readable and writable storage unit.
[0009] Another aspect of the present application is to provide a data updating method, which is applied to a server and includes:
[0010] Get emergency number modification requirements;
[0011] Generate emergency number data to be sent according to the emergency number carried in the emergency number modification request;
[0012] Determine the target terminal device for which the emergency number list modification is required according to the modification granularity carried in the emergency number modification requirement;
[0013] The emergency number data is sent to the target terminal device; wherein the emergency number data is used by the target terminal device to update the emergency number list stored in the setting storage unit of the target terminal device, wherein the setting storage unit is a readable and writable storage unit.
[0014] Another aspect of the present application provides a data updating device, which is applied to a target terminal device and includes:
[0015] An acquisition module, used for acquiring emergency number data sent by a server; wherein the emergency number data is sent when the server generates emergency number data to be sent based on the emergency number carried in the acquired emergency number modification requirement;
[0016] An updating module is used to update the emergency number list stored in the setting storage unit of the target terminal device according to the emergency number data; wherein the setting storage unit is a readable and writable storage unit.
[0017] Another aspect of the present application provides a data updating device, which is applied to a server and includes:
[0018] An acquisition module is used to obtain emergency number modification requirements;
[0019] A generating module, used for generating the emergency number data to be sent according to the emergency number carried in the emergency number modification requirement;
[0020] A determination module, used to determine a target terminal device that needs to modify the emergency number list according to the modification granularity carried in the emergency number modification requirement;
[0021] A sending module is used to send the emergency number data to the target terminal device; wherein the emergency number data is used by the target terminal device to update the emergency number list stored in the setting storage unit of the target terminal device, wherein the setting storage unit is a readable and writable storage unit.
[0022] Another aspect of the present application provides an electronic device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the program, the method described in the first aspect or the second aspect is implemented.
[0023] Another aspect of the present application provides a non-transitory computer-readable storage medium having a computer program stored thereon. When the computer program is executed by a processor, the method described in the first aspect or the method described in the second aspect is implemented.
[0024] Another aspect of the present application provides a computer program product on which a computer program is stored. When the program is executed by a processor, the method described in the first aspect or the second aspect is implemented.
[0025] The data updating method, device, electronic device and storage medium proposed in the embodiments of the present application obtain emergency number data sent by a server, wherein the emergency number data is sent when the server generates emergency number data to be sent based on the emergency number carried in the acquired emergency number modification requirement, and updates the emergency number list stored in a readable and writable setting storage unit of the target terminal device according to the emergency number data. By storing the emergency number list in a readable and writable setting storage unit, when the emergency number data sent by the server is received, the stored emergency number list can be updated based on the emergency number data, thereby achieving fast and timely updates.
[0026] Additional aspects and advantages of the present application will be given in part in the description below, and in part will become apparent from the description below, or will be learned through the practice of the present application. BRIEF DESCRIPTION OF THE DRAWINGS
[0027] The above and / or additional aspects and advantages of the present application will become apparent and easily understood from the following description of the embodiments in conjunction with the accompanying drawings, in which:
[0028] Figure 1 A flowchart of a data updating method provided in an embodiment of the present application;
[0029] Figure 2 A flowchart of another data updating method provided in an embodiment of the present application;
[0030] Figure 3 A flowchart of another data updating method provided in an embodiment of the present application;
[0031] Figure 4 A flowchart of another data updating method provided in an embodiment of the present application;
[0032] Figure 5 A schematic diagram of the structure of a data updating device provided in an embodiment of the present application;
[0033] Figure 6 A schematic diagram of the structure of another data updating device provided in an embodiment of the present application;
[0034] Figure 7 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0035] Embodiments of the present application are described in detail below, and examples of the embodiments are shown in the accompanying drawings, wherein the same or similar reference numerals throughout represent the same or similar elements or elements having the same or similar functions. The embodiments described below with reference to the accompanying drawings are exemplary and are intended to be used to explain the present application, and should not be construed as limiting the present application.
[0036] The data updating method, device, electronic device and storage medium of the embodiments of the present application are described below with reference to the accompanying drawings.
[0037] Figure 1 A flowchart of a data updating method provided in an embodiment of the present application.
[0038] The executor of the data update method of the embodiment of the present application is a data update device, which can be set in a target terminal device. The terminal device can be a smart phone, a smart watch or other IoT terminal device that supports emergency calls, which is not limited in this embodiment.
[0039] like Figure 1 As shown, the method may include the following steps:
[0040] Step 101, obtaining emergency number data sent by a server.
[0041] Among them, the target terminal device is a terminal device that needs to update the emergency number list. In one scenario, the emergency number list stored in a terminal device of a set model / batch needs to be updated, and the target terminal device is the terminal device of the set model / batch; in the second scenario, there are emergency numbers to be updated in a set area, and the emergency numbers stored in the terminal device corresponding to the set area need to be updated, and the target terminal device is the terminal device corresponding to the set area, for example, the current location of the terminal device is in the set area or the number belongs to the set area; in the third scenario, a specific operator needs to update the emergency number list, and the target terminal device is the terminal device corresponding to the specific operator; in the fourth scenario, the target terminal device is a terminal device of a specific version number.
[0042] Among them, the emergency number data is sent when the server obtains the emergency number data to be sent. In the embodiment of the present application, the server can be a cloud server, such as a cloud control platform, referred to as a cloud control platform or a cloud control middle platform. When there is a need to change the emergency number, the cloud control platform will enter the changed emergency number into the cloud control platform in a specific data format, for example, a lightweight data exchange format JSON (JavaScript Object Notation, JSON) string, and generate the emergency number data to be sent according to the change requirements and the changed emergency number. When the emergency number data to be sent is generated, the emergency number data to be sent is sent to the target terminal device, so that the emergency number data to be sent can be sent to the target terminal device in a timely manner, thereby improving the timeliness of the sending.
[0043] Step 102: Update the emergency number list stored in the setting storage unit of the target terminal device according to the emergency number data.
[0044] The storage unit is set to be a readable and writable storage unit, for example, a storage unit for storing user data.
[0045] In the related art, the emergency number list is stored in the storage unit of the system, which is not easy to change. It can only be updated by version upgrade through Over-the-Air (OTA) technology. Since the OTA version upgrade cycle is too long, or some users do not choose to perform OTA upgrade, the emergency number list cannot be updated in time. In the embodiment of the present application, the emergency number list is stored in a readable and writable setting storage unit, so that when the emergency number data sent by the server is received, the stored emergency number list can be updated based on the emergency number data, so as to achieve fast and timely update.
[0046] As an implementation method, the emergency number data is identified, the modification type corresponding to the emergency number data is determined, and the emergency number list stored in the target terminal device is updated according to the modification type corresponding to the emergency number data. The modification type includes replacing and / or editing the emergency number list.
[0047] In the data updating method of the embodiment of the present application, emergency number data sent by the server is obtained, wherein the emergency number data is sent when the server generates emergency number data to be sent based on the emergency number carried in the acquired emergency number modification requirement, and according to the emergency number data, the emergency number list stored in the readable and writable setting storage unit of the target terminal device is updated. By storing the emergency number list in the readable and writable setting storage unit, when the emergency number data sent by the server is received, the stored emergency number list can be updated based on the emergency number data, thereby achieving fast and timely updates.
[0048] Based on the above embodiments, Figure 2 A flowchart of another data updating method provided in an embodiment of the present application is shown as follows: Figure 2 As shown, the method comprises the following steps:
[0049] Step 201, obtaining emergency number data sent by a server.
[0050] The explanations in the aforementioned embodiments are also applicable to this embodiment, and the principles are the same, which will not be repeated here.
[0051] Step 202: Identify the emergency number data and determine the modification type corresponding to the emergency number data.
[0052] In the embodiment of the present application, the modification type corresponding to the emergency number data includes replacement and / or editing. The modification type corresponding to the emergency number data can be determined by identifying the content or file name of the emergency number data.
[0053] As an example, the emergency number data is sent in a specific file type, such as .xml type, where if the file name is ecclist.xml, it means that the modification type is replacement, and ecclist.xml indicates that the emergency number data is a new emergency number list; if the file name is update.xml, it means that the modification type is edit, and update.xml indicates that the emergency number data is to edit the emergency numbers in the historical emergency number list, and the edit includes one or more of addition, deletion, and modification. Therefore, according to the file name, it can be identified whether the modification type corresponding to the emergency number data is to edit or replace the historically stored emergency number list.
[0054] Step 203: Update the emergency number list stored in the target terminal device according to the modification type corresponding to the emergency number data.
[0055] In one scenario, the modification type is replacement, that is, the emergency number data sent is an ecclist.xml file, and the emergency number list corresponding to the emergency number data is used to replace the emergency number list stored in the setting storage unit of the target terminal device to obtain an updated emergency number list, thereby realizing timely and real-time updating of the emergency number list.
[0056] For example, the emergency number list stored in the storage unit is set to A, and the emergency number list B corresponding to the emergency number data is used to replace A, so that the emergency number list stored in the storage unit is updated to B.
[0057] In another scenario, in response to the modification type of the emergency number data being edit, where the edit includes at least one of addition, deletion or modification, the emergency number data is parsed to obtain the target operation type to be executed, and the emergency number list stored in the setting storage unit of the target terminal device is edited using the operation corresponding to the target operation type to obtain an updated emergency number list. This allows the emergency numbers stored in the terminal device to be added, deleted or modified in real time in response to different demand change scenarios, and existing machine users can quickly update the emergency number configuration of the terminal device without waiting for OTA upgrades.
[0058] As an implementation method, the processing logic of the Telephony module is called to parse the emergency number data update.xml, and the requirements for adding and modifying the emergency number of operator A are obtained. The emergency number X to be added carried in the update.xml file is added to the emergency number list stored in the setting storage unit, and the number M1 to be modified is replaced with M2, so as to realize timely and real-time update of the emergency number list.
[0059] In another scenario, the modification type is replacement and editing. Replacement can be performed first, and then editing. The replacement and editing methods can refer to the explanations in the aforementioned scenarios. The principles are the same and will not be repeated here.
[0060] Furthermore, after the emergency number list is updated, the modem is re-triggered to load the emergency number and report it to the user so that the user terminal device can obtain the real-time emergency number demand, thereby avoiding the occurrence of emergency call failure.
[0061] In the data updating method of the embodiment of the present application, the emergency number list is updated in real time through the cloud platform to solve the scenario of emergency call failure on the user side in extreme situations. Compared with the traditional method of pre-making emergency number lists, the emergency number list that has been written into the system storage unit cannot be updated in time. The present application can achieve real-time update of the terminal emergency number list, which to a certain extent promotes the development of the field of emergency calls of mobile terminals, and its development trend is becoming more and more intelligent and convenient.
[0062] Based on the above embodiments, the present application provides another data updating method. Figure 3 A flowchart of another data updating method provided in an embodiment of the present application is shown as follows: Figure 3 As shown, the method comprises the following steps:
[0063] Step 301, obtaining emergency number data sent by a server.
[0064] The explanations in the aforementioned embodiments are also applied to this embodiment, and the principles are the same, which will not be repeated here.
[0065] Step 302: Generate first authentication data according to the emergency number data.
[0066] In one implementation of the embodiment of the present application, a hash value of a message digest algorithm 5 (Message Digest Algorithm 5, MD5) is calculated from the emergency number data using a hash algorithm, and the hash value of MD5 is used as the first authentication data.
[0067] Step 303: compare the first authentication data with the historically stored second authentication data.
[0068] In the embodiment of the present application, the second authentication data generated historically is stored in the setting storage unit of the target terminal device, and the second authentication data is generated based on the emergency number data sent by the server last time. The first authentication data and the second authentication data are compared to determine whether the first authentication data and the second authentication data are the same, so as to determine whether the data updated this time is repeated with the data updated last time.
[0069] The second authentication data and the first authentication data are generated using the same algorithm.
[0070] Step 304: in response to the first authentication data and the second authentication data being different, the second authentication data is replaced with the first authentication data, and the emergency number data is identified to determine the modification type corresponding to the emergency number data.
[0071] In the embodiment of the present application, in response to the first authentication data and the second authentication data being different, it means that the emergency number data updated this time is different from the emergency number data updated last time. Therefore, the first authentication data is used to replace the second authentication data, so that the most recently generated first authentication data is stored in the setting storage unit corresponding to the target terminal device, and the authentication data is updated for subsequent comparison. Then, the emergency number data is identified, the modification type corresponding to the emergency number data is determined, and the emergency number list stored in the target terminal device is updated according to the modification type corresponding to the emergency number data, which can avoid repeated updates and improve the reliability of the update.
[0072] Step 305: Update the emergency number list stored in the target terminal device according to the modification type corresponding to the emergency number data.
[0073] The specific updating process in step 304 and step 305 can refer to the explanation in the aforementioned embodiment, and the principle is the same, which will not be repeated here.
[0074] Step 306: In response to the first authentication data and the second authentication data being the same, prohibiting updating of the emergency number list stored in the target terminal device.
[0075] In an embodiment of the present application, in response to the first authentication data and the second authentication data being the same, updating of the emergency number list stored in the target terminal device is prohibited to avoid repeated updates, waste the computing power of the terminal device, save electricity, and improve performance.
[0076] In the data updating method of the embodiment of the present application, by verifying the acquired emergency number data, it is ensured that no repeated updates are performed, thereby improving the reliability of the update, avoiding repeated operations, and improving the performance of the device.
[0077] Based on the above embodiments, the embodiments of the present application provide another data update method, which is applied to a server, wherein the server can be a local server or a cloud server, and the server can be a single server or a server cluster, which is not limited in this embodiment.
[0078] Figure 4 A flowchart of another data updating method provided in an embodiment of the present application is shown as follows: Figure 4 As shown, the method comprises the following steps:
[0079] Step 401, obtaining emergency number modification requirements.
[0080] In one implementation of the embodiment of the present application, in response to an operation by a user with management authority, the server obtains an emergency number modification requirement, wherein the modification includes replacement and / or editing, and the editing includes one or more of adding an emergency number, modifying an emergency number, deleting an emergency number, and adding a feature number. The modification requirement also includes the granularity of the modification, which can be a modification for one or more of a specific region, a specific terminal device model, a terminal device using a specific software version, and a specific operator.
[0081] The explanations and descriptions about the emergency number data in the aforementioned embodiments are also applicable to this embodiment and will not be repeated here.
[0082] Step 402: Generate emergency number data to be sent according to the emergency number carried in the emergency number modification request.
[0083] Among them, for the relevant explanations about the emergency number data, please refer to the relevant explanations in the aforementioned embodiment. The principles are the same and will not be repeated here.
[0084] Step 403: Determine the target terminal device for which the emergency number list needs to be modified according to the modification granularity carried in the emergency number modification requirement.
[0085] In the embodiment of the present application, the target terminal device that needs to modify the emergency number list can be determined based on the modification granularity.
[0086] As an implementation method, in response to the modification granularity being based on the target attribute information modification of the terminal device, a first terminal device whose attribute information is the target attribute information is determined, and the first terminal device is used as the target terminal device. The target attribute information may be the model or model of the terminal device, so as to modify / update the emergency number list in the terminal device of a specific model or model, realize the fine-grained update, achieve single-user level control, and improve the accuracy of the update.
[0087] As a second implementation method, in response to the modification granularity being based on the target area modification, a second terminal device corresponding to the target area is determined, wherein the second terminal device may be currently located in the target area, or the operator number may be located in the target area. Then, the second terminal device is used as the target terminal device, and through fine-grained updates, demand-based updates are implemented, thereby improving the accuracy of updates.
[0088] As a third implementation method, in response to the modification granularity being based on the supplier identification, a third terminal device using the supplier's number can be determined, and the third terminal device can be used as the target terminal device. Through fine-grained updates, demand-based updates are implemented, thereby improving the accuracy of updates.
[0089] As a fourth implementation method, in response to the modification granularity being based on the target version number modification of the terminal device, a fourth terminal device with a version number being the target version number can be determined, and the fourth terminal device can be used as the target terminal device. There is no need to worry about whether the user chooses OTA upgrade. The emergency number list of the target terminal device can be updated according to a specific version number, thereby improving the timeliness of the update without affecting the normal use of the user.
[0090] Step 404: Send the emergency number data to the target terminal device.
[0091] The emergency number data is used for the target terminal device to update the emergency number list stored in the setting storage unit of the target terminal device, wherein the setting storage unit is a readable and writable storage unit.
[0092] Among them, the relevant explanations in the aforementioned embodiments are also applicable to this embodiment, and the principles are the same, which will not be repeated here.
[0093] In the data updating method of the embodiment of the present application, by storing the emergency number list in a readable and writable setting storage unit, when the emergency number data sent by the server is received, the stored emergency number list can be updated based on the emergency number data, thereby achieving fast and timely updating.
[0094] In order to implement the above embodiment, the embodiment of the present application also proposes a data updating device, which is applied to a target terminal device.
[0095] Figure 5 A schematic diagram of the structure of a data updating device provided in an embodiment of the present application.
[0096] like Figure 5 As shown, the device may include:
[0097] The acquisition module 51 is used to acquire the emergency number data sent by the server; wherein the emergency number data is sent when the server generates the emergency number data to be sent based on the emergency number carried in the acquired emergency number modification requirement.
[0098] The updating module 52 is used to update the emergency number list stored in the setting storage unit of the target terminal device according to the emergency number data; wherein the setting storage unit is a readable and writable storage unit.
[0099] Furthermore, in an implementation of the embodiment of the present application, the updating module 52 is further configured to:
[0100] Generate first authentication data based on the emergency number data; compare the first authentication data with the second authentication data stored historically; in response to the first authentication data and the second authentication data being different, update the emergency number list stored in the target terminal device based on the emergency number data.
[0101] In one implementation of the embodiment of the present application, in one implementation of the embodiment of the present application, the updating module 52 is further used to:
[0102] The emergency number data is identified to determine the modification type corresponding to the emergency number data; and according to the modification type corresponding to the emergency number data, the emergency number list stored in the setting storage unit of the target terminal device is updated.
[0103] In one implementation of the embodiment of the present application, in one implementation of the embodiment of the present application, the updating module 52 is further used to:
[0104] In response to the modification type of the emergency number data being edit, the emergency number data is parsed to obtain the target operation type to be executed; the emergency number list stored in the setting storage unit of the target terminal device is edited using the operation corresponding to the target operation type to obtain an updated emergency number list.
[0105] In one implementation of the embodiment of the present application, in one implementation of the embodiment of the present application, the updating module 52 is further used to:
[0106] In response to the modification type of the emergency number data being replacement, the emergency number list corresponding to the emergency number data is used to replace the emergency number list stored in the target terminal device.
[0107] In one implementation of the embodiment of the present application, in one implementation of the embodiment of the present application, the updating module 52 is further used to:
[0108] In response to the first authentication data and the second authentication data being the same, updating the emergency number list stored in the target terminal device is prohibited. It should be noted that the above explanation of the method embodiment is also applicable to the device of this embodiment, which will not be repeated here.
[0109] The data updating device proposed in the present application obtains the emergency number data sent by the server, wherein the emergency number data is sent when the server generates the emergency number data to be sent based on the emergency number carried in the acquired emergency number modification requirement, and updates the emergency number list stored in the readable and writable setting storage unit of the target terminal device according to the emergency number data. By storing the emergency number list in the readable and writable setting storage unit, when the emergency number data sent by the server is received, the stored emergency number list can be updated based on the emergency number data, thereby realizing fast and timely updating.
[0110] In order to implement the above embodiment, the embodiment of the present application also proposes a data updating device applied to a server.
[0111] Figure 6 A schematic diagram of the structure of a data updating device provided in an embodiment of the present application.
[0112] like Figure 6 As shown, the device may include:
[0113] The acquisition module 61 is used to acquire the emergency number modification requirement.
[0114] The generating module 62 is used to generate the emergency number data to be sent according to the emergency number carried in the emergency number modification request.
[0115] The determination module 63 is used to determine the target terminal device that needs to modify the emergency number list according to the modification granularity carried in the emergency number modification requirement.
[0116] The sending module 64 is used to send the emergency number data to the target terminal device; wherein the emergency number data is used by the target terminal device to update the emergency number list stored in the setting storage unit of the target terminal device, wherein the setting storage unit is a readable and writable storage unit.
[0117] Further, in an implementation of the embodiment of the present application, the determination module 63 is specifically configured to:
[0118] In response to the modification granularity being target attribute information modification based on a terminal device, a first terminal device whose attribute information is the target attribute information is determined; and the first terminal device is used as the target terminal device.
[0119] In one implementation of the embodiment of the present application, the determination module 63 is specifically configured to:
[0120] In response to the modification granularity being modification based on the target area, determining a second terminal device corresponding to the target area;
[0121] The second terminal device is used as the target terminal device.
[0122] It should be noted that the above explanation of the method embodiment is also applicable to the device of this embodiment, and will not be repeated here.
[0123] The data updating device proposed in the present application obtains the emergency number data sent by the server, wherein the emergency number data is sent when the server generates the emergency number data to be sent based on the emergency number carried in the acquired emergency number modification requirement, and updates the emergency number list stored in the readable and writable setting storage unit of the target terminal device according to the emergency number data. By storing the emergency number list in the readable and writable setting storage unit, when the emergency number data sent by the server is received, the stored emergency number list can be updated based on the emergency number data, thereby realizing fast and timely updating.
[0124] In order to implement the above embodiments, the present application also proposes an electronic device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the program, the method described in the above method embodiments is implemented.
[0125] In order to implement the above embodiments, the present application also proposes a non-temporary computer-readable storage medium on which a computer program is stored. When the program is executed by a processor, the method described in the above method embodiments is implemented.
[0126] In order to implement the above embodiments, the present application also proposes a computer program product on which a computer program is stored. When the computer program is executed by a processor, the method described in the above method embodiments is implemented.
[0127] Figure 7 This is a schematic diagram of the structure of an electronic device provided in an embodiment of the present application. For example, the electronic device 800 may be a mobile phone, a computer, a digital broadcast terminal, a message transceiver device, a game console, a tablet device, a medical device, a fitness device, a personal digital assistant, etc.
[0128] Reference Figure 7 , the electronic device 800 may include one or more of the following components: a processing component 802 , a memory 804 , a power component 806 , a multimedia component 808 , an audio component 810 , an input / output (I / O) interface 812 , a sensor component 814 , and a communication component 816 .
[0129] The processing component 802 generally controls the overall operation of the electronic device 800, such as operations associated with display, phone calls, data communications, camera operations, and recording operations. The processing component 802 may include one or more processors 820 to execute instructions to complete all or part of the steps of the above-mentioned method. In addition, the processing component 802 may include one or more modules to facilitate the interaction between the processing component 802 and other components. For example, the processing component 802 may include a multimedia module to facilitate the interaction between the multimedia component 808 and the processing component 802.
[0130] The memory 804 is configured to store various types of data to support operations on the electronic device 800. Examples of such data include instructions for any application or method operating on the electronic device 800, contact data, phone book data, messages, pictures, videos, etc. The memory 804 can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic disk or optical disk.
[0131] The power component 806 provides power to the various components of the electronic device 800. The power component 806 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power for the electronic device 800.
[0132] The multimedia component 808 includes a screen that provides an output interface between the electronic device 800 and the user. In some embodiments, the screen may include a liquid crystal display (LCD) and a touch panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive input signals from the user. The touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The touch sensor may not only sense the boundaries of the touch or slide action, but also detect the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 808 includes a front camera and / or a rear camera. When the electronic device 800 is in an operating mode, such as a shooting mode or a video mode, the front camera and / or the rear camera may receive external multimedia data. Each front camera and rear camera may be a fixed optical lens system or have a focal length and optical zoom capability.
[0133] The audio component 810 is configured to output and / or input audio signals. For example, the audio component 810 includes a microphone (MIC), and when the electronic device 800 is in an operating mode, such as a call mode, a recording mode, and a voice recognition mode, the microphone is configured to receive an external audio signal. The received audio signal can be further stored in the memory 804 or sent via the communication component 816. In some embodiments, the audio component 810 also includes a speaker for outputting audio signals.
[0134] I / O interface 812 provides an interface between processing component 802 and peripheral interface modules, such as keyboards, click wheels, buttons, etc. These buttons may include but are not limited to: home button, volume button, start button, and lock button.
[0135] The sensor assembly 814 includes one or more sensors for providing various aspects of status assessment for the electronic device 800. For example, the sensor assembly 814 can detect the open / closed state of the electronic device 800, the relative positioning of the components, such as the display and keypad of the electronic device 800, and the sensor assembly 814 can also detect the position change of the electronic device 800 or a component of the electronic device 800, the presence or absence of contact between the user and the electronic device 800, the orientation or acceleration / deceleration of the electronic device 800, and the temperature change of the electronic device 800. The sensor assembly 814 may include a proximity sensor configured to detect the presence of a nearby object without any physical contact. The sensor assembly 814 may also include an optical sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 814 may also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
[0136] The communication component 816 is configured to facilitate wired or wireless communication between the electronic device 800 and other devices. The electronic device 800 can access a wireless network based on a communication standard, such as WiFi, 4G or 5G, or a combination thereof. In an exemplary embodiment, the communication component 816 receives a broadcast signal or broadcast-related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 816 also includes a near field communication (NFC) module to facilitate short-range communication. For example, the NFC module can be implemented based on radio frequency identification (RFID) technology, infrared data association (IrDA) technology, ultra-wideband (UWB) technology, Bluetooth (BT) technology and other technologies.
[0137] In an exemplary embodiment, the electronic device 800 may be implemented by one or more application-specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field programmable gate arrays (FPGAs), controllers, microcontrollers, microprocessors, or other electronic components to perform the above methods.
[0138] In an exemplary embodiment, a non-transitory computer-readable storage medium including instructions is also provided, such as a memory 804 including instructions, and the instructions can be executed by a processor 820 of an electronic device 800 to perform the above method. For example, the non-transitory computer-readable storage medium can be a ROM, a random access memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, etc.
[0139] In the description of this specification, the description with reference to the terms "one embodiment", "some embodiments", "example", "specific example", or "some examples" etc. means that the specific features, structures, materials or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present application. In this specification, the schematic representations of the above terms do not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials or characteristics described may be combined in any one or more embodiments or examples in a suitable manner. In addition, those skilled in the art may combine and combine the different embodiments or examples described in this specification and the features of the different embodiments or examples, without contradiction.
[0140] In addition, the terms "first" and "second" are used for descriptive purposes only and should not be understood as indicating or implying relative importance or implicitly indicating the number of the indicated technical features. Therefore, the features defined as "first" and "second" may explicitly or implicitly include at least one of the features. In the description of this application, the meaning of "plurality" is at least two, such as two, three, etc., unless otherwise clearly and specifically defined.
[0141] Any process or method description in a flowchart or otherwise described herein may be understood to represent a module, fragment or portion of code comprising one or more executable instructions for implementing the steps of a custom logical function or process, and the scope of the preferred embodiments of the present application includes alternative implementations in which functions may not be performed in the order shown or discussed, including performing functions in a substantially simultaneous manner or in the reverse order depending on the functions involved, which should be understood by technicians in the technical field to which the embodiments of the present application belong.
[0142] The logic and / or steps represented in the flowchart or otherwise described herein, for example, can be considered as an ordered list of executable instructions for implementing logical functions, and can be embodied in any computer-readable medium for use by an instruction execution system, device or apparatus (such as a computer-based system, a system including a processor, or other system that can fetch instructions from an instruction execution system, device or apparatus and execute the instructions), or in combination with these instruction execution systems, devices or apparatuses. For the purpose of this specification, "computer-readable medium" can be any device that can contain, store, communicate, propagate or transmit a program for use by an instruction execution system, device or apparatus, or in combination with these instruction execution systems, devices or apparatuses. More specific examples of computer-readable media (a non-exhaustive list) include the following: an electrical connection with one or more wires (electronic device), a portable computer disk box (magnetic device), a random access memory (RAM), a read-only memory (ROM), an erasable and programmable read-only memory (EPROM or flash memory), a fiber optic device, and a portable compact disk read-only memory (CDROM). In addition, the computer-readable medium may even be paper or other suitable medium on which the program is printed, since the program may be obtained electronically, for example, by optically scanning the paper or other medium and then editing, interpreting or processing in other suitable ways if necessary, and then stored in a computer memory.
[0143] It should be understood that the various parts of the present application can be implemented by hardware, software, firmware or a combination thereof. In the above-mentioned embodiments, multiple steps or methods can be implemented by software or firmware stored in a memory and executed by a suitable instruction execution system. For example, if implemented by hardware, as in another embodiment, it can be implemented by any one of the following technologies known in the art or their combination: a discrete logic circuit having a logic gate circuit for implementing a logic function for a data signal, a dedicated integrated circuit having a suitable combination of logic gate circuits, a programmable gate array (PGA), a field programmable gate array (FPGA), etc.
[0144] A person skilled in the art may understand that all or part of the steps in the method for implementing the above-mentioned embodiment may be completed by instructing related hardware through a program, and the program may be stored in a computer-readable storage medium, which, when executed, includes one or a combination of the steps of the method embodiment.
[0145] In addition, each functional unit in each embodiment of the present application may be integrated into a processing module, or each unit may exist physically separately, or two or more units may be integrated into one module. The above-mentioned integrated module may be implemented in the form of hardware or in the form of a software functional module. If the integrated module is implemented in the form of a software functional module and sold or used as an independent product, it may also be stored in a computer-readable storage medium.
[0146] The storage medium mentioned above may be a read-only memory, a magnetic disk or an optical disk, etc. Although the embodiments of the present application have been shown and described above, it can be understood that the above embodiments are exemplary and cannot be understood as limiting the present application. A person of ordinary skill in the art may change, modify, replace and modify the above embodiments within the scope of the present application.
Claims
1. A data updating method, It is characterized in that Applied to target terminal devices, including: Acquire the emergency number data sent by the server; wherein the emergency number data is sent when the server generates the emergency number data to be sent based on the emergency number carried in the acquired emergency number modification requirement; According to the emergency number data, the emergency number list stored in the setting storage unit of the target terminal device is updated; wherein the setting storage unit is a readable and writable storage unit.
2. The method according to claim 1, It is characterized in that The updating of the emergency number list stored in the setting storage unit of the target terminal device according to the emergency number data includes: Generate first authentication data according to the emergency number data; Comparing the first authentication data with the second authentication data stored historically; In response to the first authentication data and the second authentication data being different, the emergency number list stored in the target terminal device is updated according to the emergency number data.
3. The method according to claim 1 or 2, It is characterized in that The updating of the emergency number list stored in the setting storage unit of the target terminal device according to the emergency number data includes: Identify the emergency number data and determine the modification type corresponding to the emergency number data; The emergency number list stored in the setting storage unit of the target terminal device is updated according to the modification type corresponding to the emergency number data.
4. The method according to claim 3, It is characterized in that The updating of the emergency number list stored in the setting storage unit of the target terminal device according to the modification type corresponding to the emergency number data includes: In response to the modification type of the emergency number data being edit, parsing the emergency number data to obtain a target operation type to be performed; The emergency number list stored in the setting storage unit of the target terminal device is edited using an operation corresponding to the target operation type to obtain an updated emergency number list.
5. The method according to claim 3, It is characterized in that The updating of the emergency number list stored in the setting storage unit of the target terminal device according to the modification type corresponding to the emergency number data includes: In response to the modification type of the emergency number data being replacement, the emergency number list corresponding to the emergency number data is used to replace the emergency number list stored in the target terminal device.
6. The method according to claim 2, It is characterized in that After comparing the first authentication data with the second authentication data stored historically, the method further includes: In response to the first authentication data and the second authentication data being identical, updating of the emergency number list stored in the target terminal device is prohibited.
7. A data updating method, It is characterized in that Applicable to servers, including: Get emergency number modification requirements; Generate emergency number data to be sent according to the emergency number carried in the emergency number modification request; Determine the target terminal device for which the emergency number list modification is required according to the modification granularity carried in the emergency number modification requirement; The emergency number data is sent to the target terminal device; wherein the emergency number data is used by the target terminal device to update the emergency number list stored in the setting storage unit of the target terminal device, wherein the setting storage unit is a readable and writable storage unit.
8. The method according to claim 7, It is characterized in that The step of determining the target terminal device for which the emergency number list modification is required according to the modification granularity carried in the emergency number modification requirement includes: In response to the modification granularity being a target attribute information modification based on a terminal device, determining a first terminal device whose attribute information is the target attribute information; The first terminal device is used as the target terminal device.
9. The method according to claim 7, It is characterized in that The step of determining the target terminal device for which the emergency number list modification is required according to the modification granularity carried in the emergency number modification requirement includes: In response to the modification granularity being modification based on the target area, determining a second terminal device corresponding to the target area; The second terminal device is used as the target terminal device.
10. A data updating device, It is characterized in that Applied to target terminal devices, including: An acquisition module, used for acquiring emergency number data sent by a server; wherein the emergency number data is sent when the server generates emergency number data to be sent based on the emergency number carried in the acquired emergency number modification requirement; An updating module is used to update the emergency number list stored in the setting storage unit of the target terminal device according to the emergency number data; wherein the setting storage unit is a readable and writable storage unit.
11. A data updating device, It is characterized in that Applicable to servers, including: An acquisition module is used to obtain emergency number modification requirements; A generating module, used for generating the emergency number data to be sent according to the emergency number carried in the emergency number modification requirement; A determination module, used to determine a target terminal device that needs to modify the emergency number list according to the modification granularity carried in the emergency number modification requirement; A sending module is used to send the emergency number data to the target terminal device; wherein the emergency number data is used by the target terminal device to update the emergency number list stored in the setting storage unit of the target terminal device, wherein the setting storage unit is a readable and writable storage unit.
12. An electronic device, It is characterized in that The method comprises a memory, a processor and a computer program stored in the memory and executable on the processor. When the processor executes the program, the method according to any one of claims 1 to 6 is implemented, or the method according to any one of claims 7 to 9 is implemented.
13. A non-transitory computer-readable storage medium having stored thereon a computer program, It is characterized in that When the computer program is executed by a processor, the method according to any one of claims 1 to 6 is implemented, or the method according to any one of claims 7 to 9 is implemented.