Identification method of product configuration requirements, communication equipment and storage medium

By setting internal resistors in the communication device and using a single GPIO port to read the level status, identifying and adapting to the product configuration requirements of the radio frequency device solves the problem of excessive GPIO port resource occupancy in the existing technology and achieves resource efficiency. use.

CN118573564APending Publication Date: 2024-08-30FIBOCOM WIRELESS
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410726393.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-05
Publication Date
2024-08-30

AI Technical Summary

Technical Problem

In the existing technology, reserving multiple GPIO ports to identify the product configuration requirements of radio frequency devices will occupy a large amount of GPIO port resources, resulting in unfavorable resource planning.

Method used

By setting the internal resistance in the communication device and setting the level status identification mark according to the number of product specifications changes, using a single GPIO port to read the level status of the internal resistance, the target identification mark is determined to call the corresponding product configuration requirements. , to realize the identification and adaptation of hardware status under different number of changes.

Benefits of technology

Without occupying multiple GPIO port resources, it can effectively identify and adapt to the product configuration requirements of communication equipment, saving GPIO port resources to the greatest extent.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118573564A
    Figure CN118573564A
Patent Text Reader

Abstract

The invention discloses a product configuration requirement identification method, communication equipment and a storage medium, relates to the technical field of communication, and discloses the product configuration requirement identification method, the communication equipment and the storage medium. Performing identification mark setting on each level state included in the internal resistor; determining the current change frequency of the product specification, and reading the internal resistance through the single GPIO port to obtain a target level state under the condition that the software state of the communication equipment is format upgrading; and determining a target identification identifier according to the current change frequency and the target level state, and calling a target product configuration demand corresponding to the target identification identifier. According to the method, the product configuration requirement is identified under the condition that only a single GPIO port resource is needed, and the GPIO port resource of the communication equipment is saved to the maximum extent.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of communication technology, and in particular to a method for identifying product configuration requirements, a communication device, and a storage medium. Background Art

[0002] Each hardware state of the RF device set in the communication equipment must match the corresponding product configuration requirements, and the hardware state will change accordingly with the upgrade of the RF device. Therefore, in order to identify the product configuration requirements corresponding to the RF device on the communication equipment, the conventional identification scheme is to reserve multiple GPIO ports on the main control chip of the communication equipment, detect the level state of the RF device under different upgrade times through the GPIO port, and determine the hardware state corresponding to the level state according to the level state corresponding to each GPIO port, thereby determining the product configuration requirements of the current RF device.

[0003] However, because the above solution requires reserving multiple GPIO ports, and the GPIO port resources on a single communication device are limited, the solution of reserving multiple GPIO ports will obviously occupy GPIO port resources, which is not conducive to the planning of GPIO port resources. Summary of the invention

[0004] The main purpose of this application is to provide a method for identifying product configuration requirements, a communication device and a storage medium, aiming to solve the technical problem that conventional identification solutions occupy multiple GPIO port resources.

[0005] To achieve the above-mentioned purpose, the present application proposes a method for identifying product configuration requirements, the method for identifying product configuration requirements is applied to a communication device, the communication device is provided with an internal resistor, and the method for identifying product configuration requirements includes:

[0006] Based on the number of changes in the product specifications of the communication device, identification marks are set for each level state included in the internal resistance, wherein the level state reflects the hardware state of the communication device under the corresponding number of changes;

[0007] Determine the current change number of the product specification, and when the software state of the communication device is a format upgrade, read the internal resistance through a single GPIO port to obtain a target level state, wherein the internal resistance includes a pull-up resistor and a pull-down resistor;

[0008] A target identification identifier is determined according to the current number of changes and the target level state, and a target product configuration requirement corresponding to the target identification identifier is called.

[0009] In one embodiment, the identification marks of the level states are superimposed and set according to the number of changes.

[0010] In one embodiment, the level state includes a high level state, a low level state and a high resistance state, and the step of setting identification marks for each level state included in the internal resistance based on the number of changes in the product specification includes:

[0011] Based on the number of changes, the identification mark of the high level state is set to a+3(n-1), the identification mark of the low level state is set to b+3(n-1), and the identification mark of the high impedance state is set to c+3(n-1);

[0012] Among them, a represents the identification mark of the high level state when the number of changes is zero, b represents the identification mark of the low level state when the number of changes is zero, c represents the identification mark of the high-impedance state when the number of changes is zero, and n represents the current number of changes.

[0013] In one embodiment, the step of reading the internal resistance through a single GPIO port to obtain a target level state includes:

