CN202652448U - Hub and optical communication device - Google Patents

Hub and optical communication device Download PDF

Info

Publication number
CN202652448U
CN202652448U CN 201120570051 CN201120570051U CN202652448U CN 202652448 U CN202652448 U CN 202652448U CN 201120570051 CN201120570051 CN 201120570051 CN 201120570051 U CN201120570051 U CN 201120570051U CN 202652448 U CN202652448 U CN 202652448U
Authority
CN
China
Prior art keywords
instruction
optical communication
data
communication equipment
infrared
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Lifetime
Application number
CN 201120570051
Other languages
Chinese (zh)
Inventor
黄喜荣
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Itsync Technology Co Ltd
Original Assignee
Beijing Itsync Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Itsync Technology Co Ltd filed Critical Beijing Itsync Technology Co Ltd
Priority to CN 201120570051 priority Critical patent/CN202652448U/en
Application granted granted Critical
Publication of CN202652448U publication Critical patent/CN202652448U/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Images

Abstract

The utility model discloses a hub and an optical communication device. The hub comprises an infrared emission module, a processing module and an infrared reception module, wherein the infrared emission module is connected with the processing module and is used for using infrared ray to emit an emission allowance instruction, a target address carried in the emission allowance instruction is an address of a first optical communication device which is allowed to forward data so that only the first optical communication device responds to the emission allowance instruction, and each optical communication device comprises an address. The infrared reception module is connected with the processing module and is used for receiving a data forwarding instruction in an infrared ray form, wherein the data forwarding instruction is emitted for the emission allowance instruction in the condition that the first optical communication device has data which is needed to be forwarded, the processing module is used for modulating the data which is needed to be forwarded contained in the data forwarding instruction, and the infrared emission module uses the infrared ray to emit the data to a second optical communication device which is indicated by a target address in the data forwarding instruction.

Description

