Parameter output method and device, electronic equipment and storage medium
By acquiring target logs that match the terminal network category, parsing and outputting module parameter values, the problem of long API interface communication cycles in existing technologies is solved, and communication efficiency is improved.
Patent Information
- Application Number
- CN202210434438.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-04-24
- Publication Date
- 2026-01-16
- Estimated Expiration
- 2042-04-24
AI Technical Summary
In existing technologies, when relying on the API interface provided by the chip platform to obtain parameters, the process of determining the API interface has a long communication cycle, which leads to a longer parameter output time and lower communication efficiency.
By obtaining target logs that match the network category of the terminal, the module parameter values, including cell information, are parsed from the target logs and output, thus avoiding direct dependence on API interfaces.
It saves time waiting for API interface communication and improves communication efficiency.
Smart Images

Figure CN115002798B_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present application relates to the technical field of communication, and in particular to a parameter output method and device, electronic equipment and storage medium. BACKGROUND
[0002] In the interaction scenario of the network side and the terminal, the network side often needs to make corresponding adjustment according to some parameter information of the terminal, for example, the base station obtains the transmit power of the module, and can adjust the transmit power of the base station itself according to the size of the value.
[0003] In the related art, the method for outputting the module parameter value often depends on the API interface provided by the chip platform, and the parameter acquisition without the API interface provided often needs to wait for the chip platform to confirm the release of the corresponding API interface.
[0004] However, since the process of determining the API interface has a long communication period, the parameter output time is prolonged, and the communication efficiency is low. SUMMARY
[0005] The present application provides a parameter output method, device, electronic equipment and storage medium, to solve the problem in the prior art that the parameter is acquired by relying on the API interface provided by the chip platform, and since the process of determining the API interface has a long communication period, the parameter output time is prolonged, and the communication efficiency is low.
[0006] In a first aspect, an embodiment of the present application provides a parameter output method, comprising:
[0007] Obtaining a target log matched with a network category of a terminal, wherein the target log comprises cell information of the terminal;
[0008] Parsing a module parameter value comprising the cell information from the target log;
[0009] Outputting the module parameter value.
[0010] Optionally, the parsing of the module parameter value comprising the cell information from the target log comprises:
[0011] Determining a parameter confirmation condition corresponding to the network category, wherein the parameter confirmation condition is matched with the cell information;
[0012] Determining the module parameter value satisfying the parameter confirmation condition from the target log.
[0013] Optionally, the determining of the module parameter value satisfying the parameter confirmation condition from the target log comprises:
[0014] For any head node in the target log, the following determination step is performed: determining whether the encoding and channel type in the head node satisfy the parameter confirmation condition, the parameter confirmation condition comprising that the encoding is a preset encoding and the channel type is a preset channel type;
[0015] If yes, the module parameter value corresponding to the module parameter is obtained from the head node;
[0016] If no, the determination step is performed on the next head node.
[0017] Optionally, the determining whether the encoding and channel type in the head node satisfy the parameter confirmation condition comprises:
[0018] determining whether the encoding is a preset encoding;
[0019] If yes, determining whether the channel type is a preset channel type;
[0020] If yes, it is determined that the head node satisfies the parameter confirmation condition.
[0021] Optionally, the outputting the module parameter value comprises:
[0022] storing the module parameter value into a global variable;
[0023] outputting the module parameter value in the global variable based on an AT instruction.
[0024] Optionally, the obtaining the target log matching the network category of the terminal comprises:
[0025] determining the network category to which the terminal belongs;
[0026] determining a log monitoring list corresponding to the network category;
[0027] determining the log in the log monitoring list as the target log.
[0028] Optionally, the determining the log monitoring list corresponding to the network category comprises:
[0029] if the network category is standalone networking, determining the log monitoring list as a log list related to new radio;
[0030] if the network category is long term evolution technology and is non-standalone networking, determining the log monitoring list as a log list related to long term evolution technology;
[0031] if the network category is long term evolution technology and is standalone networking, determining the log monitoring list as the log list related to new radio and the log list related to long term evolution technology.
[0032] In a second aspect, an embodiment of the present application provides a parameter output device, comprising:
[0033] an acquisition module configured to acquire a target log matching a network category of a terminal, wherein the target log comprises cell information of the terminal;
[0034] an analysis module configured to analyze the target log to obtain a module parameter value comprising the cell information;
[0035] an output module configured to output the module parameter value.
[0036] In a third aspect, an embodiment of the present application provides an electronic device, comprising a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory complete communication with each other through the communication bus;
[0037] the memory is configured to store a computer program;
[0038] the processor is configured to execute the program stored in the memory to implement the parameter output method in the first aspect.
[0039] In a fourth aspect, an embodiment of the present application provides a computer readable storage medium, which stores a computer program, and the computer program is executed by a processor to implement the parameter output method in the first aspect.
[0040] The above technical solution provided by the embodiments of the present application has the following advantages compared with the prior art: the method provided by the embodiments of the present application acquires a target log matching a network category of a terminal, wherein the target log comprises cell information of the terminal; analyzes the target log to obtain a module parameter value comprising the cell information; and outputs the module parameter value. In this way, by acquiring the target log matching the network category of the terminal, the module parameter value is obtained by analyzing the target log, and the module parameter value is outputted, so that the output of the module parameter can be realized without API, the waiting time for the API interface process is saved, and the communication efficiency is improved. BRIEF DESCRIPTION OF DRAWINGS
[0041] The accompanying drawings, which are incorporated herein and constitute part of the specification, illustrate embodiments consistent with the present application and, together with the description, serve to explain the principles of the application.
[0042] In order to more clearly illustrate the technical solutions in the embodiments of the present application or the prior art, the accompanying drawings needed to be used in the embodiments or prior art description will be briefly introduced as follows. Obviously, those skilled in the art can obtain other drawings from these drawings without any creative effort.
[0043] Figure 1 An application scenario diagram of the parameter output method provided by an embodiment of the present application is shown in FIG. 1.
[0044] Figure 2 A flowchart of the parameter output method provided by an embodiment of the present application is shown in FIG. 2.
[0045] Figure 3 A flowchart of the parameter output method provided by an embodiment of the present application is shown in FIG. 2.
[0046] Figure 4 A schematic diagram of target log content in the parameter output method provided by an embodiment of the present application is shown in FIG. 3.
[0047] Figure 5 A structural diagram of the parameter output apparatus provided by an embodiment of the present application is shown in FIG. 4.
[0048] Figure 6 A structural diagram of the electronic device provided by an embodiment of the present application is shown in FIG. 5. DETAILED DESCRIPTION
[0049] To make the objectives, technical solutions and advantages of the embodiments of the present application clearer, the technical solutions in the embodiments of the present application will be described below in connection with the drawings in the embodiments of the present application. Obviously, the described embodiments are only some but not all of the embodiments of the present application. Based on the embodiments in the present application, all other embodiments obtained by those of ordinary skill in the art without creative work belong to the scope of protection of the present application.
[0050] Before the embodiments of the present application are further described in detail, the terms and phrases involved in the embodiments of the present application are explained, which are applicable to the following explanations.
[0051] Standalone (SA) is a network type of 5G. In the mode of SA standalone networking, a 5G mobile phone accesses a 5G base station and a 5G core network, which can better exert the advantages of 5G such as ultra-low delay.
[0052] Non-Standalone (NSA) usually refers to the coexistence of a 4G base station and a 5G base station on the wireless side, and the networking architecture of a 4G core network or a 5G core network is adopted for the core network. SA refers to the networking architecture in which a 5G base station is adopted on the wireless side and a 5G core network is adopted for the core network.
[0053] LTE (Long Term Evolution, long term evolution) project is the evolution of 3G, which is a transition between 3G and 4G technology, and is the global standard of 3.9G. It improves and enhances the air access technology of 3G, and adopts OFDM and MIMO as the only standard for its wireless network evolution. It provides a peak rate of 100Mbit / s in the downlink and 50Mbit / s in the uplink under a 20MHz spectrum bandwidth, improves the performance of users at the edge of the cell, increases the capacity of the cell and reduces the system delay.
[0054] According to an embodiment of the present application, a parameter output method is provided. Optionally, in the embodiment of the present application, the parameter output method can be applied to a hardware environment composed of a terminal 101 and a server 102 as shown in the figure. Figure 1 As shown in the figure, the server 102 is connected with the terminal 101 through a network, which can be used to provide services (such as application services, etc.) for the terminal or the functional module on the terminal, and a database can be set on the server or independently of the server, which is used to provide data storage services for the server 102. The network includes but is not limited to a wide area network, a metropolitan area network or a local area network, and the terminal 101 is not limited to a PC, a mobile phone, a tablet computer, a functional module on the terminal, etc. Figure 1 The parameter output method of the embodiment of the present application can be executed by the server 102, or by the terminal 101, or by the server 102 and the terminal 101 together. Wherein, the terminal 101 executes the parameter output method of the embodiment of the present application, or the client installed thereon executes the parameter output method of the embodiment of the present application.
[0055] Taking the functional module on the terminal as an example,
[0056] is a flowchart of an optional parameter output method according to an embodiment of the present application, as shown in the figure, the flow of the method can include the following steps: Figure 2 Figure 2 Step 201, obtaining a target log matched with the network category of the terminal, wherein the target log includes the cell information of the terminal.
[0057] In some embodiments, after the terminal is powered on, it registers the network first, and after the network registration is completed, the network category of the terminal can be determined. During the running of the terminal, logs are continuously generated, so that the functional module can obtain the target log matched with the network category of the terminal.
[0058] In an optional embodiment, the obtaining of the target log matched with the network category of the terminal includes:
[0059] In an optional embodiment, the obtaining of the target log matched with the network category of the terminal includes:
[0060] determining a network category to which the terminal belongs; determining a log monitoring list corresponding to the network category; and determining a log in the log monitoring list as the target log.
[0061] In some embodiments, after the terminal in which the functional module is located is powered on, network registration is performed, so that the functional module can determine the network category of the terminal after the network registration is completed. Therefore, the network category can be used to filter the log monitoring list corresponding to the network category from the log generated during the running of the terminal, so as to determine the log in the log monitoring list as the target log.
[0062] The network category can be various, for example, SA, LTE, NSA, and the like.
[0063] In an optional embodiment, the determining of the log monitoring list corresponding to the network category comprises:
[0064] If the network category is standalone networking, the log monitoring list is determined as a log list related to new radio.
[0065] If the network category is long term evolution technology and is non-standalone networking, the log monitoring list is determined as a log list related to long term evolution technology.
[0066] If the network category is long term evolution technology and is standalone networking, the log monitoring list is determined as the log list related to new radio and the log list related to long term evolution technology.
[0067] In some embodiments, the log monitoring list corresponding to the terminal registration network is different.
[0068] Specifically, referring to Figure 3 After the module registers the network, the network category of the registered network of the module is determined. If the network category is SA, NR-related LOG is listened to and LTE-related LOG is canceled. If the network category is not SA, it is determined whether the network category is LTE. If the network category is not LTE, NR and LTE related LOGs are simultaneously canceled. If the network category is LTE, it is determined whether the network category is NSA. If the network category is not NSA, LTE-related LOG is listened to and NR-related LOG is canceled. If the network category is NSA, NR and LTE related LOGs are simultaneously listened to.
[0069] In step 202, a module parameter value including the cell information is parsed from the target log.
[0070] In some embodiments, the target log stores relevant feature information. The module parameter value including the cell information is determined from the target log by parsing the target log.
[0071] There are various ways to analyze the target log. In an optional embodiment, the module parameter value including the cell information is parsed from the target log, including:
[0072] A parameter confirmation condition corresponding to the network category is determined, and the parameter confirmation condition matches the cell information. The module parameter value satisfying the parameter confirmation condition is determined from the target log.
[0073] In some embodiments, different parameter confirmation conditions correspond to different network categories, so that after the network category is determined, the parameter confirmation condition corresponding to the network category can be determined. Since the parameter confirmation condition matches the cell information, the module parameter value in the target log can be determined according to the parameter confirmation condition.
[0074] The cell information can be parameter information corresponding to the module parameter value that needs to be output in the terminal, such as parameter name.
[0075] In an optional embodiment, the module parameter value satisfying the parameter confirmation condition is determined from the target log, including:
[0076] For any head node in the target log, the following determination step is performed: determining whether the encoding and channel type in the head node satisfy the parameter confirmation condition, the parameter confirmation condition including that the encoding is a preset encoding and the channel type is a preset channel type; if yes, the module parameter value corresponding to the module parameter is obtained from the head node; if no, the next head node is determined.
[0077] In some embodiments, the target log includes multiple head nodes, and each head node includes data generated by the terminal during the running process. Since the data included in each head node is different, the module parameter value needs to be found from multiple head nodes.
[0078] Specifically, it is determined whether the encoding and channel type in the head node of the target log satisfy the parameter confirmation condition, and the target parameter value is extracted from the head node when the encoding and channel type in the head node satisfy the parameter confirmation condition. If the head node does not satisfy the parameter confirmation condition, the next head node is determined.
[0079] In an optional embodiment, the determination of whether the encoding and channel type in the head node satisfy the parameter confirmation condition includes:
[0080] It is determined whether the encoding is a preset encoding; if the encoding is a preset encoding, it is determined whether the channel type is a preset channel type; if the channel type is a preset channel type, it is determined that the head node satisfies the parameter confirmation condition.
[0081] In some embodiments, the determining step can be performed based on a decode function. Specifically, it is determined whether the encoding is a preset encoding. If it is not the preset encoding, it is determined whether the next head node meets the parameter confirmation condition. If it is the preset encoding, it is further determined whether the channel type is a preset channel type. If it is the preset channel type, it is determined that the head node meets the parameter confirmation condition, and the module parameter value is extracted from the head node. If it is not the preset channel type, it is determined whether the next head node meets the parameter confirmation condition.
[0082] Step 203, output the module parameter value.
[0083] In some embodiments, after the module parameter value is parsed, the module parameter value can be output, so that the base station obtains the module parameter value for subsequent parameter adjustment.
[0084] In an optional embodiment, the outputting the module parameter value comprises:
[0085] storing the module parameter value into a global variable; and outputting the module parameter value in the global variable based on an AT instruction.
[0086] In some embodiments, storing the module parameter value into a global variable can facilitate the calling of the terminal, and the global variable can be called through an AT instruction, so that the module parameter value is output.
[0087] The parameter output method of the present application can obtain some parameter information that cannot be directly obtained by listening, acquiring and parsing the module log (LOG) in the case that there is no ready-made API interface of the module, thereby reducing the dependence on the chip platform. Moreover, the network side can obtain some parameter information of the module through self-adaptation, so that the network side can optimize itself according to the information and improve the user online experience.
[0088] In a specific embodiment, the parameter output method of the present application specifically comprises:
[0089] Step one, the terminal is powered on and registered with the network;
[0090] Step two, adaptively selecting a listening list according to the network registration state;
[0091] Step three, the terminal listens to the LOG containing the cell information and acquires the hexadecimal content of the listened LOG.
[0092] For example, when the module parameter value in the NR is transmit power, the content of the target log is signaling 0xB8D2, and the content of the target log is signaling 0xB173 when the module parameter value in the LTE is DLMCS.
[0093] Step four, according to the required acquisition of cell information in the location and characteristics of the signaling content, add the decode function of the corresponding LOG, parse the module parameter value of the included cell information and store it in the corresponding global variable.
[0094] Step five, output the module parameter value saved in the global variable through AT instruction.
[0095] In another specific embodiment, referring to Figure 4 , the NR transmit power target log in 0xB8D2 is parsed as Figure 4 , which is taken as an example for specific description, wherein, Figure 4 , the lower part is the hexadecimal code stream corresponding to the target log, and the upper part is the specific content corresponding to each code stream in the target log.
[0096] First, offset the pointer to the head node of version1[0];
[0097] Second, judge whether the Code is the value corresponding to POWER INFO, if yes, execute the third step, if not, offset the pointer to the head node of the next version1 by the length of the current version1, and continue to execute the second step.
[0098] Third, offset the pointer to Channel Type, judge whether the value is the value corresponding to PUSCH, if yes, execute the fourth step, if not, offset the pointer to the head node of the next version1, and continue to execute the second step.
[0099] Fourth, take out the value of the position corresponding to Transmit Power and assign it to the global variable containing the cell information.
[0100] The method provided by the embodiment of the application, by acquiring a target log matched with the network category of the terminal, the target log including cell information of the terminal; parsing the module parameter value including the cell information from the target log; and outputting the module parameter value. In this way, by acquiring the target log matched with the network category of the terminal, the module parameter value is obtained by parsing the target log, and the module parameter value is outputted, so that the output of the module parameter can be realized without API, the waiting time for the API interface process is saved, and the communication efficiency is improved.
[0101] Based on the same concept, the parameter output device provided in the embodiment of the application is provided, and the specific implementation of the device can be referred to the description of the method embodiment part, and the repeated parts will not be described here, such as Figure 5 , the device mainly includes:
[0102] The acquisition module 501 is used to acquire target logs that match the network category of the terminal, wherein the target logs include cell information where the terminal is located;
[0103] Parsing module 502 is used to parse module parameter values including cell information from the target log;
[0104] Output module 503 is used to output the parameter values of the module.
[0105] Based on the same concept, this application also provides an electronic device, such as... Figure 6 As shown, the electronic device mainly includes a processor 601, a memory 602, and a communication bus 603. The processor 601 and the memory 602 communicate with each other via the communication bus 603. The memory 602 stores programs that can be executed by the processor 601. The processor 601 executes the programs stored in the memory 602 to achieve the following steps:
[0106] Obtain target logs that match the network category of the terminal, wherein the target logs include the cell information of the terminal;
[0107] The module parameter values, including the cell information, are parsed from the target log;
[0108] Output the module parameter values.
[0109] The communication bus 603 mentioned in the aforementioned electronic device can be a Peripheral Component Interconnect (PCI) bus or an Extended Industry Standard Architecture (EISA) bus, etc. This communication bus 603 can be divided into an address bus, a data bus, a control bus, etc. For ease of representation, Figure 6 The bus is represented by a single thick line, but this does not mean that there is only one bus or one type of bus.
[0110] The memory 602 may include random access memory (RAM) or non-volatile memory, such as at least one disk storage device. Optionally, the memory may also be at least one storage device located remotely from the aforementioned processor 601.
[0111] The processor 601 described above can be a general processor, including a central processing unit (CPU), a network processor (NP), etc., and can also be a digital signal processor (DSP), an application specific integrated circuit (ASIC), a field-programmable gate array (FPGA) or other programmable logic device, a discrete gate or transistor logic device, a discrete hardware component.
[0112] The electronic device provided by the embodiments of the present application can be a module capable of realizing a communication function or a terminal device containing the module, etc. The terminal device can be a mobile terminal or a smart terminal. The mobile terminal can be at least one of a mobile phone, a tablet computer, a notebook computer, etc. The smart terminal can be a smart car, a smart watch, a shared bicycle, a smart cabinet, etc. containing a wireless communication module. The module can be a wireless communication module, such as any one of a 2G communication module, a 3G communication module, a 4G communication module, a 5G communication module, an NB-IOT communication module, etc.
[0113] In another embodiment of the present application, a computer readable storage medium is also provided, and the computer readable storage medium stores a computer program. When the computer program runs on a computer, the computer program causes the computer to execute the parameter output method described in the above embodiments.
[0114] In the embodiments described above, all or some of the steps can be implemented by software, hardware or firmware, or any combination thereof. When implemented by software, all or some of the steps can be implemented in the form of one or more computer programs. The computer program can be stored in any computer readable medium, and loaded into the computer for execution. The computer readable medium includes: a computer storage medium and a computer communication medium. The computer storage medium includes: volatile memory and non-volatile memory. The computer storage medium includes: an electric medium, a magnetic medium, an optical medium, and a solid medium. The computer communication medium includes: computer communication networks and computer networks. The computer program can be loaded into many different computers and different computers can be connected, so that the computer program can be distributed to different computers to be executed.
[0115] It should be noted that the terms "first" and "second" and the like in this text are used only to distinguish one entity or action from another, and do not necessarily require or imply these entities or actions have any such actual relationship or order. Also, the terms "include", "contain" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or inherent to such process, method, article or device. Without more limitations, the element defined by the statement "including a" does not exclude the presence of other identical elements in the process, method, article or device including the element.
[0116] The above description is only a specific implementation of the present application, which enables those skilled in the art to understand or implement the present application. Various modifications to these embodiments will be apparent to those skilled in the art, and the general principles defined herein can be implemented in other embodiments without departing from the spirit or scope of the present application. Therefore, the present application will not be limited to these embodiments shown herein, but will conform to the widest scope consistent with the principles and novel features applied herein.
Claims
1. A parameter output method characterized by, The method comprises: obtaining a target log matching a network category of a terminal, wherein the target log comprises cell information of the terminal; parsing a module parameter value comprising the cell information from the target log; outputting the module parameter value; wherein the parsing the module parameter value comprising the cell information from the target log comprises: determining a parameter confirmation condition corresponding to the network category, wherein the parameter confirmation condition matches the cell information; and determining the module parameter value satisfying the parameter confirmation condition from the target log.
2. The parameter output method according to claim 1, characterized by, The determining the module parameter value satisfying the parameter confirmation condition from the target log comprises: for any head node in the target log, performing the following judgment steps: judging whether an encoding and a channel type in the head node satisfy the parameter confirmation condition, wherein the parameter confirmation condition comprises that the encoding is a preset encoding and the channel type is a preset channel type; if yes, obtaining the module parameter value corresponding to the module parameter from the head node; if no, performing the judgment steps on a next head node.
3. The parameter output method according to claim 2, characterized by, The judging whether the encoding and the channel type in the head node satisfy the parameter confirmation condition comprises: judging whether the encoding is the preset encoding; if the encoding is the preset encoding, judging whether the channel type is the preset channel type; if the channel type is the preset channel type, determining that the head node satisfies the parameter confirmation condition.
4. The parameter output method according to claim 1, characterized by, The outputting the module parameter value comprises: storing the module parameter value into a global variable; and outputting the module parameter value in the global variable based on an AT instruction.
5. The parameter output method according to claim 1, characterized by, The obtaining the target log matching the network category of the terminal comprises: determining a network category to which the terminal belongs; determining a log monitoring list corresponding to the network category; and determining logs in the log monitoring list as the target log.
6. The parameter output method according to claim 5, characterized by, The determining the log monitoring list corresponding to the network category comprises: if the network category is independent networking, determining that the log monitoring list is a log list related to new radio; if the network category is long term evolution technology and is non-independent networking, determining that the log monitoring list is a log list related to long term evolution technology; if the network category is long term evolution technology and is independent networking, determining that the log monitoring list is the log list related to new radio and the log list related to long term evolution technology.
7. A parameter output device, characterized by comprising: The method comprises: an obtaining module, configured to obtain a target log matching a network category of a terminal, wherein the target log comprises cell information of the terminal; a parsing module, configured to parse a module parameter value comprising the cell information from the target log; wherein the parsing the module parameter value comprising the cell information from the target log comprises: determining a parameter confirmation condition corresponding to the network category, wherein the parameter confirmation condition matches the cell information; and determining the module parameter value satisfying the parameter confirmation condition from the target log; an outputting module, configured to output the module parameter value.
8. An electronic device, comprising: The method comprises: A processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory accomplish communication with each other through the communication bus; The memory is used for storing a computer program; The processor is used for executing the program stored in the memory, and realizing the parameter output method in any one of claims 1-6.
9. A computer readable storage medium storing a computer program, characterized in that, The computer program is executed by the processor to realize the parameter output method in any one of claims 1-6.
Citation Information
Patent Citations
Log processing method, device, terminal equipment and storage medium
CN108153647A
Parameter optimization method and device, base station, server and storage medium
CN112153664A