[0014] Reading the first level of the pull-up resistor and the second level of the pull-down resistor respectively through the single GPIO port, and combining the first level and the second level to obtain the target level state;

[0015] Wherein, when the first level and the second level are both high levels, the target level state is the high level state;

[0016] When the first level and the second level are both low levels, the target level state is the low level state;

[0017] When the first level is a high level and the second level is a low level, the target level state is the high impedance state.

[0018] In one embodiment, the step of determining a target identification identifier according to the current number of changes and the target level state, and calling a target product configuration requirement corresponding to the target identification identifier comprises:

[0019] According to the current number of changes, when the target level state is the high level state, after determining that the target identification identifier is a+3(n-1), the first product configuration requirement corresponding to a+3(n-1) is obtained; or, according to the current number of changes, when the target level state is the low level state, after determining that the target identification identifier is b+3(n-1), the second product configuration requirement corresponding to b+3(n-1) is obtained; or,

[0020] According to the current number of changes, when the target level state is the high-impedance state, after determining that the target identification identifier is c+3(n-1), a third product configuration requirement corresponding to c+3(n-1) is obtained.

[0021] In one embodiment, after the step of determining the target identification mark according to the current number of changes and the target level state, the step further includes:

[0022] The target radio frequency driver corresponding to the target identification identifier is called.

[0023] In one embodiment, after the step of determining a target identification mark according to the target level state and calling a target product configuration requirement corresponding to the target identification mark, the step further includes:

[0024] Based on the target product configuration requirements and the target RF driver, the RF front-end configuration corresponding to the target hardware state of the communication device is adapted.

[0025] In one embodiment, the method for identifying product configuration requirements further includes:

[0026] When the software status is software update, the step of reading the internal resistance through the single GPIO port is not performed.

[0027] In addition, to achieve the above-mentioned purpose, the present application also proposes a communication device, which includes: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the computer program is configured to implement the steps of the identification method described above.

[0028] In addition, to achieve the above-mentioned purpose, the present application also proposes a storage medium, which is a computer-readable storage medium, and a computer program is stored on the storage medium. When the computer program is executed by a processor, the steps of the identification method described above are implemented.

[0029] One or more technical solutions proposed in this application have at least the following technical effects:

[0030] The method for identifying product configuration requirements proposed in the present application is applied to a communication device, in which an internal resistor is provided. Specifically, based on the number of changes in the product specifications of the communication device, identification marks are set for each level state included in the internal resistor, wherein the level state reflects the hardware state of the communication device under the corresponding number of changes, so as to distinguish each level state under different number of changes, so as to facilitate the identification of the hardware state of the communication device under the corresponding number of changes; the current number of changes in the product specifications is determined, and when the software state of the communication device is a format upgrade, the internal resistor is read through a single GPIO port to obtain a target level state, wherein the internal resistor includes a pull-up resistor and a pull-down resistor, and a target identification mark is determined according to the current number of changes and the target level state, and a call is made to the target identification mark. The corresponding target product configuration requirements are identified. Because the identification identifiers of the level states under different change times are different, when determining the current change times, it is only necessary to read the levels of the pull-up resistor and the pull-down resistor through a single GPIO port. After obtaining the target level state, the target level state is compared with the level states under the current change times to obtain the level state that is the same as the target level state, and the identification identifier set by the level state is extracted as the target identification identifier. At this time, the hardware state of the communication device under the current change times can be determined, and the target product configuration requirements corresponding to the target identification identifier are directly called to adapt the hardware state of the communication device, so as to realize the identification of product configuration requirements under the condition of only using a single GPIO port resource, thereby saving the GPIO port resources of the communication device to the greatest extent. BRIEF DESCRIPTION OF THE DRAWINGS

[0031] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and, together with the description, serve to explain the principles of the present application.

[0032] In order to more clearly illustrate the technical solutions in the embodiments of the present application or the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, for ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.

[0033] Figure 1 A flowchart diagram of the first embodiment of the method for identifying product configuration requirements of the present application;

[0034] Figure 2 A table diagram of product configuration requirements for identifying a communication device through three GPIO ports in a conventional identification solution;

[0035] Figure 3 A flowchart diagram of the second embodiment of the method for identifying product configuration requirements of the present application;

[0036] Figure 4 A schematic diagram of a table of product configuration requirements for identifying a communication device through a single GPIO port for the identification solution of this application;

[0037] Figure 5 A brief flowchart of the method for identifying the configuration requirements of the product for this application;

[0038] Figure 6 A schematic diagram of the device structure of the hardware operating environment involved in the method for identifying product configuration requirements in an embodiment of the present application.

