CN103095594A - Router and optical communication equipment and data communication method - Google Patents

Router and optical communication equipment and data communication method Download PDF

Info

Publication number
CN103095594A
CN103095594A CN2011103493863A CN201110349386A CN103095594A CN 103095594 A CN103095594 A CN 103095594A CN 2011103493863 A CN2011103493863 A CN 2011103493863A CN 201110349386 A CN201110349386 A CN 201110349386A CN 103095594 A CN103095594 A CN 103095594A
Authority
CN
China
Prior art keywords
data
router
optical communication
target
packet
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.)
Pending
Application number
CN2011103493863A
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 CN2011103493863A priority Critical patent/CN103095594A/en
Publication of CN103095594A publication Critical patent/CN103095594A/en
Pending legal-status Critical Current

Links

Images

Abstract

The invention discloses a router, optical communication equipment and a data communication method. The router comprises an Ethernet interface, a processing module and an infrared sending module, wherein the Ethernet interface is used for receiving a message sent through Ethernet, load of the receiving message contains a goal identity (ID), the processing module is used for modulating data in the load and obtaining a modulated data package after the goal ID is judged not to be an ID of the router and a broadcast ID, and the infrared sending module is used for using the data package after being modulated by infrared ray emission so that an optical communication equipment processing package identified by the goal ID can be obtained. Each kind of the optical communication equipment has one ID. The router, the optical communication equipment and the data communication method can achieve optical communication between equipment, the problems of wiring difficulty and electromagnetic interference can be solved, and cost is saved greatly.

Description

