Summary of the invention
In view of above-mentioned the deficiencies in the prior art part, the object of the present invention is to provide a kind of power switching device and method thereof of communication apparatus, with the power the solving existing conduction test problem that cannot judge whether indices just very up to standard, affect communication appliance performance identical with radiant power.
In order to achieve the above object, this invention takes following technical scheme:
A power switching device for communication apparatus, it comprises detection module, drop-down module, radio-frequency module, test bench and Anneta module;
Described detection module judges current mode of operation according to the pull-down state of the break-make of test bench and drop-down module, and calls corresponding parameter configuration radio-frequency module according to the mode of operation of correspondence; Radio-frequency module sends corresponding power control antenna module receiving and transmitting signal according to corresponding parameter.
In the power switching device of described communication apparatus, described mode of operation comprises conduction mode and radiation mode;
Be in off-state when having p-wire to insert in described test bench, drop-down module, radio-frequency module and Anneta module disconnect, and drop-down module does not work; Detection module judges that current mode of operation is conduction mode, and calls the first parameter configuration radio-frequency module; Radio-frequency module sends the first corresponding power according to the first parameter;
Be in connected state when inserting without p-wire in described test bench, drop-down module, radio-frequency module are connected with Anneta module, and drop-down module is drop-down; Detection module judges that current mode of operation is radiation mode, and calls the second parameter configuration radio-frequency module; Radio-frequency module sends the second corresponding power according to the second parameter.
In the power switching device of described communication apparatus, described first power and the second power unequal, the first power setting is the arbitrary value within the scope of the power setting of conduction test.
In the power switching device of described communication apparatus, described detection module comprises CPU, the first resistance, the second resistance and the first electric capacity;
One end of described first resistance connects the voltage output pin of CPU and one end of the first electric capacity, the other end ground connection of the first electric capacity, the other end of the first resistance connects the detection pin of CPU and one end of the second resistance, and the other end of the second resistance connects one end of Anneta module and test bench.
In the power switching device of described communication apparatus, described drop-down module comprises inductance, the other end of one end connecting test seat of described inductance and radio-frequency module, the other end ground connection of inductance.
In the power switching device of described communication apparatus, described Anneta module comprises the 3rd resistance, the 4th resistance, the 5th resistance, the second electric capacity and antenna;
One end of described second electric capacity connects the other end of the second resistance and one end of test bench, the other end of the second electric capacity connects one end of the 3rd resistance and one end of the 4th resistance, the other end of the 4th resistance connects one end and antenna, the other end of the 3rd resistance and the equal ground connection of the other end of the 5th resistance of the 5th resistance.
Adopt a power changing method for the power switching device of described communication apparatus, it comprises:
A, detection module judge current mode of operation according to the pull-down state of the break-make of test bench and drop-down module, and call corresponding parameter configuration radio-frequency module according to the mode of operation of correspondence;
B, radio-frequency module send corresponding power control antenna module receiving and transmitting signal according to corresponding parameter.
Compared to prior art, the power switching device of communication apparatus provided by the invention and method thereof, judge current mode of operation by detection module according to the pull-down state of the break-make of test bench and drop-down module, and call corresponding parameter configuration radio-frequency module according to the mode of operation of correspondence; Radio-frequency module sends corresponding power control antenna module receiving and transmitting signal according to corresponding parameter; Corresponding power can be selected to carry out receiving and transmitting signal according to mode of operation like this, thus improve the performance of communication apparatus; The power the solving existing conduction test problem that cannot judge whether indices just very up to standard, affect communication appliance performance identical with radiant power.
Embodiment
The invention provides a kind of power switching device and method thereof of communication apparatus, the mode of operation of communication apparatus can be judged and switch to corresponding power, thus improving the performance of communication apparatus.For making object of the present invention, technical scheme and effect clearly, clearly, developing simultaneously referring to accompanying drawing, the present invention is described in more detail for embodiment.Should be appreciated that specific embodiment described herein only in order to explain the present invention, be not intended to limit the present invention.
Please refer to Fig. 1 and Fig. 2, power switching device provided by the invention comprises detection module 100, drop-down module 200, radio-frequency module 300, test bench 400 and Anneta module 500.Described detection module 100 judges current mode of operation according to the pull-down state of the break-make of test bench 400 and drop-down module 200, and calls corresponding parameter configuration radio-frequency module 300 according to the mode of operation of correspondence.Radio-frequency module 300 sends corresponding power control antenna module 500 receiving and transmitting signal according to corresponding parameter.
In the present embodiment, described mode of operation comprises conduction mode and radiation mode.Test bench (RFswitch) 400 is test benches that each communication apparatus such as mobile phone are conventional.When needs carry out conduction test, p-wire is inserted in this test bench, test bench is in off-state, the module being equivalent to the connection of test bench 400 two ends disconnects, namely drop-down module 200/ radio frequency (RF) module 300 disconnects with Anneta module 500, drop-down module 200 does not work, then detection module judges that current mode of operation is conduction mode, and calls the first parameter configuration radio-frequency module.Radio-frequency module sends corresponding the first power (as 23dBm) according to the first parameter.Power in prior art during conduction test is usually equal with power during radiation.After the present embodiment improves, the arbitrary value when power (the first power) during conduction test can be set to conduction test within the scope of power setting, with satisfied different testing requirement.This power setting scope is prior art, is not described further its concrete numerical value herein.
When needs normally work, extracting p-wire makes test bench 400 be in connected state, and be connected with Anneta module 500 by the drop-down module 200 of radio-frequency module 300/, drop-down module 200 is drop-down, then detection module judges that current mode of operation is radiation mode, and calls the second parameter configuration radio-frequency module; Radio-frequency module sends corresponding the second power (as 22dBm or 24dBm) according to the second parameter.
In the present embodiment, described detection module 100 identifies the break-make of test bench and the pull-down state of drop-down module by detecting voltage, and then judges current operating state.Described detection module 100 comprises CPU, the first resistance R1, the second resistance R2 and the first electric capacity C1; One end of described first resistance R1 connects the voltage output pin V of CPU and one end of the first electric capacity C1, the other end ground connection of the first electric capacity C1, the other end of the first resistance R1 connects the detection pin GPIO of CPU and one end of the second resistance R2, and the other end of the second resistance R2 connects one end of Anneta module 500 and test bench 400.
Wherein, the resistance of the first resistance R1 is about 10K, for playing burning voltage effect.The capacitance scope of described first electric capacity C1 is 33pf ~ 150pf, is preferably 33pf, for avoiding direct-current short circuit, plays direct current interruption effect.Existing CPU in described CPU reusable communication apparatus, to save cost and space.The first parameter and the second parameter is stored in described CPU.Which group parameter configuration radio-frequency module 300 CPU calls, and radio-frequency module 300 can be made to send corresponding power.Radio-frequency module 20 is prior art, is not described further its internal circuit structure herein.
In the present embodiment, drop-down module 200 comprises inductance L, the other end of one end connecting test seat 400 of described inductance L and radio-frequency module 300, the other end ground connection of inductance L.Described inductance L is large inductance, and its inductance value scope is 33nh ~ 100nh, for play direct current to act on, namely realize drop-down; Also open circuit effect is played to the working frequency range of communication apparatus, namely avoid the output signal of radio-frequency module 300 to be sent to ground.
In the present embodiment, described Anneta module 500 comprises the 3rd resistance R3, the 4th resistance R4, the 5th resistance R5, the second electric capacity C2 and antenna A; One end of described second electric capacity C2 connects the other end of the second resistance R2 and one end of test bench 400, the other end of the second electric capacity C2 connects one end of the 3rd resistance R3 and one end of the 4th resistance R4, the other end of the 4th resistance R4 connects one end of the 5th resistance R5 and the other end of antenna A, the 3rd resistance R3 and the equal ground connection of the other end of the 5th resistance R5.
Wherein, the capacitance scope of the second electric capacity C2 is 33pf ~ 150pf, is preferably 33pf; It is for direct current interruption; Namely, when large inductance L is drop-down, electric current is avoided by the 3rd resistance R3 to ground.
The present embodiment judges the mode of operation of communication apparatus with the voltage on the detection pin GPIO of CPU.Two cover parameters can be set in the CPU of described communication apparatus, for LTEB1(frequency range), the maximum power (the first power) arranged under conduction mode is 23dBm, and correspondence arranges the first parameter; Maximum power (the first power) under radiation mode is only citing for this performance number of 24dBm or 22dBm(, specifically can arrange, as long as different from the maximum power under conduction mode according to actual conditions), correspondence arranges the second parameter.The operation principle of described power switching device is:
Conduction mode: p-wire inserts and makes test bench 400 be in off-state.Now the voltage output pin V of CPU export about 2.85V voltage, directly enter after the first resistance R1 and detect pin GPIO.Wherein, the direct current interruption effect of the first electric capacity C1 can avoid the first electric current I 1 to flow to ground by the first electric capacity C1, the direct current interruption effect of the second electric capacity C2 it also avoid the first electric current I 1 and flows to ground by the 3rd resistance R3, and such first electric current I 1 just only flows to the detection pin GPIO of CPU.CPU detects this detection pin GPIO when being high voltage, judges that communication apparatus is operated in conduction mode, calls the first parameter configuration radio-frequency module 300, and the maximum power that now radio-frequency module 300 exports is 23dBm, and the trend of the first electric current I 1 as shown in Figure 2.
Radiation mode: when inserting without p-wire, test bench 400 is in connected state.Now CPU exports 2.85V voltage (voltage can be arranged as the case may be, and this is citing), successively through the first resistance R1, the second resistance R2, test bench 400, inductance L to.The direct current interruption effect of the second electric capacity C2 avoids the second electric current I 2 and flows to ground by the 3rd resistance R3.It is low-voltage (being dragged down by inductance L, the second resistance R2) that CPU detects this detection pin GPIO, then judge that communication apparatus is operated in radiation mode, call the second parameter configuration radio-frequency module 300, the maximum power that now radio-frequency module 300 exports is 24dBm or 22dBm, and the trend of the second electric current I 2 as shown in Figure 2.
Like this when conduction test or radiation, communication apparatus can send different power; Can also, when conduction test, be any value within the scope of power setting by power setting.And under radiation mode, power can be become large (such as when signal is more weak) to increase maximum power to improve the intensity of signal transmitting and receiving, avoid problems such as going offline; Also power can be diminished, to avoid SAR(SpecificAbsorbtionRatio, be exactly the contribution ratios of special frequency channel)/HAC(HearingAidCompatibility, a kind of standard of hearing aid compatibility supported by mobile phone) the too high meeting of equivalence has influence on equipment use crowd.
Based on the power switching device of above-mentioned communication apparatus, the present invention also provides a kind of power changing method of communication apparatus, and as shown in Figure 3, described power changing method comprises:
S100, detection module judge current mode of operation according to the pull-down state of the break-make of test bench and drop-down module, and call corresponding parameter configuration radio-frequency module according to the mode of operation of correspondence.
S200, radio-frequency module send corresponding power control antenna module receiving and transmitting signal according to corresponding parameter.
Described step S100 judges once current operating state every Preset Time (as 500ms), is divided into two kinds of situations:
Situation one, be in off-state when test bench has p-wire to insert, drop-down module, radio-frequency module and Anneta module disconnect, and drop-down module does not work; Detection module judges that current mode of operation is conduction mode, and calls the first parameter configuration radio-frequency module.
Situation two, be in connected state when test bench inserts without p-wire, drop-down module, radio-frequency module are connected with Anneta module, and drop-down module is drop-down; Detection module judges that current mode of operation is radiation mode, and calls the second parameter configuration radio-frequency module.
Above-mentioned situation one, described step S200 are specifically comprised: radio-frequency module sends the first corresponding power according to the first parameter.Above-mentioned situation two, described step S200 are specifically comprised: radio-frequency module sends the second corresponding power according to the second parameter.
In sum, the power switching device of communication apparatus provided by the invention and method thereof, by judging the mode of operation that communicating terminal is current, selecting corresponding parameter configuration radio-frequency module according to mode of operation, making radio-frequency module export corresponding maximum power control Anneta module receiving and transmitting signal; Thus when conduction test or radiation, different maximum powers can be sent, thus improve the performance of communication apparatus.Can also when conduction test, be that any value within the scope of power setting is to meet test request by power setting.Under radiation mode, power can be become large to increase the intensity that maximum power improves signal transmitting and receiving, avoid problems such as going offline; Also power can be diminished, have influence on equipment use crowd to avoid the too high meeting of SAR/HAC equivalence.
Be understandable that, for those of ordinary skills, can be equal to according to technical scheme of the present invention and inventive concept thereof and replace or change, and all these change or replace the protection range that all should belong to the claim appended by the present invention.