[0039] The purpose, features and advantages of this application will be further described in conjunction with the embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION

[0040] It should be understood that the specific embodiments described herein are only used to explain the technical solutions of the present application and are not used to limit the present application.

[0041] In order to better understand the technical solution of the present application, a detailed description will be given below in conjunction with the accompanying drawings and specific implementation methods.

[0042] The main solution of the embodiment of the present application is: based on the number of changes in the product specifications of the communication device, the identification identifiers are set for each level state included in the internal resistance, wherein the level state reflects the hardware state of the communication device under the corresponding number of changes; the current number of changes in the product specifications is determined, and when the software state of the communication device is a format upgrade, the internal resistance is read through a single GPIO port to obtain the target level state, wherein the internal resistance includes a pull-up resistor and a pull-down resistor; the target identification identifier is determined according to the current number of changes and the target level state, and the target product configuration requirement corresponding to the target identification identifier is called.

[0043] The conventional identification scheme is to reserve multiple GPIO ports on the main control chip of the communication device, detect the level status of the RF device at different upgrade times through the GPIO port, and determine the hardware status corresponding to the level status according to the level status corresponding to each GPIO port, so as to determine the product configuration requirements of the current RF device. However, because the above scheme requires reserving multiple GPIO ports, and the GPIO port resources on a single communication device are limited, the scheme of reserving multiple GPIO ports will obviously occupy GPIO port resources, which is not conducive to the planning of GPIO port resources.

[0044] The present application provides a solution, based on the number of changes in the product specifications of the communication device, respectively set identification marks for each level state included in the internal resistor, wherein the level state reflects the hardware state of the communication device under the corresponding number of changes, thereby distinguishing each level state under different number of changes, and facilitating the identification of the hardware state of the communication device under the corresponding number of changes; determining the current number of changes in the product specifications, and when the software state of the communication device is a format upgrade, reading the internal resistor through a single GPIO port to obtain a target level state, wherein the internal resistor includes a pull-up resistor and a pull-down resistor, determining a target identification mark according to the current number of changes and the target level state, and calling the target product configuration requirement corresponding to the target identification mark, because The identification identifiers of the level states under different change times are different. Therefore, when determining the current change number, it is only necessary to read the levels of the pull-up resistor and the pull-down resistor through a single GPIO port. After obtaining the target level state, the target level state is compared with the level states under the current change times to obtain the level state that is the same as the target level state. The identification identifier set for the level state is extracted as the target identification identifier. At this time, the hardware state of the communication device under the current change number can be determined, and the target product configuration requirements corresponding to the target identification identifier are directly called to adapt the hardware state of the communication device, so as to realize the identification of product configuration requirements under the condition that only a single GPIO port resource is required, thereby saving the GPIO port resources of the communication device to the greatest extent.

[0045] It should be noted that the execution subject of this embodiment may be a computing service device with data processing, network communication and program running functions, such as a tablet computer, a personal computer, a mobile phone, etc., or an electronic device capable of realizing the above functions, etc. The following takes a communication device as an example to illustrate this embodiment and the following embodiments.

[0046] Based on this, the present application embodiment provides a method for identifying product configuration requirements. Figure 1 , Figure 1 A flowchart of the first embodiment of the method for identifying product configuration requirements of the present application.

[0047] In this embodiment, the method for identifying product configuration requirements includes steps S10 to S30:

[0048] Step S10, based on the number of changes in the product specifications of the communication device, setting identification marks for each level state included in the internal resistance, wherein the level state reflects the hardware state of the communication device under the corresponding number of changes.

[0049] Reference Figure 2 As shown, the conventional recognition scheme is further described. Figure 2It can be seen that in the conventional identification scheme, the product configuration requirements of the communication device are identified through three GPIO ports, wherein one GPIO port corresponds to one level, and the product configuration requirements required by the current communication device are determined by identifying the levels corresponding to the three GPIO ports. For example, ① when it is identified that GPIO0, GPIO1 and GPIO2 are all low levels, the current identification mark is determined to be set0 according to the three low levels, and the product configuration requirements corresponding to set0 are called as main material + requirement 1; ② when it is identified that GPIO0 and GPIO1 are low levels and GPIO2 is high level, the current identification mark is determined to be set1 according to the sequential combination of the three level states, and the product configuration requirements corresponding to set1 are called as two supply 1 and requirement 1, etc. It can be seen from this that after the level combination methods that can be realized between the three GPIO ports are used up, if there are still undefined product configuration requirements, the product configuration requirements can only be matched by adding a new level combination method by calling a new GPIO port, and there is a problem of reserving multiple GPIO port resources.

