CN117426054A - Method and device for generating and applying driving file and storage medium - Google Patents

Method and device for generating and applying driving file and storage medium Download PDF

Info

Publication number
CN117426054A
CN117426054A CN202280004117.XA CN202280004117A CN117426054A CN 117426054 A CN117426054 A CN 117426054A CN 202280004117 A CN202280004117 A CN 202280004117A CN 117426054 A CN117426054 A CN 117426054A
Authority
CN
China
Prior art keywords
antenna
tuner
working mode
truth table
file
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.)
Pending
Application number
CN202280004117.XA
Other languages
Chinese (zh)
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.)
Beijing Xiaomi Mobile Software Co Ltd
Original Assignee
Beijing Xiaomi Mobile Software 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 Beijing Xiaomi Mobile Software Co Ltd filed Critical Beijing Xiaomi Mobile Software Co Ltd
Publication of CN117426054A publication Critical patent/CN117426054A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04BTRANSMISSION
    • H04B1/00Details of transmission systems, not covered by a single one of groups H04B3/00 - H04B13/00; Details of transmission systems not characterised by the medium used for transmission
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04BTRANSMISSION
    • H04B7/00Radio transmission systems, i.e. using radiation field

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Circuits Of Receivers In General (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

The disclosure provides a method and a device for generating and applying a driving file and a storage medium. The method for generating the drive file comprises the following steps: acquiring a truth table, wherein the truth table is at least used for indicating logic values corresponding to different antenna working modes, and the logic values are used for indicating the state of a coordinator Tuner on a terminal; generating code blocks corresponding to each antenna working mode based on the truth table; and splicing the generated code blocks to obtain a driving file of the Tuner. The method for driving file application comprises the following steps: acquiring a driving file of a Tuner on a terminal from a server; writing a driving file of Tuner into a system file; responding to the determination that the antenna on the terminal works in a target antenna working mode, and reading a target code block corresponding to the target antenna working mode in the driving file; a first state of a corresponding Tuner is determined in accordance with the indication of the target code block. The method provided by the disclosure can reduce personnel investment, improve configuration efficiency and has high accuracy.

Description

Method and device for generating and applying driving file and storage medium Technical Field
The disclosure relates to the technical field of communication, and in particular relates to a method and a device for generating and applying a driving file and a storage medium.
Background
Currently, an antenna cannot cover all frequency bands in which it needs to operate in one state. To allow the antenna to operate in multiple states, a Tuner may be added to the antenna. The method of controlling the Tuner is called ASM2 (Antenna Switch Module, antenna switching module), and a corresponding drive file can be configured for the Tuner by using the ASM2 method.
The existing specific process of configuring a driver file for a Tuner through an ASM2 method is as follows: manually configuring a driving file corresponding to the Tuner according to a Tuner state truth table provided by an antenna department. Because the number of tuners corresponding to the terminal is continuously increasing, for one Tuner in the terminal, the corresponding driving file includes not only the Tuner states corresponding to the single frequency band, but also the Tuner states corresponding to various combined frequency bands. The workload is large, the operation is complex, and configuration errors are easy to occur.
Disclosure of Invention
In view of this, embodiments of the present disclosure provide a method and apparatus for generating and applying a driving file, and a storage medium.
According to a first aspect of the present disclosure, a driving file generating method and a driving file applying method are provided. The method for generating the driving file is applied to a server and comprises the following steps:
Acquiring a truth table, wherein the truth table is at least used for indicating logic values corresponding to different antenna working modes, and the logic values are used for indicating the state of a coordinator Tuner on a terminal;
generating code blocks corresponding to each antenna working mode based on the truth table;
and splicing the generated code blocks to obtain the driving file of the Tuner.
In combination with any one of the embodiments provided in the present disclosure, the antenna working mode includes any one of the following:
the first working mode is used for indicating the antenna to work under the Single Band;
a second working mode for indicating the antenna to work in a plurality of frequency bands belonging to the same communication system;
and a third operation mode for indicating the antenna to operate in a plurality of frequency bands belonging to different communication modes.
With reference to any one of the embodiments provided in the present disclosure, the working mode of the antenna is the first working mode;
the code block corresponding to each antenna working mode is generated based on the truth table, and the code block comprises at least one of the following:
generating a code block corresponding to the first working mode based on the logic value corresponding to the first working mode in the truth table;
Generating a code block corresponding to the first working mode and the antenna attribute based on the logic value corresponding to the first working mode and the antenna attribute in the truth table; wherein the antenna attribute is used for indicating that the antenna belongs to a receiving antenna or a transmitting antenna;
and generating a code block corresponding to the first working mode and the channel state based on the logic value corresponding to the first working mode and the channel state in the truth table.
With reference to any one of the embodiments provided in the present disclosure, the working mode of the antenna is the second working mode;
the generating code blocks corresponding to each antenna working mode based on the truth table comprises the following steps:
in response to determining that a first type of antenna exists on the terminal based on the truth table, generating a code block corresponding to the second working mode and the first type of antenna based on the logic value corresponding to the second working mode; the first type of antennas are antennas of at least two frequency bands working in the same communication system;
and generating a code block corresponding to the second working mode based on the logic value corresponding to the second working mode in response to determining that the first type antenna does not exist on the terminal based on the truth table.
With reference to any one of the embodiments provided in the present disclosure, the working mode of the antenna is the third working mode;
the generating code blocks corresponding to each antenna working mode based on the truth table comprises the following steps:
in response to determining that a second type of antenna exists on the terminal based on the truth table, generating code blocks corresponding to the third working mode and the second type of antenna based on the logic value corresponding to the third working mode; the second type of antennas are antennas working in at least two frequency bands under different communication modes;
and generating a code block corresponding to the third working mode based on the logic value corresponding to the third working mode in response to determining that the second type antenna does not exist on the terminal based on the truth table.
In combination with any one of the embodiments provided in the present disclosure, the splicing the generated code blocks to obtain the driving file of the Tuner includes:
and splicing the corresponding generated code blocks according to different preset sequences of the antenna working modes to obtain a driving file of the Tuner.
In connection with any one of the embodiments provided by the present disclosure, the method further comprises:
And in response to determining that the truth table is updated, updating the driving file of the Tuner based on the updated truth table.
The method for applying the driving file is applied to the terminal, and comprises the following steps:
obtaining a driving file of a coordinator Tuner on the terminal from a server;
writing the driving file of the Tuner into a system file;
reading a target code block corresponding to a target antenna working mode in the driving file in response to determining that the antenna on the terminal works in the target antenna working mode;
and determining a first state of a Tuner corresponding to the antenna based on the indication of the target code block.
In connection with any one of the embodiments provided by the present disclosure, the method further comprises:
acquiring an updated driving file of the Tuner from a server;
updating the driving file of the Tuner written in the system file based on the updated driving file of the Tuner.
In connection with any one of the embodiments provided by the present disclosure, the method further comprises:
in response to determining that the target code block is not present in the driving file of the Tuner, determining a second state of the Tuner corresponding to the antenna based on a default logical value.
According to a second aspect of the present disclosure, a drive file generation apparatus and a drive file application apparatus are provided. Wherein the drive file generation device is applied to a server, the device comprising:
the truth table acquisition module is configured to acquire a truth table, wherein the truth table is at least used for indicating logic values corresponding to different antenna working modes, and the logic values are used for indicating the state of a coordinator Tuner on a terminal;
a code block generating module configured to generate code blocks corresponding to each of the antenna operation modes based on the truth table;
and the code block splicing module is configured to splice the generated code blocks to obtain the driving file of the Tuner.
The driving file application device is applied to a terminal, and the device comprises:
a driving file obtaining module configured to obtain a driving file of a coordinator Tuner on the terminal from a server;
a drive file writing module configured to write a drive file of the Tuner to a system file;
the code block reading module is configured to read a target code block corresponding to a target antenna working mode in the driving file in response to determining that an antenna on a coordinator on the terminal works in the target antenna working mode;
A state determination module configured to determine a first state of a Tuner corresponding to the antenna based on the indication of the target code block.
According to a third aspect of the present disclosure, there is provided a computer-readable storage medium storing machine-readable instructions that, when invoked and executed by a processor, cause the processor to implement a drive file generation method, a drive file application method of any of the embodiments of the present disclosure.
According to a fourth aspect of the present disclosure, there is provided an electronic device comprising
A processor;
a memory for storing processor-executable instructions;
wherein the processor is configured to perform the method for generating a drive file, the method for applying a drive file of any of the embodiments of the present disclosure.
The technical scheme provided by the embodiment of the disclosure can comprise the following beneficial effects:
according to the method for generating the driving file, the truth table is obtained, the truth table is at least used for indicating the logic values corresponding to different antenna working modes, and the logic values are used for indicating the state of the coordinator Tuner on the terminal. And generating code blocks corresponding to each antenna working mode based on the truth table. And then, splicing the generated code blocks to obtain the driving file of the Tuner. According to the method and the device, the driving file of the Tuner can be automatically generated by the server, so that the personnel investment for manually configuring the driving file of the Tuner is reduced, the configuration efficiency is improved, the error rate of manually configuring the driving file of the Tuner is reduced, and the accuracy is high.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the disclosure and together with the description, serve to explain the principles of the disclosure.
FIG. 1 is a flow chart of a method of driving file generation according to an exemplary embodiment of the present disclosure;
FIG. 2 is a schematic diagram of a truth table shown in accordance with an exemplary embodiment of the present disclosure;
FIG. 3 is a flowchart illustrating a method of generating code blocks corresponding to a second mode of operation according to an exemplary embodiment of the present disclosure;
FIG. 4 is a flowchart of yet another method of driving file generation according to an exemplary embodiment of the present disclosure;
FIG. 5 is a flowchart of a method of driving a file application according to an exemplary embodiment of the present disclosure;
fig. 6 is a schematic diagram of a driving file generating apparatus according to an exemplary embodiment of the present disclosure;
fig. 7 is a schematic structural view of still another driving file generating apparatus according to an exemplary embodiment of the present disclosure;
FIG. 8 is a schematic diagram of a drive file application apparatus according to an exemplary embodiment of the present disclosure;
FIG. 9 is a schematic diagram of a further drive file application apparatus according to an exemplary embodiment of the present disclosure;
FIG. 10 is a schematic diagram of a further drive file application apparatus according to an exemplary embodiment of the present disclosure;
fig. 11 is a schematic structural view of an electronic device according to an exemplary embodiment of the present disclosure.
Detailed Description
Reference will now be made in detail to exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, the same numbers in different drawings refer to the same or similar elements, unless otherwise indicated. The implementations described in the following exemplary examples are not representative of all implementations consistent with the present disclosure. Rather, they are merely examples of apparatus and methods consistent with some aspects of the present disclosure as detailed in the accompanying claims.
The terminology used in the present disclosure is for the purpose of describing particular embodiments only and is not intended to be limiting of the disclosure. As used in this disclosure and the appended claims, the singular forms "a," "an," and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise. It should also be understood that the term "and/or" as used herein refers to and encompasses any or all possible combinations of one or more of the associated listed items.
It should be understood that although the terms first, second, third, etc. may be used in this disclosure to describe various information, these information should not be limited to these terms. These terms are only used to distinguish one type of information from another. For example, first information may also be referred to as second information, and similarly, second information may also be referred to as first information, without departing from the scope of the present disclosure. The word "if" as used herein may be interpreted as "at … …" or "at … …" or "responsive to a determination", depending on the context.
A terminal (e.g., mobile phone, ipad, etc.) may include multiple antennas, where multiple antennas are in one-to-one correspondence with multiple coordinators, and each coordinator has a driving file corresponding to the coordinator. The state of the coordinator Tuner can be adjusted through the driving file, so that the state of the corresponding antenna on the terminal can be adjusted.
The driving file generating method of the embodiment of the present disclosure is described in detail below with reference to the accompanying drawings.
Fig. 1 is a flowchart of a driving file generation method according to an exemplary embodiment of the present disclosure, which is applied to a server. As shown in fig. 1, the exemplary embodiment method may include the steps of:
In step 100, a truth table is obtained, where the truth table is at least used to indicate logic values corresponding to different antenna operation modes, and the logic values are used to indicate a state of a coordinator Tuner on a terminal.
The antenna operation mode may include any one of the following:
the first working mode is used for indicating the antenna to work under the Single Band;
a second working mode for indicating the antenna to work in a plurality of frequency bands belonging to the same communication system;
and a third operation mode for indicating the antenna to operate in a plurality of frequency bands belonging to different communication modes.
The state of the Tuner refers to a state that the switch of the Tuner is in different directions, and in the description of this example, different arabic numerals may be used to refer to different directions of the Tuner.
In step 102, code blocks corresponding to each of the antenna operating modes are generated based on the truth table.
In step 104, the generated code blocks are spliced to obtain the driving file of the Tuner.
According to the driving file generation method, the driving file of the Tuner is automatically generated by the server, so that the personnel investment for manually configuring the Tuner driving file is reduced, the configuration efficiency is improved, the error rate of manually configuring the Tuner driving file is reduced, and the accuracy is high.
For a better description of the method of the embodiments of the present disclosure, first, the contents of the truth table, as shown in fig. 2, are briefly introduced, and the truth table is generally composed of three parts, including: single Band, carrier aggregation (Carrier Aggregation, CA), 4 th generation mobile communication technology (4 generation,4 g) +5 th generation mobile communication technology (5 generation,5 g) Dual Connectivity (EUTRA NR Dual-Connectivity, ENDC). In the description of the present example, they are referred to as a first operation mode, a second operation mode, and a third operation mode, respectively. Reference will be made in detail to the embodiments described below.
The steps of the driving file generating method are described in detail as follows:
for the above step 100, in an alternative example, the antenna operation manner may include: a first mode of operation, a second mode of operation, and a third mode of operation.
The first working mode is used for indicating that the antenna works under a Single Band, and the Single Band can be subdivided into Single bands under different systems. Such as global system for mobile communications (Global System for Mobile, GSM) under generation 2 mobile communications technology (2G), wideband code division multiple access wireless technology (Wideband Code Division Multiple Access, WCDMA) under generation 3 mobile communications technology (3 generation, 3G), long term evolution (Long Term Evolution, LTE) under 4G, new Radio, NR under 5G, and Single Band under standards such as code division multiple access (Code Division Multiple Access, CDMA) under telecommunication 5G.
Such as: the GSM Band1, WCDMA Band3 and LTE Band5 all belong to the Single Band, i.e. all belong to the first working mode.
The second working mode is used for indicating the antenna to work in a plurality of frequency bands belonging to the same communication system. In the description of the present embodiment, it may be referred to as carrier aggregation CA. In practical application, 2G and 3G are about to come off the network, but 5G is not fully popularized yet, so that the situation that the antenna simply works in 2G mode, 3G mode and 5G mode is less, and therefore, a corresponding driving file is not configured in the embodiment. Namely, the carrier aggregation CA in this embodiment refers to carrier aggregation of multiple frequency bands in the 4G system.
For example: CA_1A-5A-7A refers to carrier aggregation combined by LTE Band1, band5 and Band7, and CA_1A-3A-5A refers to carrier aggregation combined by LTE Band1, band3 and Band 5. Both carrier aggregation described above belong to the second mode of operation.
The third working mode is used for indicating the antenna to work in a plurality of frequency bands belonging to different communication modes. The third working mode in this embodiment is specifically 4g+5g dual connection ENDC, which is suitable for practical applications. The ENDC is composed of one or more bands of LTE system and one Band of NR5G system.
For example: dc_1a_7a_n5a refers to being composed of LTE Band1, band7 and NR5G Band5, and dc_1a_5a_n78a refers to being composed of LTE Band1, band5 and NR5G Band 78. Both ENDCs described above belong to the third mode of operation.
Based on the above, the obtained truth table may at least include the antenna working mode and the logic value corresponding to the antenna working mode, where different logic values may enable the coordinator Tuner of the terminal to present different states, so that the antenna corresponding to the Tuner presents different states.
In the above embodiment, the corresponding code blocks may be generated for the logic values corresponding to different antenna working modes, so that the coordinator Tuner may present different states in different working modes, and further the antenna corresponding to the coordinator Tuner may better work in multiple states.
For step 102, in an alternative example, the antenna operating mode antenna may be the first operating mode. I.e. for indicating how the antenna is to operate in Single Band.
At this time, a code block corresponding to the first operation mode may be generated based on the logical value corresponding to the first operation mode in the truth table.
Continuing with the above example, when the first operating mode in the truth table is GSM Band1 and the logic value corresponding to the first operating mode is 7, a corresponding code block may be generated based on the first operating mode GSM Band1 and the logic value 7. Or when the first working mode in the truth table is LTE Band5 and the corresponding logic value is 3, the corresponding code block may be generated based on the first working mode LTE Band5 and the logic value 3.
Alternatively, code blocks corresponding to the first operating mode and the antenna attribute may be generated based on the logical values corresponding to the first operating mode and the antenna attribute in the truth table.
Wherein the antenna attribute is used for indicating that the antenna belongs to a receiving antenna or a transmitting antenna. For the same antenna, when the same antenna is used as a receiving antenna or used as a transmitting antenna to receive or transmit signals in the same frequency band in the same system, the corresponding Tuner value is also different, so that the corresponding code block can be generated based on the logic value corresponding to the first working mode and the antenna attribute in the truth table.
Continuing with the above example, when the first operating mode is GSM Band1 and the antenna state is Tx (Transmit) antenna, and the logic value corresponding to the first operating mode is 8, a corresponding code block may be generated based on the first operating mode GSM Band1, the antenna state Tx, and the logic value 8. Or when the first working mode in the truth table is LTE Band5, the antenna state is Rx (Receive) antenna, and the logic value corresponding to the antenna is 3, a corresponding code block may be generated based on the first working mode LTE Band5 and the antenna state Rx, and the logic value 3.
Further alternatively, a code block corresponding to the first operating mode and the channel state may be generated based on the logical value corresponding to the first operating mode and the channel state in the truth table.
In an alternative example, if the frequency range corresponding to the Band1 frequency Band is 2110000 hz-2170000 hz, in order to make the antenna correspond to a better working state at different frequencies, the frequency range corresponding to the Band1 frequency Band may be further subdivided by related staff members, and different logic values may be allocated to different frequency ranges after multiple experiments. For example, the frequency in the range of 2110000 hz-2130000 hz may be further divided into low channels, the frequency in the range of 2130000 hz-2150000 hz may be divided into medium channels, and finally the frequency in the range of 2150000 hz-2170000 hz may be divided into high channels, and after multiple experiments, the best logic values corresponding to the different channels may be confirmed and written into the truth table.
Continuing with the above example, when the first operating mode in the truth table is GSM Band1, the channel state is low, and the logic value corresponding to the first operating mode is 8, a corresponding code block may be generated based on the first operating mode GSM Band1, the low channel state, and the logic value 8. Or when the first working mode in the truth table is LTE Band5, the channel state is high channel, and the logic value corresponding to the channel state is 4, the corresponding code block may be generated based on the first working mode LTE Band5, the high channel state, and the logic value 4.
In an alternative example, the truth table may further include logic values corresponding to the first operating mode, the antenna attribute, and the channel state.
That is, the present example method may further generate a logic block corresponding to the first operating mode, the antenna attribute, and the channel state based on the logic value corresponding to the first operating mode, the antenna attribute, and the channel state in the truth table. The generating method is the same as that in the foregoing embodiment, and will not be described here again.
In the above embodiment, when the working mode of the antenna is the first working mode, the first working mode may be further divided into multiple cases based on different antenna attributes or different channel states, and different cases may correspond to different logic values, so that the antenna corresponding to the Tuner may work better under multiple conditions.
In an alternative example, the antenna operating mode may be the second operating mode. I.e. a configuration mode for indicating that the antenna is operating in a plurality of frequency bands belonging to the same communication system. As shown in fig. 3, when the antenna operating mode is the second operating mode, the method may include:
in step 300, the frequency band information included in the second operation mode is read.
In step 302, it is determined, based on the truth table, whether a first type of antenna exists on the terminal, where the first type of antenna is an antenna that is commonly used by at least two frequency bands belonging to the same communication system.
In this example, an antenna usage table indicating antennas used correspondingly for different frequency bands may be stored in the server in advance. For example, according to the antenna usage table, it can be known that the antennas used by LTE Band1 are 3, 5, 4, and 0.
Step 304 is performed when it is determined that the first type of antenna is present on the terminal, and step 306 is performed when it is determined that the first type of antenna is not present on the terminal.
In step 304, the first type of antenna is read.
In step 306, a logical value corresponding to the second mode of operation is read.
In step 308, a code block corresponding to the second operation mode and the first type antenna is generated based on the logic value corresponding to the second operation mode.
For example, the second working mode is ca_1a_3a_5a, and the corresponding logic value is 9, that is, the combination includes LTE Band1, band3 and Band5. According to the antenna usage table, the antennas used in Band1 and Band3 are 3, 5, 4, and 0, and the antennas used in Band5 are 0 and1, respectively, and it is known that the common antenna 0 exists among the antennas used in the three frequency bands. At this time, a corresponding code block may be generated according to the second operation mode, the common antenna 0, and the logic value 9.
In step 310, a code block corresponding to the second mode of operation is generated based on the logical value corresponding to the second mode of operation.
For example, the second working mode is ca_1a_18a_42a, and the corresponding logic value is 13, that is, the combination includes LTE Band1, band18 and Band42. According to the antenna usage table, the antennas used in Band1 are 3, 5, 4, and 0, the antennas used in Band18 are 0 and1, and the antennas used in Band42 are 10, 11, 13, and 12, and thus, the antennas used in the three frequency bands are not commonly used. At this time, a code block corresponding to the second operation mode may be generated according to the logical value 13.
In the above embodiment, when the working mode is the second working mode, whether the antennas used in all the frequency bands in the second working mode have the common antennas or not may be distinguished, and corresponding code blocks may be generated respectively, so that the antenna corresponding to the Tuner may work better in multiple states.
In an optional example, the antenna working mode may also be the third working mode, that is, a configuration mode for indicating that the antenna works in a plurality of frequency bands belonging to different communication standards.
Since the process of generating the code block is the same as the process when the frequency band configuration mode is the second operation mode when the antenna operation mode is the third operation mode, details are not repeated here, and the foregoing embodiments may be referred to specifically.
In an alternative example, the driver file of the Tuner may also be updated based on the updated truth table when it is determined that the truth table is updated.
Since the truth table provided by the antenna department in the earlier stage is not the final version, the final truth table can be determined after numerous experiments and modifications, and therefore, the generated driving file also needs to be updated for many times. Therefore, in this embodiment, when the server determines that the truth table is updated, the driving file of the Tuner may be further updated according to the logic value corresponding to the antenna frequency band configuration in the updated truth table.
In the above embodiment, when the truth table is updated, the server may automatically update the driving file of the Tuner according to the updated truth table, thereby reducing the personnel investment for manually updating the driving file of the Tuner and improving the updating efficiency.
Fig. 4 is a flowchart of yet another method of generating a drive file according to an exemplary embodiment of the present disclosure. Wherein, the same steps as in the previous embodiments, this embodiment will be briefly described, and any embodiment specifically referred to may be combined will not be described in detail. As shown in fig. 4, the exemplary embodiment method may include the steps of:
in step 400, a truth table provided by the antenna sector is received.
The truth table may be generated by the antenna sector after a number of experiments.
In step 402, it is checked whether the format of the truth table is correct.
After obtaining the truth table, the server may first check the format of the truth table, and when the format of the truth table is wrong, for example, there is a gap-fill condition in the truth table, step 410 is executed. When the truth table is in the correct format, step 404 is performed.
In step 404, the working modes in the truth table are distinguished, and corresponding code blocks are generated according to different working modes; the operating modes include a first operating mode, a second operating mode, and a third operating mode.
In step 406, the code blocks corresponding to the first working mode, the code blocks corresponding to the second working mode and the code blocks corresponding to the third working mode are spliced according to a preset sequence, so as to obtain the driving file of the Tuner.
In an optional example, the code blocks generated correspondingly may be spliced according to different preset orders of the antenna working modes, so as to obtain the driving file of the Tuner.
For example, the preset sequence may be: a third working mode, a second working mode and a first working mode. The corresponding generated code blocks are spliced according to the sequence of a third working mode for indicating the antenna to work in a plurality of frequency bands belonging to different communication modes, a second working mode for indicating the antenna to work in a plurality of frequency bands belonging to the same communication mode and a first working mode for indicating the antenna to work in a Single frequency Band, so as to obtain the driving file of the Tuner. Thereby avoiding a match to the wrong Tuner state.
For example, the driving file of the Tuner acquired in the above order includes a third working mode LTE Band1, band7, NR5G Band5, a second working mode LTE Band1, band7, and a first working mode LTE Band1. Since the antenna on the terminal is matched in the corresponding driving file from top to bottom according to the target antenna working mode when the antenna on the terminal works in the target antenna working mode, if the target antenna working mode is LTE Band1, when the antenna on the terminal is matched in the driving file from top to bottom, the antenna on the terminal is not intercepted by the third working modes LTE Band1, band7 and NR5G Band5 because the target antenna working mode does not have Band7 and NR5G Band 5. Since the target antenna working mode does not have Band7, the target antenna working mode is not intercepted by the second working modes LTE Band1 and Band 7. Therefore, the first working mode LTE Band1 can be successfully matched.
On the contrary, if the first working mode LTE Band1 is placed at the forefront of the driving file, and the target antenna working modes are LTE Band1, band7 and NR5G Band5, when matching is performed in the driving file from top to bottom according to the target antenna working modes, since the first working mode LTE Band1 is included in the target antenna working modes LTE Band1, band7 and NR5G Band5, after matching to LTE Band1, the Tuner state corresponding to LTE Band1 may be read, that is, the wrong Tuner state may be matched.
In the above embodiment, the code blocks generated correspondingly are spliced according to the sequence of the third working mode, the second working mode and the first working mode, so as to obtain the driving file of the Tuner. The target antenna working mode can be prevented from matching to the wrong Tuner state when matching is performed from top to bottom in the driving file.
In step 408, the terminal is notified that the Tuner's drive file was successfully generated.
In step 410, the terminal is notified that the format of the truth table is in error.
In step 412, the drive file generation method ends.
According to the method for generating the driving file, after the truth table is acquired, format check is performed on the truth table, so that when the truth table has a missing filling phenomenon, an error code block is generated.
Fig. 5 is a flowchart of a method of driving a file application, which is applied to a terminal, according to an exemplary embodiment of the present disclosure. As shown in fig. 5, the exemplary embodiment method may include the steps of:
in step 500, a driver file of a coordinator Tuner on the terminal is obtained from a server.
After the server generates the driving file of the Tuner, the terminal may acquire the driving file of the coordinator Tuner on the terminal from the server.
In step 502, the driving file of the Tuner is written to a system file.
The system files are the system files of the terminal, such as the system files of a mobile phone and the system files of ipad.
In step 504, in response to determining that the antenna on the terminal is operating in the target antenna operating mode, a target code block in the driving file corresponding to the target antenna operating mode is read.
As in the previous embodiment, when the antenna on the terminal operates in the target antenna operating mode, matching may be performed from top to bottom in the driving file according to the target antenna operating mode, and a target code block corresponding to the target antenna operating mode may be read.
In step 506, a first state of a Tuner corresponding to the antenna is determined based on the indication of the target code block.
After reading the target code block, a first state of a Tuner corresponding to the antenna may be determined based on an indication in the target code block, i.e. a logical value in the target code block.
In the above embodiment, since the driving file of the Tuner obtained from the server is automatically generated by the server according to the truth table provided by the antenna department, the problem of easy error caused by manually configuring the driving file can be avoided, so that the logic value obtained according to the driving file and corresponding to the working state of the target antenna is accurate and reliable.
In an optional example, when the target code block corresponding to the target antenna working mode does not exist in the driving file, the logic value of the Tuner may be modified to be a default logic value, alternatively, the default logic value may be 0, and the state of the Tuner is determined based on the default logic value, so that the antenna corresponding to the Tuner is in a relatively stable state.
In an optional example, the terminal may further obtain an updated driving file of the Tuner from a server after the server updates the driving file of the Tuner, and update the driving file of the Tuner written in the system file according to the updated driving file of the Tuner.
In the above embodiment, the updated driving file of the Tuner is obtained from the server, and the driving file written in the system file is updated in time according to the obtained driving file of the Tuner, so that the situation that the driving file is updated, but the driving file in the system file is still matched to the logic value before the update according to the working mode of the target antenna when the driving file in the system file is not updated can be avoided.
For the foregoing method embodiments, for simplicity of explanation, the methodologies are shown as a series of acts, but one of ordinary skill in the art will appreciate that the present disclosure is not limited by the order of acts described, as some steps may occur in other orders or concurrently in accordance with the disclosure.
Further, those skilled in the art will also appreciate that the embodiments described in the specification are all alternative embodiments, and that the acts and modules referred to are not necessarily required by the present disclosure.
Corresponding to the embodiment of the application function implementation method, the disclosure also provides an embodiment of the application function implementation device and a corresponding terminal.
Fig. 6 is a schematic structural view of a driving file generating apparatus in an exemplary embodiment of the present disclosure, which is applied to a server, as shown in fig. 6, the driving file generating apparatus may include:
The truth table obtaining module 61 is configured to obtain a truth table, where the truth table is at least used for indicating logic values corresponding to different antenna working modes, and the logic values are used for indicating the state of the coordinator Tuner on the terminal;
a code block generating module 62 configured to generate code blocks corresponding to each of the antenna operating modes based on the truth table;
and a code block splicing module 63 configured to splice the generated code blocks to obtain the driving file of the Tuner.
Optionally, the antenna working mode includes any one of the following:
the first working mode is used for indicating the antenna to work under the Single Band;
a second working mode for indicating the antenna to work in a plurality of frequency bands belonging to the same communication system;
and a third operation mode for indicating the antenna to operate in a plurality of frequency bands belonging to different communication modes.
Optionally, the working mode of the antenna is the first working mode;
the code block generating module 62, when configured to generate code blocks corresponding to each of the antenna operating modes based on the truth table, includes at least one of:
generating a code block corresponding to the first working mode based on the logic value corresponding to the first working mode in the truth table;
Generating a code block corresponding to the first working mode and the antenna attribute based on the logic value corresponding to the first working mode and the antenna attribute in the truth table; wherein the antenna attribute is used for indicating that the antenna belongs to a receiving antenna or a transmitting antenna;
and generating a code block corresponding to the first working mode and the channel state based on the logic value corresponding to the first working mode and the channel state in the truth table.
Optionally, the working mode of the antenna is the second working mode;
the code block generating module 62, when configured to generate code blocks corresponding to each of the antenna operating modes based on the truth table, includes at least one of:
in response to determining that a first type of antenna exists on the terminal based on the truth table, generating a code block corresponding to the second working mode and the first type of antenna based on the logic value corresponding to the second working mode; the first type of antennas are antennas commonly used by at least two frequency bands belonging to the same communication system;
and generating a code block corresponding to the second working mode based on the logic value corresponding to the second working mode in response to determining that the first type antenna does not exist on the terminal based on the truth table.
Optionally, the antenna working mode is the third working mode;
the code block generating module 62, when configured to generate code blocks corresponding to each of the antenna operating modes based on the truth table, includes at least one of:
in response to determining that a second type of antenna exists on the terminal based on the truth table, generating a code block corresponding to the third working mode and the first type of antenna based on the logic value corresponding to the third working mode; the first two-class antenna is an antenna commonly used by at least two frequency bands under different communication systems;
and generating a code block corresponding to the third working mode based on the logic value corresponding to the third working mode in response to determining that the second type antenna does not exist on the terminal based on the truth table.
Optionally, the code block splicing module 63, when configured to splice the generated code blocks to obtain the driving file of the Tuner, includes:
splicing the corresponding generated code blocks according to different preset sequences of the antenna working modes to obtain a driving file of the Tuner.
Optionally, as shown in fig. 7, the driving file generating apparatus may further include:
a drive file update module 71 configured to update the Tuner's drive file based on the updated truth table in response to determining that the truth table is updated.
Fig. 8 is a schematic structural view of a driving file application apparatus in an exemplary embodiment of the present disclosure, which is applied to a terminal, as shown in fig. 8, the driving file application apparatus may include:
a driving file obtaining module 81 configured to obtain a driving file of a coordinator Tuner on the terminal from a server;
a drive file writing module 82 configured to write a drive file of the Tuner to a system file;
a code block reading module 83 configured to read a code block corresponding to a target antenna operation mode in the driving file in response to determining that an antenna on the terminal is operated in the target antenna operation mode;
a state determination module 84 configured to determine a first state of a Tuner corresponding to the antenna based on the indication of the target code block.
Optionally, as shown in fig. 9, the driving file application apparatus may further include:
an obtaining module 91 configured to obtain, from a server, an updated driving file of the Tuner;
And an updating module 92 configured to update the driving file of the Tuner written in the system file according to the updated driving file of the Tuner.
Optionally, as shown in fig. 10, the driving file application apparatus may further include:
a second state determining module 101, configured to determine, based on a default logic value, a second state of the Tuner corresponding to the antenna in response to determining that the target code block does not exist in the driving file of the Tuner. For the device embodiments, reference is made to the description of the method embodiments for the relevant points, since they essentially correspond to the method embodiments. The apparatus embodiments described above are merely illustrative, wherein the elements described above as separate elements may or may not be physically separate, and the elements shown as elements may or may not be physical elements, may be located in one place, or may be distributed over a plurality of network elements. Some or all of the modules may be selected according to actual needs to achieve the objectives of the disclosed solution. Those of ordinary skill in the art will understand and implement the present invention without undue burden.
Accordingly, the embodiment of the disclosure provides electronic equipment. Comprising the following steps: a processor;
a memory for storing processor-executable instructions;
the processor is configured to execute the method for generating the driving file and the method for applying the driving file according to any embodiment of the disclosure.
Fig. 11 is a schematic diagram of an electronic device 1100, according to an example embodiment. For example, the electronic device 1100 may be a user device, and may be embodied as a mobile phone, a computer, a tablet device, or the like.
Referring to fig. 11, an electronic device 1100 may include one or more of the following components: a processing component 1102, a memory 1104, a power component 1106, a multimedia component 1108, an audio component 1110, an input/output (I/O) interface 1112, a sensor component 1114, and a communication component 1116.
The processing component 1102 generally controls overall operation of the electronic device 1100, such as operations associated with display, telephone calls, data communications, camera operations, and recording operations. The processing component 1102 may include one or more processors 1120 to execute instructions to perform all or part of the steps of the methods described above. Further, the processing component 1102 can include one or more modules that facilitate interactions between the processing component 1102 and other components. For example, the processing component 1102 may include a multimedia module to facilitate interaction between the multimedia component 1108 and the processing component 1102.
Memory 1104 is configured to store various types of data to support operations at device 1100. Examples of such data include instructions for any application or method operating on the electronic device 1100, contact data, phonebook data, messages, pictures, videos, and so forth. The memory 1104 may be implemented by any type or combination of volatile or nonvolatile memory devices 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 or optical disk.
The power supply component 1106 provides power to the various components of the electronic device 1100. The power supply component 1106 can include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power for the electronic device 1100.
Multimedia component 1108 includes screens between electronic device 1100 and the user that provide an output interface. 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 a user. The touch panel includes one or more touch sensors to sense touches, swipes, and gestures on the touch panel. The touch sensor may sense not only a boundary of a touch or a sliding action but also a duration and a pressure related to the touch or the sliding operation. In some embodiments, multimedia component 1108 includes a front camera and/or a rear camera. When the electronic device 1100 is in an operational mode, such as a shooting mode or a video mode, the front-facing camera and/or the rear-facing camera may receive external multimedia data. Each front camera and rear camera may be a fixed optical lens system or have focal length and optical zoom capabilities.
The audio component 1110 is configured to output and/or input an audio signal. For example, the audio component 1110 includes a Microphone (MIC) configured to receive external audio signals when the electronic device 1100 is in an operational mode, such as a call mode, a recording mode, and a voice recognition mode. The received audio signals may be further stored in the memory 1104 or transmitted via the communication component 1116. In some embodiments, the audio component 1110 further comprises a speaker for outputting audio signals.
The I/O interface 1112 provides an interface between the processing component 1102 and peripheral interface modules, which may be keyboards, click wheels, buttons, etc. These buttons may include, but are not limited to: homepage button, volume button, start button, and lock button.
The sensor assembly 1114 includes one or more sensors for providing status assessment of various aspects of the electronic device 1100. For example, the sensor assembly 1114 may detect an on/off state of the electronic device 1100, a relative positioning of the components, such as a display and keypad of the electronic device 1100, a change in position of the electronic device 1100 or a component of the electronic device 1100, the presence or absence of a user's contact with the electronic device 1100, an orientation or acceleration/deceleration of the electronic device 1100, and a change in temperature of the electronic device 1100. The sensor assembly 1114 may include a proximity sensor configured to detect the presence of nearby objects in the absence of any physical contact. The sensor assembly 1114 may also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 1114 may also include an acceleration sensor, a gyroscopic sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
The communication component 1116 is configured to facilitate communication between the electronic device 1100 and other devices, either wired or wireless. The electronic device 1100 may access a wireless network based on a communication standard, such as WiFi,4G or 5G,4G LTE, 5G NR, or a combination thereof. In one exemplary embodiment, the communication component 1116 receives a broadcast signal or broadcast-related information from an external broadcast management system via a broadcast channel. In one exemplary embodiment, the communication component 1116 described above further includes a Near Field Communication (NFC) module to facilitate short range communication. For example, the NFC module may be implemented based on Radio Frequency Identification (RFID) technology, infrared data association (IrDA) technology, ultra Wideband (UWB) technology, bluetooth (BT) technology, and other technologies.
In an exemplary embodiment, the electronic device 1100 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 elements for executing the methods described above.
In an exemplary embodiment, a non-transitory computer readable storage medium, such as a memory 1104 including instructions that, when executed by a processor 1120 of the electronic device 1100, enable the electronic device 1100 to perform the drive file generation method, drive file application method of any of the embodiments of the present disclosure, is also provided.
The non-transitory computer readable storage medium may be a ROM, random-access memory (RAM), CD-ROM, magnetic tape, floppy disk, optical data storage device, etc.
Other embodiments of the disclosure will be apparent to those skilled in the art from consideration of the specification and practice of the disclosure disclosed herein. This disclosure is intended to cover any adaptations, uses, or adaptations of the disclosure following the general principles of the disclosure and including such departures from the present disclosure as come within known or customary practice within the art to which the disclosure pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the disclosure being indicated by the following claims.
It is to be understood that the present disclosure is not limited to the precise arrangements and instrumentalities shown in the drawings, and that various modifications and changes may be effected without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.

Claims (14)

  1. A drive file generation method, wherein the method is applied to a server, the method comprising:
    acquiring a truth table, wherein the truth table is at least used for indicating logic values corresponding to different antenna working modes, and the logic values are used for indicating the state of a coordinator Tuner on a terminal;
    Generating code blocks corresponding to each antenna working mode based on the truth table;
    and splicing the generated code blocks to obtain the driving file of the Tuner.
  2. The method of claim 1, wherein the antenna operation comprises any one of:
    the first working mode is used for indicating the antenna to work under the Single Band;
    a second working mode for indicating the antenna to work in a plurality of frequency bands belonging to the same communication system;
    and a third operation mode for indicating the antenna to operate in a plurality of frequency bands belonging to different communication modes.
  3. The method of claim 2, wherein the antenna operating mode is the first operating mode;
    the code block corresponding to each antenna working mode is generated based on the truth table, and the code block comprises at least one of the following:
    generating a code block corresponding to the first working mode based on the logic value corresponding to the first working mode in the truth table;
    generating a code block corresponding to the first working mode and the antenna attribute based on the logic value corresponding to the first working mode and the antenna attribute in the truth table; wherein the antenna attribute is used for indicating that the antenna belongs to a receiving antenna or a transmitting antenna;
    And generating a code block corresponding to the first working mode and the channel state based on the logic value corresponding to the first working mode and the channel state in the truth table.
  4. The method of claim 2, wherein the antenna operating mode is the second operating mode;
    the generating code blocks corresponding to each antenna working mode based on the truth table comprises the following steps:
    in response to determining that a first type of antenna exists on the terminal based on the truth table, generating a code block corresponding to the second working mode and the first type of antenna based on the logic value corresponding to the second working mode; the first type of antennas are antennas of at least two frequency bands working in the same communication system;
    and generating a code block corresponding to the second working mode based on the logic value corresponding to the second working mode in response to determining that the first type antenna does not exist on the terminal based on the truth table.
  5. The method of claim 2, wherein the antenna operating mode is the third operating mode;
    the generating code blocks corresponding to each antenna working mode based on the truth table comprises the following steps:
    In response to determining that a second type of antenna exists on the terminal based on the truth table, generating code blocks corresponding to the third working mode and the second type of antenna based on the logic value corresponding to the third working mode; the second type of antennas are antennas working in at least two frequency bands under different communication modes;
    and generating a code block corresponding to the third working mode based on the logic value corresponding to the third working mode in response to determining that the second type antenna does not exist on the terminal based on the truth table.
  6. The method of claim 1, wherein the splicing the generated code blocks to obtain the Tuner drive file includes:
    and splicing the corresponding generated code blocks according to different preset sequences of the antenna working modes to obtain a driving file of the Tuner.
  7. The method according to claim 1, wherein the method further comprises:
    and in response to determining that the truth table is updated, updating the driving file of the Tuner based on the updated truth table.
  8. A method for driving a file application, the method being applied to a terminal, the method comprising:
    Obtaining a driving file of a coordinator Tuner on the terminal from a server;
    writing the driving file of the Tuner into a system file;
    reading a target code block corresponding to a target antenna working mode in the driving file in response to determining that the antenna on the terminal works in the target antenna working mode;
    and determining a first state of a Tuner corresponding to the antenna based on the indication of the target code block.
  9. The method of claim 8, wherein the method further comprises:
    acquiring an updated driving file of the Tuner from a server;
    updating the driving file of the Tuner written in the system file based on the updated driving file of the Tuner.
  10. The method of claim 8, wherein the method further comprises:
    in response to determining that the target code block is not present in the driving file of the Tuner, determining a second state of the Tuner corresponding to the antenna based on a default logical value.
  11. A drive file generation apparatus, the apparatus being applied to a server, the apparatus comprising:
    the truth table acquisition module is configured to acquire a truth table, wherein the truth table is at least used for indicating logic values corresponding to different antenna working modes, and the logic values are used for indicating the state of a coordinator Tuner on a terminal;
    A code block generating module configured to generate code blocks corresponding to each of the antenna operation modes based on the truth table;
    and the code block splicing module is configured to splice the generated code blocks to obtain the driving file of the Tuner.
  12. A device for driving a file application, the device being applied to a terminal, the device comprising:
    a driving file obtaining module configured to obtain a driving file of a coordinator Tuner on the terminal from a server;
    a drive file writing module configured to write a drive file of the Tuner to a system file;
    the code block reading module is configured to read a target code block corresponding to a target antenna working mode in the driving file in response to determining that an antenna on a coordinator on the terminal works in the target antenna working mode;
    a state determination module configured to determine a first state of a Tuner corresponding to the antenna based on the indication of the target code block.
  13. A computer readable storage medium having stored thereon a computer program which when executed by a processor performs the method of any of claims 1 to 7 or the method of any of claims 8 to 10.
  14. An electronic device, comprising:
    a processor;
    a memory for storing processor-executable instructions;
    wherein the processor is configured to perform the drive file generation method of any one of claims 1 to 7 or the drive file application method of any one of claims 8 to 10.
CN202280004117.XA 2022-05-19 2022-05-19 Method and device for generating and applying driving file and storage medium Pending CN117426054A (en)

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2022/093954 WO2023221057A1 (en) 2022-05-19 2022-05-19 Driver file generation method, driver file application method, apparatus and storage medium

Publications (1)

Publication Number Publication Date
CN117426054A true CN117426054A (en) 2024-01-19

Family

ID=88834311

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202280004117.XA Pending CN117426054A (en) 2022-05-19 2022-05-19 Method and device for generating and applying driving file and storage medium

Country Status (2)

Country Link
CN (1) CN117426054A (en)
WO (1) WO2023221057A1 (en)

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN201478455U (en) * 2009-06-19 2010-05-19 青岛海信移动通信技术股份有限公司 Multiplex antenna and communication electronic product therewith
CN104639196B (en) * 2013-11-07 2018-02-27 联想(北京)有限公司 A kind of aerial signal optimization method, device and terminal device
US10420023B2 (en) * 2018-01-10 2019-09-17 Dell Products, Lp Method and apparatus for multiple radio access technology antenna front end controller integration

Also Published As

Publication number Publication date
WO2023221057A1 (en) 2023-11-23

Similar Documents

Publication Publication Date Title
US11206522B2 (en) Method and device for equipment management
US11646856B2 (en) Timing configuration method and apparatus
CN107105478B (en) Network registration method and device
US11284398B2 (en) Communication link configuration method and device
CN109565717B (en) Method and device for configuring bandwidth part
CN111917493B (en) Antenna testing method, device and storage medium
KR20180027183A (en) Electronic device and method for processing plural images
US20220256497A1 (en) Methods and apparatuses for receiving paging signaling, and methods and apparatuses for transmitting paging signaling
US11388652B2 (en) Method and apparatus for indicating position of cell-defining synchronization signal block and searching for the same, and base station
CN116367330A (en) Method, device and storage medium for determining default beam
US20220360971A1 (en) Method for sending mdt information, method for receiving mdt information, electronic device and storage medium
CN107463372B (en) Data-driven page updating method and device
CN109218509B (en) Information screen display method and device and computer readable storage medium
US11917562B2 (en) Vehicle-to-everything synchronization method and device
US11627615B2 (en) UAV indication method and apparatus
CN108494436B (en) Method and device for setting MIPI frequency
US20170075671A1 (en) Method and apparatus for installing application and smart device using the same
CN106933111B (en) Method and device for controlling equipment
CN107885464B (en) Data storage method, device and computer readable storage medium
CN117426054A (en) Method and device for generating and applying driving file and storage medium
US20210076386A1 (en) Information indication method and apparatus, base station and user equipment
CN110457084B (en) Loading method and device
CN112988822A (en) Data query method, device, equipment, readable storage medium and product
CN112987906B (en) Method and device for reducing display power consumption
CN113191792B (en) Task processing method, device, electronic equipment, storage medium and program product

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