Summary of the invention
In view of above problem, main purpose of the present invention is to provide a kind of wireless signal receiving system that can wake up fast, to solve the technical problem that can't be waken up fast when in a single day device enters idle state in the known technology.
For achieving the above object, the invention provides a kind of quick wake on wireless signal receiving device, mainly comprise radiofrequency signal receiver module, bridge joint processing module and USB (universal serial bus) module (USB module), bridge joint processing module and radiofrequency signal receiver module couple, USB (universal serial bus) module and bridge joint processing module couple, and be connected with the usb connecting port of computer system by the usb data transmission line, send computer system to the data packet that will be received.
The disclosed wireless signal receiving system of the present invention has four kinds of operator schemes, be respectively normal mode, first idle mode, second idle mode and seek mode, when normal mode, more than the state of three modules be unlatching, and receive and transmit data normally.
The present invention also provides a kind of method of wake on wireless signal receiving device fast, the serial data that this wireless signal receiving system is transmitted in order to receiving computer peripheral unit under normal mode, this serial data sends computer system to the radiofrequency signal transmission and after converting data packet to, this wireless signal receiving system has four kinds of modes of operation such as normal mode, first idle mode, second idle mode and seek mode, comprises the following steps:
When not receiving new data packet through the first idle count cycle and USB module, the USB module then enters first idle mode, at this moment, radiofrequency signal receiver module and bridge joint processing module still continue to receive data, and the USB module then enters first idle mode;
When through second idle count cycle and radiofrequency signal receiver module when not receiving new serial data, then enter second idle mode, at this moment, the bridge joint processing module enters second idle mode, and close the radiofrequency signal receiver module, and behind the process monitoring period, again open the radiofrequency signal receiver module, to search whether new serial data is arranged, if when the second idle count cycle finished, do not receive new serial data yet, then close the radiofrequency signal receiver module once more, and begin to monitor the counting of count cycle.
The present invention also provides a kind of method of wake on wireless signal receiving device fast, the serial data that this wireless signal receiving system is transmitted in order to the receiving computer peripheral unit, this serial data transmits with radiofrequency signal, this wireless signal receiving system has four kinds of modes of operation such as normal mode, first idle mode, second idle mode and seek mode, comprises the following steps:
When this installs in this normal mode, this first idle mode and this seek mode, receive the radiofrequency signal that this is loaded with serial data;
Convert this serial data to data packet;
Judge whether this data packet is complete;
Judge the connection status of this wireless signal receiving system and computer system; And
According to this state, the data packet that this is complete sends this computer system to.
In known wireless signal receiving system, major part only comprises USB module and radiofrequency signal receiver module, therefore in case enter idle mode, just can't wake the serial data of receiving system fast up with the receiving computer peripheral unit, mainly be because the power consumption of USB module stream makes the function of waking up fast be difficult to reach much larger than the power consumption stream of idle mode under normal mode.
Therefore, the present invention is by the bridge joint processing module, when the USB module enters idle mode, whether still can search computer peripheral devices termly has and sends new data, in case when searching new data, then can start the USB module immediately and send data to computer, make that the user can not feel because device enters idle mode any operating delay is arranged when operational computations machine peripheral unit.
Learn that corresponding to main purpose of the present invention main effect of the present invention is wake on wireless signal receiving device fast, under the pattern of power saving, meet the specification of the low consumption electric current of USB regulation, and have the function of quick Remote Wake Up.
For making purpose of the present invention, structural feature and function thereof there are further understanding, now in conjunction with the accompanying drawings the present invention are elaborated.
Embodiment
The system construction drawing of the disclosed quick wake on wireless signal receiving device of the present invention please refer to Fig. 1, comprise three main modular, be respectively radiofrequency signal receiver module 10, bridge joint processing module 20, and USB (USB) interface module 30, bridge joint processing module 20 couples with radiofrequency signal receiver module 10, USB (universal serial bus) module 30 couples with bridge joint processing module 20, and be connected with the usb connecting port of computer system by the usb data transmission line, finish data transmission loop with computer system, so that received packet data is sent in the computer.In addition, USB (universal serial bus) module 30 also can connect LED display lamp (not shown) to show relevant information, also can connect the EEPROM (not shown), and EEPROM is in order to store relevant function software.
Have reception antenna 11 on the radiofrequency signal receiver module 10, in order to received RF signal, the serial data that radiofrequency signal receiver module 10 is mainly transmitted in order to receiving computer peripheral unit (for example mouse, keyboard), serial data transmits in the radiofrequency signal mode.
Three operations of bridge joint processing module 20 main execution, the on off state that is respectively control radiofrequency signal receiver module 10 is so that it meets the operating current of USB battery saving mode, the radiofrequency signal that is loaded with serial data that reading radio frequency signal receiver module 10 is received, and, send the serial data after the filtering to USB (universal serial bus) module 30 with the package form at last with unnecessary surging bit filtering.And when receiving complete data packet, transmit wake-up signal WkUp and give usb interface module 30.
Bridge joint processing module 20 is preferably integrated circuit (IC), it must have monitoring period counter (watch dog timer) at least, and its operating current need are close with the operating current that the USB device enters battery saving mode, be slightly less than 1mA approximately, but operating current much smaller than USB (universal serial bus) module 30, make it when entering the idle mode that meets USB institute standard, still can continue operation.
USB (universal serial bus) module 30 is preferably integrated circuit (IC), can be usb interface controller, in order to the data packet of reception from bridge joint processing module 20, and sends computer system to.When usb interface module during at busy condition, transmit busy signal Busy and give bridge joint processing module 20, so that the data packet that bridge joint processing module 20 temporarily will transmit stores, when entering idle mode, transmit the first idle signal UsbSleep and give bridge joint processing module 20, so that the idle counter of second in the bridge joint processing module 20 begins counting.
In order to make the disclosed wake on wireless signal receiving device fast of the present invention meet the requirement of low consumption electric current among the USB, in this device, designed four kinds of operator schemes, be respectively normal mode, first idle mode, second idle mode and seek mode.During normal mode, all modules are all opened and are normally transmitted and receive data.First idle mode refers to USB (universal serial bus) module 30 and enters idle mode, second idle mode refers to the bridge joint processing module and enters idle mode, and seek mode refers to when second idle mode, through behind the monitoring period, whether the bridge joint processing module is opened the radiofrequency signal receiver module has radiofrequency signal to exist to search.
Below battery saving mode, park mode or the idle mode of indication refers in the explanation is identical pattern, that is enters the low power consumption stream mode, and the power consumption of this moment flow to less must be smaller or equal to 0.5 milliampere, and 0.5 milliampere is defined in the USB standard.
More than the state transition diagram of four kinds of patterns see also Fig. 2, from figure, can know the switching situation of above four kinds of states and be described as follows.
When in normal pattern, radiofrequency signal receiver module 10 is opened, and bridge joint processing module 20 is opened, and USB (universal serial bus) module 30 is opened.At this moment, the first idle counter begins counting.
When at first idle mode, radiofrequency signal receiver module 10 is opened, and bridge joint processing module 20 is opened, and USB (universal serial bus) module 30 enters idle mode.At this moment, the second idle counter begins counting.
When at second idle mode, radiofrequency signal receiver module 10 is closed, and bridge joint processing module 20 enters idle mode, and USB (universal serial bus) module 30 enters idle mode.At this moment, the monitoring period counter begins counting.
When in seek mode, radiofrequency signal receiver module 10 is opened, and bridge joint processing module 20 is opened, and USB (universal serial bus) module 30 is an idle mode.
When the wireless signal receiving system is normal mode,, send computer to the data packet form then with behind the surging bit in this radiofrequency signal of filtering, and with serial data if when receiving the radiofrequency signal that is loaded with serial data.In addition, when receiving the radiofrequency signal that is loaded with serial data, be the state transitions of other two kinds of patterns also, promptly switch to normal mode by seek mode, another kind is that first mode switch is to normal mode.
When normal mode, if through the first idle count cycle, and do not receive complete data packet, then switch to first idle mode, and the second idle counter begins counting from normal mode.When at first idle mode,, then be transformed into second idle mode from first idle mode through after the second idle count cycle and do not receive serial data.
And when second idle mode,, then convert seek mode to when through behind the monitoring period, and after through the second idle count cycle, do not receive serial data, promptly get back to second idle mode.
The disclosed wireless signal receiving system that can be waken up fast of the present invention, by the bridge joint processing module of power consumption stream far below the USB (universal serial bus) module, when the USB (universal serial bus) module is in idle mode, periodically whether monitoring has radiofrequency signal to receive, when data will receive, then can wake the USB (universal serial bus) module fast up and send computer to the data that will be received.
Therefore bridge joint processing module 20 main functions are the unlatching of control radiofrequency signal receiver module 10 or close, and the radiofrequency signal of received RF signal receiver module 10, filtering surging bit, the serial data after will eliminating sends USB (universal serial bus) module 30 to the package form.When USB (universal serial bus) module 30 is in first idle mode,, and when having new data to come in, wake USB (universal serial bus) module 30 up with the data storing that is received.When a period of time does not receive new data, then close radiofrequency signal receiver module 10, and enter second idle mode.When entering second idle mode, behind a monitoring period, enter seek mode and restart radiofrequency signal receiver module 10, to confirm whether have new data to produce, at this moment, if new data are arranged, then enter normal mode and transmit a wake-up signal and send received data to computer system to wake USB (universal serial bus) module 30 up for USB (universal serial bus) module 30.When second idle mode, the specification of the duty cycle of monitoring period (duty cycle) makes the average current of minimum of wireless signal receiving system meet the specification of USB idle mode, that is 0.5 milliampere.
Shown in Fig. 3 A, Fig. 3 B, be the operation workflow figure of the bridge joint processing module of the disclosed quick wake on wireless signal receiving device of the present invention, this operation workflow with the software program burning in the bridge joint processing module.
After initialization bridge joint processing module (step 100), read serial data (step 110) from buffering area, then with in addition filtering (step 120) of the surging bit in the serial data, check then whether each bit in the serial data behind the filtering surging bit is real bit, and the serial data after will confirming with the form of byte (byte) stores (step 130).
Begin to receive the serial data except after the initialization, has monitoring period counter (WATCH DOG TIMER) in the bridge joint processing module 20, when the monitoring period counting finishes (step 200), and reset (step 210) behind the flag bit, open radiofrequency signal receiver module 10 with beginning received RF signal (step 220), then read serial data (step 110) from buffering area.
Confirm again then whether byte data is real byte, and byte data is stored (step 140) with the data packet form, and check whether be complete data packet (step 150), the replacement first idle counter (step 160), so far finish the transmission preparations of data packet, begin the transmission of data packet afterwards.
Before transmitting, check whether USB (universal serial bus) module 30 enters first idle mode (step 170), if enter first idle mode, then transmitting wake-up signal gives USB (universal serial bus) module 30 to wake USB (universal serial bus) module 30 (step 171) up, before USB began to receive data, bridge joint processing module 20 continued to read serial data (step 110) from buffering area.
If the USB (universal serial bus) module does not enter first idle mode, check then whether present USB (universal serial bus) module has much to do (step 180), if busy, bridge joint processing module 20 continues to read serial data (step 110) from buffering area; If busy, then can transmit packet data (step 181), transmission finishes (step 182) afterwards, and bridge joint processing module 20 continues to read serial data (step 110) from buffering area.
In step 150, if data packet is imperfect, the second idle counter is added up (step 190), and check whether arrive the counting (step 191) that enters second idle mode, if no show, then bridge joint processing module 20 continues to read serial data from buffering area; If arrive the counting that enters second idle mode, then to close radiofrequency signal receiver module (step 230), and start monitoring period counter (step 240), bridge joint processing module 20 enters second idle mode (step 250).
USB (universal serial bus) module 30 mainly is to receive data packet and send computer system to from bridge joint processing module 20, after through the first idle count cycle, do not continue to receive data packet, then enter first idle mode, and transmit the first idle signal UsbSleep and give bridge joint processing module 20, entered first idle mode to notify it.And with the wake-up signal Wkup of interrupt mode reception, and enter normal mode from bridge joint processing module 20.
As shown in Figure 4, this figure is the operation workflow figure of the USB (universal serial bus) module of the disclosed quick wake on wireless signal receiving device of the present invention, after initializing universal serial bus (USB) interface module (step 300), then check whether connect (handshake) (step 310) with computer system, if need, then busy (busy) pin position with USB (universal serial bus) module 30 is made as low level (step 320), represent that present USB (universal serial bus) module 30 is busy condition, then with computer system connect (step 330), after finishing, again busy pin position is made as high level (step 340).
In step 310, if USB (universal serial bus) module 30 does not need to connect with computer system, then check whether receive new data packet (step 350), if having, then data packet is converted to HID form (step 360), and the first idle counter (step 361) of resetting.The major function of the first idle counter then makes USB (universal serial bus) module 30 enter first idle mode, to enter the low power consumption stream mode for when reaching some cycles when (the first idle count cycle).In step 350, if do not receive new data packet, then the first idle counter is added up (step 370), and check whether the counting of the first idle count cycle finishes (step 371), do not finish if also, then get back to step 310.If the first idle period count cycle finished, then the UsbSleep pin position with USB (universal serial bus) module 30 is made as low level (step 380), and USB (universal serial bus) module 30 is about to enter first idle mode (step 390).
After usb interface module 30 entered first idle mode, if receive wake-up signal (step 400), then the UsbSleep pin position with USB (universal serial bus) module 30 was made as high level, and continued step 310.
For the USB standard of low speed, enter after the idle mode, its consumed current must be less than 0.5 milliampere.The disclosed technological concept according to the present invention, after the process some cycles, the disclosed wireless signal receiving system of the present invention will enter idle mode, after entering idle mode, whether bridge joint processing module 20 has new radiofrequency signal to produce search regularly with radiofrequency signal receiver module 10, after receiving effective packet data, this packet data is stored and wakes up USB (universal serial bus) module 30.After USB (universal serial bus) module 30 reentered normal mode, 20 of bridge joint processing modules sent received data packet to USB (universal serial bus) module 30.The account form of the duty cycle (duty cycle) of second idle mode and seek mode below is described.Power consumption when should be noted that duty cycle must allow the disclosed wireless signal receiving system of the present invention at idle mode on calculating is at least less than 0.5 milliampere.
The calculating of duty cycle sees also Fig. 5, and A is the search cycle of seek mode, and B is search cycle second an idle period sum, and on behalf of the bridge joint processing module, second idle period enter the time of second idle mode.
Suppose that I1 is the power consumption stream of seek mode, I2 is the power consumption stream of second idle mode, then I1 and I2 must satisfy: A*I1+ (B-A) * I2=0.5*B, A is the time cycle of seek mode, B be the seek mode and second idle mode time cycle and, can get duty cycle A/B=(0.5-I2)/(I1-I2).
For instance, suppose I1=7mA, I2=0.05mA, then A/B=(0.5-0.05)/(7-0.05)=0.0692.
With keyboard, the maximum cycle is 80ms, and then A=80ms can get 1156.1ms according to above-mentioned method.With mouse, the maximum cycle is 13ms, and then A=13ms can get 187.9ms according to above-mentioned method.If the disclosed wireless signal receiving system of the present invention can receive the data from mouse or keyboard simultaneously, then A can be set at 80ms, B=1.2 second then, that is, when if the disclosed wireless signal receiving system of the present invention enters second idle mode, then the user only needs to operate mouse or about 1.2 seconds time of keyboard, and receiving system can be replied normal mode.Therefore by the circuit of the disclosed quick wake on wireless receiving system of the present invention, not only meet the low consumption electric current regulation of USB, also solved the technical problem that known receiving system can't can't be waken up fast when idle mode at idle mode.
In sum; though the present invention discloses as above with aforesaid preferred embodiment; yet be not in order to limit the present invention; protection scope of the present invention should be as the criterion with the scope that claims define; those skilled in the art; a little change of being done without departing from the spirit and scope of the present invention all should be included within protection scope of the present invention.