[0050] Based on the above problems, this embodiment proposes a solution for identifying product configuration requirements through only one GPIO port.

[0051] It should be noted that this embodiment takes the identification of radio frequency devices in communication equipment as an example. Through software setting, the level state of the internal resistor in the communication equipment can be changed accordingly with the change of the hardware state of the radio frequency device. One hardware state corresponds to one level state, so as to realize the identification of the hardware state based on the detected level state. When the number of changes in the product specifications of the radio frequency device changes, the identification mark of each level state after the number of changes increases is added accordingly, and the added identification mark is not the same as the identification mark added in the previous period.

[0052] Because the identification identifiers corresponding to each level state under different numbers of changes are different, in the subsequent identification process, it is only necessary to identify the level state after determining the current number of changes. After obtaining the unique identification identifier, the product configuration requirements for adapting the hardware state of the RF device under the current number of changes can be directly determined based on the identification identifier.

[0053] In a feasible implementation, step S10 may include step S11:

[0054] Step S11 : the identification marks of the level states are superimposed and set according to the number of changes.

[0055] In order to manage identification marks and avoid the problem of confusion in identification marks caused by random settings, an implementation method is provided, that is, the identification marks of each level state are superimposed and set according to the number of changes. Specifically, when the number of changes increases, the identification marks of each level state whose number of changes increases by the number of changes before the previous change are directly superimposed, so as to distinguish them from the identification marks added in the previous period.

[0056] Step S20, determining the current number of changes to the product specification, and when the software status of the communication device is a format upgrade, reading the internal resistance through a single GPIO port to obtain a target level state, wherein the internal resistance includes a pull-up resistor and a pull-down resistor.

[0057] In the specific identification process, it is necessary to first determine the current number of changes in the product specifications, so as to avoid the situation where the identification mark cannot be determined after the target level state is read through the GPIO port, but it is not possible to determine which level state under which number of changes the target level state corresponds to. At the same time, the reading of the target level state must also meet the condition that the software state of the RF device is a format upgrade, because when the software of the RF device is format upgraded, the software state after the format upgrade will cause the hardware state of the RF device to change. After the hardware state changes, it is necessary to adjust the product configuration requirements accordingly. Therefore, it is necessary to read the internal resistance through a single GPIO port at this time, that is, after reading the levels of the pull-up resistor and the pull-down resistor, the target level state under the current number of changes is obtained.

[0058] In a feasible implementation, step S20 may include step S21:

[0059] Step S21, respectively read the first level of the pull-up resistor and the second level of the pull-down resistor through the single GPIO port, and combine the first level and the second level to obtain the target level state; wherein, when the first level and the second level are both high levels, the target level state is the high level state; when the first level and the second level are both low levels, the target level state is the low level state; when the first level is high level and the second level is low level, the target level state is the high impedance state.

[0060] Because the present embodiment determines the target level state by reading the first level of the pull-up resistor and the second level of the pull-down resistor respectively through a single GPIO port, after the first level and the second level are read, the first level and the second level are combined to obtain the target level state. Among them, based on the level combination that can be achieved by the first level and the second level, the present embodiment is set to determine the target level state as a high level state when the read first level and the second level are both high levels, that is, when (1,1) is read; when the read first level and the second level are both low levels, that is, when (0,0) is read, the target level state is determined as a low level state; when the read first level is high and the second level is low, that is, when (1,0) is read, the target level state is determined as a high impedance state.

[0061] It should be noted that "1" represents a high level, and "0" represents a low level. The high level state, low level state and high impedance state are also hardware states.

[0062] Step S30, determining a target identification identifier according to the current number of changes and the target level state, and calling a target product configuration requirement corresponding to the target identification identifier.

[0063] Because the identification identifiers of the level states under different change times are different, when determining the current number of changes, the levels of the internal resistors, i.e., the pull-up resistor and the pull-down resistor, are read and combined through a single GPIO port to obtain the target level state, and the target level state is compared with the level states under the current change times to obtain the level state that is the same as the target level state, and the identification identifier set for the level state is extracted as the target identification identifier. At this time, the hardware state of the communication device under the current number of changes can be determined, and the target product configuration requirements corresponding to the target identification identifier are directly called to adapt the hardware state of the communication device, so as to realize the identification of product configuration requirements under the condition that only a single GPIO port resource is needed, thereby saving the GPIO port resources of the communication device to the greatest extent.

[0064] In a feasible implementation, step S30 may include step S31:

[0065] Step S31, calling the target radio frequency driver corresponding to the target identification identifier.