Router, optical communication equipment and data communication method
Technical field
The present invention relates to the communications field, more specifically, relate to a kind of router, optical communication equipment and data communication method.
Background technology
Data communication technology combines computer and communication line and equipment, realized the communication between people and computer, computer and 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.The remote of computer is controlled in real time and the items such as remote collection of data is worked, 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, switch, PC, come transmission of electric signals to carry out data communication with netting twine, perhaps, adopt wireless mode to carry out data communication.But in some can not be arranged netting twine or can not use the complex electromagnetic environment of wireless network, the data communication between equipment will be difficult to realize.
Summary of the invention
In view of this, main purpose of the present invention is to provide a kind of router, optical communication equipment and data communication method, can solve exist in prior art in some can not be arranged netting twine or can not use the complex electromagnetic environment of wireless network, the problem that the data communication between equipment be difficult to realize.
For achieving the above object, technical scheme of the present invention is achieved in that
On the one hand, provide a kind of router, having comprised: Ethernet interface, be used for receiving the message that sends by Ethernet, wherein, include Target id in the load of message; Processing module is used for the data in load being modulated the packet after being modulated after judging the ID and broadcasting ID that Target id is not this router; Infrared sending module be used for to use the packet after the infrared emitting modulation, so that the optical communication equipment handle packet that identifies of Target id only, wherein, each optical communication equipment has an ID.
On the other hand, also provide a kind of optical communication equipment, having comprised: transceiver module, be used for the packet that receiving router sends with ultrared form, wherein, include in packet: Target id, source ID, operational order, operating data and check code; Judge module is used for judging whether the Target id that packet carries is the ID of this optical communication equipment; Executive Module is used for when judgment result is that of judge module is the ID of this optical communication equipment, according to the instruction of operating data executable operations.
Another aspect also provides a kind of data communication method, comprising: receive the message that sends by Ethernet, wherein, include Target id in the load of message; After judging the ID and broadcasting ID that Target id is not this router, the data in load are modulated the packet after being modulated; Use the packet after the infrared emitting modulation, so that at least one optical communication equipment handle packet of identifying of Target id only, wherein, each optical communication equipment has an ID.
Another aspect also provides a kind of data communication method, comprising: the packet that receiving router sends with ultrared form wherein, includes in packet: Target id, source ID, operational order, operating data and check code; Judge whether the Target id that carries in packet is the ID of this optical communication equipment; Judgment result is that when being the ID of this optical communication equipment, according to the instruction of operating data executable operations.
technique effect of the present invention: the router in the embodiment of the present invention, receive message from Ethernet after, at first judge whether the Target id that comprises in the load of message is self ID or broadcasting ID, determine be not after, be about to go out by infrared emission after the data adjustment in load, and after optical communication equipment receives, can determine whether to issue oneself according to Target id wherein, thereby can use infrared ray to carry out data communication between router and optical communication equipment, can not the cloth netting twine at some, maybe can not use in the complex electromagnetic environment of wireless network, end has been realized optical communication between equipment by the router that adopts the embodiment of the present invention, can solve the problem of difficult wiring and electromagnetic interference, and saved widely cost.
Description of drawings
Accompanying drawing described herein is used to provide a further understanding of the present invention, consists of the application's a part, and illustrative examples of the present invention and explanation thereof are used for explaining the present invention, do not consist of improper restriction of the present invention.In the accompanying drawings:
Fig. 1 shows the network structure according to the data communication system of the embodiment of the present invention;
Fig. 2 shows the structural representation according to the router of the embodiment of the present invention one;
Fig. 3 shows the structural representation according to the router of the embodiment of the present invention two;
Fig. 4 shows the structural representation according to the optical communication equipment of the embodiment of the present invention three;
Fig. 5 shows the flow chart according to the data communication method of the router of the embodiment of the present invention four;
Fig. 6 shows the concrete process chart according to the data communication method of the router of the embodiment of the present invention five;
Fig. 7 shows the flow chart according to the data communication method of the optical communication equipment of the embodiment of the present invention six.
Embodiment
Below with reference to the accompanying drawings and in conjunction with the embodiments, describe the present invention in detail.
Fig. 1 shows the network structure according to the data communication system of the embodiment of the present invention, as shown in Figure 1, this system has comprised at least one router one 0 and at least one optical communication equipment 20, each router all is connected in Ethernet, the message that sends by Ethernet (such as the IP message etc.) can be transmitted to corresponding optical communication equipment, also can carry out corresponding operation according to the message that receives.Carry out communication by infrared ray between router one 0 and optical communication equipment 20.
Embodiment one
The structure of the router in Fig. 1 comprises as shown in Figure 2: Ethernet interface 102, processing module 104 and infrared sending module 106, and the function of each functional module is as follows:
Ethernet interface 102 is used for receiving the message that sends by Ethernet (receiving message from computer or other equipment by Ethernet), wherein, include Target id in the load of this message (Payload), this Target id has namely been indicated the optical communication equipment that receives the data in load;
Processing module 104 is used for the data in load being modulated the packet after being modulated after judging the ID and broadcasting ID that above-mentioned Target id is not this router; Router itself sets in advance a unique ID (abbreviation of Identity, sign), and broadcasting ID is used to indicate the router that receives this message all need carry out content in the load of this message;
Infrared sending module 106 is used for using the packet after the infrared emitting modulation, so that only the optical communication equipment that identifies of Target id is processed this packet, wherein, each optical communication equipment has an ID.
When reality was implemented, infrared sending module 106 can be realized by infrared transmitting tube.
router in the embodiment of the present invention, receive message from Ethernet after, at first judge whether the Target id that comprises in the load of message is self ID or broadcasting ID, determine be not after, be about to go out by infrared emission after the data adjustment in load, and after optical communication equipment receives, can determine whether to issue oneself according to Target id wherein, thereby can use infrared ray to carry out data communication between router and optical communication equipment, can not the cloth netting twine at some, maybe can not use in the complex electromagnetic environment of wireless network, end has been realized optical communication between equipment by the router that adopts the embodiment of the present invention, can solve the problem of difficult wiring and electromagnetic interference, and saved widely cost.
The embodiment of the present invention can be applied in the data communication system of average communication data amount less than 400 bps.
Embodiment two
In order to realize the modulation of the data in load, as shown in Figure 3, the processing module 104 in the router one 0 in embodiment one further can also comprise:
Single-chip microcomputer 1042, be used for judging after Target id that message carries is not the ID and broadcasting ID of this router, the data that need in message to forward are outputed to modulation amplifying circuit in the mode of serial, wherein, include in the data that need to forward: Target id, source ID, operational order, operating data and check code; Wherein, check code can be the least-significant byte after Target id, source ID, operational order and operating data addition, and the present invention does not do restriction to this;
Oscillator 1044 is the carrier wave of 38KHz for generation of frequency; And
Modulation amplifying circuit 1046, the Data Modulation that forwards for the needs with serial is the carrier wave of 38KHz to frequency, the packet after being modulated.
Like this, the data (being the data in load) that need in the message that just Ethernet interface can be received to forward are gone out by infrared emission after being modulated on the carrier wave of 38KHz.
In addition, single-chip microcomputer 1042 can also be used for judging after Target id that message carries is the ID or broadcasting ID of this router, according to the instruction of operating data executable operations.If Target id is ID or the broadcasting ID of this router, illustrate that this message sends to this router, therefore, router will be carried out corresponding operating according to the related content in load.
Obviously, when reality is implemented, also need equipment DC power supply 108 in router, think that miscellaneous part provides work required voltage.
Use the router in embodiment one and two, can realize the data communication between Ethernet and infrared optical communication equipment.
Embodiment three
The structure of the optical communication equipment in Fig. 1 comprises as shown in Figure 4 as lower module:
Transceiver module 202 is used for the packet that receiving router 10 sends with ultrared form, wherein, includes in packet: Target id, source ID, operational order, operating data and check code;
Judge module 204, whether the Target id that carries for the packet that judges transceiver module 202 receptions is the ID of this optical communication equipment;
Executive Module 206 is used for carrying out the corresponding operating instruction according to the operating data in packet when judgment result is that of judge module 204 is the ID of this optical communication equipment.
Whether optical communication equipment receiving the router of embodiment one in two forward the packet that comes by infrared ray after, can be that own ID judges whether needs are carried out the operational order of being correlated with according to the Target id that wherein comprises.
In addition, Executive Module 206 can also be used for (not illustrating and not being to issue oneself) when judgment result is that of judge module 204 is the ID of this optical communication equipment, abandon the packet that receives.
Optical communication equipment in embodiment three can be any equipment that can receiving infrared-ray signal, such as LED lighting device, television set etc.
Embodiment four
The data communication method of the router in embodiment one and two as shown in Figure 5, comprises the following steps:
Step S502 receives the message that sends by Ethernet, wherein, includes Target id in the load of message;
Step S504 after judging the ID and broadcasting ID that Target id is not this router, modulates the packet after being modulated to the data in load;
Router itself sets in advance a unique ID, and broadcasting ID is used to indicate the router that receives this message all need carry out content in the load of this message;
Step S506 uses the packet after the infrared emitting modulation, so that at least one optical communication equipment handle packet of identifying of Target id only, wherein, each optical communication equipment has an ID.
router in the embodiment of the present invention, receive message from Ethernet after, at first judge whether the Target id that comprises in the load of message is self ID or broadcasting ID, determine be not after, be about to go out by infrared emission after the data adjustment in load, and after optical communication equipment receives, can determine whether to issue oneself according to Target id wherein, thereby can use infrared ray to carry out data communication between router and optical communication equipment, can not the cloth netting twine at some, maybe can not use in the complex electromagnetic environment of wireless network, end has been realized optical communication between equipment by the router that adopts the embodiment of the present invention, can solve the problem of difficult wiring and electromagnetic interference, and saved widely cost.
Embodiment five
Router in embodiment one and two carries out the concrete handling process of data communication, as shown in Figure 6, comprises the following steps:
Step S602, after scm software started, the system of router was in the state of the data of waiting for message and preparing to send, after Ethernet interface receives the message that sends by Ethernet, meeting execution in step S604 does not return to step S602 if receive message, continues to wait for;
As shown in table 1, mainly comprise header and load two parts in the message that receives, wherein, the data in load further comprise again: Target id, source ID, operational order, operating data, check code.
Table 1
Figure BDA0000106135670000081
In table 1, Target id represents to receive the ID of the equipment (comprising router and optical communication equipment) of the data in load;
Source ID represents to send the ID of the equipment of this message;
Operational order and operating data represent to wish the operation of equipment execution and relevant data;
Check code is the summation of Target id, source ID, operational order and operating data, gets least-significant byte.
Step S604 after receiving complete message, judges whether check code is correct, if correct, enters step S606, if incorrect, abandons this message, returns to step S602 and continues to get back to the state of waiting for message, waits for new message;
Step S606, single-chip microcomputer judge whether the Target id in load is the ID of this router, if, enter step S610, if not, step S608 entered;
Each router has a unique ID, and each optical communication equipment also has a unique ID.
Step S608, single-chip microcomputer continue to judge whether Target id is broadcasting ID, if, enter step S610, if not, step S612 entered;
Step S606~S608 judges whether this message is the process of issuing the message of this router, if Target id is ID or the broadcasting ID of this router, this router is issued in explanation; If Target id is neither the ID of this router neither broadcast ID, explanation is not issued oneself, need to be transmitted to corresponding optical communication equipment.
Step S610, single-chip microcomputer carry out corresponding operation according to the operational order in load and operating data immediately, for example, according to the IP address in operating data, the IP address of oneself etc. are set.
Step S612, single-chip microcomputer output to modulation amplifying circuit after with the data serial in the load of message, and modulation amplifying circuit uses the carrier wave of the 38KHz that oscillator generates, serial data is modulated on the carrier wave of this 38KHz, and is launched by infrared transmitting tube.
Embodiment six
The data communication method of the optical communication equipment in embodiment three as shown in Figure 7, comprises the following steps:
Step S702, the packet that receiving router sends with ultrared form wherein, includes in this packet: Target id, source ID, operational order, operating data and check code;
Step S704 judges whether the Target id that carries in packet is the ID of this optical communication equipment, if, enter step S706, if not, step S708 entered;
Step S706 is according to the instruction of operating data executable operations.
Step S708 abandons this packet.
In some can not the cloth netting twine or can not use the complex electromagnetic environment of wireless network, in the average data communication system of communication data amount less than 400 bps, the router of the end employing embodiment of the present invention is realized the optical communication between equipment, can solve the problem of difficult wiring and electromagnetic interference, and save greatly cost.
As can be seen from the above description, the above embodiments of the present invention have realized following technique effect:
router in the embodiment of the present invention, receive message from Ethernet after, at first judge whether the Target id that comprises in the load of message is self ID or broadcasting ID, determine be not after, be about to go out by infrared emission after the data adjustment in load, and after optical communication equipment receives, can determine whether to issue oneself according to Target id wherein, thereby can use infrared ray to carry out data communication between router and optical communication equipment, can not the cloth netting twine at some, maybe can not use in the complex electromagnetic environment of wireless network, end has been realized optical communication between equipment by the router that adopts the embodiment of the present invention, can solve the problem of difficult wiring and electromagnetic interference, and saved widely cost.
obviously, those skilled in the art should be understood that, above-mentioned each module of the present invention or each step can realize with general calculation element, they can concentrate on single calculation element, perhaps be distributed on the network that a plurality of calculation elements form, alternatively, they can be realized with the executable program code of calculation element, thereby, they can be stored in storage device and be carried out by calculation element, perhaps they are made into respectively each integrated circuit modules, perhaps a plurality of modules in them or step being made into the single integrated circuit module realizes.Like this, the present invention is not restricted to any specific hardware and software combination.
The above is only the preferred embodiments of the present invention, is not limited to the present invention, and for a person skilled in the art, the present invention can have various modifications and variations.Within the spirit and principles in the present invention all, any modification of doing, be equal to replacement, improvement etc., within all should being included in protection scope of the present invention.

