A kind of device that detects network household electric equipment communication function
Technical field
The present invention relates to network home appliance, especially relate to a kind of device that detects network household electric equipment communication function.
Background technology
Network home appliance is the developing direction of current household electrical appliance.The key of network home appliance is the communication function of household electrical appliances, and this function makes between the different household electrical appliances and can exchange mutually, collaborative work.The all-network household electrical appliances of one family are formed the household internal network through its communication function, and realize and the communicating by letter of external network through Network Interface Units such as home gateways.
Please referring to Fig. 1, this illustrates a kind of appliance network under the prior art.The first network home appliance equipment 101, the second network home appliance equipment 102, the 3rd network home appliance equipment 103 are connected with home gateway 104 communications; This home gateway 104 connects external public network; Use computer 105, handheld terminal 106, mobile phone 107 etc.; Can visit the home gateway 104 of some families through external public network, and and then each network home appliance through this home gateway 104 these families of visit.Therefore, can realize remote control and management through network home appliance to household electrical appliances.
Under the prior art, the general special-purpose communication unit that is installed on this network home appliance that adopts is realized communication each other between the network home appliance, and, adopt wireless communication mode usually.In order correctly to be implemented in the communication in the network; When dispatching from the factory, the all-network household electrical appliances all need have identity recognition number (ID number); Be used for for this ID number the network home appliance of home network is carried out identification; In order to guarantee the confidentiality of signal transmission, each network home appliance also has special-purpose transmission security key, is called the KEY sequence number simultaneously.
Because the communication function of network home appliance is to realize the indispensable function of home network, and is difficult for finding, therefore, is necessary this function is carried out special detection.
Under the prior art, be to form network household appliance system, carry out communication each other, to confirm both whether operate as normal through network home appliance equipment and gateway to the detection of network home appliance communication function.But this kind detection method can't be confirmed both, and which problem occurred, and detection efficiency is low, can not adapt to the needs that household electrical appliances manufacturer streamline is produced.When equipment dispatches from the factory or in users home, need the normal operation of testing equipment; Must have gateway tests; And whether normally gateway must be connected with the operation of human-computer interaction device's aptitude test network home appliance; Like this, carry out the communication detection of a network home appliance, need at first install.For the family that sets up appliance network, this problem is unimportant, still; For the family that does not set up appliance network as yet; Generally can not carry out complex installation like this, like this, have to omit detection the network home appliance communication function for a network home appliance.Current, network home appliance has also just just got into family, and most of families also do not set up appliance network, therefore, and this situation ubiquity.
Simultaneously, under the prior art, itself must register equipment to be detected in gateway, just can carry out the communication function test, and like this, even in the family that sets up appliance network, testing process also bothers very much.And, for same phenomenon of the failure, can't distinguish the problem of system's setting or the problem of the hardware of communication device own sometimes.
In addition, producer is in order to detect to the doorstep, the gateway device of having to sometimes carry, and it is bulky, and inconvenience is carried.
Summary of the invention
To above-mentioned defective, the technical problem that the present invention solves is that a kind of device that detects network household electric equipment communication function is provided, and this device can be realized the detection to network household electric equipment communication function easily.
The present invention provides a kind of device that detects network household electric equipment communication function, comprising:
Communication unit is used for sending test command to network home appliance, and the response message that receives said network home appliance;
Input unit is used to receive the control command of outside input, and produces the control command code in view of the above;
Processor unit is used to receive said control command code, and produces test command in view of the above, transfers to communication unit and sends; And receive the response message that communication unit is transmitted, produce testing result;
Output unit receives the testing result of said processor unit, and with this testing result output.
Preferably, said communication unit is a wireless transmit/receive units.
Preferably, said input unit is a keyboard.
Preferably, said output unit is a display.
Preferably, said input block provides the ID query key of requester network household electrical appliances identify label, after this operating key is triggered; Input block produces the ID query statement; After said processor unit receives this instruction, produce the ID test command, and transfer to said communication unit and send; After said this information of communication unit broadcast transmission, receive response message, comprise the network home appliance identify label in this response message; Said processor unit is resolved network home appliance identify label wherein after receiving the response message of said communication unit forwarding, and shows this identify label by said output unit.
Preferably, said input unit provides the KEY query key of requester network household electrical appliances transmission security key, after this operating key is triggered; Input unit produces the KEY query statement; After said processor unit receives this instruction, produce the KEY test command, and transfer to said communication unit and send; After said communication unit sends this information, receive response message, comprise this network home appliance transmission security key in this response message; After said processor unit receives the response message that said communication unit transmits, resolve transmission security key number wherein, show this transmission security key number through said output unit; Above-mentioned KEY query statement can send with said ID query statement together.
Preferably, said input block provides the Link State of inquiry Link State to detect key, after this operating key is triggered; Input block produces the link state inquiry instruction; After said processor unit receives this instruction, produce the link test order, and transfer to said communication unit and send; After said communication unit sends this information; Receive the link test response message that network home appliance sends; Comprise communication in this link test response message and check data; After said processor unit receives the link test response message of said communication unit forwarding; Judge whether the communication check data that wherein comprise conform to the communication check data of its storage; If conform to, then by said output unit output link test normal information; If do not conform to, then by said output unit output link test abnormal information.
Preferably, after said processor unit sent said link test order, if the process scheduled time still can't obtain the link test response message, then output link was tested abnormal information.
Preferably, each unit of this device is integrated in the hand-held device.
Preferably, said communication unit is a separate equipment, and it connects the main equipment that comprises said input unit, processor unit, output unit through USB interface or other serial line interface.
Compared with prior art, device provided by the invention is integrated to carry out the necessary unit of network home appliance communication function test, has constituted easy testing apparatus.After using this device, can need not the network home appliance access network, whether communication function that just can the test network household electrical appliances is normal.Because function is simple, can process hand-held device, be convenient to the tester and carry, for the maintenance of network home appliance communication function provides instrument easily.
Description of drawings
Fig. 1 is the structural representation of existing network household electrical appliances;
Fig. 2 is the functional unit block diagram of first embodiment of the invention.
Embodiment
Please referring to Fig. 2, this figure is the unit block diagram of first embodiment of the invention.This embodiment provides a kind of device that detects network household electric equipment communication function.
As shown in Figure 2, this device comprises communication unit 201, input unit 202, processor unit 203, output unit 204.
Said communication unit 201 is used for sending test command to network home appliance, and the response message that receives said network home appliance.
This communication unit 201 is a wireless transmit/receive units in the present embodiment, and concrete form can be bluetooth transceiver, RF transceiver, infrared transceiver etc., also can integrated some kinds of wireless transceivers.Key is, these wireless transceivers need and the communication unit of network home appliance to be tested matches, so that can carry out wireless telecommunications each other.Obtain information in order to prevent malice, the transmitting power of this communication unit 201 is very low, have only and network home appliance between be in the safe distance, just can realize the communication with network home appliance.
Certainly, in the concrete application of other form, for the network home appliance of communication unit employing wire communication, this communication unit 201 also can be wired Transmit-Receive Unit.
Said input unit 202 is used to receive the control command of outside input, and produces the control command code in view of the above.
In the present embodiment, this input unit 202 adopts keyboard special.Each button on this keyboard special is represented control command, and after button was triggered by the user, this keyboard produced control command code that should key controlling command, and output.
Because this device needs to detect network household electric equipment communication function, the detection of for this reason carrying out is limited, and the test command of standard is all adopted in these tests, therefore, the dedicated button of corresponding various tests is provided on this keyboard special.In a single day button is triggered, and then produces the control corresponding instruction, tests accordingly.
Particularly, said dedicated button comprises the ID query key of requester network household electrical appliances identify label, the KEY query key of requester network household electrical appliances transmission security key, and the Link State of inquiry Link State detects key etc., after above-mentioned each button triggers, starts the control corresponding instruction.
Because identify label inquiry and transmission security key inquiry often need be carried out simultaneously, therefore, two buttons can be set to an ID&KEY button.
Said processor unit 203 is used to receive said control command code, and produces test command in view of the above, transfers to communication unit 201 and sends; And receive the response message that communication unit 201 is transmitted, produce testing result.
In this processor unit 203, store the test command code of standard,, just produce corresponding test command as long as receive control command from input unit 201.Said test command comprises ID querying command, KEY querying command, Link State sense command.
Said processor unit 203 also receives the response message that communication unit 201 is transmitted.And, resolve accordingly according to ongoing different tests.Particularly, when carrying out the ID inquiry, resolve the identify label and the output of the network home appliance that comprises in the response message; When carrying out the KEY inquiry, resolve the transmission security key and the output of the network home appliance that comprises in the response message; When carrying out link test, resolve the communication that comprises in the response message and check data, and judge whether the communication check data that wherein comprise conform to the communication check data of its storage, if conform to, then through said output unit output link test normal information; If do not conform to, then through said output unit output link test abnormal information.When carrying out the link test order, carry out timing simultaneously, when timing time surpasses predetermined value, still do not receive response message, same output link test abnormal information.
Because the query manipulation of identify label and transmission security key generally carries out simultaneously, therefore, can two operations be sent simultaneously.Accordingly, said input unit 201 can adopt an ID&KEY query key, as the operating key of inquiring about identify label and transmission security key simultaneously.
Said output unit 204 receives the testing result of said processor unit 203, and with this testing result output.
In the present embodiment, said output unit is a display, specifically can adopt LCD.Because this device content displayed is comparatively simple, can adopt the less LCD of display area to get final product, for example, the employed LCD of similar mobile phone gets final product.
As being specifically designed to the device that detects network household electric equipment communication function, above-mentioned each unit of this device is integrated into a hand-held device, adopts compact structure, can make things convenient for the user to carry.
In addition, also can utilize the function of digital processing devices such as existing computer, independently communication unit just is set, this communication unit adopts USB interface or other serial line interface to connect computer or other digital processing device; Aforementioned calculation machine or other digital processing device have input units such as keyboard, and output units such as processor unit, display.Adopt these unit, add special-purpose software, form the device that detects network household electric equipment communication function.This mode can cost saving owing to the hardware that has utilized existing apparatus.
Should explain, state in realization in the testing process, need the cooperation of network home appliance.Said ID querying command and KEY querying command all are to use the forms of broadcasting to send; After network home appliance was received mentioned order, its control board can produce corresponding response message, and the special character of above-mentioned ID querying command and KEY querying command is; It need not comprise ID number and transmission security key of network home appliance; Both can be received, and the network home appliance communication unit can generate response message and wireless transmission with its identify label and transmission security key in view of the above by the communication unit of said network home appliance.In the said link test process, network home appliance need produce the link test response message according to the link test order, comprises communication in this link test response message and checks data.The data based data that connect in the drive test examination order of said communication check produce, and like this, whether said processor unit 203 can be checked the data comparison with the communication of self storing in view of the above, normal to judge communication link.
The said apparatus that the embodiment of the invention provides; Can simplify the test process that detects network household electric equipment communication function, and this apparatus function is single-minded, its hardware is formed simple in structure; Can make the very little handheld device of volume; Supply the maintainer to carry, the communication function of carrying out network home appliance easily detects, and comprises the identify label number that obtains network home appliance and transmission security key number.When network home appliance is also on production line, use identify label that this device can in time find to provide on the outer sign of pasting of network home appliance number whether to mark correctly with transmission security key, be convenient to the staff and in time correct problem.
The above only is a preferred implementation of the present invention; Should be pointed out that for those skilled in the art, under the prerequisite that does not break away from the principle of the invention; Can also make some improvement and retouching, these improvement and retouching also should be regarded as protection scope of the present invention.