[0066] It should be noted that the target RF drive can be regarded as a switching sequence.

[0067] At this time, in addition to calling the product configuration requirements corresponding to the target identification identifier, it is also necessary to call the target RF driver corresponding to the target identification identifier, and the target RF driver is used to drive the execution state of each hardware under the target hardware state of the RF device.

[0068] In a feasible implementation, step S30 may include step S32:

[0069] Step S32: adapting the RF front-end configuration corresponding to the target hardware state of the communication device based on the target product configuration requirement and the target RF driver.

[0070] After calling the corresponding target product configuration requirements and target RF driver based on the above steps, the current hardware state (i.e., target hardware state) of the RF device after the software format upgrade is adapted based on the target product configuration requirements and target RF driver to correspond to the current RF front-end configuration of the RF device. The RF front-end configuration can be regarded as a switch.

[0071] Step S40, when the software status is software update, the step of reading the internal resistance through the single GPIO port is not performed.

[0072] It should be noted that if it is detected that the software status of the RF device is software update, it means that only the software of the RF device is currently being patched, and there is no change in the hardware status. If the hardware status has not changed, it means that the product configuration requirements have not changed. In this case, there is no need to update the product configuration requirements, that is, there is no need to read the level of the internal resistor through the GPIO port to obtain the target level state.

[0073] In this embodiment, based on the number of changes in the product specifications of the communication device, identification identifiers are set for each level state included in the internal resistor, wherein the level state reflects the hardware state of the communication device under the corresponding number of changes, so as to distinguish each level state under different number of changes, which is convenient for distinguishing the hardware state of the communication device under the corresponding number of changes; the current number of changes in the product specifications is determined, and when the software state of the communication device is a format upgrade, the internal resistor is read through a single GPIO port to obtain the target level state, wherein the internal resistor includes a pull-up resistor and a pull-down resistor, and the target identification identifier is determined according to the current number of changes and the target level state, and the target product configuration requirement corresponding to the target identification identifier is called, because different changes The identification identifiers of the level states under the change number are different. Therefore, when determining the current number of changes, it is only necessary to read the levels of the pull-up resistor and the pull-down resistor through a single GPIO port. After obtaining the target level state, the target level state is compared with the level states under the current change number to obtain the level state that is the same as the target level state. The identification identifier set by the level state is extracted as the target identification identifier. At this time, the hardware state of the communication device under the current number of changes can be determined, and the target product configuration requirements corresponding to the target identification identifier are directly called to adapt the hardware state of the communication device, so as to realize the identification of product configuration requirements under the condition that only a single GPIO port resource is required, thereby saving the GPIO port resources of the communication device to the greatest extent.

[0074] Based on the first embodiment of the present application, in the second embodiment of the present application, the same or similar contents as those in the above-mentioned embodiment 1 can be referred to the above introduction, and will not be repeated in the following. Figure 3 In step S10, the display panel detection method further includes step S12:

[0075] Step S12, based on the number of changes, sets the identification mark of the high level state to a+3(n-1), sets the identification mark of the low level state to b+3(n-1), and sets the identification mark of the high resistance state to c+3(n-1); wherein a represents the identification mark of the high level state when the number of changes is zero, b represents the identification mark of the low level state when the number of changes is zero, c represents the identification mark of the high resistance state when the number of changes is zero, and n represents the current number of changes.

[0076] It should be noted that a, b and c can be identification marks such as letters, numbers, etc., and the following description uses numbers as an example.

[0077] by Figure 4For example, if the current number of changes is 0, n is set to 1, that is, the identification mark of the high level state can be set to a+3(n-1)=0+3(1-1)=0, the identification mark of the low level state can be set to b+3(n-1)=1+3(1-1)=1, and the identification mark of the high resistance state can be set to c+3(n-1)=2+3(1-1)=2; if the current number of changes is 1, it is superimposed on the previous time, then n is 2 at this time, and the identification mark of the high level state is The identifier can be set to a+3(n-1)=0+3(2-1)=3, the identification identifier of the low level state can be set to b+3(n-1)=1+3(2-1)=4, the identification identifier of the high impedance state can be set to c+3(n-1)=2+3(2-1)=5, and so on, to distinguish the various level states under different numbers of changes, so that after determining the current number of changes, the corresponding product configuration requirements can be directly called for the set identification identifier based on the target level state read by a single GPIO port.

[0078] In a feasible implementation, step S30 may include steps S33 to S35:

