CN117135562A - Parameter setting method, terminal device and readable storage medium - Google Patents

Parameter setting method, terminal device and readable storage medium Download PDF

Info

Publication number
CN117135562A
CN117135562A CN202310231365.4A CN202310231365A CN117135562A CN 117135562 A CN117135562 A CN 117135562A CN 202310231365 A CN202310231365 A CN 202310231365A CN 117135562 A CN117135562 A CN 117135562A
Authority
CN
China
Prior art keywords
parameter
value
gps
target
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.)
Granted
Application number
CN202310231365.4A
Other languages
Chinese (zh)
Other versions
CN117135562B (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.)
Honor Device Co Ltd
Original Assignee
Honor Device 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 Honor Device Co Ltd filed Critical Honor Device Co Ltd
Priority to CN202310231365.4A priority Critical patent/CN117135562B/en
Publication of CN117135562A publication Critical patent/CN117135562A/en
Application granted granted Critical
Publication of CN117135562B publication Critical patent/CN117135562B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • 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/025Services making use of location information using location based information parameters
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W8/00Network data management
    • H04W8/18Processing of user or subscriber data, e.g. subscribed services, user preferences or user profiles; Transfer of user or subscriber data
    • H04W8/183Processing at user equipment or user record carrier
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Databases & Information Systems (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

The application discloses a parameter setting method, terminal equipment and a readable storage medium, and belongs to the technical field of terminals. Comprising the following steps: after receiving the starting-up instruction, starting up at a first time point, wherein the SIM card is not inserted in the terminal equipment before starting up. After the startup is completed, after a first SIM card is inserted into the terminal equipment, reading a value of a target NV parameter at a third time point, and modifying a GPS global variable, wherein the target NV parameter is a parameter related to a communication function, and the GPS global variable is used for indicating whether to allow carrying position information in call signaling when voice communication VoWiFi call service based on wireless fidelity is carried out; and inserting a first SIM card into the terminal equipment at a second time point, wherein the terminal equipment does not read the value of the target NV parameter and does not modify the global variable of the GPS between the first time point and the second time point. Therefore, the authority of reporting the position information is matched with the position reporting requirement of the region where the SIM card in the terminal equipment belongs.

Description

Parameter setting method, terminal device and readable storage medium
Technical Field
The present application relates to the field of terminal technologies, and in particular, to a parameter setting method, a terminal device, and a readable storage medium.
Background
With the rapid development of terminal technology, terminal devices such as mobile phones and smart watches are increasingly used. In some scenarios, such as dialing a fire alarm, medical emergency, traffic accident alarm, etc., when the terminal device performs a voice communication (Voice over Wireless Fidelity, voWiFi) call service based on wireless fidelity, the terminal device may carry location information in the call signaling to report the location information, so that the opposite terminal can determine the location where the terminal device is located.
However, in some scenarios, because there is no authority for reporting the location information, the terminal device will not report the location information during the VoWiFi call service. How to match the position report of the terminal device with the actual demand when the terminal device performs the VoWiFi call service becomes the current urgent problem to be solved.
Disclosure of Invention
The application provides a parameter setting method, terminal equipment and a readable storage medium, which can enable the position report of the terminal equipment to be matched with the actual demand when VoWiFi call service is carried out. The technical scheme is as follows:
in a first aspect, a parameter setting method is provided and applied to a terminal device, and the method includes:
After receiving a starting instruction, starting at a first time point, wherein a SIM card is not inserted into the terminal equipment before starting;
after the starting-up is completed, after a first SIM card is inserted into the terminal equipment, reading a value of a target NV parameter at a third time point, and modifying a Global Positioning System (GPS) global variable, wherein the target NV parameter is a parameter related to a communication function, and the GPS global variable is used for indicating whether to allow carrying position information in call signaling when performing voice communication VoWiFi call service based on wireless fidelity;
the first SIM card is inserted into the terminal equipment at a second time point, the terminal equipment does not read the value of the target NV parameter between the first time point and the second time point, and the terminal equipment does not modify the GPS global variable between the first time point and the second time point.
The first time point is earlier than the second time point, which is earlier than the third time point.
In this way, the value of the target NV parameter is read in the card identifying process, and the GPS global variable is modified according to the value of the target NV parameter, so that the position information reporting authority in the subsequent VoWiFi call service process is matched with the position reporting requirement of the area where the first SIM card currently inserted in the terminal equipment belongs.
As an example of the present application, the method further comprises:
before reading the value of the target NV parameter at a third time point, reading the communication identifier of the first SIM card;
inquiring corresponding NV parameter values from a target configuration relation according to the communication identifiers, wherein the target configuration relation is used for recording the corresponding relation between different communication identifiers and the NV parameter values;
the queried NV parameter value is determined as the value of the target NV parameter.
Therefore, before the value of the target NV parameter is read, the NV parameter value corresponding to the communication identifier is determined by reading the communication identifier of the first SIM card and is determined as the value of the target NV parameter, so that the value of the target NV parameter read at the third time point is matched with the SIM card currently inserted by the terminal equipment, the accuracy of reading the target NV parameter is improved, the reporting authority of the position information indicated by the global GPS variable set according to the value of the target NV parameter is matched with the regional requirement of the first SIM card, and the effectiveness of setting the global GPS variable is improved.
As an example of the present application, after the first SIM card is inserted into the terminal device after the power-on is completed, after the value of the target NV parameter is read at a third time point, and the global variable of the global positioning system GPS is modified, the method further includes:
And after the first SIM card in the terminal equipment is replaced by the second SIM card, reading the value of the target NV parameter at a fifth time point, modifying the GPS global variable, and at a fourth time point, replacing the first SIM card in the terminal equipment by the second SIM card.
Therefore, the value of the target NV parameter is read in the card identifying process, and the GPS global variable is modified according to the value of the target NV parameter, so that the position reporting authority indicated by the GPS global variable in the terminal equipment still accords with the requirements of the region where the SIM card after card replacement belongs even if a card replacement event occurs, and the accuracy and the effectiveness of the GPS global variable setting are ensured.
As an example of the present application, the method further comprises:
under the condition that a second SIM card is inserted in the terminal equipment, after receiving restarting operation, shutting down and restarting;
after the sixth point in time, the value of the target NV parameter is read at a seventh point in time and the GPS global variable is modified.
Therefore, after the shutdown is restarted, the terminal equipment reads the value of the target NV parameter, and modifies the GPS global variable according to the value of the target NV parameter, so that the position reporting authority indicated by the GPS global variable accords with the requirement of the region where the SIM card in the terminal equipment belongs.
In one example of the present application, the terminal device includes a modem module, and the modem module includes a parameter configuration module and a GPS module;
before the reading of the value of the target NV parameter at the third time point, reading the communication identifier of the first SIM card includes:
before reading the value of the target NV parameter at a third time point, the modem module reads the communication identifier of the first SIM card through the parameter configuration module;
the querying, according to the communication identifier, the corresponding NV parameter value from the target configuration relationship includes:
the modem module queries corresponding NV parameter values from the target configuration relation according to the communication identifier through the parameter configuration module;
the determining the queried NV parameter value as the value of the target NV parameter includes:
the modem module sets the queried NV parameter value to the value of the target NV parameter through the parameter configuration module.
In this way, before the third time point, the parameter configuration module reads the communication identifier of the first SIM card and determines the communication identifier as the value of the target NV parameter, so that the GPS global variable is modified according to the determined value of the target NV parameter, and effective setting of the GPS global variable is ensured.
As an example of the present application, after the first SIM card is inserted into the terminal device after the power-on is completed, reading the value of the target NV parameter at a third time point, and modifying the global variable of the global positioning system GPS, including:
after the startup is completed, after the first SIM card is inserted into the terminal equipment, the modem module reads the value of the target NV parameter at the third time point through the GPS module, and modifies the GPS global variable.
Therefore, the GPS module is used for reading the value of the target NV parameter at a third time point and modifying a global variable of the GPS module, wherein the global variable of the GPS is one variable of the GPS module, so that whether the positioning device is called to acquire the position information or not can be conveniently determined later when the VoWiFi call service is carried out.
As an example of the present application, the modifying global positioning system GPS global variables includes:
binary conversion is carried out on the value of the target NV parameter read at the third time point, so that binary data are obtained;
determining that the BIT2 BIT of the binary data has a value of 0, and assigning a first identifier to the global variable of the GPS, wherein the first identifier is used for indicating that the positioning device is allowed to be called to acquire position information.
Therefore, after the BIT2 BIT value of binary data is 0, the first identifier is assigned to the GPS global variable, so that the position information reporting can be determined in the VoWiFi call service process according to the value of the GPS global variable when the follow-up VoWiFi call service is performed, the actual requirement is met, and the failure of the position information reporting is avoided.
As an example of the present application, the method further comprises:
in case the BIT2 BIT of the binary data has a value of 1, a second identifier is assigned to the GPS global variable, the second identifier being used to indicate that the invoking of the positioning device is not allowed to obtain location information.
Therefore, under the condition that the BIT2 BIT value of binary data is 1, the second identifier is assigned to the global GPS variable, so that the position information can be determined not to be reported in the process of VoWiFi call service according to the value of the global GPS variable in the subsequent VoWiFi call service, namely, the position information is prevented from being reported.
As an example of the present application, the method further comprises:
and if the reading of the value of the target NV parameter fails, modifying the value of the target NV parameter to a preset numerical value.
Therefore, if the GPS module fails to read the value of the target NV parameter, the abnormal situation is indicated, and in this case, in order to ensure the logic integrity of the system implementation, the terminal equipment provides a protection mechanism, namely, the value of the target NV parameter is modified to a preset value, wherein the preset value can be set according to the requirement. Thereby ensuring the integrity of the system operation logic.
In a second aspect, there is provided a parameter setting apparatus having a function of realizing the behavior of the parameter setting method in the first aspect described above. The parameter setting device comprises at least one module, wherein the at least one module comprises a parameter configuration module, a GPS module and a VoWiFi module, and the at least one module is used for realizing the parameter setting method provided by the first aspect.
In a third aspect, there is provided a terminal device comprising a memory, a processor and a computer program stored in the memory and executable on the processor, the processor implementing the parameter setting method according to the first aspect described above when executing the computer program.
In a fourth aspect, a computer readable storage medium is provided, in which instructions are stored which, when run on a computer, cause the computer to perform the parameter setting method according to the first aspect described above.
In a fifth aspect, there is provided a computer program product comprising instructions which, when run on a computer, cause the computer to perform the parameter setting method of the first aspect described above.
The technical effects obtained by the second, third, fourth and fifth aspects are similar to the technical effects obtained by the corresponding technical means in the first aspect, and are not described in detail herein.
Drawings
FIG. 1 is a schematic diagram of an application scenario shown in accordance with an exemplary embodiment;
FIG. 2 is a flow chart illustrating a method of parameter setting according to an exemplary embodiment;
FIG. 3 is a flow chart illustrating a method of parameter setting according to another exemplary embodiment;
FIG. 4 is a flow chart illustrating a method of parameter setting according to another exemplary embodiment;
FIG. 5 is a flow chart illustrating a method of parameter setting according to another exemplary embodiment;
FIG. 6 is a flow chart illustrating a method of parameter setting according to another exemplary embodiment;
fig. 7 is a flow chart illustrating a parameter setting method according to another exemplary embodiment;
fig. 8 is a flow chart illustrating a parameter setting method according to another exemplary embodiment;
Fig. 9 is a flow chart illustrating a parameter setting method according to another exemplary embodiment;
fig. 10 is a flow chart illustrating a parameter setting method according to another exemplary embodiment;
fig. 11 is a schematic structural view of a terminal device according to an exemplary embodiment.
Detailed Description
For the purpose of making the objects, technical solutions and advantages of the present application more apparent, embodiments of the present application will be described in further detail below with reference to the accompanying drawings.
It should be understood that references to "a plurality" in this disclosure refer to two or more. In the description of the present application, "/" means or, unless otherwise indicated, for example, A/B may represent A or B; "and/or" herein is merely an association relationship describing an association object, and means that three relationships may exist, for example, a and/or B may mean: a exists alone, A and B exist together, and B exists alone. In addition, in order to facilitate the clear description of the technical solution of the present application, the words "first", "second", etc. are used to distinguish the same item or similar items having substantially the same function and function. It will be appreciated by those of skill in the art that the words "first," "second," and the like do not limit the amount and order of execution, and that the words "first," "second," and the like do not necessarily differ.
Reference in the specification to "one embodiment" or "some embodiments" or the like means that a particular feature, structure, or characteristic described in connection with the embodiment is included in one or more embodiments of the application. Thus, appearances of the phrases "in one embodiment," "in some embodiments," "in other embodiments," and the like in the specification are not necessarily all referring to the same embodiment, but mean "one or more but not all embodiments" unless expressly specified otherwise. The terms "comprising," "including," "having," and variations thereof mean "including but not limited to," unless expressly specified otherwise.
Before describing the method for setting parameters provided by the embodiment of the present application in detail, the terms and nouns related to the embodiment of the present application will be briefly described.
VoWiFi technology: it means that the operator provides voice services for the terminal device using WiFi hotspots, i.e. the SIM card is not registered in the communication network provided by the operator, but in the VoWiFi network. In the process of dialing a phone, the terminal equipment transmits voice data through a WiFi network, and can dial and answer a voice or video phone while using the mobile Internet by utilizing WiFi network access.
Modem module: also called modem, is a computer hardware independent of the central processing unit (central processing unit, CPU) that translates digital signals of the terminal device into analog signals that can be transmitted along the ordinary telephone line, which analog signals can be received by another modem at the other end of the line and translated into a language that can be understood by the terminal device at the other end. Therefore, the Modem module is often used to process events related to voice call traffic.
An application scenario of the embodiment of the present application is described next. Referring to fig. 1, the present application scenario lists two cases:
in the first case, as shown in fig. 1 (a), the terminal device is inserted into the SIM card before the terminal device is powered on, and then the user triggers the terminal device to be powered on. After the power-on, the VoWiFi call service has the authority of reporting the position information. In this case, when the user uses the terminal device to perform the VoWiFi call service, the terminal device may report its own location information (such as latitude and longitude information) during the VoWiFi call service. For example, the location information of the voice call signaling is carried during the VoWiFi call service, and for example, the voice call signaling may be Invite message or other messages.
In the second case, as shown in the diagram (b) in fig. 1, the terminal device is not inserted with the SIM card before the terminal device is turned on, and after the terminal device is turned on, the SIM card is inserted into the terminal device, and at this time, the VoWiFi call service has no authority for reporting the location information. In this case, when the user uses the terminal device to perform the VoWiFi call service, the terminal device does not report the location information in the VoWiFi call service process.
In one example, for some terminal devices equipped with some types of chips, when performing VoWiFi call service, whether to carry location information in call signaling may be determined by querying a global variable of GPS, where the global variable of GPS is used to indicate whether to allow reporting of location information when performing VoWiFi call service. If the GPS global variable indicates that the position information reporting is allowed, the terminal equipment carries the position information of the terminal equipment through a call signaling in the process of carrying out the VoWiFi call service; otherwise, if the GPS global variable indicates that the position information reporting is not allowed, the terminal equipment does not carry the position information of the terminal equipment in the call signaling in the process of carrying out the VoWiFi call service.
The global variable of GPS is related to the region to which the SIM card inserted by the terminal device belongs. The terminal equipment can set a global variable of GPS before VoWiFi call service through the modem module, so that inquiry can be carried out when VoWiFi call service is carried out. In an example, referring to fig. 2, the internal implementation of the terminal device is described in detail, where the terminal device is implemented by a modem module, the modem module includes a parameter configuration module and a GPS module, and the GPS global variable is a variable of the GPS module. Specifically, the following contents can be included:
21. During system startup, the GPS module reads the value of the NV74235 parameter from the parameter configuration module.
The NV74235 parameter is a configuration parameter related to a communication function, and different regions are associated with respective values of the NV74235 parameter. The value of the NV74235 parameter is typically 16-ary data. After converting it into binary, it includes a plurality of BIT BITs, a single BIT (or possibly multiple BIT BITs simultaneously) being used to indicate the authority of a function during communication. Illustratively, BIT0 (i.e., the first BIT from the right) is used to indicate whether network positioning of the control plane is allowed, where the control plane is to obtain location information by voice call, and "0" indicates permission, and "1" indicates a value requiring use of NV452, where NV452 is a GPS switch value, and if the GPS switch value indicates on, network positioning is allowed, and otherwise if the GPS switch value indicates off, network positioning is not allowed; BIT1 (i.e., the second BIT from the right) is used to indicate the location request of the network side of the operator; BIT2 (i.e., the third BIT from the right) is used to indicate the authority of reporting the position information when performing the VoWiFi call service, i.e., to indicate whether the reporting of the position information is allowed when performing the VoWiFi call service, where BIT2 is "0" indicates that the reporting of the position information is allowed, and BIT2 is "1" indicates that the reporting of the position information is not allowed, such as when a terminal device is required to report the position information when performing the VoWiFi call service in some areas, BIT2 of NV74235 parameter of the area is "0", and when there is no such requirement in some areas, BIT2 of NV74235 parameter of the area is "1"; BIT3 (i.e., the fourth BIT from the right) and BIT0 are used to indicate the authority of the same function, but indicate prohibition if BIT3 is "0" and permission if BIT3 is "1", i.e., opposite to the indication of BIT 0; BIT4 (i.e., the fifth BIT from the right) and BIT2 are also rights to indicate the same function, but are opposite to the indication of BIT2, i.e., to indicate inhibit when BIT4 is "0" and to indicate allow when BIT4 is "1".
In the first case, if the SIM card is inserted into the terminal device before the system is started, the card identifying process is triggered during the system startup. In the card identifying process, the parameter configuration module acquires a communication identifier from the SIM card currently inserted by the terminal equipment, wherein the communication identifier is used for uniquely indicating the area to which the SIM card belongs. And then, the parameter configuration module queries the value of the NV74235 parameter corresponding to the communication identifier from the target configuration relation according to the communication identifier. If the value of the NV74235 parameter recorded before is stored in the parameter configuration module, modifying the value of the NV74235 parameter recorded before into the value of the NV74235 parameter queried currently; if the value of the NV74235 parameter is not stored in the parameter configuration module, the value of the currently queried NV74235 parameter is recorded. Thus, in the starting-up process, the GPS module may read the value of the NV74235 parameter from the parameter configuration module, where the value of the latest NV74235 parameter currently recorded by the parameter configuration module is read by the GPS module.
The target configuration relationship is used to record the correspondence between different communication identifiers and the values of the NV74235 parameters, and since the different communication identifiers correspond to different regions, and the NV74235 parameters can be used to indicate whether to allow reporting of the location information, it can be understood that the target configuration relationship records the requirements of the different regions for reporting of the location information. The target configuration relationship may be stored in the terminal device after being configured in advance, and by way of example and not limitation, the target configuration relationship may be represented in the form of a table.
It should be noted that, in the above card identifying process, the GPS module may read the value of the NV74235 parameter. The GPS module reads the value of the NV74235 parameter, may succeed in reading, and may fail in reading, for example, after the GPS module invokes the numerical reading interface of the parameter configuration module, if the parameter configuration module returns an identifier for indicating that the reading is successful and the value of the NV74235 parameter, it indicates that the reading is successful, and if the parameter configuration module returns an identifier for indicating that the reading is failed, it indicates that the reading is failed. If the GPS module fails to read the value of the NV74235 parameter, an abnormal situation is indicated, and in this case, in order to ensure the logic integrity of the system implementation, the terminal device provides a protection mechanism, namely, the value of the NV74235 parameter is modified to a preset value, wherein the preset value can be set according to requirements. For example, if the value of the NV74235 parameter is 28, the value of the NV74235 parameter can be modified to 29, i.e. the preset value is 29, in the case that the GPS module fails to read, so as to ensure that the system operation logic is complete.
If the GPS module successfully reads the value of the NV74235 parameter, no abnormal condition is shown. It should be noted that, in this case, in the card identifying process, the GPS module does not modify the global variable of the GPS after reading the value of the NV74235 parameter, that is, after the GPS module successfully reads the NV74235 parameter, no other operation is performed. The global variable of the GPS is a parameter of the GPS module and can be used for indicating whether to allow the reporting of the position information in the process of the VoWiFi call service.
In the second case, if the SIM card is not inserted into the terminal device before the system is started, the card identifying process is not triggered in the system startup process, and if the value of the NV74235 parameter recorded before is stored in the parameter configuration module, the value of the NV74235 parameter corresponding to the communication identifier of the SIM card inserted last time in the terminal device is recorded in the parameter configuration module; if the parameter configuration module does not store the value of the NV74235 parameter, this may be because the SIM card has not been inserted in the terminal device. Thus, during the system power-on process, the GPS module reads the value of the NV74235 parameter from the parameter configuration module, where in one case, the value of the NV74235 parameter read by the GPS module is the value of the NV74235 parameter corresponding to the communication identifier of the SIM card inserted last time, and in another case, the GPS module does not read the value of the NV74235 parameter from the parameter configuration module, that is, the value of the NV74235 parameter does not exist in the parameter configuration module.
It follows that the reading of the NV74235 parameters by the GPS module includes two possible scenarios: one case is that the value of the NV74235 parameter can be read, i.e. there is a value of the NV74235 parameter in the parameter configuration module; another case is where the value of the NV74235 parameter is not read, i.e. the value of the NV74235 parameter is not present in the parameter configuration module. Depending on the reading result, the setting result of the GPS global variable is different, specifically, for the first case, after step 21, the following steps 22 to 23 may be performed, and for the second case, after step 21, the following step 24 may be performed.
22. In the event that the GPS module reads the value of the NV74235 parameter from the parameter configuration module, the value of the NV74235 parameter is converted to binary.
As described above, the value of the NV74235 parameter is typically in the form of 16 bins, and is therefore typically converted to binary in the application to facilitate determining the permissions of the communication functions to be queried based on the converted BIT BITs. As shown in fig. 3, the values of the NV74235 parameters are binary converted.
23. The GPS module sets a GPS global variable according to the BIT2 BIT of the converted value.
As described above, the BIT2 is used to indicate the authority for reporting the location information when the VoWiFi call service is performed, so the GPS module may set the GPS global variable according to the BIT 2. As an example, please continue with fig. 3, after binarizing the value of the NV74235 parameter, it is determined whether the binary-converted BIT2 BIT is 0. If BIT2 BIT is "0", the GPS module sets the global variable of GPS as "wire" for indicating that the reporting of the position information is allowed; if the IBT2 bit is "1", the GPS module sets the global variable of GPS to "false" for indicating that the reporting of the position information is not allowed.
It should be noted that, the embodiment of the present application is only described by taking the GPS module to set the GPS global variable according to BIT2 of the converted value as an example. In another example, the GPS module may also set the GPS global variable according to BIT4 of the converted value, such as setting the GPS global variable to "true" if BIT4 is "1" and setting the GPS global variable to "false" if BIT4 is "0", which is not limiting in the embodiments of the present application.
24. In the case that the GPS module does not read the NV74235 parameter from the parameter configuration module, the GPS global variable is set to a default value, where the default value is used to indicate that reporting of the location information is not allowed when the VoWiFi call service is performed.
That is, if the SIM card is not inserted into the terminal device and the SIM card is not inserted into the terminal device before, the GPS module sets the GPS global variable to a default value after the terminal device is powered on, so as to indicate that the terminal device does not allow reporting of the location information when performing the VoWiFi call service.
In the above example, two processes are mainly included, as shown in fig. 4, including a card identifying process and a power-on process: in the card identifying process, the parameter configuration module modifies the value of the NV74235 parameter according to the communication identifier in the SIM card of the terminal equipment, namely, the parameter configuration module reads the value of the NV74235 parameter, modifies the value of the NV74235 parameter recorded last time according to the read value of the NV74235 parameter, or directly records the value of the NV74235 parameter read currently, in addition, in the card identifying process, the GPS module reads the value of the NV74235 parameter from the parameter configuration module, but the GPS module does not modify the GPS global variable. The GPS module reads the value of the NV74235 parameter in the starting-up process, and sets a GPS global variable according to the reading result of the read NV74235 parameter.
After the global variable of the GPS is set according to the flow, the global variable of the GPS can be inquired in the process of carrying out VoWiFi call service so as to determine whether to allow the position information to be carried in call signaling.
However, the above implementation has the following problems:
under a possible condition, if the terminal equipment is newly purchased by a user, that is, any SIM card is not inserted before the terminal equipment is started, the terminal equipment may be started and then inserted according to the use habit of the user, and the area where the SIM card belongs has a position information reporting requirement, but the GPS global variable is set to a default value after the terminal equipment is started, that is, the position information reporting is not allowed, so that the terminal equipment has no authority for reporting the position information, and therefore, after the terminal equipment is registered in a WiFi network, the terminal equipment cannot carry the position information in a call signaling when dialing a VoWiFi telephone, and the position information reporting fails.
In another possible case, the terminal device is started under the condition of inserting the SIM card 1, the area where the SIM card 1 belongs has a position information reporting requirement, and the GPS global variable is set to allow the position information reporting after the terminal device is started. If the SIM card 1 in the terminal equipment is pulled out after the terminal equipment is started and the SIM card 2 is reinserted, the area where the SIM card 2 belongs does not have the position information reporting requirement, and if the terminal equipment is shut down and restarted after the terminal equipment has the card replacement event, the GPS global variable is set to not allow the position information reporting. However, if the terminal device is powered on and the inserted SIM card 2 is replaced by the SIM card 1 again, and the terminal device is not powered off again and restarted, then the GPS global variable is still used to indicate that the position information reporting is not allowed, so when the terminal device uses the SIM card 1 to perform the VoWiFi call, the position information is not carried in the call signaling, which easily causes the discrepancy with the actual position reporting requirement.
To this end, the embodiment of the present application further provides another parameter configuration method, and the following describes another parameter configuration method through the following embodiment:
referring to fig. 5 in conjunction with the second scenario shown in fig. 1, fig. 5 is a schematic flow chart of a parameter configuration method according to another exemplary embodiment, where the method is described herein as being executed by a terminal device through a modem module, and the method may include the following:
s501, after receiving a starting instruction, starting the terminal equipment at a first time point, wherein the SIM card is not inserted into the terminal equipment before the terminal equipment is started.
In the embodiment of the application, the SIM card is a key for connecting the terminal equipment to the network, and can also be called a telephone card or a user identity identification card, and all the cards for realizing the call service are within the described range.
The start-up instruction may be triggered by a user, and the terminal device is configured with a start-up key, after the user presses the start-up key for a long time, the terminal device detects the start-up instruction, and then the terminal device performs a system start-up operation. It should be noted that, here, the terminal device is described by taking an example that the SIM card is not inserted before the terminal device is started, for example, the terminal device may be a new device purchased by a user, or the SIM card may be pulled out before the terminal device is started. I.e. the terminal device is not powered on by inserting a card.
It should be noted that, in the embodiment of the present application, under the condition that the terminal device is not inserted with the SIM card, the terminal device does not read the value of the NV74235 parameter through the GPS module and does not modify the GPS global variable during the system startup. Since the SIM card is not inserted into the terminal equipment, the terminal equipment does not trigger the card identifying process.
S502, after the terminal equipment is started, after a first SIM card is inserted into the terminal equipment, the terminal equipment reads the value of the target NV parameter at a third time point and modifies the global variable of the GPS.
The target NV parameter is a parameter related to a communication function, and as one example of the present application, the target NV parameter is the NV74235 parameter described above.
And a first SIM card is inserted into the terminal equipment at a second time point, the terminal equipment does not read the value of the target NV parameter between the first time point and the second time point, and the terminal equipment does not modify the GPS global variable between the first time point and the second time point.
Wherein the first time point is earlier than the second time point, which is earlier than the third time point.
In one possible case, the terminal device reads the value of the target NV parameter at a third point in time, after which the GPS global variable is modified, and the value of the target NV parameter read by the terminal device at the third point in time may be the first parameter value.
In a specific implementation, the specific implementation of S502 includes: after the system is started, under the condition that a first SIM card is inserted into the terminal equipment, the modem module reads the value of the target NV parameter from the parameter configuration module through the GPS module to obtain a first parameter value, and then the GPS global variable is modified according to the first parameter value.
Specifically, in the case of inserting the first SIM card in the terminal device, the card identifying process is triggered. In the card identifying process, a parameter configuration module reads a communication identifier from a first SIM card, then, according to the read communication identifier, the value of a corresponding NV74235 parameter is queried from a target configuration relation to obtain a first parameter value, and the parameter configuration module records the first parameter value. The GPS module then reads the value of the NV74235 parameter from the parameter configuration module.
As shown in fig. 6, in the card identifying process, the embodiment of the application mainly includes the following operations: on the one hand, the parameter configuration module reads the communication identifier from the first SIM card, and then queries the corresponding value of the NV74235 parameter from the target configuration relationship according to the read value of the NV74235 parameter, so as to obtain a first parameter value. On the other hand, the GPS module reads the value of the NV74235 parameter from the parameter configuration module and modifies the GPS global variable according to the read value of the NV74235 parameter. Namely, after the first SIM card is inserted into the terminal equipment to trigger the card identifying process, the GPS module configures the GPS global variable according to the inserted first SIM card.
It should be noted that, in the card identifying process, the operation of the GPS module to read the NV74235 parameter is performed after the operation of the parameter configuration module to store the value of the NV74235 parameter. That is, the parameter configuration module determines and stores the value of the NV74235 parameter first, and then the GPS module reads the value of the NV74235 parameter from the parameter configuration module, so that the value read by the GPS module is matched with the first SIM card currently inserted by the terminal device, and the accuracy of reading is ensured. In one possible example, the GPS module may be notified when the parameter configuration module modification is complete, and then read the value of the NV74235 parameter from the parameter configuration module. In another possible example, the GPS module may also read the value of the NV74235 parameter from the parameter configuration module after a specified period of time has elapsed, which may be set as desired, typically to be greater than or equal to the period of time that the parameter configuration module determines and stores the NV74235 parameter, as embodiments of the present application are not limited in this respect.
In one possible scenario, the GPS module fails to read the value of the NV74235 parameter from the parameter configuration module, i.e., an exception condition occurs, at which point the GPS module may modify the value of the NV74235 parameter to a preset value, such as modifying the value of the NV74235 parameter from 28 to 29, to ensure the logical integrity of the code implementation.
As an example of the present application, a specific implementation of modifying the GPS global variable according to the first parameter value may include: the GPS module performs binary conversion on the first parameter value to obtain binary data, and under the condition that the BIT2 BIT value of the binary data is 0, a first identifier is assigned to the GPS global variable and is used for indicating that the reporting of the position information is allowed. And under the condition that the BIT2 BIT of the binary data has a value of 1, assigning a second identifier to the GPS global variable, wherein the second identifier is used for indicating that the reporting of the position information is not allowed.
Illustratively, the first identifier is "wire" and the second identifier is "false". That is, in the case where the BIT2 BIT value of the binary data indicates that the reporting of the location information is permitted, the GPS module sets the GPS global variable to "wire"; in the case where the BIT2 BIT value of the binary data indicates that no location information reporting is allowed, the GPS module sets the GPS global variable to "false".
In one example, the above-described flow may be implemented by the following code:
if(FALSE=sm_nv_efs_reg_item_read_from_sub(GNSS_NV_EFS_SM_GNSS_LOCK_CTRL_FOR_OEM,
sizeof(unit32),&tm_core_info.config_info.subs_ofgs[sub].q_gnss_lock_ctrl_for_oem,sub))
{
tm_core_info.config_info.subs_cfgs[sub].q_gnss_lock_ctrl_for_oem=GNSS_NV_EFS_SM_GNSS_LOCK_CTRL_FOR_OEM_DEFAULT;_
}else{
Loc_middleware_data.v_NvALLowNfwPosReq=\
((tm_core_info.config_info.subs_cfgs[sub].q_gnss_lock_ctrl_for_oem)&1<<2)=0TURE:FAL SE;
Loc_middleware_data.v_NvALLowNfwPosReqNotification=\
((tm_core_info.config_info.subs_cfgs[sub].q_gnss_lock_ctrl_for_oem)&1<<4)=0FALSE:TU RE;
MSG_1(MSG_SSID_GPSSM,MSG_LEGACY_MED,”locQmi_ProcessCmdRequest NV value=0x%x”,tm_core_info.config_info.subs_cfgs[sub].q_gnss_lock_ctrl_for_oem);
MSG_1(MSG_SSID_GPSSM,MSG_LEGACY_MED,”locQmi_ProcessCmdRequest,PosRequ est=%d”,loc_middleware_data.v_NvAllowNfwPosReq);
MSG_1(MSG_SSID_GPSSM,MSG_LEGACY_MED,”locQmi_ProcessCmdRequest,Notificat ion=%d”,loc_middleware_data.v_NvAllowNfwPosReqNotification);
}
wherein gnss_nv_efs_sm_lock_ctrl_for_oem represents the value of the target NV parameter, i.e. false_nv_effs_reg_item_read_from_sub (gnss_nv_efs_sm_lock_ctrl_fo_oem represents the value of the read target NV parameter q_gnss_lock_ctrl_for_ OEM represents the binary value obtained after binary conversion of the read value.
As an example of the present application, in the case where the GPS fails to read the NV74235 parameter from the parameter configuration module, it is explained that there is an abnormal situation, in which case if the GPS module stores the GPS global variable determined last time, the GPS module may continue to use the GPS global variable determined last time, or the GPS global variable may also be set to a default value. If the GPS global variable is not stored in the GPS module, the GPS module can set the GPS global variable as a default value.
Thus, as shown in fig. 7, in the process of starting up the terminal device, it is determined whether the terminal device has a card. If the plug-in card is arranged in the terminal equipment, reading the value of the NV74235 parameter corresponding to the SIM card in the terminal equipment, and modifying the global variable of the GPS according to the value of the NV74235 parameter. If no card is inserted in the terminal equipment, the GPS global variable is not modified, and then when a first SIM card is inserted in the terminal equipment, the card identifying process is triggered to read the value of the NV74235 parameter and modify the GPS global variable according to the value of the NV74235 parameter. Therefore, the situation that the position information is reported can be ensured to be matched with the requirement of the area where the inserted first SIM card belongs.
After the global GPS variable is set, in the process of carrying out VoWiFi call service, whether the call signaling carries the position information or not can be determined according to the global GPS variable. As an example of the present application, please refer to fig. 8, the specific implementation may include the following procedures:
81. And the VoWiFi module sends a position inquiry request to the GPS module under the condition of being called.
When a call application in the terminal device performs a VoWiFi call service, such as performing a VoWiFi call, the VoWiFi module is invoked, in which case, in order to determine whether to carry location information in the call signaling, the VoWiFi module sends a location query request to the GPS module.
82. And the GPS module feeds back a position inquiry result to the VoWiFi module according to the global variable of the GPS.
As an example of the present application, after receiving the location query request, the GPS module performs a positioning operation to acquire current location information of the terminal device. In addition, the GPS module queries the current GPS global variable. In a possible case, the GPS global variable indicates that the position information reporting is allowed, for example, the GPS global variable is "wire", and at this time, the GPS module can feed back the positioning result and the "wire" as the position inquiry result to the VoWiFi module; in another possible case, the GPS global variable indicates that the location information is not allowed to be reported, for example, the GPS global variable is "false", and the GPS module may feed back the positioning result and "false" as the location query result to the VoWiFi module.
It should be noted that, the above-mentioned obtaining the location information in the case where the GPS global variable indicates that the location information reporting is not allowed is only an exemplary implementation. In another example, if the GPS global variable indicates that the location information is not allowed to be reported, the GPS module may not acquire the location information, that is, may not perform the positioning operation, and in this case, the location query result may be null, so that the running power consumption caused by the positioning operation may be reduced. Of course, if the global variable of the GPS indicates that the reporting of the location information is allowed, the GPS module performs a positioning operation to obtain the current location information of the terminal device, where the location query result is the obtained location information.
83. And the VoWiFi module determines whether the call signaling carries the position information according to the position query result.
As an example of the present application, if the location query result includes location information and "wire", it is indicated that reporting of location information is allowed, and the VoWiFi module carries location information in call signaling, for example, carries location information in Invite message; otherwise, if the position query result includes the position information and the false, the position information is not allowed to be reported, and the VoWiFi module does not carry the position information in the call signaling at this time, that is, does not report the position.
In another example, if the query result includes location information, reporting of the location information is allowed, and at this time, the VoWiFi module carries the location information in the call signaling; otherwise, if the position inquiry result is empty, the position information reporting is not allowed, and the VoWiFi module does not carry the position information in the call signaling.
In the embodiment of the present application, unlike the embodiment shown in fig. 2, in the card identifying process, the parameter configuration module determines and records the value of the NV74235 parameter on the one hand, and the GPS module reads the value of the NV74235 parameter from the parameter configuration module and sets the GPS global variable according to the read value of the NV74235 parameter on the other hand. Therefore, the authority of reporting the position information indicated by the global GPS variable can be ensured to be matched with the requirement of the area where the first SIM card is currently inserted in the terminal equipment, so that the defect of the embodiment shown in the figure 2 is overcome, and the problem that the authority of the global GPS variable is not matched with the requirement of reporting the position of the area where the first SIM card is inserted due to the fact that the first SIM card is inserted after the terminal equipment is started can be avoided.
In one possible case, in the case that the terminal device has the first SIM card inserted, the user may pull the first SIM card of the terminal device and insert the second SIM card, that is, the terminal device has a card change event, and in this case, referring to fig. 9, the method may include some or all of the following:
S503, after the first SIM card in the terminal equipment is replaced by the second SIM card, reading the value of the target NV parameter at a fifth time point, and modifying the global variable of the GPS.
The value of the target NV parameter read at the fifth point in time may be the second parameter value. At a fourth point in time, the first SIM card in the terminal device is replaced with the second SIM card. The fourth time point is later than the third time point, and the fourth time point is earlier than the fifth time point.
That is, if the first SIM card is inserted into the terminal device, in the process of operation, when the user changes the first SIM card to the second SIM card, the card identifying process is triggered. Similarly to the description of the embodiment shown in fig. 5, in the card identifying process, on one hand, the parameter configuration module in the terminal device reads the communication identifier in the second SIM card, and queries the corresponding value of the NV74235 parameter from the target configuration relationship according to the communication identifier in the second SIM card, to obtain the second parameter value. The parameter configuration module deletes the first parameter value recorded last time and records the second parameter value. On the other hand, the GPS module in the terminal device reads the second parameter value from the parameter configuration module. Thereafter, the GPS global variable may be modified according to the second parameter value.
As an example of the present application, a specific implementation of modifying the GPS global variable according to the second parameter value may include: binary conversion is carried out on the second parameter value to obtain binary data, and a first identifier is assigned to the GPS global variable under the condition that the BIT2 BIT value of the binary data is 0, wherein the first identifier is used for indicating that the reporting of the position information is allowed. And under the condition that the BIT2 BIT of the binary data has a value of 1, assigning a second identifier to the GPS global variable, wherein the second identifier is used for indicating that the reporting of the position information is not allowed.
Therefore, when the VoWiFi call service is carried out later, whether the current position information of the terminal equipment is carried in the call signaling can be determined according to the latest GPS global variable. The specific implementation of this may be referred to 81 to 83 in the embodiment shown in fig. 8, and will not be described here again.
In the embodiment of the application, when the SIM card in the terminal equipment is replaced in the starting-up operation process of the terminal equipment, the terminal equipment determines the value of the target NV parameter corresponding to the replaced second SIM card, so that the GPS global variable is changed according to the determined value. Therefore, the authority of reporting the position information indicated by the global variable of the GPS is matched with the position reporting requirement of the area where the second SIM card is currently inserted in the terminal equipment, so that the problem that the position information is not reported due to the replacement of the SIM card can be avoided, and the accuracy of reporting the position information is improved.
In one embodiment, the user may restart the terminal device after the terminal device is plugged with the second SIM card, and for such an application scenario, the terminal device modifies the value of the NV74235 parameter on the one hand and updates the GPS global variable according to the modified value of the NV74235 parameter on the other hand. Next, a specific implementation procedure of the parameter configuration after shutdown restart will be described, and referring to fig. 10, the method of the parameter configuration may be as follows:
s504, under the condition that a second SIM card is inserted into the terminal equipment, after receiving the restarting operation, the terminal equipment is shut down and restarted.
At a sixth point in time, the terminal device receives the restart operation, and before the sixth point in time, the terminal device is inserted with the second SIM card. The sixth time point is later than the fifth time point.
In one example, a user presses a power-on key for a long time, and in response to the user pressing the power-on key for a long time, the terminal device displays a restart option and a shutdown option. When the user wants to start up and restart the terminal equipment, the user can click on a restart option, correspondingly, the terminal equipment receives a restart operation, and then the terminal equipment is shut down and restarted.
S505, after the sixth time point, the terminal equipment reads the value of the target NV parameter at the seventh time point and modifies the global variable of the GPS.
The value of the target NV parameter read at the seventh point in time may be a third parameter value. The seventh time point is later than the sixth time point.
In the case that the terminal device is inserted with the second SIM card, during the system power-on process, the card identifying process is triggered, and in the card identifying process, as described in the embodiment shown in fig. 5, the parameter configuration module determines the value of the corresponding NV74235 parameter according to the communication identifier of the SIM card (i.e. the second SIM card) currently inserted in the terminal device, so as to obtain the latest value of the NV74235 parameter. Thereafter, the last stored value of the NV74235 parameter is deleted and the currently determined value of the NV74235 parameter is recorded. Then, the GPS module reads the value of the NV74235 parameter from the parameter configuration module, and resets the GPS global variable according to the read value of the NV74235 parameter, and the specific setting manner may be referred to above, which is not repeated here.
As an example of the present application, the parameter configuration module may compare the value of the currently determined NV74235 parameter with the value of the last recorded NV74235 parameter after determining the value of the corresponding NV74235 parameter from the communication identifier before deleting the value of the last recorded NV74235 parameter. If the value of the currently determined NV74235 parameter is not the same as the value of the NV74235 parameter recorded last time, the parameter configuration module performs the recorded operation; otherwise, if the value of the currently determined NV74235 parameter is the same as the value of the last recorded NV74235 parameter, no re-execution of the recording operation is required.
And under the condition that the second SIM card is inserted before the terminal equipment is powered off and restarted, the third parameter value read by the terminal equipment is the second parameter value after the terminal equipment is powered on and restarted. In another possible case, if the terminal device inserts the third SIM card after power-off, after power-on and restarting, the third parameter value read by the terminal device is the value of the NV74235 parameter corresponding to the communication identifier in the third SIM card. Thus, the GPS module modifies the GPS global variable to a value that matches the third SIM card after reading the latest value of the NV74235 parameter. Therefore, whether the card is replaced before or after the shutdown, the method provided by the embodiment of the application can enable the authority of GPS global variable indication to be consistent with the position reporting requirement of the area where the SIM card is inserted in the terminal equipment.
The description above is given by taking the execution of step S503 as an example of S504 and S505. In another example, S504 and S505 may be further executed outside step S502, where the first SIM card is inserted into the terminal device before the card is not replaced, in which case, after the card is replaced, the GPS module modifies the GPS global variable according to the first parameter value after the shutdown is restarted.
After the global variable of the GPS is reset, when VoWiFi call service is carried out, whether the current position information of the terminal equipment is carried in call signaling can be determined according to the latest global variable of the GPS. The specific implementation thereof can be seen from 81 to 83 in the embodiment shown in fig. 8 described above.
In the embodiment of the application, under the condition that the second SIM card is inserted in the terminal equipment, after the terminal equipment is powered off and restarted, the terminal equipment re-determines the global variable of the GPS, so that the position information can be reported according to the requirements of the area where the second SIM card belongs when the VoWiFi call service is carried out later, and the accuracy of reporting the position information is improved.
Fig. 11 is a schematic structural diagram of a terminal device according to an embodiment of the present application. Referring to fig. 11, the terminal device 100 may include a processor 110, an external memory interface 120, an internal memory 121, a universal serial bus (universal serial bus, USB) interface 130, a charge management module 140, a power management module 141, a battery 142, an antenna 1, an antenna 2, a mobile communication module 150, a wireless communication module 160, an audio module 170, a speaker 170A, a receiver 170B, a microphone 170C, an earphone interface 170D, a sensor module 180, a key 190, a motor 191, an indicator 192, a camera 193, a display 194, a user identification module (subscriber identification module, SIM) card interface 195, and the like. The sensor module 180 may include a pressure sensor 180A, a gyroscope sensor 180B, an air pressure sensor 180C, a magnetic sensor 180D, an acceleration sensor 180E, a distance sensor 180F, a proximity sensor 180G, a fingerprint sensor 180H, a temperature sensor 180J, a touch sensor 180K, an ambient light sensor 180L, a bone conduction sensor 180M, and the like.
It is to be understood that the structure illustrated in the embodiment of the present application does not constitute a specific limitation on the terminal device 100. In other embodiments of the application, terminal device 100 may include more or less components than illustrated, or certain components may be combined, or certain components may be split, or different arrangements of components. The illustrated components may be implemented in hardware, software, or a combination of software and hardware.
The processor 110 may include one or more processing units, such as: the processor 110 may include an application processor (application processor, AP), a modem processor, a graphics processor (graphics processing unit, GPU), an image signal processor (image signal processor, ISP), a controller, a memory, a video codec, a digital signal processor (digital signal processor, DSP), a baseband processor, and/or a neural network processor (neural-network processing unit, NPU), etc. Wherein the different processing units may be separate devices or may be integrated in one or more processors.
The controller may be a neural center and a command center of the terminal device 100. The controller can generate operation control signals according to the instruction operation codes and the time sequence signals to finish the control of instruction fetching and instruction execution.
A memory may also be provided in the processor 110 for storing instructions and data. In some embodiments, the memory in the processor 110 is a cache memory. The memory may hold instructions or data that the processor 110 has just used or recycled. If the processor 110 needs to reuse the instruction or data, it can be called directly from the memory. Repeated accesses are avoided and the latency of the processor 110 is reduced, thereby improving the efficiency of the system.
In some embodiments, the processor 110 may include one or more interfaces, such as may include an integrated circuit (inter-integrated circuit, I2C) interface, an integrated circuit built-in audio (inter-integrated circuit sound, I2S) interface, a pulse code modulation (pulse code modulation, PCM) interface, a universal asynchronous receiver transmitter (universal asynchronous receiver/transmitter, UART) interface, a mobile industry processor interface (mobile industry processor interface, MIPI), a general-purpose input/output (GPIO) interface, a subscriber identity module (subscriber identity module, SIM) interface, and/or a universal serial bus (universal serial bus, USB) interface, among others.
It should be understood that the interfacing relationship between the modules illustrated in the embodiment of the present application is only illustrative, and does not constitute a structural limitation of the terminal device 100. In other embodiments of the present application, the terminal device 100 may also use different interfacing manners, or a combination of multiple interfacing manners in the foregoing embodiments.
The charge management module 140 is configured to receive a charge input from a charger. The charger can be a wireless charger or a wired charger. In some wired charging embodiments, the charge management module 140 may receive a charging input of a wired charger through the USB interface 130. In some wireless charging embodiments, the charge management module 140 may receive wireless charging input through a wireless charging coil of the terminal device 100. The charging management module 140 may also supply power to the terminal device 100 through the power management module 141 while charging the battery 142.
The power management module 141 is used for connecting the battery 142, and the charge management module 140 and the processor 110. The power management module 141 receives input from the battery 142 and/or the charge management module 140 to power the processor 110, the internal memory 121, the external memory, the display 194, the camera 193, the wireless communication module 160, and the like. The power management module 141 may also be configured to monitor battery capacity, battery cycle number, battery health (leakage, impedance) and other parameters. In other embodiments, the power management module 141 may also be provided in the processor 110. In other embodiments, the power management module 141 and the charge management module 140 may be disposed in the same device.
The wireless communication function of the terminal device 100 can be implemented by the antenna 1, the antenna 2, the mobile communication module 150, the wireless communication module 160, a modem processor, a baseband processor, and the like.
The antennas 1 and 2 are used for transmitting and receiving electromagnetic wave signals. Each antenna in the terminal device 100 may be used to cover a single or multiple communication bands. Different antennas may also be multiplexed to improve the utilization of the antennas. Such as: the antenna 1 may be multiplexed into a diversity antenna of a wireless local area network. In other embodiments, the antenna may be used in conjunction with a tuning switch.
The mobile communication module 150 may provide a solution including 2G/3G/4G/5G wireless communication applied to the terminal device 100. The mobile communication module 150 may include at least one filter, switch, power amplifier, low noise amplifier (low noise amplifier, LNA), etc. The mobile communication module 150 may receive electromagnetic waves from the antenna 1, perform processes such as filtering, amplifying, and the like on the received electromagnetic waves, and transmit the processed electromagnetic waves to the modem processor for demodulation. The mobile communication module 150 can amplify the signal modulated by the modem processor, and convert the signal into electromagnetic waves through the antenna 1 to radiate. In some embodiments, at least some of the functional modules of the mobile communication module 150 may be disposed in the processor 110. In some embodiments, at least some of the functional modules of the mobile communication module 150 may be provided in the same device as at least some of the modules of the processor 110.
The modem processor may include a modulator and a demodulator. The modulator is used for modulating the low-frequency baseband signal to be transmitted into a medium-high frequency signal. The demodulator is used for demodulating the received electromagnetic wave signal into a low-frequency baseband signal. The demodulator then transmits the demodulated low frequency baseband signal to the baseband processor for processing. The low frequency baseband signal is processed by the baseband processor and then transferred to the application processor. The application processor outputs sound signals through an audio device (not limited to the speaker 170A, the receiver 170B, etc.), or displays images or video through the display screen 194. In some embodiments, the modem processor may be a stand-alone device. In other embodiments, the modem processor may be provided in the same device as the mobile communication module 150 or other functional module, independent of the processor 110.
The wireless communication module 160 may provide solutions for wireless communication including wireless local area network (wireless local area networks, WLAN) (e.g., wireless fidelity (wireless fidelity, wi-Fi) network), bluetooth (BT), global navigation satellite system (global navigation satellite system, GNSS), frequency modulation (frequency modulation, FM), near field wireless communication technology (near field communication, NFC), infrared technology (IR), etc., applied to the terminal device 100. The wireless communication module 160 may be one or more devices that integrate at least one communication processing module. The wireless communication module 160 receives electromagnetic waves via the antenna 2, modulates the electromagnetic wave signals, filters the electromagnetic wave signals, and transmits the processed signals to the processor 110. The wireless communication module 160 may also receive a signal to be transmitted from the processor 110, frequency modulate it, amplify it, and convert it to electromagnetic waves for radiation via the antenna 2.
In some embodiments, antenna 1 and mobile communication module 150 of terminal device 100 are coupled, and antenna 2 and wireless communication module 160 are coupled, such that terminal device 100 may communicate with a network and other devices via wireless communication techniques. Wireless communication techniques may include global system for mobile communications (global system for mobile communications, GSM), general packet radio service (general packet radio service, GPRS), code division multiple access (code division multiple access, CDMA), wideband code division multiple access (wideband code division multiple access, WCDMA), time division code division multiple access (time-division code division multiple access, TD-SCDMA), long term evolution (long term evolution, LTE), BT, GNSS, WLAN, NFC, FM, and/or IR techniques, among others. The GNSS may include a global satellite positioning system (global positioning system, GPS), a global navigation satellite system (global navigation satellite system, GLONASS), a beidou satellite navigation system (beidou navigation satellite system, BDS), a quasi zenith satellite system (quasi-zenith satellite system, QZSS) and/or a satellite based augmentation system (satellite based augmentation systems, SBAS).
The terminal device 100 implements display functions through a GPU, a display screen 194, an application processor, and the like. The GPU is a microprocessor for image processing, and is connected to the display 194 and the application processor. The GPU is used to perform mathematical and geometric calculations for graphics rendering. Processor 110 may include one or more GPUs that execute program instructions to generate or change display information.
The display screen 194 is used to display images, videos, and the like. The display 194 includes a display panel. The display panel may employ a liquid crystal display (liquid crystal display, LCD), an organic light-emitting diode (OLED), an active-matrix organic light emitting diode (AMOLED), a flexible light-emitting diode (flex), a mini, a Micro-OLED, a quantum dot light-emitting diode (quantum dot light emitting diodes, QLED), or the like. In some embodiments, the terminal device 100 may include 1 or N display screens 194, N being an integer greater than 1.
The terminal device 100 may implement a photographing function through an ISP, a camera 193, a video codec, a GPU, a display screen 194, an application processor, and the like.
The digital signal processor is used for processing digital signals, and can process other digital signals besides digital image signals. For example, when the terminal device 100 selects a frequency bin, the digital signal processor is used to fourier transform the frequency bin energy, or the like.
Video codecs are used to compress or decompress digital video. The terminal device 100 may support one or more video codecs. In this way, the terminal device 100 can play or record video in various encoding formats, such as: dynamic picture experts group (moving picture experts group, MPEG) 1, MPEG2, MPEG3, MPEG4, etc.
The external memory interface 120 may be used to connect an external memory card, such as a Micro SD card, to realize expansion of the memory capability of the terminal device 100. The external memory card communicates with the processor 110 through an external memory interface 120 to implement data storage functions. Such as storing files of music, video, etc. in an external memory card.
The internal memory 121 may be used to store computer-executable program code that includes instructions. The processor 110 performs various functional applications of the terminal device 100 and data processing by executing instructions stored in the internal memory 121. The internal memory 121 may include a storage program area and a storage data area. The storage program area may store an application program (such as a sound playing function, an image playing function, etc.) required for at least one function of the operating system, etc. The storage data area may store data (such as audio data, phonebook, etc.) created by the terminal device 100 during use, and the like. In addition, the internal memory 121 may include a high-speed random access memory, and may further include a nonvolatile memory such as at least one magnetic disk storage device, a flash memory device, a universal flash memory (universal flash storage, UFS), and the like.
The SIM card interface 195 is used to connect a SIM card. The SIM card may be contacted and separated from the terminal apparatus 100 by being inserted into the SIM card interface 195 or by being withdrawn from the SIM card interface 195. The terminal device 100 may support 1 or N SIM card interfaces, N being an integer greater than 1. The SIM card interface 195 may support Nano SIM cards, micro SIM cards, and the like. The same SIM card interface 195 may be used to insert multiple cards simultaneously. The types of the plurality of cards may be the same or different. The SIM card interface 195 may also be compatible with different types of SIM cards. The SIM card interface 195 may also be compatible with external memory cards. The terminal device 100 interacts with the network through the SIM card to realize functions such as call and data communication. In some embodiments, the terminal device 100 employs esims, namely: an embedded SIM card. The eSIM card can be embedded in the terminal device 100 and cannot be separated from the terminal device 100.
In the above embodiments, it may be implemented in whole or in part by software, hardware, firmware, or any combination thereof. When implemented in software, may be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer instructions are loaded and executed on a computer, the processes or functions described in accordance with embodiments of the present application are produced in whole or in part. The computer may be a general purpose computer, a special purpose computer, a computer network, or other programmable apparatus. The computer instructions may be stored in a computer-readable storage medium or transmitted from one computer-readable storage medium to another computer-readable storage medium, for example, the computer instructions may be transmitted from one website, computer, server, or data center to another website, computer, server, or data center by a wired (e.g., coaxial cable, fiber optic, data subscriber line (Digital Subscriber Line, DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) means. The computer readable storage medium may be any available medium that can be accessed by a computer or a data storage device such as a server, data center, etc. that contains an integration of one or more available media. The usable medium may be a magnetic medium such as a floppy Disk, a hard Disk, a magnetic tape, an optical medium such as a digital versatile Disk (Digital Versatile Disc, DVD), or a semiconductor medium such as a Solid State Disk (SSD), etc.
The above embodiments are not intended to limit the present application, and any modifications, equivalent substitutions, improvements, etc. within the technical scope of the present application should be included in the scope of the present application.

Claims (11)

1. A parameter setting method, applied to a terminal device, the method comprising:
after receiving a starting instruction, starting at a first time point, wherein a SIM card is not inserted into the terminal equipment before starting;
after the starting-up is completed, after a first SIM card is inserted into the terminal equipment, reading a value of a target NV parameter at a third time point, and modifying a Global Positioning System (GPS) global variable, wherein the target NV parameter is a parameter related to a communication function, and the GPS global variable is used for indicating whether to allow carrying position information in call signaling when performing voice communication VoWiFi call service based on wireless fidelity;
the first SIM card is inserted into the terminal equipment at a second time point, the terminal equipment does not read the value of the target NV parameter between the first time point and the second time point, and the terminal equipment does not modify the GPS global variable between the first time point and the second time point.
2. The method of claim 1, wherein the method further comprises:
before reading the value of the target NV parameter at a third time point, reading the communication identifier of the first SIM card;
inquiring corresponding NV parameter values from a target configuration relation according to the communication identifiers, wherein the target configuration relation is used for recording the corresponding relation between different communication identifiers and the NV parameter values;
the queried NV parameter value is determined as the value of the target NV parameter.
3. The method according to claim 1 or 2, wherein after the power-on is completed, after the first SIM card is inserted into the terminal device, reading the value of the target NV parameter at a third time point, and modifying the global variable of the global positioning system GPS, further comprising:
and after the first SIM card in the terminal equipment is replaced by the second SIM card, reading the value of the target NV parameter at a fifth time point, modifying the GPS global variable, and at a fourth time point, replacing the first SIM card in the terminal equipment by the second SIM card.
4. A method as claimed in claim 3, wherein the method further comprises:
under the condition that a second SIM card is inserted in the terminal equipment, after receiving restarting operation, shutting down and restarting;
After the sixth point in time, the value of the target NV parameter is read at a seventh point in time and the GPS global variable is modified.
5. The method of claim 2, wherein the terminal device comprises a modem module comprising a parameter configuration module and a GPS module;
before the reading of the value of the target NV parameter at the third time point, reading the communication identifier of the first SIM card includes:
before reading the value of the target NV parameter at a third time point, the modem module reads the communication identifier of the first SIM card through the parameter configuration module;
the querying, according to the communication identifier, the corresponding NV parameter value from the target configuration relationship includes:
the modem module queries corresponding NV parameter values from the target configuration relation according to the communication identifier through the parameter configuration module;
the determining the queried NV parameter value as the value of the target NV parameter includes:
the modem module sets the queried NV parameter value to the value of the target NV parameter through the parameter configuration module.
6. The method of claim 5, wherein after the first SIM card is inserted into the terminal device after the power-on is completed, reading the value of the target NV parameter at a third time point, and modifying the global variable of the global positioning system GPS, comprising:
After the startup is completed, after the first SIM card is inserted into the terminal equipment, the modem module reads the value of the target NV parameter at the third time point through the GPS module, and modifies the GPS global variable.
7. The method of any of claims 1-6, wherein the modifying global positioning system, GPS, global variables comprises:
binary conversion is carried out on the value of the target NV parameter read at the third time point, so that binary data are obtained;
and determining the BIT2 BIT value of the binary data to be 0, and assigning a first identifier to the GPS global variable, wherein the first identifier is used for indicating that the position information is allowed to be carried in call signaling when VoWiFi call service is carried out.
8. The method of claim 7, wherein the method further comprises:
and under the condition that the BIT2 BIT value of the binary data is 1, assigning a second identifier to the GPS global variable, wherein the second identifier is used for indicating that the position information is not allowed to be carried in call signaling when VoWiFi call service is carried out.
9. The method of any one of claims 1-8, wherein the method further comprises:
And if the reading of the value of the target NV parameter fails, modifying the value of the target NV parameter to a preset numerical value.
10. A terminal device comprising a memory, a processor and a computer program stored in the memory and executable on the processor, the processor implementing the method according to any of claims 1-9 when executing the computer program.
11. A computer readable storage medium having instructions stored therein which, when run on a computer, cause the computer to perform the method of any of claims 1-9.
CN202310231365.4A 2023-02-27 2023-02-27 Parameter setting method, terminal device and readable storage medium Active CN117135562B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310231365.4A CN117135562B (en) 2023-02-27 2023-02-27 Parameter setting method, terminal device and readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310231365.4A CN117135562B (en) 2023-02-27 2023-02-27 Parameter setting method, terminal device and readable storage medium

Publications (2)

Publication Number Publication Date
CN117135562A true CN117135562A (en) 2023-11-28
CN117135562B CN117135562B (en) 2024-06-04

Family

ID=88858891

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310231365.4A Active CN117135562B (en) 2023-02-27 2023-02-27 Parameter setting method, terminal device and readable storage medium

Country Status (1)

Country Link
CN (1) CN117135562B (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20190159160A1 (en) * 2016-05-03 2019-05-23 Telefonaktiebolaget Lm Ericsson (Publ) Methods and network nodes for providing ue location for vowifi calls
CN110049496A (en) * 2019-05-31 2019-07-23 维沃移动通信有限公司 A kind of method for network access and mobile terminal
US20200042244A1 (en) * 2018-08-06 2020-02-06 Silicon Motion Inc. Method for performing storage control in a storage server, associated memory device and memory controller thereof, and associated storage server
CN114095885A (en) * 2020-07-31 2022-02-25 华为技术有限公司 Call method, system and related device
CN115004779A (en) * 2020-11-30 2022-09-02 华为技术有限公司 Communication method and device
CN115103304A (en) * 2022-07-22 2022-09-23 荣耀终端有限公司 Position information calling method and device

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20190159160A1 (en) * 2016-05-03 2019-05-23 Telefonaktiebolaget Lm Ericsson (Publ) Methods and network nodes for providing ue location for vowifi calls
US20200042244A1 (en) * 2018-08-06 2020-02-06 Silicon Motion Inc. Method for performing storage control in a storage server, associated memory device and memory controller thereof, and associated storage server
CN110049496A (en) * 2019-05-31 2019-07-23 维沃移动通信有限公司 A kind of method for network access and mobile terminal
CN114095885A (en) * 2020-07-31 2022-02-25 华为技术有限公司 Call method, system and related device
CN115004779A (en) * 2020-11-30 2022-09-02 华为技术有限公司 Communication method and device
CN115103304A (en) * 2022-07-22 2022-09-23 荣耀终端有限公司 Position information calling method and device

Also Published As

Publication number Publication date
CN117135562B (en) 2024-06-04

Similar Documents

Publication Publication Date Title
US11797288B2 (en) Patching method, related apparatus, and system
CN114461239B (en) Software upgrading system and software upgrading method
CN114968384B (en) Function calling method and device
CN116114239B (en) Volume management method and electronic equipment
CN115002747B (en) Parameter updating method, system, terminal equipment and chip system
CN116244008B (en) Application starting method, electronic device and storage medium
CN112119378A (en) Application installation method and terminal
CN115995856A (en) Charging method of electronic equipment and electronic equipment
CN114500241A (en) Abnormal reset processing method and terminal equipment
CN113810532B (en) Positioning method and related device
CN113608753A (en) Application uninstalling method, application recovery method, electronic device and storage medium
CN117135562B (en) Parameter setting method, terminal device and readable storage medium
CN116679900B (en) Audio service processing method, firmware loading method and related devices
CN116382791A (en) Configuration file protection method and electronic equipment
CN116795435A (en) Compatibility management and control method and related equipment
CN113709720A (en) SIM dual-mode card abnormity optimization method and electronic equipment
CN116662045B (en) Process name acquisition method, terminal equipment and storage medium
CN115767602B (en) Automatic error correction method for equipment protocol subsystem abnormality and electronic equipment
CN116719376B (en) Voltage control method, device, equipment and storage medium
CN116709266A (en) Method for detecting embedded identity recognition module eSIM card and terminal equipment
CN116860429A (en) Memory management method and electronic equipment
CN116263760A (en) File storage method, file access method, electronic device and storage medium
CN117119097A (en) Method, equipment and storage medium for incoming call resonance
CN116048710A (en) Application identifier display method, electronic device and readable storage medium
CN117555700A (en) Message pushing method, terminal equipment, pushing server and readable 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