Background technology
Current aspect intelligent home network wiring, due to the diversity of intelligent appliance and the inconvenience of family's wiring, home network wiring is the individual problem to be solved that has always.Adopting power line networking was most convenient originally, but its adapter is somewhat expensive, and serious interference, and the network of multiple families easily crosstalks, and had therefore limited its application; Adopt wireless network because cause and bandwidth that signal attenuation and wall stop are unstable, add that cost is slightly high, be also difficult to extensively universal; The bus such as Ethernet, CEbus is that wiring is pretty troublesome, and can cause in Smart Home is netting twine everywhere, and the house of particularly having built up will have a large amount of netting twines to rearrange, and brings very large puzzlement.
Application number is that 2008101990766 Chinese patent application " a kind of electric connector " discloses a kind of electric connector with radio communication coupling port, and in electrical connection, nationality is realized network service by radio communication coupling port.As shown in Figure 1, the inserting column 7 of plug 6 joins by power line and power consumption equipment its structure, and the radio communication coupling port 8 of plug 6 is provided with communication module 9 and joins by the control circuit of order wire and power consumption equipment.Correspondingly, the conduction inserting groove 4 of socket 1 and joining of civil power, the coupling port 5 of radio communication is provided with communication module 10 and joins by order wire and miscellaneous equipment (as computer server).The spliced eye 2 of the plug of power consumption equipment 6 sockets can be realized and being connected of civil power, and power consumption equipment switches on power and starts working, and now radio communication coupling port 5,8 phase low coverages are aimed at, and set up communication under the driving of communication module 9,10.
But this patent application is not open how by between two communication modules, and communication module and other equipment, the concrete communication process between communication module and power consumption equipment, does not especially specifically describe the address allocation procedure of power consumption equipment.
On the other hand, in prior art, mainly contain two kinds for smart machine distributes the mode of address: one is by DHCP(DHCP) be smart machine distributing IP address, another kind is directly for smart machine distributes specific non-ip address by intelligent gateway.Smart Home field is more to adopt the method for directly distributing specific non-ip address for smart machine at present.For example, the at present Smart Home common DALI in field, CEBUS, EIB standard, the wherein proprietary protocol of each self-defined device address form and address distribution method.But the address allocation procedure of these agreements is all comparatively complicated and require smart machine to meet higher condition, for example on DALI protocol requirement same bus, each smart machine can generate 24 different random numbers.
Summary of the invention
In view of the shortcoming of prior art, the invention provides a kind of electric connector of realizing controlled plant address assignment, comprising:
Socket and plug;
Socket comprise the first processing module and, be connected to the first wave point of the first processing module;
Plug comprise the second processing module and, be connected to the second wave point of the second processing module;
Between the first and second wave points, communicate by wireless connections;
The first processing module is connected with control appliance by the first wireline interface or the 3rd wave point, and the second processing module is connected with controlled plant by the second wireline interface or the 4th wave point;
Wherein this first processing module comprises the first receiver module, the first sending module, and the 3rd receiver module and memory module, this second processing module comprises the second receiver module, the second sending module.
Further, wherein the first receiver module is for receiving the controlled plant fixed address sending from the second processing module, the first sending module is for described fixed address is sent to control appliance, and the 3rd receiver module is also stored in memory module by this dynamic address for receiving from the dynamic address of control appliance.
Further, wherein the second receiver module is for receiving the controlled plant fixed address from controlled plant, and the second sending module is for sending to the first processing module by controlled plant fixed address.
Further, wherein this fixed address comprises the type codes of controlled plant, the bar code of controlled plant, and batch code of controlled plant, and establish controlled standby sequence number.
Further, wherein this dynamic address by gateway Random assignment.
Further,, wherein this dynamic address is by manually specifying.
Embodiment
Fig. 2 has shown the concrete structure of intelligent home network disclosed by the invention, mainly comprises digital home's intelligent gateway of household internal.Gateway passes through bus switch machine, industry ethernet, and 485 buses couple together various smart machines.
Fig. 3 has shown the device address structure in intelligent domestic system disclosed in this invention.Device address is divided into fixed address and dynamic id address, and fixed address is solidificated in storage chip before equipment dispatches from the factory, and dynamically id address is that after equipment accesses bus for the first time, gateway distributes the address as this node communication.
Equipment fixed address is the unique identity card number of each equipment, and it can be made up of one of them of the sequence number of batch code of the bar code of device type, equipment, equipment and equipment or several combining.This addressing method can ensure the uniqueness of each equipment under different scenes.
In the first embodiment, for example, if controlled plant only has unique one, guard for entrance gate in intelligent home network.Equipment fixed address can only include the bar code of device type code and equipment so.
In a second embodiment, if controlled plant comprises multiple, but can be unique definite according to the bar code of controlled plant and batch code, the equipment of the same type for example progressively adding, equipment fixed address can only include bar code and the equipment batch code of device type code, equipment so.
In the 3rd embodiment, equipment fixed address can also only include bar code and the equipment serial number of device type code, equipment.
In the 4th embodiment, if controlled plant can not by batch and bar code unique determine, for example lighting apparatus.Equipment fixed address can comprise bar code and the equipment batch code of device type code, equipment, equipment serial number so.
Be not limited to above-mentioned four embodiment, according to the difference of application scenarios, as long as can ensure the uniqueness of fixed address, so just can combination in any device type, one or several in bar code, batch code of equipment and the sequence number of equipment of equipment to be to form fixed address.
The in the situation that of the 4th embodiment, equipment fixed address is made up of 17 bytes, and wherein first byte is device type, and then then 12 bar codes that byte is equipment add the lot number of 2 byte representation equipment, the sequence number of latter two byte representation equipment.Certainly can be the different different byte numbers of field distribution according to specific needs.In first two embodiment, can remove the byte that represents respective classes, thereby form shorter equipment fixed address.
And the dynamic I D address of equipment is determined by home gateway, its length is by can be because practical application scene determines.For example in one embodiment, dynamically id address is made up of 2 bytes, from 0x00 to 0xffff, altogether can represent so 65536 the dynamic id of equipment addresses, because dynamic id address only has two bytes, very brief, also enough at same Smart Home on-net location, so with reducing call duration time as the mailing address of each equipment in bus in this address, the probability that reduces data collision, has improved communication efficiency greatly.Certainly, also can adopt other length, for example more than 1 or 3 byte length represents dynamic I D.
Fig. 4 has shown the electric connector circuit structure that the application adopts.The key of infrared socket is 2 points, the one, and holding wire trend is consistent with power line, is convenient to wiring; The 2nd, adopt infrared mode that holding wire is linked up in supply socket place.In other embodiments, also can adopt other communications, for example bluetooth, 2.4G etc.
Fig. 5 has shown the electrical connector module structure that the application adopts.The advantages such as the holding wire of infrared socket adopts 485 buses, has long transmission distance, and antijamming capability is strong.All holding wires, along with power supply cabling, have been avoided the problem of cabling again.At socket place, can well be in conjunction with for holding wire, adopt infrared transmission mode, insert an infrared transceiver device socket one side, also install an infrared transceiver device plug one side.Utilize infrared transmission, holding wire has adopted non-contacting connection, both reliable, convenient again, has avoided intelligent electric appliance need to rethink the problem that holding wire connects.
Infrared socket data exchange process is as follows:
1), send fixed address: in the time that the infrared plug of terminal household electrical appliances is connected the infrared socket of compound bus, first terminal household electrical appliances can send fixed address to gateway, CPU1 in Fig. 5 can send fixed address to socket CUP2 with the infrared communication protocol of agreement, socket is decoded after receiving infrared encoded signal, obtain fixed address and this fixed address is deposited, meanwhile, notify message notifying gateway by fixed address.
2), monthly dynamics id address: can distribute a dynamic id address to socket corresponding to household electrical appliances after gateway is received fixed address and its examination & verification is passed through, household electrical appliances itself need not record dynamic id address.Gateway will be the corresponding socket of id address notification distributing, must be using the fixed address of receiving as the destination address of communicating by letter, destination address is delivered to in dynamic id address, and in the time that household electrical appliances send fixed address to gateway, associated socket all records the fixed address of household electrical appliances, so, gateway sends to socket CPU2 by address assignment message dynamic id, CUP2 can first mate fixed address data, if the match is successful, dynamic id address is deposited, like this, later communication just adopts this dynamic id address source address and destination address as communication.Owing to directly storing without equipment the address being assigned with, this has just reduced the requirement that realizes smart machine control, and conventional equipment can be applied in intelligent home network and go widely.
Be understandable that, the application's claim is not limited to these specific open forms, but has covered all alter mode, equivalents and substitute modes that fall within the spirit and scope of the present invention.