[0079] Step S33, according to the current number of changes, when the target level state is the high level state, after determining that the target identification identifier is a+3(n-1), obtain the first product configuration requirement corresponding to a+3(n-1); or, step S34, according to the current number of changes, when the target level state is the low level state, after determining that the target identification identifier is b+3(n-1), obtain the second product configuration requirement corresponding to b+3(n-1); or, step S35, according to the current number of changes, when the target level state is the high-impedance state, after determining that the target identification identifier is c+3(n-1), obtain the third product configuration requirement corresponding to c+3(n-1).

[0080] Still Figure 4 Take this as an example to explain, assuming that the current number of changes is 2 times. Figure 4 It can be seen that when the current number of changes is 2 times, the identification mark of the high level state is set to a+3(n-1)=0+3(3-1)=6, the identification mark of the low level state is set to b+3(n-1)=1+3(3-1)=7, and the identification mark of the high impedance state is set to c+3(n-1)=2+3(3-1)=8.

[0081] At this time, when the pull-up resistor and the pull-down resistor read through a single GPIO port are both high levels, that is, when (1,1) is read, the target level state is determined to be a high level state, and the identification identifier of the high level state when the current number of changes is 2 is determined as the target identification identifier, that is, 6 is determined as the target identification identifier, and the first product configuration requirement corresponding to 6 is obtained.

[0082] If the pull-up resistor and the pull-down resistor read through a single GPIO port are both low levels, that is, (0,0) is read, then the target level state is determined to be a low level state, and the identification identifier of the low level state when the current number of changes is 2 is determined as the target identification identifier, that is, 7 is determined as the target identification identifier, and the second product configuration requirement corresponding to 7 is obtained.

[0083] Or when the pull-up resistor is read as a high level and the pull-down resistor is read as a low level through a single GPIO port, that is, (1,0) is read, the target level state is determined to be a high-impedance state, and the identification identifier of the high-impedance state when the current number of changes is 2 is determined as the target identification identifier, that is, 8 is determined as the target identification identifier, and the third product configuration requirement corresponding to 8 is obtained.

[0084] It should be noted that the product configuration requirements corresponding to each identification mark are set based on the actual requirements of the radio frequency device.

[0085] In this embodiment, based on the number of changes, the identification identifier of the high level state is set to a+3(n-1), the identification identifier of the low level state is set to b+3(n-1), and the identification identifier of the high resistance state is set to c+3(n-1); wherein a represents the identification identifier of the high level state when the number of changes is zero, b represents the identification identifier of the low level state when the number of changes is zero, c represents the identification identifier of the high resistance state when the number of changes is zero, and n represents the current number of changes, so as to distinguish between the various level states under different numbers of changes, so that after determining the current number of changes, the corresponding product configuration requirement can be directly called based on the target level state read by a single GPIO port.

[0086] For example, to help understand the implementation process of the method for identifying product configuration requirements obtained by combining this embodiment with the above-mentioned embodiment 1, please refer to Figure 5 , Figure 5 A brief flowchart of a method for identifying product configuration requirements is provided, specifically:

[0087] After presetting the identification mark for each hardware state of the communication device and setting the preset identification mark to point to the RF driver that drives the corresponding hardware state, the set identification mark is matched with the level state that can be detected by the internal resistance of the communication device in the corresponding hardware state. If the product specifications of the communication device have changed at this time, the preset value is added to the identification mark before the change after the product specifications are changed. If the software state of the communication device is a format upgrade at this time, the level state of the back resistance is read through a single GPIO port. When a high level state is obtained, the identification mark corresponding to the high level state is called according to the current number of changes; when a high resistance state is obtained, the identification mark corresponding to the high resistance state is called according to the current number of changes; when a low level state is obtained, the identification mark corresponding to the low level state is called according to the current number of changes.

[0088] It should be noted that the above examples are only used to understand the present application and do not constitute a limitation on the method for identifying the product configuration requirements of the present application. More simple transformations based on this technical concept are all within the scope of protection of the present application.

[0089] The present application provides a communication device, which includes: at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute the method for identifying product configuration requirements in the above-mentioned embodiment one.

[0090] Reference below Figure 6 , which shows a schematic diagram of the structure of a communication device suitable for implementing the embodiments of the present application. The communication device in the embodiments of the present application may include but is not limited to mobile terminals such as mobile phones, laptop computers, digital broadcast receivers, PDAs (Personal Digital Assistants), PADs (Portable Application Descriptions), PMPs (Portable Media Players), vehicle-mounted terminals (such as vehicle-mounted navigation terminals), etc., and fixed terminals such as digital TVs, desktop computers, etc. Figure 6 The communication device shown is merely an example and should not bring any limitation to the functions and scope of use of the embodiments of the present application.