Hub and optical communication equipment
Technical field
The utility model relates to communication technical field, more specifically, relates to a kind of hub (HUB) and optical communication equipment.
Background technology
Data communication technology combines computer and communication line and equipment, realized the communication between people and computer, computer and the computer, the utilance of each subscriber computer is improved greatly, and greatly expanded the computer application scope, and make each user realize sharing of computer software and hardware resource and data resource.Work to the remote in real time control of computer with to the items such as remote collection of data, also can utilize data communication to carry out.
Ethernet (Ethernet) is the most general a kind of communication protocol standard that adopts when realizing data communication at present.In Ethernet, be connected with netting twine between the equipment such as router, HUB, switch and PC, come transmission of electric signals to carry out data communication with netting twine, perhaps, adopt wireless mode to carry out data communication.But, can not arrange netting twine or can not use in the complex electromagnetic environment of wireless network that the data communication between the equipment will be difficult to realize at some.
Summary of the invention
In view of this, main purpose of the present utility model is to provide a kind of hub and optical communication equipment, can solve can not arranging netting twine or can not use in the complex electromagnetic environment of wireless network the very difficult problem that realizes of the data communication between the equipment at some of existing in the prior art.
For achieving the above object, the technical solution of the utility model is achieved in that
On the one hand, a kind of hub is provided, comprise: infrared transmission module, processing module and infrared receiving module, wherein: infrared transmission module, be connected with processing module, be used for using infrared emitting to allow to send instruction, wherein, allowing to send the destination address of carrying in the instruction is the current address that is allowed to the first optical communication equipment of forwarding data, so that only the response of the first optical communication equipment allows to send instruction, each optical communication equipment has an address; Infrared receiving module is connected with processing module, is used for the data retransmission instruction of receiving infrared-ray form, and wherein, the data retransmission instruction is that the first optical communication equipment is in the situation that has data to transmit, for allowing the transmission instruction to launch; Processing module is used for the data that the needs that data forwarding instruction comprises are transmitted are modulated, and uses infrared emitting to the second indicated optical communication equipment of the destination address in the data retransmission instruction by infrared transmission module.
Wherein, infrared receiving module also be used for to receive the transmission END instruction of the first optical communication equipment emission, wherein, sends END instruction and is used to indicate the data that data that the first optical communication equipment need to transmit have been sent or have not needed to transmit.
Wherein, infrared transmission module also is used at least when the optical communication equipment that carries out communication with hub has two, after infrared receiving module receives the transmission END instruction, again allow to send instruction to next optical communication equipment emission, until allow to send instruction to all optical communication equipment emissions.
Wherein, processing module comprises: single-chip microcomputer, be connected with infrared receiving module, and be used for generating permission and send instruction, and be input to modulation amplifying circuit after the permission that will the generate transmission instruction serialization; The data retransmission instruction that demodulation reduction infrared receiving module receives, and be input to modulation amplifying circuit after the data that the needs that comprise in the data retransmission instruction are transmitted and the destination address serialization; And, the transmission END instruction that demodulation reduction infrared receiving module receives, and according to this transmission END instruction, the indication infrared transmission module allows to send instruction to next optical communication equipment emission again; Oscillator, being used for generated frequency is the carrier wave of 38KHz; And modulation amplifying circuit, being connected with single-chip microcomputer, oscillator and infrared transmission module, the permission that is used for serial that will input sends instruction and is modulated to carrier wave, and launches by infrared transmission module; Data and destination address that the needs of the serial of input are transmitted are modulated on the carrier wave, and launch by infrared transmission module, so that only the address be that the second optical communication equipment of this destination address is preserved the data that need forwarding.
Wherein, single-chip microcomputer also was used for before the data serializing that the needs that the data retransmission instruction is comprised are transmitted, it is the address of oneself that specified data is transmitted the destination address of carrying in the instruction, perhaps, before the indication infrared transmission module allows to send instruction to the emission of next optical communication equipment again, determine that the destination address of carrying in the transmission END instruction that the demodulation reduction obtains is the address of oneself.
On the other hand, also provide a kind of optical communication equipment, having comprised: infrared transceiver module and modulation control module, wherein: infrared transceiver module, the permission that is used for the infrared ray form of reception hub emission sends instruction; The modulation control module, be connected with infrared transceiver module, be used for to judge allow send the whether address of this optical communication equipment of destination address that instruction carries, if, the data that then need to send this optical communication equipment are modulated, and indication infrared transceiver module use infrared ray wherein, carries the data that need forwarding to the hub transmitting data in the data.
Wherein, infrared transceiver module also is used for after the data that needs send have been sent, and uses infrared ray to send END instruction to the hub emission, and wherein, the destination address of carrying in this transmission END instruction is the address of hub.
Wherein, the modulation control module also is used for judging when being the address of this optical communication equipment, and in the situation of the data that do not need to send, sends END instruction by infrared transceiver module to the hub emission, the destination address of wherein, carrying in this transmission END instruction is the address of hub.
Technique effect of the present utility model: hub sends to the first optical communication equipment and allows to send instruction, expression allows it to send data now, the first optical communication equipment will send instruction for this permission when the data that need forwarding are arranged, carry the data retransmission instruction of the data that need forwarding to the hub emission, then hub second optical communication equipment that after receiving this data retransmission instruction, the data retransmission that receives will be forwarded to needs, thereby, hub and between the optical communication equipment of terminal, can use infrared ray to carry out communication, can not the cloth netting twine at some, maybe can not use in the complex electromagnetic environment of wireless network, terminal hub by employing the utility model embodiment has been realized the optical communication between the equipment, can solve the problem of difficult wiring and electromagnetic interference, and shorten the duration widely, saved cost.
Description of drawings
Accompanying drawing described herein is used to provide further understanding of the present utility model, consists of the application's a part, and illustrative examples of the present utility model and explanation thereof are used for explaining the utility model, do not consist of improper restriction of the present utility model.In the accompanying drawings:
Fig. 1 shows the network structure according to the data communication system of the utility model embodiment;
Fig. 2 shows the structural representation according to the hub of embodiment one of the present utility model;
Fig. 3 shows one of system layout figure according to the data communication system of embodiment one of the present utility model;
Fig. 4 shows according to two of the system layout figure of the data communication system of embodiment one of the present utility model;
Fig. 5 shows the structural representation according to the hub of embodiment two of the present utility model;
Fig. 6 shows the flow chart according to the data communication method of the hub of embodiment three of the present utility model;
Fig. 7 shows the concrete operations flow chart according to the data communication method of the hub of embodiment four of the present utility model;
Fig. 8 shows the structural representation according to the optical communication equipment of embodiment five of the present utility model;
Fig. 9 shows the flow chart according to the data communication method of the optical communication equipment of embodiment six of the present utility model;
Figure 10 shows the concrete operations flow chart according to the data communication method of the hub of embodiment seven of the present utility model.
Embodiment
Below with reference to the accompanying drawings and in conjunction with the embodiments, describe the utility model in detail.
Fig. 1 shows the network structure according to the data communication system of the utility model embodiment.As shown in Figure 1, comprise hub 10 and at least one optical communication equipment 20 in this system, can carry out data retransmission by hub between the optical communication equipment.Carry out communication by infrared ray between hub 10 and the optical communication equipment 20.Hub and each optical communication equipment all have unique address.
Embodiment one
As shown in Figure 2, the hub 10 among above-mentioned Fig. 1 comprises: infrared transmission module 102, processing module 104 and infrared receiving module 106, wherein:
Infrared transmission module 102 is used for using infrared emitting to allow to send instruction, wherein, it is the current address that is allowed to the first optical communication equipment of forwarding data that this permission sends the destination address of carrying in the instruction, so that only the first optical communication equipment responds this permission transmission instruction;
Infrared receiving module 104 is used for the data retransmission instruction of receiving infrared-ray form, wherein, this data retransmission instruction is that the first optical communication equipment is in the situation that has data to transmit, send for above-mentioned permission that instruction launches, the destination address of carrying in this data retransmission instruction is the second optical communication equipment;
The data that the needs that the data retransmission instruction that processing module 106 is used for that infrared receiving module 104 is received comprises are transmitted are modulated, and use infrared emitting to the second optical communication equipment by infrared transmission module 102.
Hub among the utility model embodiment, send permission to the first optical communication equipment and send instruction, expression allows it to send data now, the first optical communication equipment will send instruction for this permission when the data that need forwarding are arranged, carry the data retransmission instruction of the data that need forwarding to the hub emission, then hub second optical communication equipment that after receiving this data retransmission instruction, the data retransmission that receives will be forwarded to needs, thereby, hub and between the optical communication equipment of terminal, can use infrared ray to carry out communication, can not the cloth netting twine at some, maybe can not use in the complex electromagnetic environment of wireless network, terminal hub by employing the utility model embodiment has been realized the optical communication between the equipment, can solve the problem of difficult wiring and electromagnetic interference, and shorten the duration widely, saved cost.
In actual implementation process, infrared transmission module can be realized that by infrared transmitting tube infrared receiving module can be realized by infrared receiving tube.In addition, optical communication equipment in system has many (at least two), when the distribution of optical communication equipment is larger, in order to guarantee that all optical communication equipments can both receive the infrared signal that hub sends, and the infrared signal that all optical communication equipments send can both be received by hub, can increase at hub the quantity of infrared transmission module and infrared receiving module, namely, infrared transmission module on the hub and infrared receiving module all can have at least one, each infrared transmission module and an infrared receiving module pairing work.
For example, Fig. 3 and Fig. 4 are the quantity of the optical communication equipment system layout figure during less than 255.When the quantity of optical communication equipment during more than 255, the address of optical communication equipment should be used two or more.Among Fig. 3 and Fig. 4, optical communication equipment XX represents that the address of this optical communication equipment is XX.
Only have a pair of infrared transmitting tube and infrared receiving tube on the hub among Fig. 3.Two pairs of infrared transmitting tubes and infrared receiving tube are arranged on the hub among Fig. 4, lay respectively at the both sides of hub, can carry out communication with the optical communication equipment that is positioned at both sides respectively.Need in Fig. 3 and Fig. 4 to guarantee that the infrared signal that hub sends will can allow all optical communication equipments all receive, and the infrared signal that all optical communication equipments send is wanted to allow hub receive.Many during to infrared transmitting tube and infrared receiving tube when having on the hub, the range of signal of each infrared receiving tube can not intersect (overlapping) each other.
Optical communication equipment is not having data to need to transmit, perhaps after the data that will need by the data retransmission instruction to transmit all have been transmitted to hub, optical communication equipment will send END instruction to the hub emission, represents oneself not have the data that data need to be transmitted or needs are transmitted to be sent.Then, among Fig. 2, infrared receiving module 106 in the hub 10 can also be used for receive the transmission END instruction of the first optical communication equipment emission, and wherein, this transmission END instruction is used to indicate the data that data that the first optical communication equipment need to transmit have been sent or have not needed to transmit.
When the optical communication equipment that carries out communication with hub in the system has at least two (for example in system as shown in Figure 3 and Figure 4), hub needs to allow to send instruction and transmit its data to each optical communication equipment emission successively, therefore, among Fig. 2, infrared transmission module 102 in the hub 10 also is used for after infrared receiving module 106 receives the transmission END instruction, again allow to send instruction (when allowing to send instruction to this optical communication equipment emission to next optical communication equipment emission, this optical communication equipment is just as above-mentioned the first optical communication equipment), until allow to send instruction to all optical communication equipment emissions.
Embodiment two
As shown in Figure 5, for the emission that realizes allowing to send instruction, reception and the forwarding data of data retransmission instruction, processing module 104 can comprise: single-chip microcomputer 1042, oscillator 1044 and modulation amplifying circuit 1046, wherein:
Single-chip microcomputer 1042 is used for generating permission and sends instruction, and is input to modulation amplifying circuit 1046 after the permission that will the generate transmission instruction serialization; The data retransmission instruction that demodulation reduction infrared receiving module 106 receives, and be input to modulation amplifying circuit 1046 after the data that the needs that comprise in this data retransmission instruction are transmitted and destination address (for example being the address of the second optical communication equipment) serialization; And, the transmission END instruction that demodulation reduction infrared receiving module 106 receives, and according to this transmission END instruction, indication infrared transmission module 102 allows to send instruction to next optical communication equipment emission again;
Oscillator 1044, being used for generated frequency is the carrier wave of 38KHz;
Modulation amplifying circuit 1046, the permission that is used for serial that will input sends instruction and is modulated to the carrier wave that oscillator 1044 generates, and launches by infrared transmission module 102; The above-mentioned data of need transmitting of the serial of input and destination address (for example being the address of the second optical communication equipment) are modulated on the carrier wave that oscillator 1044 generates, and launch by infrared transmission module 102, so that only the address is that the second optical communication equipment of this destination address is preserved the above-mentioned data transmitted of needing.
Because the problem of ultrared emission angle and infrared external reflection, near may making equipment also receives the infrared signal of this first optical communication equipment emission, thereby cause misoperation, like this, before the data serializing that the needs that single-chip microcomputer 1042 comprises in the data retransmission instruction are transmitted, need also to determine first that the destination address of carrying in this data retransmission instruction is the address of oneself, perhaps, single-chip microcomputer 1042 needed also to determine first that the destination address of carrying in the transmission END instruction that the demodulation reduction obtains was the address of oneself before indication infrared transmission module 102 allows to send instruction to the emission of next optical communication equipment again.Thereby, determine that the infrared signal that receives sends to oneself.
Obviously, as shown in Figure 5, also include the DC power supply 108 that is used to other modules that operating voltage is provided in the hub 10.
Embodiment three
Hub in above-described embodiment one and two is when carrying out data communication with optical communication equipment, and the operating process that hub is carried out may further comprise the steps as shown in Figure 6:
Step S602 uses infrared emitting to allow to send instruction, and wherein, it is the current address that is allowed to the first optical communication equipment of forwarding data that this permission sends the destination address of carrying in the instruction, so that only the response of the first optical communication equipment allows to send instruction;
The first optical communication equipment receives this permission and sends after the instruction, can judge this permission transmission instruction by destination address wherein and send to oneself, then, in the situation that the data that need forwarding are arranged, these data communication devices that need to transmit are crossed one or more data retransmission instructions be transmitted to hub with ultrared form.
Step S604, the data retransmission instruction of receiving infrared-ray form, wherein, this data retransmission instruction be the first optical communication equipment in the situation that has data to transmit, send for above-mentioned permission that instruction launches;
Just carry the data that the first optical communication equipment need to be transmitted in these data retransmission instructions.
Step S606 modulates the data that the needs that comprise in the data retransmission instruction that receives are transmitted, and uses infrared emitting to the second indicated optical communication equipment of the destination address in the data retransmission instruction.
Can determine the optical communication equipment (being called the second optical communication equipment) that data need to be forwarded to by the destination address of carrying in the data retransmission instruction, afterwards, hub just can be given the second optical communication equipment with the data retransmission from the first optical communication equipment, thereby adopts infrared ray to realize the forwarding of the data between the optical communication equipment.
Among the utility model embodiment, hub sends to the first optical communication equipment and allows to send instruction, expression allows it to send data now, the first optical communication equipment will send instruction for this permission when the data that need forwarding are arranged, carry the data retransmission instruction of the data that need forwarding to the hub emission, then hub second optical communication equipment that after receiving this data retransmission instruction, the data retransmission that receives will be forwarded to needs, thereby, hub and between the optical communication equipment of terminal, can use infrared ray to carry out communication, can not the cloth netting twine at some, maybe can not use in the complex electromagnetic environment of wireless network, terminal hub by employing the utility model embodiment has been realized the optical communication between the equipment, can solve the problem of difficult wiring and electromagnetic interference, and shorten the duration widely, saved cost.
When reality is implemented, optical communication equipment in the system often has many, as shown in Figure 3 and Figure 4, like this, send in order to allow each optical communication equipment in the system can both finish in an orderly manner data, hub needs each optical communication equipment in the polling system successively: send to an optical communication equipment and allow to send instruction (being step S602), expression allows this optical communication equipment forwarding data now; Send data retransmission instruction (being step S604) that instruction sends afterwards for this permission receiving this optical communication equipment, the data retransmission that the needs that comprise in the data retransmission instruction are transmitted is gone out; Next continue again to allow to send instruction to the emission of next optical communication equipment, the like until the complete all optical communication equipments of poll.If needed, hub can continue the poll that starts anew, and constantly repeats the process of poll.
When practical application, the first optical communication equipment may be after receiving permission transmission instruction, oneself do not need to find the data transmitted, at this moment, the first optical communication equipment can send END instruction to the hub emission, being used to indicate oneself does not need the data transmitted, like this after step S602, hub may receive the transmission END instruction of the first optical communication equipment emission, then hub just knows that the first optical communication equipment does not have data to transmit, will allow to send instruction to next optical communication equipment emission, repeat above-mentioned steps S602~S606.
The first optical communication equipment is having data to need to transmit, and, the data communication device that will need to transmit is crossed after the data retransmission instruction is sent, equally also can send END instruction to the hub emission, the data that are used to indicate the needs forwarding of oneself are sent, like this, receive the transmission END instruction of the first optical communication equipment emission, like this after step S604, hub can receive the transmission END instruction of the first optical communication equipment emission, then hub has been sent with regard to knowing the data that the first optical communication equipment will need to transmit, and will allow to send instruction to next optical communication equipment emission, repeats above-mentioned steps S602~S606.
Embodiment four
In the present embodiment, the optical communication equipment in the system has continuous address, for example, 0x00,0x01 .....
Fig. 7 shows the concrete operations flow chart according to the data communication method of the hub of embodiment four of the present utility model, may further comprise the steps:
Step S702, HUB send and allow to send instruction; For example, current transmission is optical communication equipment i (this moment, this equipment was the first optical communication equipment);
The form of instruction that can pre-defined both sides' communication, for example, as shown in table 1.
Table 1
Destination address Source address Operational order Operating data Check code
In the table 1, destination address: the address that receive the equipment of instruction;
Source address: the address that sends the equipment of instruction;
Operational order: having indicated the action type of this instruction, can be to allow transmission, data retransmission, transmission end etc.;
Operating data: the data that and instruction is relevant;
Check code: destination address, source address, operational order and operating data sum, get rear 4.
Wherein, the length of operational order and operating data can define as required.
For all optical communication equipments of poll, hub can begin to send from the address of minimum: 0x00, and at this moment, the destination address that allows to send in the instruction is 0x00, and source address is the address of HUB, and operational order sends for allowing, and operating data can be sky.
In step S702, what suppose current transmission is that the address of optical communication equipment i is 0xi, and the destination address that then allows to send in the instruction this moment is 0xi, and source address is the address of HUB, and operational order sends for allowing, and operating data can be sky.
After the indicated optical communication equipment of destination address receives this permission transmission instruction, it is identical with the address of this equipment to judge the address of carrying in this instruction, determine that then this instruction sends to oneself, in the situation that has data to transmit, data, source address and the destination addresses etc. that needs will be transmitted send by infrared transmitting tube with the form of packet.
Step S702 is corresponding to the step S604 among Fig. 6.
Step S704, HUB wait for to receive infrared data, judge whether infrared receiving tube has received infrared data, if do not receive, then return step S704, continue wait, if received, and execution in step S706 then;
Step S706~S708, hub is after the infrared signal that has received complete optical communication equipment transmission, decoding restores corresponding content (comprising destination address, source address, operational order, operating data and check code) through single-chip microcomputer, judge whether check code wherein is correct, if incorrect, execution in step S710 then, if correct, execution in step S712 then;
Step S710 removes the data that all receive, and returns step S702 again to optical communication equipment i transmission permission transmission instruction;
Step S712, carrying out instruction judges, whether the value of the operational order that obtains by reduction can be judged is to send END instruction, if, then enter step S714, if not, illustrate that then the instruction that receives is the data retransmission instruction, the data that expression optical communication equipment i need to transmit are sent, and enter step S716;
In the data retransmission instruction, source address is the address of optical communication equipment i, and destination address is the address of the optical communication equipment of receive data, the data of operating data for needing to transmit; Send in the END instruction, source address is the address of optical communication equipment i, and destination address is the address of HUB, and operating data can be sky.
Step S714, HUB adds destination address after 1, returns step S702, again sends to allow to send instruction.Like this, just can be from the minimum of address, send to each optical communication equipment one by one and allow to send instruction, be polled to the optical communication equipment of address maximum after, can also be again from the optical communication equipment of address minimum, again one by one poll, constantly circulation.
The data serializing that step S716, HUB will need to transmit is delivered to later on modulation amplifying circuit, launches through infrared transmitting tube after being modulated at it on the carrier wave of 38KHz again.
In step S716, the source address in the packet that HUB sends is the address of optical communication equipment i, and destination address is the address (for example being the second optical communication equipment) of the optical communication equipment of receive data.
Step S704-S706-S708-S716 is corresponding to the step S604-S606 among Fig. 6.
Obviously, hub also can begin from the address of maximum to send, and receives each time to send after the END instruction, and destination address is subtracted 1, thereby realizes all optical communication equipments of poll; Can realize according to predetermined algorithm the poll of all optical communication equipments, the utility model is not done restriction to this yet.
Embodiment five
As shown in Figure 8, the optical communication equipment 20 among above-mentioned Fig. 1 comprises: infrared transceiver module 202 and modulation control module 204, wherein:
The permission that infrared transceiver module 202 is used for receiving the infrared ray form of hub emission sends instruction (form of this instruction can referring to table 1);
Modulation control module 204 is used for judging that permission that infrared transceiver module 202 receives sends the whether address of this optical communication equipment of destination address that instruction carries, if, the data that then need to transmit this optical communication equipment are modulated, and indication infrared transceiver module 202 uses infrared rays to transmit instruction (form can referring to table 1) to the hub transmitting data, wherein, carry the above-mentioned data that need forwarding in the data retransmission instruction.
In reality was implemented, the source address of data retransmission instruction was the address of this optical communication equipment, and destination address is the address of the data optical communication equipment (for example being called the second optical communication equipment) that will be forwarded to.
Like this, optical communication equipment sends instruction in the permission that is receiving HUB emission, and determines that this instruction sends to oneself, and when the data that need to transmit are also arranged oneself, the data communication device of needs forwarding will be crossed the data retransmission instruction issue and go out.
After the data that needs are transmitted have been sent, optical communication equipment need to be informed hub, thereby infrared transceiver module 202 can use infrared ray to send END instruction to the hub emission, the destination address of wherein, carrying in this transmission END instruction is the address of hub.
In addition, after receiving the permission transmission instruction of issuing oneself, if find oneself not have data to need to transmit, optical communication equipment also needs to inform hub, thereby, when the destination address that modulation control module 204 is carried in the permission transmission instruction of judging reception is the address of this optical communication equipment, and in the situation of the data that do not need to transmit, infrared transceiver module 202 can send END instruction to the hub emission, the destination address of wherein, carrying in this transmission END instruction is the address of hub.
Optical communication equipment can compare the destination address that comprises in the control command of receiving and the address of this optical communication equipment, to determine whether to issue the data of this optical communication equipment.
In actual implementation process, the modulation control module can comprise single-chip microcomputer, modulation amplifying circuit and for generation of the oscillator of the carrier wave of 38KHz.Infrared transceiver module can be delivered in the single-chip microcomputer after receiving permission transmission instruction, carry out the demodulation reduction by single-chip microcomputer, judge whether destination address wherein is the address of this optical communication equipment, if continue then to judge whether this optical communication equipment has data to need to transmit, if having, after the data that then will need to transmit are packaged into the packet parallel series, deliver to modulation amplifying circuit, by modulation amplifying circuit it is modulated on the carrier wave of 38KHz, launch by infrared transceiver module; Single-chip microcomputer is being judged after this optical communication equipment does not have data to need to transmit or needs are transmitted data all have been sent, after can generating transmission END instruction parallel series, deliver to modulation amplifying circuit, modulation amplifying circuit is modulated to it on carrier wave of 38KHz, launches by infrared transceiver module.
Embodiment six
The data communication method of the optical communication equipment in above-described embodiment five as shown in Figure 9, may further comprise the steps:
Step S802, the permission that receives the infrared ray form of hub emission sends instruction;
Step S804 judge to allow sends the whether address of oneself of the destination address of carrying in the instruction;
Step S806 if then modulate the data that needs are transmitted the address of oneself, and uses infrared ray to transmit instruction (form can referring to table 1) to the hub transmitting data, wherein, carries the above-mentioned data transmitted of needing in the data retransmission instruction.
After the data that will need to transmit all are sent, namely after step S806, optical communication equipment can use infrared ray to send END instruction to the hub emission, wherein, the destination address of carrying in this transmission END instruction is the address of hub, and the data of transmitting for the needs of informing hub oneself all have been sent.
In addition, the address of oneself if in step S806, judge, but oneself does not need the data of forwarding, at this moment, optical communication equipment also can send END instruction to the hub emission, wherein, the destination address of carrying in this transmission END instruction is the address of hub, is used for informing that hub oneself does not have data to need to transmit.
Embodiment seven
Figure 10 shows the concrete operations flow process according to the data communication method of the optical communication equipment of embodiment seven of the present utility model, may further comprise the steps:
Step S1002, after single-chip microcomputer started, optical communication equipment was in the state of the data of waiting for control command and preparing to send, and judges whether to receive infrared data, if, then enter step S1004, if not, then return step S1002, continue to wait for;
Step S1004~S1006 receives after the complete instruction of tape verifying code, and whether the check code in the decision instruction is correct, if correct, then enters step S1010, if incorrect, then enters step S1008;
Step S1008 empties the data of reception, and returns step S1002, continues to get back to " wait for and receive infrared data " state, waits for new infrared data;
Step S1010, determine whether to issue the control command of this optical communication equipment, judge namely whether the destination address that comprises in the control command is identical with the address of this optical communication equipment, if identical, then enter step S1012, if not identical, think the control command that is not to issue this optical communication equipment, then return step S1008;
Step S1012 judges whether this control command is to allow to send instruction, if allow to send instruction, then enters step S1016, if not, then enter step S1014;
Can judge by the value of the operational order in the instruction.
Step S1014 preserves source address, and carries out corresponding operation according to data type and data immediately;
Step S1016, whether oneself have data need transmit, if there are data to need to transmit, then enter step S1020 if judging, if do not have, then enter step S1018;
Step S1018, illustrating does not have data to send or data are sent, and then emission sends END instruction, and the destination address of carrying in this instruction is the address of HUB;
Step S1020 sends this data by the data retransmission instruction.
Hub in the utility model above-described embodiment and optical communication equipment can be used in the average data communication system of communication data amount less than 400 bps.
From above description, can find out, the utility model the above embodiments have realized following technique effect: hub sends to the first optical communication equipment and allows to send instruction, expression allows it to send data now, the first optical communication equipment will send instruction for this permission when the data that need forwarding are arranged, carry the data retransmission instruction of the data that need forwarding to the hub emission, then hub second optical communication equipment that after receiving this data retransmission instruction, the data retransmission that receives will be forwarded to needs, thereby, hub and between the optical communication equipment of terminal, can use infrared ray to carry out communication, can not the cloth netting twine at some, maybe can not use in the complex electromagnetic environment of wireless network, terminal hub by employing the utility model embodiment has been realized the optical communication between the equipment, can solve the problem of difficult wiring and electromagnetic interference, and shorten the duration widely, saved cost.
The above is preferred embodiment of the present utility model only, is not limited to the utility model, and for a person skilled in the art, the utility model can have various modifications and variations.All within spirit of the present utility model and principle, any modification of doing, be equal to replacement, improvement etc., all should be included within the protection range of the present utility model.

