Summary of the invention
The shortcoming of prior art in view of the above, the object of the present invention is to provide a kind of Wireless Communication Equipment, for solving the problem cannot carrying out Intelligent Measurement control in prior art to Wireless Communication Equipment.
For achieving the above object and other relevant objects, the invention provides a kind of Wireless Communication Equipment, described Wireless Communication Equipment comprises radio-frequency module, USB interface and mixed-media network modules mixed-media, and described Wireless Communication Equipment also comprises: detection module, control signal generation module, radio frequency control module, storage control module and network control module; Described detection module for detecting the state of described Wireless Communication Equipment, and judges the state of the described Wireless Communication Equipment detected, generates detection signal; Described control signal generation module is used for generating radio-frequency (RF) control signal, storage control signal and network control signal according to described detection signal; Described radio frequency control module is connected with described control signal generation module with described radio-frequency module, for controlling described radio-frequency module according to described radio-frequency (RF) control signal; Described storage control module is connected with described control signal generation module with described USB interface, for controlling the power supply of described USB interface according to described storage control signal; Described network control module is connected with described control signal generation module with described mixed-media network modules mixed-media, for controlling the mode of operation of described mixed-media network modules mixed-media according to described network control signal.
Alternatively, described control signal generation module comprises CPU and CPLD device; Described CPU is connected by control bus with described CPLD device; Described CPU reads the described detection signal of the described CPLD device of input by described control bus, and generates described radio-frequency (RF) control signal, described storage control signal and described network control signal according to described detection signal.
Alternatively, described detection module comprises current detecting submodule and temperature detection submodule; Described current detecting submodule for detecting the electric current of described Wireless Communication Equipment, and judges the electric current of the described Wireless Communication Equipment detected, generates current detection signal to described CPLD device; Described temperature detection submodule for detecting the working temperature of described CPU, and judges the working temperature of the described CPU detected, generates temperature detection signal to described CPLD device.
Alternatively, by detecting the voltage of precision resistance, described current detecting submodule judges whether electric current exceedes threshold current: described precision resistance is serially connected in the load of described Wireless Communication Equipment, and the inverting input that the voltage of described precision resistance inputs to proportional amplifier carries out scale amplifying; The output of described proportional amplifier is connected with the normal phase input end of threshold compataror, and reference voltage accesses the inverting input of described threshold compataror; When the voltage that described proportional amplifier exports is greater than reference voltage, the electric current of described Wireless Communication Equipment is greater than threshold current, and it is that logic high is to described CPLD device that described threshold compataror exports described current detection signal; When described current detection signal is logic high, described CPU controls described CPLD device to export described radio-frequency (RF) control signal is logic high to described radio frequency control module, to export described storage control signal be that logic high is to described storage control module.
Alternatively, by the voltage detecting thermistor, described temperature detection submodule judges whether temperature exceedes threshold temperature: described thermistor is placed in described CPU place; Reference voltage accesses to the in-phase input end of threshold compataror; The voltage of described thermistor inputs to the inverting input of described threshold compataror; When the voltage of described thermistor is greater than described reference voltage, the working temperature of described CPU is higher than described threshold temperature, and it is that logic low is to described CPLD device that described threshold compataror exports described temperature detection signal; When described temperature detection signal is logic low, described CPU controls described CPLD device to export described radio-frequency (RF) control signal is logic high to described Logic control module, to export described storage control signal be logic high to described storage control module, to export described network control signal be that logic high is to network control module.
Alternatively, described radio frequency control module comprises control relay circuit: described radio-frequency (RF) control signal accesses to the base stage of transistor by resistance, and the grounded emitter of described transistor, is connected by resistance between collector electrode with relay; When described radio-frequency (RF) control signal is logic high, described transistor turns, makes described relay power, and the contact of described relay disconnects, and the radio frequency amplifier of described radio-frequency module is closed.
Alternatively, described storage control module comprises control relay circuit: described storage control signal accesses to the base stage of transistor by resistance, and the grounded emitter of described transistor, is connected by resistance between collector electrode with relay; When described storage control signal is logic high, described transistor turns, makes described relay power, and the contact of described relay disconnects, described USB interface power-off.
Alternatively, described network control module comprises control relay circuit: described network control signal accesses to the base stage of transistor by resistance, and the grounded emitter of described transistor, is connected by resistance between collector electrode with relay; When described network control signal is logic high, described transistor turns, makes described relay power, and the contact of described relay disconnects, and the working mode change of described mixed-media network modules mixed-media is Bypass pattern.
Alternatively, described Wireless Communication Equipment also comprises AC power supplying module and AC load control module; Described AC power supplying module is used for providing AC power for external equipment; Described AC load control module is connected with described control signal generation module with described AC power supplying module, for controlling the power supply of described AC power supplying module.
Alternatively, described detection module also comprises AC load temperature detection submodule, for detecting the working temperature of described AC power supplying module, and judges the working temperature detected; By the voltage detecting thermistor, described AC load temperature detection submodule judges whether the temperature of described AC power supplying module exceedes threshold temperature, described thermistor is positioned at the pin pin place of the socket of described AC power supplying module: reference voltage accesses to the in-phase input end of threshold compataror; The voltage of described thermistor inputs to the inverting input of described threshold compataror; When the voltage of described thermistor is greater than described reference voltage, the working temperature of described AC power supplying module is higher than described threshold temperature, and it is that logic low is to described CPLD device that described threshold compataror exports described AC load temperature detection signal; When described AC load temperature detection signal is logic low, it is that logic high is to described AC load control signal that described CPU controls described CPLD device output AC load control signal.
Alternatively, described AC load control module comprises control relay circuit: described AC load control signal accesses to the base stage of transistor by resistance, the grounded emitter of described transistor, is connected by resistance between collector electrode with relay; When described AC load control signal is logic high, described transistor turns, makes described relay power, and the contact of described relay disconnects, and described AC power supplying module disconnects Alternating Current Power Supply.
As mentioned above, a kind of Wireless Communication Equipment of the present invention, by the design of pure hardware, the load current of Wireless Communication Equipment and cpu temperature are detected, and close the radio frequency amplifier of radio-frequency module and the power supply of USB interface of Wireless Communication Equipment when overcurrent; When CPU working temperature is too high, close or partly close the power supply of radio frequency amplifier, closedown USB interface, and the Bypass pattern of the mixed-media network modules mixed-media of the open wireless network equipment.In addition, Wireless Communication Equipment of the present invention adds AC load supplying module, for external equipment provides AC power, and, in order to ensure that AC load supplying module normally works, also correspondingly AC load supplying module is detected, and control AC load supplying module according to detection signal by AC load control module.Wireless Communication Equipment of the present invention, hardware designs ratio is easier to, almost without the need to the workload of any software; Further, enrich the application scenarios of Wireless Communication Equipment, enhance the reliability of Wireless Communication Equipment application.
Embodiment
Below by way of specific instantiation, embodiments of the present invention are described, those skilled in the art the content disclosed by this specification can understand other advantages of the present invention and effect easily.The present invention can also be implemented or be applied by embodiments different in addition, and the every details in this specification also can based on different viewpoints and application, carries out various modification or change not deviating under spirit of the present invention.It should be noted that, when not conflicting, the feature in following examples and embodiment can combine mutually.
Refer to accompanying drawing.It should be noted that, the diagram provided in following examples only illustrates basic conception of the present invention in a schematic way, then only the assembly relevant with the present invention is shown in graphic but not component count, shape and size when implementing according to reality is drawn, it is actual when implementing, and the kenel of each assembly, quantity and ratio can be a kind of change arbitrarily, and its assembly layout kenel also may be more complicated.
Present embodiment discloses a kind of Wireless Communication Equipment possessing intelligent monitoring function, wherein, so-called Wireless Communication Equipment had both comprised the global voice and the data network that allow user to set up remote-wireless connection, also comprise near radio connects the infrared technology and radio-frequency technique be optimized, very similar with the purposes of cable network, maximum difference is the difference of transmission medium, and Wireless Communication Equipment is the electronic equipment utilizing radiotechnics to instead of netting twine.More common Wireless Communication Equipment includes but not limited to wireless network card, wireless bridge, wireless antenna and wireless router etc.The disclosed Wireless Communication Equipment of the present embodiment can be detected the state of Wireless Communication Equipment, and controls Wireless Communication Equipment according to its state, can adapt to different environment and running status.
As shown in Figure 1, Wireless Communication Equipment 100 disclosed in the present embodiment comprise radio-frequency module 210, USB interface 220, mixed-media network modules mixed-media 230, AC power supplying module 240, detection module 110, control signal generation module 120, radio frequency control module 130, storage control module 140, network control module 150 and AC load control module 160.
Wherein, radio-frequency module 210, USB interface 220 and mixed-media network modules mixed-media 230 are parts of traditional Wireless Communication Equipment 100, do not repeat them here.
The Wireless Communication Equipment 100 of the present embodiment adds as external equipment provides the AC power supplying module 240 of AC power compared to traditional Wireless Communication Equipment.As shown in Figure 2, Wireless Communication Equipment 100 adopts AC power to supply (AC Supply), this AC power converts the modules in direct current supply Wireless Communication Equipment to by AC-DC (AC-DC), AC power supply simultaneously also separates a road voltage signal and is connected to AC power supplying module 240 by AC load control module 160, it is actual is exactly a socket, for providing AC power for external equipment.Therefore, Wireless Communication Equipment 100 of the present invention also has function of socket.Further, AC load control module 160 is connected with control signal generation module 120.
In the Wireless Communication Equipment 100 of the present embodiment, the monitoring for Wireless Communication Equipment 100 has been come by detection module 110, control signal generation module 120, radio frequency control module 130, storage control module 140, network control module 150 and AC load control module 160.
Detection module 110 for detecting the state of Wireless Communication Equipment, and judges the state of the Wireless Communication Equipment detected, generates detection signal.Further, detection module 110 comprises current detecting submodule 111, temperature detection submodule 112 and AC load detected temperatures submodule 113.
Current detecting submodule 111, for detecting the electric current of Wireless Communication Equipment, judges the electric current of the Wireless Communication Equipment detected, generates current detection signal.It is formed primarily of difference scaling circuit and threshold compataror circuit, the load of precision resistance and Wireless Communication Equipment is serially connected, judge whether electric current exceedes threshold current by the voltage detecting precision resistance: the inverting input voltage of precision resistance being inputed to proportional amplifier, its in-phase input end ground connection, the voltage of precision resistance exports the normal phase input end of threshold compataror to after the amplification of proportional amplifier, and accesses the inverting input of threshold compataror with reference to voltage.When the voltage that proportional amplifier exports is greater than reference voltage, then electric current is greater than threshold current, and threshold compataror input electric cur-rent measure signal is that logic high is to control signal generation module 120.
In the present embodiment, the circuit of power detecting submodule 111 as shown in Figure 3, comprise precision resistance Rx, amplifier U3, threshold compataror U4 and several resistance, wherein, amplifier U3, the common composition amplifier of resistance R7, R8, R9 and R10, further, its multiplication factor is A=R10/R8=R9/R7.In addition, in all circuit diagrams provided in the present embodiment, VDD represents operating voltage; GND represents ground connection.Wherein resistance Rx adopts the precision resistance of 0.01 ohm; R7 and R8 is 1K ohm; R9 and R10 is 100K ohm.Precision resistance Rx at circuit input end place is used for current detecting, obtains detection voltage from Rx, then sends into amplifier U3 and carries out scale amplifying, and multiplication factor is A=R10/R8=R9/R7=100K/1K=100 times.Suppose, the threshold current of overcurrent protection is 2A, when electric current on Rx is 2A, is: Ui=0.01*2=0.02V, and obtains voltage U o=100*0.02=2V at U3 output by the voltage detected at U3 input.Further, the reference voltage of threshold compataror U4 is controlled by R11 and R12, R11 and R12 is connected in series mutually, the inverting input of threshold compataror U4 is connected between R11 and R12, by setting the divider resistance value of R11 and R12, the inverting input of threshold compataror U4 is made to obtain the reference voltage of 2V.So when the in-phase input end magnitude of voltage of threshold compataror U4 is higher than 2V, namely when front end direct current current value is more than 2A, the output of threshold compataror U4 will obtain logic high (H), otherwise threshold compataror is by output low level logic (L).The signal that threshold compataror U4 exports is current detection signal DC_Current, and current detection signal DC_Current is finally continued process as the input signal of the CPLD device 121 of control signal generation module 120.
Temperature detection submodule 112 for detecting the working temperature of CPU, and judges the working temperature of the CPU detected, generates temperature detection signal.Its threshold compataror circuit mainly containing the thermistor comprising positive temperature coefficient is formed, and thermistor is placed in CPU place, for detecting the working temperature of CPU.
In the present embodiment, the circuit of temperature detection submodule 112 as shown in Figure 4, comprises thermistor RT1, comparator U1 and multiple resistance.According to the characteristic (temperature is higher, and resistance is larger) of semistor, the homophase input reference voltage value of setting comparator.Suppose that the resistance value that RT1 is corresponding when 100 degree of temperature is r0, the anti-phase input terminal voltage that so comparator U1 is corresponding is VCC*r0/ (R3+r0), by the resistance of setting divider resistance R1, R2, make in-phase input end voltage Vp=VCC*r0/ (R3+r0)=VCC*R2/ (R1+R2).The signal that comparator U1 exports is exactly temperature detection signal, is designated CPU_Temp.In the present embodiment, the threshold temperature of setting CPU is 100 degree, and so when the operating temperature value of CPU exceeds threshold temperature, the level that comparator U1 exports will reverse, and temperature detection signal CPU_Temp is just logic low.
AC load temperature detection submodule 113 for detecting the temperature of AC power supplying module 240, and judges the temperature of the AC power supplying module 240 detected, generates AC load temperature detection signal.Its threshold compataror circuit mainly containing the thermistor comprising positive temperature coefficient is formed, and thermistor is placed in socket Pin pin place, for the temperature of test socket shell fragment.
In the present embodiment, the circuit of AC load temperature detection submodule 113 and the circuit of temperature detection submodule 112 similar, as shown in Figure 5.The setting of the method for its temperature detection and the homophase input reference voltage value of comparator U2 is identical.The signal that comparator U2 exports is AC load temperature detection signal, is designated Outlet_Temp.In the present embodiment, the threshold temperature of setting AC power supplying module 240 (i.e. socket) is 80 degree, so when the temperature value of socket exceeds threshold temperature, the level that comparator U2 exports will reverse, and AC load temperature detection signal Outlet_Temp is just logic low.
Control signal generation module 120 is for generating radio-frequency (RF) control signal, storage control signal, network control signal and AC load control signal according to detection signal (comprising current detection signal DC_Current, temperature detection signal CPU_Temp and AC load temperature detection signal Outlet_Temp).
Control signal generation module 120 comprises CPLD device (Complex Programmable Logic Device CPLD) 121 and CPU122.As shown in Figure 6, CPU122 is conducted interviews to CPLD device 121 by control bus, control bus is mainly ADC bus (address, data, order), the detection signal of prison side form block 110 output is read, i.e. current detection signal DC_Current, temperature detection signal CPU_Temp and AC load temperature detection signal Outlet_Temp by ADC bus.
When detecting that current detection signal DC_Current exports high level, CPU122 by the output signal radio-frequency (RF) control signal PA_Ctrl of control CPLD device 121 and storage control signal USB_Ctrl output logic high level, for closing radio frequency amplifier in radio-frequency module 210 and USB interface 220.
When temperature detection signal CPU_Temp output low level being detected, CPU122 is by output signal storage control signal USB_Ctrl, the radio-frequency (RF) control signal PA_Ctrl of control CPLD device 121, AC load control signal Relay_Ctrl and network control signal Bypass_Ctrl output logic high level, for closing radio frequency amplifier, USB interface 220 and the AC power supplying module 240 in radio-frequency module 210, the Bypass pattern of opening network module 230 simultaneously.
When AC load temperature detection signal Outlet_Temp output low level being detected, CPU122 is by the output signal AC load control signal Relay_Ctrl output logic high level of control CPLD device 121, for disconnecting Alternating Current Power Supply, close the AC load on socket.
Radio frequency control module 130 is connected with control signal generation module 120 with radio-frequency module 210, for controlling radio-frequency module 210 according to radio-frequency (RF) control signal PA_Ctrl.When the working temperature of CPU122 is too high, load power consumption is excessive time, CPU122 exports the radio frequency amplifier of radio-frequency (RF) control signal PA_Ctrl signal at stop radio-frequency module 210, to reach reducing power consumption, cooling-down effect by control CPLD device.
In the present embodiment, radio frequency control module 130 adopts control relay circuit, as shown in Figure 7, comprise transistor Q1, relay R elay1 and multiple resistance, radio-frequency (RF) control signal accesses to the base stage of transistor Q1 by resistance, the emitter of transistor Q1, by grounding through resistance, is connected by resistance between collector electrode with relay R elay1.When PA_Ctrl output logic high level, transistor Q1 conducting, makes relay R elay1 be energized, then the contact of relay R elay1 disconnects, and the radio frequency amplifier of radio-frequency module 210 will lose power supply supply and quit work.And the radio frequency amplifier of radio-frequency module 210 is when normally working, relay R elay1 contact is in normally off.
In addition, under normal circumstances, only include a radio frequency amplifier in radio-frequency module 210, radio frequency control module 130 so of the present invention controls the opening and closing of the radio frequency amplifier of radio-frequency module 210.But, in some special case situations, radio-frequency module 210 may comprise multiple radio frequency amplifier, so, radio frequency control module 130 in the present invention is also multiple, and quantity is consistent with the quantity of the radio frequency amplifier of radio-frequency module 210, radio frequency control module 130 and the radio frequency amplifier one_to_one corresponding in radio-frequency module 210.The circuit of each radio frequency control module 130 all as shown in Figure 7, is not described in detail in this.
Storage control module 140 is connected with control signal generation module 120 with USB interface 220, for controlling the power supply of USB interface 220 according to storage control signal.When the working temperature of CPU122 is too high, load power consumption is excessive time, CPU122 controls the voltage supply of USB interface 220 by the storage control signal USB_Ctrl that control CPLD device exports and disconnects.
In the present embodiment, storage control module 140 is same with radio frequency control module 130 adopts control relay circuit, as shown in Figure 8, comprise transistor Q2, relay R elay2 and multiple resistance: storage control signal accesses to the base stage of transistor Q2 by resistance, the emitter of transistor Q2, by grounding through resistance, is connected by resistance between collector electrode with relay R elay2.When storage control signal USB_Ctrl output logic high level, transistor Q2 conducting, relay R elay2 is energized, and contact disconnects, and the memory device be connected with USB interface 220 will lose power supply and supplies and quit work.And the memory device be connected with USB interface 220 is when normally working, storage control signal USB_Ctrl output logic low level, relay R elay2 contact is in normally off.
Network control module 150 is connected with control signal generation module 120 with mixed-media network modules mixed-media 230, for carrying out the mode of operation of net control module 120 according to network control signal Bypass_Ctrl.When the working temperature of CPU122 is too high time, the working mode change that CPU122 carrys out net control module 120 by the network control signal Bypass_Ctrl that control CPLD device exports is Bypass pattern.
The major function of current home Wireless Communication Equipment is function of surfing the Net, therefore, generally all can have a WAN mouth, and user can by LAN mouth access Internet (WAN mouth).When mixed-media network modules mixed-media 230 normally runs as shown in Figure 9, when user sends and asks to want accesses network, request will enter Wireless Communication Equipment 100 by LAN mouth, then through the CPU/MAC/PHY process of Wireless Communication Equipment, finally sends the request to network side by WAN mouth again.Otherwise, be also the same from network side downloading data to this locality.
In the present embodiment, in time detecting that the working temperature of CPU122 is too high, mixed-media network modules mixed-media can be switched to Bypass pattern, specifically as shown in Figure 10, when the state of Wireless Communication Equipment occurs abnormal, user sends request and wants accesses network data or from web download data to this locality, please after summed data enters Wireless Communication Equipment, all directly transmit between LAN mouth and WAN mouth, no longer through the CPU/MAC/PHY process of Wireless Communication Equipment, substantially reduce the deal with data amount of CPU122.
Further, network control module 150 adopts identical control relay circuit with radio frequency control module 130, storage control module 140, just no longer repeats to provide at this detailed circuit diagram.The network control signal Bypass_Ctrl that CPLD device 121 exports for controlling conducting and the cut-off of transistor, thus realizes the disconnection of relay contact and closes.When network normally runs, the contact of relay is closed, the differential signal TX/RX of network interface (WAN and LAN) is in normal connection mode, is namely connected to corresponding RJ45 interface separately, and the signal that the solid line as marked in Figure 10 represents connects; When the network operation is abnormal, Bypass pattern starts, the conducting of network control signal Bypass_Ctrl driving transistors, relay contact disconnects, and network interface signal flows to and changes, as the mark in Figure 10, the connection of the transmission signal that dotted line represents, chain-dotted line represents the connection of Received signal strength.
AC load control module 160 is connected with control signal generation module 120 with AC power supplying module 240, for controlling the power supply of AC power supplying module 240.When the socket shell fragment Pin pin temperature of AC power supplying module 240 is too high, CPU122 controls the Alternating Current Power Supply of AC power supplying module 240 by the AC load control signal Relay_Ctrl that control CPLD device exports.
AC load control module 160 adopts identical control relay circuit with network control module 150, radio frequency control module 130, storage control module 140, just no longer repeats to provide at this detailed circuit diagram.When the socket shell fragment Pin pin temperature of AC power supplying module 240 is too high, the AC load control signal Relay_Ctrl that CPLD device 121 exports is by output logic high level, transistor turns, the contact of relay disconnects, there is open circuit in power supply, socket is not reentried 220V alternating voltage, and the load on socket also will lose power supply.And when the socket shell fragment Pin pin temperature of AC power supplying module 240 is normal, AC load control signal Relay_Ctrl output logic low level, relay contact is in normally off, and socket obtains 220V alternating voltage.
In addition, it should be noted that, in order to outstanding innovative part of the present invention, the module not too close with solving technical problem relation proposed by the invention is not introduced in the present embodiment, but this not showing the module that there is not other in the present embodiment.
In sum, a kind of Wireless Communication Equipment of the present invention, by the design of pure hardware, the load current of Wireless Communication Equipment and cpu temperature are detected, and close the radio frequency amplifier of radio-frequency module and the power supply of USB interface of Wireless Communication Equipment when overcurrent; When CPU working temperature is too high, close or partly close the power supply of radio frequency amplifier, closedown USB interface, and the Bypass pattern of the mixed-media network modules mixed-media of the open wireless network equipment.In addition, Wireless Communication Equipment of the present invention adds AC load supplying module, for external equipment provides AC power, and, in order to ensure that AC load supplying module normally works, also correspondingly AC load supplying module is detected, and control AC load supplying module according to detection signal by AC load control module.Wireless Communication Equipment of the present invention, hardware designs ratio is easier to, almost without the need to the workload of any software; Further, enrich the application scenarios of Wireless Communication Equipment, enhance the reliability of Wireless Communication Equipment application.So the present invention effectively overcomes various shortcoming of the prior art and tool high industrial utilization.
Above-described embodiment is illustrative principle of the present invention and effect thereof only, but not for limiting the present invention.Any person skilled in the art scholar all without prejudice under spirit of the present invention and category, can modify above-described embodiment or changes.Therefore, such as have in art usually know the knowledgeable do not depart from complete under disclosed spirit and technological thought all equivalence modify or change, must be contained by claim of the present invention.