Detailed Description
In order to make the technical solutions better understood by those skilled in the art, the technical solutions in the embodiments of the present application will be clearly described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are some embodiments of the present application, but not all embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
The terms "comprises" and "comprising," and any variations thereof, in the description and claims of this application and the drawings described above, are intended to cover non-exclusive inclusions. For example, a process, method, or system, article, or apparatus that comprises a list of steps or elements is not limited to only those steps or elements listed, but may alternatively include other steps or elements not listed, or inherent to such process, method, article, or apparatus. Furthermore, the terms "first," "second," and "third," etc. are used to distinguish between different objects and are not used to describe a particular order.
An embodiment of the present application provides a wireless communication method, which is applied to any wireless communication device with a wireless communication function, such as a mobile phone, a tablet computer, an intelligent bracelet, a personal digital assistant, a notebook computer, a wireless router, a point of sale (pos) device, a wireless landline phone, and a facsimile machine.
As shown in fig. 1, a wireless communication method provided in an embodiment of the present application includes:
step S101, acquiring the target power of the wireless communication signal required to be output.
In this embodiment, the target function of the wireless communication signal to be output is the power of the wireless communication signal to be finally output to the external device.
In a specific application, the initial power of the wireless communication signal generated by the signal transmission link inside the wireless communication device is different from the power of the wireless communication signal finally output to the external device, because the wireless communication signal is lost in the process from generation to final transmission, and the initial power is larger than the target power.
Step S102, obtaining initial power corresponding to target power according to the pre-stored incidence relation between the target power and the initial power and the target power.
In a specific application, the association relationship between the target power and the initial power may exist in the form of a mapping relationship table, a correspondence table, a look-up table (LUT), or the like, and may also be implemented by using other data tables or Random Access Memory (RAM) type storage media having input data with the same function as the display lookup table, that is, input data corresponding to the input data, or output data corresponding to the input data.
As shown in fig. 2, in one embodiment, step S102 is preceded by:
step S201, controlling a signal transmitting link to generate wireless communication signals with different initial powers, and acquiring a target power corresponding to each initial power;
step S202, establishing and storing the incidence relation between each target power and the corresponding initial power.
In a specific application, in a test stage before factory shipment, a signal transmission link needs to be controlled in advance to generate and transmit wireless communication signals with different initial powers, then a power detection circuit detects and obtains power (namely target power) of a wireless communication signal which is actually output to an external device and corresponds to each initial power, records target power corresponding to each initial power, and when steps S201 and S202 of the wireless communication method are executed, obtains target power corresponding to each initial power which is recorded in advance, and establishes and stores an association relationship between each target power and the corresponding initial power.
As shown in fig. 3, in one embodiment, a schematic diagram of a closed-loop control link formed by a signal transmission link and a power detection circuit is exemplarily shown; the signal transmitting link comprises a wireless communication module 1, a power amplifier 2, a filter 3 and an antenna 4 which are sequentially in communication connection, the power detection circuit comprises a power detection device 5 and a rectifying device 8, the power detection device 5 is in communication connection among the filter 3, the antenna 4 and the rectifying device 8, and the rectifying device 8 is in communication connection between the power detection device 5 and the power amplifier 2.
In a specific application, the power detection device may specifically be a power detection chip, and the rectifier device may specifically be a rectifier diode. When the rectifier device is a rectifier diode, the anode of the rectifier diode is in communication connection with the power detection device, and the cathode of the rectifier diode is in communication connection with the power amplifier, so that a signal output by the power detection device is transmitted to the power amplifier in a single direction through the rectifier diode, and finally is fed back to the wireless communication module through the power amplifier, so that a wireless communication signal generated by the wireless communication module is prevented from being transmitted to the power detection device through the power amplifier and the rectifier diode, and the detection result is prevented from being interfered.
In a specific application, the wireless communication module may include at least one of a WiFi module, a bluetooth module, a 2.4G module, a GSM module, a GPRS module, and a ZigBee module according to a difference of a communication mode of the wireless communication device.
In a specific application, the target power corresponding to each initial power can be tested in advance by using the closed-loop control link formed by the signal transmission link and the additionally arranged power detection circuit shown in fig. 3 in a test stage before factory shipment.
In one embodiment, step S202 includes:
step S301, calculating the difference between each target power and the corresponding initial power;
step S302, establishing and storing an association relation between each target power and the corresponding difference value.
In a specific application, the association relationship between the target power and the corresponding difference may exist in the form of a mapping relationship table, a correspondence table, a look-up table (LUT), or the like, and may also be implemented by using other data tables or Random Access Memory (RAM) storage media having input data with the same function as the LUT, that is, input data and output data corresponding to the input data.
As shown in fig. 4, an exemplary table of correspondence between a plurality of different target powers (denoted as target power 1, target power 2, … …, target power N in fig. 4) and their corresponding differences (denoted as difference 1, difference 2, … …, difference N in fig. 4); wherein N is an integer of not less than 1.
In one embodiment, based on steps S301 and S302, step S102 includes:
step S401, searching a difference value corresponding to a target power according to a pre-stored incidence relation between the target power and a difference value corresponding to the target power and the target power;
and S402, calculating to obtain initial power corresponding to the target power according to the target power and the difference value corresponding to the target power.
In specific application, by calculating the difference between each target power and the corresponding initial power, establishing and storing the association relationship between each target power and the corresponding difference, the corresponding difference can be found according to the target power when the wireless communication signal with any target power needs to be output, and the initial power corresponding to the target power can be calculated according to the target power and the corresponding difference.
In a specific application, the difference between the target power and the initial power corresponding to the target power = target power-initial power, and then the calculation formula for calculating the initial power corresponding to the target power according to the target power and the difference corresponding to the target power is as follows: target power-difference = target power- (target power-initial power) = initial power.
Step S103, controlling a signal transmitting link to generate a wireless communication signal with initial power corresponding to the target power so as to output the wireless communication signal with the target power.
In a specific application, since the wireless communication signal with the initial power generated by the signal transmission link has a link loss, the power of the wireless communication signal which is finally output is a target power which is smaller than the initial power.
As shown in fig. 5, a schematic diagram of a signal transmission link is exemplarily shown; the signal transmitting link comprises a wireless communication module 1, a power amplifier 2, a filter 3 and an antenna 4 which are sequentially in communication connection.
In the above embodiments, the connection lines with arrows in fig. 3 and 5 represent communication connections, and the arrow direction represents a signal transmission direction.
In a specific application, when the power accuracy of the signal transmitted by the communication device is controlled through the closed-loop control link shown in fig. 3, the additionally arranged power detection circuit increases the cost of the communication device, and the wireless communication signal with the target power is output through the signal transmission link shown in fig. 5 without additionally arranging the power detection circuit, so that the cost of the communication device can be effectively reduced.
In the wireless communication method provided by the above embodiment, the target power of the wireless communication signal to be output is obtained, the initial power corresponding to the target power is obtained according to the pre-stored association relationship between the target power and the initial power and the target power, and the signal transmission link is controlled to generate the wireless communication signal of the initial power corresponding to the target power so as to output the wireless communication signal of the target power.
It should be understood that, the sequence numbers of the steps in the foregoing embodiments do not imply an execution sequence, and the execution sequence of each process should be determined by its function and inherent logic, and should not constitute any limitation to the implementation process of the embodiments of the present application.
Another embodiment of the present application provides a wireless communication system, configured to perform the method steps in the foregoing embodiments, where the system may be any software program system in a wireless communication device with a wireless communication function, such as a mobile phone, a tablet computer, a smart band, a personal digital assistant, a notebook computer, a wireless router, a pos (point of sale) machine, a wireless landline telephone, and a facsimile machine.
As shown in fig. 6, another embodiment of the present application provides a wireless communication system 6, including:
a target power obtaining module 601, configured to obtain a target power of a wireless communication signal to be output;
an initial power obtaining module 602, configured to obtain an initial power corresponding to a target power according to a pre-stored association relationship between the target power and the initial power and the target power;
a signal output module 603, configured to control the signal transmitting link to generate a wireless communication signal with an initial power corresponding to the target power, so as to output the wireless communication signal with the target power.
In one embodiment, the signal output module 603 is further configured to control the signal transmission link to generate wireless communication signals with different initial powers, and obtain a target power corresponding to each of the initial powers;
the wireless communication system 6 further includes an establishing module, configured to establish and store an association relationship between each target power and its corresponding initial power.
In one embodiment, the establishing module includes:
the first calculating unit is used for calculating the difference between each target power and the corresponding initial power;
and the establishing unit is used for establishing and storing the incidence relation between each target power and the corresponding difference value.
In one embodiment, the initial power acquisition module 602 includes:
the searching unit is used for searching a difference value corresponding to the target power according to the pre-stored incidence relation between the target power and the corresponding difference value and the target power;
and the second calculation unit is used for calculating and obtaining the initial power corresponding to the target power according to the target power and the corresponding difference value.
The wireless communication system provided in the above embodiment obtains the target power of the wireless communication signal that needs to be output, obtains the initial power corresponding to the target power according to the pre-stored association relationship between the target power and the initial power and the target power, and controls the signal transmission link to generate the wireless communication signal of the initial power corresponding to the target power so as to output the wireless communication signal of the target power, and can output the wireless communication signal of the target power without additionally providing a power detection circuit, thereby effectively reducing the cost of the communication device and simplifying the structure of the communication device.
As shown in fig. 7, another embodiment of the present application provides a wireless communication device 7, which includes: a processor 70, a memory 71 and a computer program 72, such as a wireless communication program, stored in said memory 71 and operable on said processor 70. The processor 70, when executing the computer program 72, implements the steps in the above-described wireless communication method embodiments, such as the steps S101 to S103 shown in fig. 1. Alternatively, the processor 70, when executing the computer program 72, implements the functions of each module/unit in each device embodiment described above, for example, the functions of the modules 601 to 603 shown in fig. 6.
Illustratively, the computer program 72 may be partitioned into one or more modules/units that are stored in the memory 71 and executed by the processor 70 to accomplish the present application. The one or more modules/units may be a series of computer program instruction segments capable of performing specific functions, which are used to describe the execution of the computer program 72 in the wireless communication device 7. For example, the computer program 72 may be divided into a target power obtaining module, an initial power obtaining module and a signal output module, and the specific functions of each module are as follows:
the target power acquisition module is used for acquiring the target power of the wireless communication signal to be output;
the initial power acquisition module is used for obtaining initial power corresponding to target power according to a pre-stored incidence relation between the target power and the initial power and the target power;
and the signal output module is used for controlling a signal transmitting link to generate a wireless communication signal with initial power corresponding to the target power so as to output the wireless communication signal with the target power.
The wireless communication device 7 may be a desktop computer, a notebook, a palm computer, a cloud server, or other computing devices. The wireless communication device may include, but is not limited to, a processor 70, a memory 71. Those skilled in the art will appreciate that fig. 7 is merely an example of a wireless communication device 7 and does not constitute a limitation of the wireless communication device 7 and may include more or less components than those shown, or some components may be combined, or different components, for example, the wireless communication device may also include input output devices, network access devices, buses, etc.
The Processor 70 may be a Central Processing Unit (CPU), other general purpose Processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field-Programmable Gate Array (FPGA) or other Programmable logic device, discrete Gate or transistor logic, discrete hardware components, etc. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
The memory 71 may be an internal storage unit of the wireless communication device 7, such as a hard disk or a memory of the wireless communication device 7. The memory 71 may also be an external storage device of the wireless communication device 7, such as a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card), and the like, provided on the wireless communication device 7. Further, the memory 71 may also include both an internal storage unit and an external storage device of the wireless communication device 7. The memory 71 is used for storing the computer programs and other programs and data required by the wireless communication device. The memory 71 may also be used to temporarily store data that has been output or is to be output.
It will be apparent to those skilled in the art that, for convenience and brevity of description, only the above-mentioned division of the functional units and modules is illustrated, and in practical applications, the above-mentioned function distribution may be performed by different functional units and modules according to needs, that is, the internal structure of the apparatus is divided into different functional units or modules to perform all or part of the above-mentioned functions. Each functional unit and module in the embodiments may be integrated in one processing unit, or each unit may exist alone physically, or two or more units are integrated in one unit, and the integrated unit may be implemented in a form of hardware, or in a form of software functional unit. In addition, specific names of the functional units and modules are only for convenience of distinguishing from each other, and are not used for limiting the protection scope of the present application. The specific working processes of the units and modules in the system may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
In the above embodiments, the descriptions of the respective embodiments have respective emphasis, and reference may be made to the related descriptions of other embodiments for parts that are not described or illustrated in a certain embodiment.
Those of ordinary skill in the art will appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware or combinations of computer software and electronic hardware. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present application.
In the embodiments provided in the present application, it should be understood that the disclosed apparatus/wireless communication device and method may be implemented in other ways. For example, the above-described apparatus/wireless communication device embodiments are merely illustrative, and for example, the division of the modules or units is merely a logical division, and other divisions may be realized in practice, for example, multiple units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The integrated modules/units, if implemented in the form of software functional units and sold or used as separate products, may be stored in a computer readable storage medium. Based on such understanding, all or part of the flow in the method of the embodiments described above can be realized by a computer program, which can be stored in a computer-readable storage medium and can realize the steps of the embodiments of the methods described above when the computer program is executed by a processor. Wherein the computer program comprises computer program code, which may be in the form of source code, object code, an executable file or some intermediate form, etc. The computer-readable medium may include: any entity or device capable of carrying the computer program code, recording medium, usb disk, removable hard disk, magnetic disk, optical disk, computer Memory, Read-Only Memory (ROM), Random Access Memory (RAM), electrical carrier wave signals, telecommunications signals, software distribution medium, and the like. It should be noted that the computer readable medium may contain content that is subject to appropriate increase or decrease as required by legislation and patent practice in jurisdictions, for example, in some jurisdictions, computer readable media does not include electrical carrier signals and telecommunications signals as is required by legislation and patent practice.
The above-mentioned embodiments are only used for illustrating the technical solutions of the present application, and not for limiting the same; although the present application has been described in detail with reference to the foregoing embodiments, it should be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; such modifications and substitutions do not substantially depart from the spirit and scope of the embodiments of the present application and are intended to be included within the scope of the present application.