Claims (5)

1. a hub is characterized in that, comprising: infrared transmission module, processing module and infrared receiving module, wherein:
Described infrared transmission module, be connected with described processing module, be used for using infrared emitting to allow to send instruction, wherein, it is the current address that is allowed to the first optical communication equipment of forwarding data that described permission sends the destination address of carrying in the instruction, so that only described the first optical communication equipment responds described permission transmission instruction, each optical communication equipment has an address;
Described infrared receiving module, be connected with described processing module, be used for the data retransmission instruction of receiving infrared-ray form, wherein, described data retransmission instruction be described the first optical communication equipment in the situation that has data to transmit, send for described permission that instruction launches;
Described processing module, the data that the needs that are used for that described data retransmission instruction is comprised are transmitted are modulated, and use infrared emitting to the second indicated optical communication equipment of destination address in the described data retransmission instruction by described infrared transmission module.
2. hub according to claim 1, it is characterized in that, described infrared receiving module also is used for receiving the transmission END instruction of described the first optical communication equipment emission, wherein, described transmission END instruction is used to indicate the data that data that described the first optical communication equipment need to transmit have been sent or have not needed to transmit.
3. hub according to claim 2, it is characterized in that, described infrared transmission module also is used at least when the optical communication equipment that carries out communication with described hub has two, after described infrared receiving module receives the transmission END instruction, again allow to send instruction to next optical communication equipment emission, until allow to send instruction to all optical communication equipment emissions.
4. hub according to claim 2 is characterized in that, described processing module comprises:
Single-chip microcomputer is connected with described infrared receiving module, is used for generating allowing to send instruction, and is input to modulation amplifying circuit after the permission that will the generate transmission instruction serialization; The data retransmission instruction that described infrared receiving module receives is reduced in demodulation, and is input to described modulation amplifying circuit after the data that the needs that comprise in the described data retransmission instruction are transmitted and the destination address serialization; And the transmission END instruction that described infrared receiving module receives is reduced in demodulation, and sends END instruction according to this, indicates described infrared transmission module again to allow to send instruction to next optical communication equipment emission;
Oscillator, being used for generated frequency is the carrier wave of 38KHz; And
Described modulation amplifying circuit is connected with described single-chip microcomputer, described oscillator and the infrared transmission module of being connected, and the permission that is used for serial that will input sends instruction and is modulated to described carrier wave, and launches by described infrared transmission module; Data and destination address that the needs of the serial of input are transmitted are modulated on the described carrier wave, and launch by described infrared transmission module, so that only the address be that the second optical communication equipment of this destination address is preserved the described data that need forwarding.
5. an optical communication equipment is characterized in that, comprising: infrared transceiver module and modulation control module, wherein:
Described infrared transceiver module, the permission that is used for the infrared ray form of reception hub emission sends instruction;
Described modulation control module, be connected with described infrared transceiver module, be used for judging that described permission sends the whether address of this optical communication equipment of destination address that instruction carries, if, the data that then need to send this optical communication equipment are modulated, and indicate described infrared transceiver module to use infrared ray to described hub transmitting data, wherein, carry the described data that need forwarding in the described data.
CN 201120570051 2011-12-30 2011-12-30 Hub and optical communication device Expired - Lifetime CN202652448U (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN 201120570051 CN202652448U (en) 2011-12-30 2011-12-30 Hub and optical communication device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN 201120570051 CN202652448U (en) 2011-12-30 2011-12-30 Hub and optical communication device

Publications (1)

Publication Number Publication Date
CN202652448U true CN202652448U (en) 2013-01-02

Family

ID=47421468

Family Applications (1)

Application Number Title Priority Date Filing Date
CN 201120570051 Expired - Lifetime CN202652448U (en) 2011-12-30 2011-12-30 Hub and optical communication device

Country Status (1)

Country Link
CN (1) CN202652448U (en)

Similar Documents

Publication Publication Date Title
CN102771060B (en) Recover to transmit the method for failed frame for the wireless communication system based on multi-user's multiple-input and multiple-output
CN103973522B (en) Smart home system and its monitoring method
CN104917586A (en) Verification method, device and system of transmitted data
CN111817826A (en) Side link information transmission method, terminal and control node
CN105045116A (en) Information feedback method and intelligent household controller
CN104735274A (en) Learning type universal infrared remote control method based on cloud platform and smart phone
CN103226889A (en) Domestic appliance intelligent control system based on Bluetooth infrared conversion
US20220338219A1 (en) Data transmission method and apparatus
CN103188020A (en) Concentrator, optical communication device and data communication method
WO2012003733A1 (en) Wireless debugging method and device for single board
CN202652448U (en) Hub and optical communication device
KR101413630B1 (en) Wireless power transfer network and wireless power transfer method
CN103035116A (en) Method and device for conversion between audio signal and infrared remote control signal
CN102917370B (en) Method, device and system for determining corresponding near-end unit of far-end unit and far-end unit
KR101425433B1 (en) Wireless power transfer network and wireless power transfer method
CN202818528U (en) Switch and optical communication device
JP2005269169A (en) Data distribution control system using infrared ray, data distribution apparatus, its program and its data distribution system
CN204244245U (en) A kind of optical communication equipment
CN103441931A (en) Message sending method and device
CN104798388B (en) Feedback method, sending node and the receiving node of data packet reception state
CN108616294A (en) A kind of wireless power supply system and its communication system and method
US20170195172A1 (en) Assembly of electronic devices intended to be connected to at least one computer network and method of transferring digital data in this assembly
CN202488481U (en) Router and optical communication device
CN208079061U (en) A kind of radio transmitting receiving device for means of transports electrical equipments such as automobile high ferros
CN103684595B (en) Visible light communication system

Legal Events

Date Code Title Description
C14 Grant of patent or utility model
GR01 Patent grant
CX01 Expiry of patent term
CX01 Expiry of patent term

Granted publication date: 20130102