Claims (10)

1. a router, is characterized in that, comprising:
Ethernet interface is used for receiving the message that sends by Ethernet, wherein, includes Target id in the load of described message;
Processing module is used for the data in described load being modulated the packet after being modulated after judging the ID and broadcasting ID that described Target id is not this router;
Infrared sending module be used for to use the packet after the described modulation of infrared emitting, so that the optical communication equipment processing said data bag that identifies of described Target id only, wherein, each optical communication equipment has an ID.
2. router according to claim 1, is characterized in that, described processing module comprises:
Single-chip microcomputer, be used for judging after Target id that described message carries is not the ID and broadcasting ID of this router, the data that need in described message to forward are outputed to modulation amplifying circuit in the mode of serial, wherein, include in the described data that need to forward: Target id, source ID, operational order, operating data and check code;
Oscillator is the carrier wave of 38KHz for generation of frequency; And
Described modulation amplifying circuit, the described Data Modulation that needs to forward that is used for serial is the carrier wave of 38KHz to described frequency, obtains the packet after described modulation.
3. router according to claim 2, is characterized in that, described single-chip microcomputer also is used for carrying out described operational order judging after Target id that described message carries is the ID or broadcasting ID of this router according to described operating data.
4. an optical communication equipment, is characterized in that, comprising:
Transceiver module is used for the packet that receiving router sends with ultrared form, wherein, includes in described packet: Target id, source ID, operational order, operating data and check code;
Judge module is used for judging whether the Target id that described packet carries is the ID of this optical communication equipment;
Executive Module is used for carrying out described operational order according to described operating data when judgment result is that of described judge module is the ID of this optical communication equipment.
5. optical communication equipment according to claim 4, is characterized in that, described Executive Module also is used for abandoning described packet when judgment result is that of described judge module is not the ID of this optical communication equipment.
6. a data communication method, is characterized in that, comprising:
The message that reception sends by Ethernet wherein, includes Target id in the load of described message;
After judging the ID and broadcasting ID that described Target id is not this router, the data in described load are modulated the packet after being modulated;
Use the packet after the described modulation of infrared emitting, so that at least one optical communication equipment processing said data bag of identifying of described Target id only, wherein, each optical communication equipment has an ID.
7. method according to claim 6, is characterized in that, the data in described load are modulated, and the packet after being modulated comprises:
With the data serializing that needs in described message to forward, wherein, include in the described data that need to forward: Target id, source ID, operational order, operating data and check code;
Be on the carrier wave of 38KHz to described frequency with the described Data Modulation that need to forward of serial, obtain the packet after described modulation.
8. method according to claim 7, is characterized in that, also comprises:
The Target id that carries in judging described message is after the ID or broadcasting ID of this router, carries out described operational order according to described operating data.
9. a data communication method, is characterized in that, comprising:
The packet that receiving router sends with ultrared form wherein, includes in described packet: Target id, source ID, operational order, operating data and check code;
Judge whether the Target id that carries in described packet is the ID of this optical communication equipment;
Judgment result is that when being the ID of this optical communication equipment, carrying out described operational order according to described operating data.
10. method according to claim 9, is characterized in that, also comprises:
When judgment result is that the ID that is not this optical communication equipment, abandon described packet.
CN2011103493863A 2011-11-07 2011-11-07 Router and optical communication equipment and data communication method Pending CN103095594A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2011103493863A CN103095594A (en) 2011-11-07 2011-11-07 Router and optical communication equipment and data communication method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2011103493863A CN103095594A (en) 2011-11-07 2011-11-07 Router and optical communication equipment and data communication method