[0091] like Figure 6As shown, the communication device may include a processing device 1001 (e.g., a central processing unit, a graphics processor, etc.), which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM: Read Only Memory) 1002 or a program loaded from a storage device 1003 to a random access memory (RAM: Random Access Memory) 1004. In RAM1004, various programs and data required for the operation of the communication device are also stored. The processing device 1001, ROM1002, and RAM1004 are connected to each other through a bus 1005. An input / output (I / O) interface 1006 is also connected to the bus. Generally, the following systems can be connected to the I / O interface 1006: an input device 1007 including, for example, a touch screen, a touch pad, a keyboard, a mouse, an image sensor, a microphone, an accelerometer, a gyroscope, etc.; an output device 1008 including, for example, a liquid crystal display (LCD: Liquid Crystal Display), a speaker, a vibrator, etc.; a storage device 1003 including, for example, a magnetic tape, a hard disk, etc.; and a communication device 1009. The communication device 1009 can allow the communication device to communicate with other devices wirelessly or by wire to exchange data. Although the figure shows a communication device with various systems, it should be understood that it is not required to implement or have all the systems shown. More or fewer systems can be implemented or have alternatively.

[0092] In particular, according to the embodiments disclosed in the present application, the process described above with reference to the flowchart can be implemented as a computer software program. For example, the embodiments disclosed in the present application include a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program includes a program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from a network through a communication device, or installed from a storage device 1003, or installed from a ROM 1002. When the computer program is executed by the processing device 1001, the above-mentioned functions defined in the method of the embodiment disclosed in the present application are executed.

[0093] The communication device provided by the present application adopts the method for identifying product configuration requirements in the above embodiment, which can solve the technical problem that the conventional identification scheme will occupy multiple GPIO port resources. Compared with the prior art, the beneficial effects of the communication device provided by the present application are the same as the beneficial effects of the method for identifying product configuration requirements provided by the above embodiment, and other technical features in the communication device are the same as the features disclosed in the method of the previous embodiment, which will not be repeated here.

[0094] It should be understood that the various parts disclosed in this application can be implemented by hardware, software, firmware or a combination thereof. In the description of the above embodiments, specific features, structures, materials or characteristics can be combined in any one or more embodiments or examples in a suitable manner.

[0095] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any person skilled in the art who is familiar with the present technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.

[0096] The present application provides a computer-readable storage medium having computer-readable program instructions (ie, computer programs) stored thereon, the computer-readable program instructions being used to execute the method for identifying product configuration requirements in the above-mentioned embodiment.

[0097] The computer-readable storage medium provided in the present application may be, for example, a USB flash drive, but is not limited to electrical, magnetic, optical, electromagnetic, infrared, or semiconductor systems, systems or devices, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In this embodiment, the computer-readable storage medium may be any tangible medium containing or storing a program that can be used by or in combination with an instruction execution system, system or device. The program code contained on the computer-readable storage medium may be transmitted using any appropriate medium, including but not limited to: wires, optical cables, RF (Radio Frequency), etc., or any suitable combination of the above.

[0098] The computer-readable storage medium may be included in the communication device; or may exist independently without being installed in the communication device.

[0099] The computer-readable storage medium carries one or more programs. When the one or more programs are executed by the communication device, the communication device: based on the number of changes in the product specifications of the communication device, sets identification marks for each level state included in the internal resistance, wherein the level state reflects the hardware state of the communication device under the corresponding number of changes; determines the current number of changes in the product specifications, and when the software state of the communication device is a format upgrade, reads the internal resistance through a single GPIO port to obtain a target level state, wherein the internal resistance includes a pull-up resistor and a pull-down resistor; determines a target identification mark according to the current number of changes and the target level state, and calls the target product configuration requirement corresponding to the target identification mark.

[0100] Computer program code for performing the operations of the present application may be written in one or more programming languages ​​or a combination thereof, including object-oriented programming languages ​​such as Java, Smalltalk, C++, and conventional procedural programming languages ​​such as "C" or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, as a separate software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., via the Internet using an Internet service provider).

[0101] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, function and operation of the system, method and computer program product according to various embodiments of the present application. In this regard, each square box in the flow chart or block diagram can represent a module, a program segment or a part of a code, and the module, the program segment or a part of the code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the square box can also occur in a sequence different from that marked in the accompanying drawings. For example, two square boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each square box in the block diagram and / or flow chart, and the combination of the square boxes in the block diagram and / or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.

[0102] The modules involved in the embodiments described in this application may be implemented by software or hardware, wherein the name of the module does not constitute a limitation on the unit itself in some cases.