Publications (1)

Publication Number Publication Date
CN103095594A true CN103095594A (en) 2013-05-08

Family

ID=48207747

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2011103493863A Pending CN103095594A (en) 2011-11-07 2011-11-07 Router and optical communication equipment and data communication method

Country Status (1)

Country Link
CN (1) CN103095594A (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1567397A (en) * 2003-06-19 2005-01-19 奇思股份有限公司 System for electrical installation remote control and status monitoring
CN101283257A (en) * 2005-08-31 2008-10-08 L·凯茨 Method and apparatus for detecting severity of water leaks
CN101848173A (en) * 2010-03-17 2010-09-29 南京理工大学 Home gateway

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1567397A (en) * 2003-06-19 2005-01-19 奇思股份有限公司 System for electrical installation remote control and status monitoring
CN101283257A (en) * 2005-08-31 2008-10-08 L·凯茨 Method and apparatus for detecting severity of water leaks
CN101848173A (en) * 2010-03-17 2010-09-29 南京理工大学 Home gateway

Similar Documents

Publication Publication Date Title
JP3017925B2 (en) Mobile communication terminal and mobile communication method
KR101368166B1 (en) Re-connection method in peripheral interface using visible light communication
US20170054500A1 (en) Visible Light Communications VLC Related Device and Method
CN110798297A (en) Side link information transmission method and terminal
CA2539468A1 (en) System and method for asynchronous wireless services using reverse service schema generation
US20170085392A1 (en) System, method and apparatus for data communication
EP1469693A3 (en) Communications control system, communications control method, service control station, and communications control station
CN103684529A (en) Signal transmission method and device
CN111817826A (en) Side link information transmission method, terminal and control node
CN105578383A (en) 2.4G-based networking communication system and communication method
CN101631127A (en) File transfer method and clients
DE50304368D1 (en) METHOD AND SYSTEM FOR TRANSMITTING DATA VIA SWITCHABLE DATA NETWORKS
CN102300075B (en) Using the method for WOL video conference terminal holding video conference, terminal and system
CN205068378U (en) Multi -functional wireless serial ports device
Béchadergue et al. An industrial view on LiFi challenges and future
CN102316083B (en) Method and device for realizing multicast service in Internet protocol (IP) network
Schmid et al. From sound to sight: Using audio processing to enable visible light communication
CN108684021A (en) A kind of Bluetooth Low Energy communication means and device
CN104811502A (en) Data transmission method and electronic equipment
CN202488481U (en) Router and optical communication device
CN103095594A (en) Router and optical communication equipment and data communication method
CN103188020B (en) Hub, optical communication equipment and data communication method
CN202652448U (en) Hub and optical communication device
Vu et al. MQTT protocol for connected OCC small cells
US9673902B2 (en) Visible light communication system

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20130508

RJ01 Rejection of invention patent application after publication