[0103] The readable storage medium provided by the present application is a computer-readable storage medium, which stores computer-readable program instructions (i.e., computer programs) for executing the above-mentioned method for identifying product configuration requirements, and can solve the technical problem that conventional identification schemes occupy multiple GPIO port resources. Compared with the prior art, the beneficial effects of the computer-readable storage medium provided by the present application are the same as the beneficial effects of the method for identifying product configuration requirements provided by the above-mentioned embodiment, and will not be repeated here.

[0104] The above descriptions are only some embodiments of the present application, and are not intended to limit the patent scope of the present application. All equivalent structural changes made using the contents of the present application specification and drawings under the technical concept of the present application, or direct / indirect applications in other related technical fields are included in the patent protection scope of the present application.

Claims

1. A method for identifying product configuration requirements, characterized in that: The method for identifying product configuration requirements is applied to a communication device, wherein the communication device is provided with an internal resistor, and the method for identifying product configuration requirements includes: Based on the number of changes in the product specifications of the communication device, identification marks are set for each level state included in the internal resistance, wherein the level state reflects the hardware state of the communication device under the corresponding number of changes; Determine the current change number of the product specification, and when the software state of the communication device is a format upgrade, read the internal resistance through a single GPIO port to obtain a target level state, wherein the internal resistance includes a pull-up resistor and a pull-down resistor; A target identification identifier is determined according to the current number of changes and the target level state, and a target product configuration requirement corresponding to the target identification identifier is called.

2. The method for identifying product configuration requirements according to claim 1, characterized in that: The identification marks of the various level states are superimposed and set according to the number of changes.

3. The method for identifying product configuration requirements according to claim 2, characterized in that: The level state includes a high level state, a low level state and a high resistance state, and the step of setting identification marks for each level state included in the internal resistance based on the number of changes in the product specifications includes: Based on the number of changes, the identification mark of the high level state is set to a+3(n-1), the identification mark of the low level state is set to b+3(n-1), and the identification mark of the high impedance state is set to c+3(n-1); Among them, a represents the identification mark of the high level state when the number of changes is zero, b represents the identification mark of the low level state when the number of changes is zero, c represents the identification mark of the high-impedance state when the number of changes is zero, and n represents the current number of changes.

4. The method for identifying product configuration requirements according to claim 3, characterized in that: The step of reading the internal resistance through a single GPIO port to obtain a target level state comprises: Reading the first level of the pull-up resistor and the second level of the pull-down resistor respectively through the single GPIO port, and combining the first level and the second level to obtain the target level state; Wherein, when the first level and the second level are both high levels, the target level state is the high level state; When the first level and the second level are both low levels, the target level state is the low level state; When the first level is a high level and the second level is a low level, the target level state is the high impedance state.

5. The method for identifying product configuration requirements according to claim 4, characterized in that: The step of determining a target identification identifier according to the current number of changes and the target level state, and calling a target product configuration requirement corresponding to the target identification identifier comprises: According to the current number of changes, when the target level state is the high level state, after determining that the target identification identifier is a+3(n-1), obtaining the first product configuration requirement corresponding to a+3(n-1); or, According to the current number of changes, when the target level state is the low level state, after determining that the target identification identifier is b+3(n-1), obtaining a second product configuration requirement corresponding to b+3(n-1); or, According to the current number of changes, when the target level state is the high-impedance state, after determining that the target identification identifier is c+3(n-1), a third product configuration requirement corresponding to c+3(n-1) is obtained.

6. The method for identifying product configuration requirements according to claim 5, characterized in that: After the step of determining the target identification mark according to the current number of changes and the target level state, the following step further comprises: The target radio frequency driver corresponding to the target identification identifier is called.

7. The method for identifying product configuration requirements according to claim 6, characterized in that: After the step of calling the target product configuration requirement corresponding to the target identification mark, the following step is further included: Based on the target product configuration requirements and the target RF driver, the RF front-end configuration corresponding to the target hardware state of the communication device is adapted.

8. The method for identifying product configuration requirements according to claim 1, characterized in that: The method for identifying product configuration requirements also includes: When the software status is software update, the step of reading the internal resistance through the single GPIO port is not performed.

9. A communication device, characterized in that: The communication device comprises: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the computer program is configured to implement the steps of the identification method according to any one of claims 1 to 8.

10. A storage medium, characterized in that: The storage medium is a computer-readable storage medium, and a computer program is stored on the storage medium. When the computer program is executed by a processor, the steps of the identification method according to any one of claims 1 to 8 are implemented.