CN105337981A - Relay device, update method and method for performing data interaction between devices - Google Patents

Relay device, update method and method for performing data interaction between devices Download PDF

Info

Publication number
CN105337981A
CN105337981A CN201510799457.8A CN201510799457A CN105337981A CN 105337981 A CN105337981 A CN 105337981A CN 201510799457 A CN201510799457 A CN 201510799457A CN 105337981 A CN105337981 A CN 105337981A
Authority
CN
China
Prior art keywords
equipment
communication
communication protocol
beacon information
data
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
CN201510799457.8A
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.)
Shanghai Xinchu Integrated Circuit Co Ltd
Original Assignee
Shanghai Xinchu Integrated Circuit 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 Shanghai Xinchu Integrated Circuit Co Ltd filed Critical Shanghai Xinchu Integrated Circuit Co Ltd
Priority to CN201510799457.8A priority Critical patent/CN105337981A/en
Publication of CN105337981A publication Critical patent/CN105337981A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/08Protocols for interworking; Protocol conversion

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Communication Control (AREA)

Abstract

The invention provides a relay device, an update method and a method for performing data interaction between devices based on different communication protocols. The relay device comprises a storage module, a receiving module, a microprocessor, a protocol conversion module and a transmitting module, wherein the storage module stores labeling information of a first device, labeling information of a second device, a first communication protocol corresponding to the labeling information of the first device, and a second communication protocol corresponding to the labeling information of the second device; and the receiving module receives data of the first device and invokes a corresponding communication protocol in the storage module by virtue of the microprocessor, and transmitting the protocol to the second device by virtue of the transmitting module after conversion treatment by the protocol conversion module. An intermediate device stores various communication protocols used by internet-of-things devices, and can enable different communication protocols to interconvert, and thus the internet-of-things devices with different communication protocols communicate with one another.

Description

A kind of relay, update method and equipment room carry out the method for data interaction
Technical field
The present invention relates to technical field of communication equipment, particularly relate to a kind of method that relay and equipment room carry out data interaction.
Background technology
Along with the development of information technology, sensing technology and the communication technology, technology of Internet of things is more and more ripe, technology of Internet of things has been applied in the every aspect in life, such as Smart Home, intelligent transportation, Intelligent logistics, reading intelligent agriculture, intelligent industrial and intelligent hospital etc.But while Internet of Things offers convenience to our life, itself still also exists some problems.
Equipment in Internet of Things is undertaken communicating by wired or wireless form thus realizes the connection of each equipment in Internet of Things, but an at present not unified communication protocol in Internet of Things, the communication protocol of oneself is being developed in the manufacture commercial city of each internet of things equipment, the communication protocol of the internet of things equipment of manufacturer's design of each internet of things equipment may be different, if the internet of things equipment that is from different internet of things equipment manufacturer is identical with the communication protocol that other equipment carry out communicating, then can communicate between these internet of things equipments, if different from the communication protocol that other equipment carry out communicating from the internet of things equipment of different internet of things equipment manufacturer, then can not communicate between these internet of things equipments.According to open systems interconnection reference model (OSI, OpenSystemInterconnectionReferenceModel), for communication protocol and procotol, generally form by seven layers, be respectively physical layer, data link layer, network layer, transport layer, session layer, presentation layer and application layer.For general communication protocol, most importantly physical layer, data link layer and presentation layer, physical layer is based upon on the basis of physical mediums of communication, as the interface of system and communication media, be used for realizing bit stream transparent between Data Link entity, data framing is mainly carried out current control by the function of data link layer, the structure of the Frame that different communication protocol is formed is different, the function of presentation layer is formatted data, so that for application program provides interface, also comprise the format conversion of data, compression & decompression, the functions such as the encryption and decryption of data.Different communication protocol is all different at physical layer, data link layer and presentation layer, that is the realization within the physical layer of different communication protocol, all different from the interface of external system and communication media, data structure in data link layer and presentation layer is also different, so can not directly communicate for the internet of things equipment utilizing different communication protocol to carry out communicating.
We are for the refrigerator in Smart Home and air-conditioning below, illustrate Internet of Things respectively utilize the equipment of different communication protocol not communicate from wired communication protocol and wireless communication protocol two aspects.If refrigerator and air-conditioning are all from vendor A, carry out communicating used communication protocol for wired communication protocol _ 1 with the external world, this communication protocol on a physical layer be embodied as serial peripheral agreement (SPI), so refrigerator can directly communicate with air-conditioning; If refrigerator is from vendor A, carry out communicating used communication protocol for wired communication protocol _ 1 with the external world, this communication protocol on a physical layer be embodied as serial peripheral agreement (SPI), air-conditioning is from manufacturer B, carry out communicating used communication protocol for wired communication protocol _ 2 with the external world, this communication protocol on a physical layer be embodied as universal asynchronous receiving-transmitting communication protocol (UART).When air-conditioning communicates with refrigerator, because refrigerator is different with the communication protocol that air-conditioning uses, namely these two kinds of communication protocols are all different in the realization of physical layer, data link layer and presentation layer, so can not communicate therebetween.
Along with the development of Internet of Things, increasing equipment utilization wireless communication protocol communicates.If refrigerator is from vendor A, the wireless communication protocol used with other devices communicatings is bluetooth, air-conditioning is from manufacturer B, the wireless communication protocol used with other devices communicatings is ZigBee, the wireless communication protocol used due to refrigerator and air-conditioning is different, namely these two kinds of wireless communication protocols are different with the implementation of presentation layer etc. in physical layer, data link layer, so the equipment utilizing different wireless communication agreement to carry out communicating directly can not carry out communication.
Even if the device A coming from distinct device provider is bluetooth with the communication protocol that equipment B and other equipment carry out communicating, for device A and equipment B, although realize in strict accordance with Bluetooth protocol in physical layer and data link layer, but other layers except physical layer and data link layer such as presentation layer and application layer etc. are all vendors dictate, such as send and accept the form of packet and concrete parameter definition etc., so device A and equipment B still can not communicate.The data format of device A transmission and acceptance when communicating as shown in Figure 1A, in Figure 1A, header file is determined by Bluetooth protocol, header file comprises Bluetooth protocol orders accordingly, it is the parameter of 4 same widths after header file, here the mark code of the 1st Ge Shi equipment vendors is supposed, 3 next has been 3 parameters of a certain operation, be respectively parameter 1 (as arranged the wind speed of air-conditioning), parameter 2 (as arranged the timing of air-conditioning) and parameter 3 (as arranged the temperature of air-conditioning), the data format of equipment B transmission and acceptance when communicating as shown in Figure 1B, in accompanying drawing 1B, header file is determined by Bluetooth protocol, header file comprises Bluetooth protocol orders accordingly, it is the parameter of 4 same widths after header file, here the mark code of the 1st Ge Shi equipment vendors is supposed, 3 next has been 3 parameters of a certain operation, be respectively parameter 2 (as arranged the timing of air-conditioning), parameter 3 (as arranged the temperature of air-conditioning) and parameter 1 (as arranged the wind speed of air-conditioning).If device A will communicate with equipment B, device A sends data Data_A to equipment B, the parsing header file that equipment B energy is correct, but due to device A different with the data format of equipment B (order of identification of the manufacturer code and parameter is all different), so equipment B can not correctly analyzing device A send data, equipment B also just can not perform correct operation.
Summary of the invention
For above-mentioned technical problem, this application provides a kind of relay, be applied in the data interaction carried out between distinct device in Internet of Things, described equipment comprises the first equipment of initiating communication and the second equipment of this first device request communication, and described relay comprises:
Memory module, stores the beacon information of described first equipment and the beacon information of described second equipment, and
First communication protocol corresponding with the beacon information of described first equipment, the second communication agreement corresponding with the beacon information of described second equipment;
Receiver module, receives the communication request of described first equipment, the beacon information of described first equipment, the beacon information of described second equipment and transmission data;
Microprocessor, be connected with described receiver module and described memory module respectively, and from described memory module, obtaining described first communication protocol according to the beacon information of described first equipment received, the beacon information according to described second equipment received obtains described second communication agreement from described memory module;
Protocol conversion module, being connected with described microprocessor, is maybe the transmission data with described first communication protocol by the transmission data transformations with described second communication agreement in order to be the transmission data with described second communication agreement by the transmission data transformations with described first communication protocol under described microprocessor-based control;
Sending module, be connected with described microprocessor, in order to the transmission data after protocol conversion module process and/or described microprocessor are sent to described first equipment or described second equipment to the feedback obtained after the described communication request process of described first equipment or described second equipment;
Wherein, the transmission data transformations with described first communication protocol is after the transmission data with described second communication agreement by protocol conversion module described in described Microprocessor S3C44B0X, utilizes described sending module that the transmission data with described second communication agreement are sent to described second equipment.
Preferably, described first equipment comprises at least one carries out transceiving data equipment based on described first communication protocol, and/or described second equipment comprises at least one carries out transceiving data equipment based on described second communication agreement.
Preferably, described receiver module receives the communication request of described first equipment, and described communication request is passed to described microprocessor, described microprocessor is made feedback to described communication request and is fed back through described sending module be sent to described first equipment by described.
Preferably, described first equipment can also comprise multiple equipment carrying out transceiving data based on different communication association, and/or described second equipment comprises multiple equipment carrying out transceiving data based on different communication protocol.
Preferably, after described transmission data are sent to described second equipment, described second equipment makes response.
Preferably, described memory module is nonvolatile memory.
Present invention also offers a kind of method that equipment room based on different communication protocol carries out data interaction, based on described relay, described method comprises:
The beacon information of the first equipment described in pre-stored and the beacon information of described second equipment in described memory module, and first communication protocol corresponding with the beacon information of described first equipment, the second communication agreement corresponding with the beacon information of described second equipment;
After described first equipment and described relay establish a communications link, send the beacon information of described first equipment and the beacon information extremely described receiver module of described second equipment;
Receiver module, receives the communication request of described first equipment, the beacon information of described first equipment, the beacon information of described second equipment and the first transmission data;
Described microprocessor obtains described first communication protocol according to the beacon information of described first equipment received from described memory module, and after obtaining described second communication agreement according to the beacon information of described second equipment received from described memory module, the first transmission data transformations with described first communication protocol is the first transmission data with described second communication agreement by protocol conversion module described in this Microprocessor S3C44B0X;
The first transmission data with described second communication agreement are sent to described second equipment by described sending module.
Preferably, before the communication protocol of described first transmission data is second communication agreement from described first communication Protocol Conversion by described microprocessor, described microprocessor receives the communication request of described first equipment and makes feedback, and feds back through described sending module be sent to described first equipment by described.
Preferably, also comprise:
After described second equipment and described relay establish a communications link, send the beacon information of described second equipment and the beacon information extremely described receiver module of described first equipment;
Receiver module, receives the communication request of described second equipment, the beacon information of described second equipment, the beacon information of described first equipment and the second transmission data;
Described microprocessor obtains described second communication agreement according to the beacon information of described second equipment received from described memory module, and after obtaining described first communication protocol according to the beacon information of described first equipment received from described memory module, the second transmission data transformations with described second communication agreement is the second transmission data with described first communication protocol by protocol conversion module described in described Microprocessor S3C44B0X;
Described second transmission data are sent to described first equipment by described sending module.
Preferably, described microprocessor by have described second communication agreement second transmission data transformations be have described first communication protocol second transmission data before, receive the communication request of described second equipment and make feedback, and feding back through described sending module be sent to described second equipment by described.
Present invention also offers a kind of update method of relay, described method comprises:
Some equipment is added if new in the Internet of Things at described relay place, and described equipment communicate with external device needed for communication protocol be present in the memory module of described relay, in described memory module, increase the new device numbering of described equipment that adds and the corresponding relation of described device numbering and described communication protocol.
Preferably, described method also comprises:
Described communication protocol needed for communicating with external device when the new described equipment added is not present in described relay, increase in described memory module new add the device numbering of described equipment, the described communication protocol needed for described equipment and described device numbering and described communication protocol corresponding relation, upgrade new described communication protocol needed for described equipment of adding and the transformational relation between other communication protocol in described protocol conversion module simultaneously.
Preferably, described method also comprises:
When storing the first communication protocol in described memory module and described in total at least two the first equipment utilizations, the first communication protocol communicates, after removing described first equipment, remove described first equipment removed in described memory module device numbering and the corresponding relation of this device numbering and described first communication protocol.
Preferably, described method also comprises:
When storing second communication agreement in described memory module and only have that described in second equipment utilization, second communication agreement communicates, after removing described second equipment, remove the corresponding relation of the device numbering of the second equipment described in described memory module, described second communication agreement and this device numbering and described second communication agreement.
In sum, owing to have employed technique scheme, present patent application describes the relay and method that different communication protocol in Internet of Things carries out communicating, its beneficial effect for: described relay stores the various communication protocols used by internet of things equipment, and different communication protocol can be made mutually to change, thus the internet of things equipment with different communication protocol is communicated; No matter be add new communication protocol and corresponding equipment thereof, or delete existing equipment in Internet of Things, by upgrading described relay and realizing, and the stable operation of described relay can both be ensure that, applied widely.
Accompanying drawing explanation
Figure 1A is that in prior art, device A sends and accepts the form schematic diagram of data;
Figure 1B is that in prior art, equipment B sends and accepts the form schematic diagram of data;
Fig. 2 is the structural representation of a kind of relay of the present invention;
Fig. 3 is the using state structural representation one of a kind of relay of the present invention;
Fig. 4 is the flow chart that a kind of equipment room based on different communication protocol of the present invention carries out the method for data interaction;
Fig. 5 is the embody rule flow chart one that a kind of equipment room based on different communication protocol of the present invention carries out the method for data interaction;
Fig. 6 is the data format structures figure that device A sends when communicating and accepts;
Fig. 7 is the data format structures figure that equipment B sends when communicating and accepts;
Fig. 8 is the embody rule flowchart 2 that a kind of equipment room based on different communication protocol of the present invention carries out the method for data interaction;
Fig. 9 is the using state structural representation two of a kind of device that continues of the present invention;
Figure 10 is the embody rule flow chart 3 that a kind of equipment room based on different communication protocol of the present invention carries out the method for data interaction.
Embodiment
Below in conjunction with accompanying drawing, the specific embodiment of the present invention is further described.
Embodiment one
As shown in Figure 2, the invention provides the relay 01 that different communication protocol in a kind of Internet of Things carries out communicating, comprise the microprocessor 2 and connected and store converting system 3.Wherein, described microprocessor 2 is for controlling the work of described storage converting system 3 and the process to data.
For an Internet of Things, it comprises the second equipment that the first equipment and described first equipment carry out asking to communicate, wherein said first equipment comprises at least one carries out transceiving data equipment based on described first communication protocol, and/or described second equipment comprises at least one carries out transceiving data equipment based on described second communication agreement.Described first equipment can also comprise multiple equipment carrying out transceiving data based on different communication association, and/or described second equipment comprises multiple equipment carrying out transceiving data based on different communication protocol.
Described storage converting system 3 stores communication protocol all in described first equipment and described second equipment, i.e. communication protocol _ 1, communication protocol _ 2 ..., communication protocol _ T T kind different communication protocol altogether, and T>0, and the conversion between different communication protocol can be realized.Communication protocol _ T (T >=1) is by the part that software algorithm realizes in certain communication protocol all levels, if the physics realization of certain communication protocol is identical with the physics realization of the communication protocol _ L (T >=L >=1) stored in this intermediate equipment be such as bluetooth, but software simulating part is different, although the equipment such as from different vendor all communicates by bluetooth, but software simulating part is different, so Here it is a kind of different communication protocol _ T; If physical layer, the data link layer of the realization of the physical layer of certain communication protocol, data link layer and communication protocol _ L (T >=L >=1) are all different, such as one is bluetooth one is ZigBee, and so this is also a kind of different communication protocol _ T.
Described storage converting system 3 comprises connected memory module 31 and a protocol conversion module 32.Described storage modular converter 31 stores communication protocol in communication protocol _ 1, communication protocol _ 2 ..., the common T of communication protocol _ T, and T>0.Described protocol conversion module 32 pieces is changed for the communication data come the transmission of described memory module 31, to complete the communication between different communication protocol.Because the communication protocol may used in Internet of Things has a lot, should be very large so be used for the capacity of the described memory module 31 storing these communication protocol _ T (T>0).Described memory module 31 can clash the general nonvolatile memory such as programmable read only memory (EEPROM) or flash chip (Flash) for charged, can be the novel nonvolatile memories such as phase transition storage (PCRAM), ferroelectric memory (FeRAM), magnetic storage (MRAM) and resistance-variable storing device (RRAM).
The corresponding relation of device numbering and communication protocol is store in described memory module 31, the communication protocol that just can judge corresponding to these two equipment according to device numbering after described relay 01 receives the device numbering that the equipment that will carry out communicating sends like this, the communication protocol being convenient to described relay 01 pair of data is changed.As shown in Figure 3, concrete corresponding table is as shown in table 1 for its using state schematic diagram:
The corresponding relation of table 1 communication protocol and device numbering
As can be seen from the above table, the equipment supposing to use in Internet of Things communication protocol M (M>0) has X (X>0) individual, and so the corresponding device numbering of this X equipment is respectively M_1, M_2 ..., M_X.
Described relay 01 also comprises receiver module 1 and a sending module 4.Described receiver module 1 receives the communication request of described first equipment, the beacon information of described first equipment, the communication request of described second equipment, the beacon information of described second equipment and transmission data; Described sending module 4 is connected with described microprocessor 2, in order to the transmission data after protocol conversion module process and/or described microprocessor are sent to described first equipment or described second equipment to the feedback obtained after the described communication request process of described first equipment or described second equipment.
In a kind of Internet of Things that the present embodiment provides, different communication protocol carries out the relay 01 communicated, by adding described relay 01 in Internet of Things, described relay 01 stores the various communication protocols used by internet of things equipment, and the data based on different communication protocol can be made to change, thus the internet of things equipment with different communication protocol is communicated, be stored in the communication protocol software simulating of described relay 01.
Embodiment two
As different communication protocol in a kind of Internet of Things that above-described embodiment provides carries out the relay 01 that communicates, the present embodiment proposes a kind of method upgraded described relay 01.
In an Internet of Things, because equipment is not unalterable, likely there is the situation upgrading or increase and decrease, in this case, with regard to needs, described relay 01 is upgraded, to ensure the proper communication of whole described Internet of Things.
When storing T kind communication protocol in described relay 01 altogether, if need to add new equipment some of the same race in described Internet of Things, and this equipment communicate with external device used by communication protocol exist in described memory module 31, so only need to add the new device numbering of interpolation equipment and the corresponding relation of communication protocol in described memory module 31; If need to add new equipment some of the same race in described Internet of Things, and this equipment communicate with external device used by communication protocol do not exist in described memory module 31, so just need the device numbering of communication protocol _ (T+1) that add in described memory module 31 used by this equipment and each corresponding with it new interpolation equipment, also need to upgrade the transformational relation of communication protocol in described protocol conversion module 32 _ between (T+1) and other communication protocol simultaneously.
When storing T kind communication protocol in described relay 01 altogether, for certain the communication protocol _ N (1≤N≤T) in Internet of Things, this communication protocol of X (X >=1) individual equipment utilization is had to communicate, when removing one in Internet of Things and utilizing communication protocol _ N to carry out the equipment communicated:
As X>1, only need to remove the corresponding relation of communication protocol _ N in described memory module 31 and this device numbering;
As X=1, while the corresponding relation of the communication protocol _ N removed in memory module 31 and this device numbering, also need to remove the communication protocol _ N in described memory module 31, and the transformational relation of communication protocol _ N in described protocol conversion module 32 and other communication protocol.
A kind of method that described relay 01 is upgraded, no matter be add new communication protocol and corresponding equipment thereof, or existing equipment in deletion Internet of Things, by upgrading described relay 01 and realize, and the stable operation of described relay 01 can both be ensure that.Thus can find out, described relay 01 adaptive faculty is strong, applied widely.
Embodiment three
A kind of relay proposed according to above-described embodiment and update method thereof, the present embodiment proposes a kind of method that equipment room based on different communication protocol carries out data interaction.
Equipment room based on different communication protocol carries out the method for data interaction, be included in the beacon information of the first equipment described in pre-stored in described memory module 31 and the beacon information of described second equipment, and first communication protocol corresponding with the beacon information of described first equipment, the second communication agreement corresponding with the beacon information of described second equipment;
After described first equipment and described relay 01 establish a communications link, send the beacon information extremely described receiver module of the beacon information of described first equipment, described second equipment;
Receiver module 1, receives the communication request of described first equipment, the beacon information of described first equipment, the beacon information of described second equipment and the first transmission data; The first transmission data now refer to data that send from the first equipment, that have the first communication protocol;
Described microprocessor 2 obtains described first communication protocol according to the beacon information of described first equipment received from described memory module 31, and after obtaining described second communication agreement according to the beacon information of described second equipment received from described memory module 31, this microprocessor 2 controls described protocol conversion module 32 and will have the first transmission data of the first communication protocol from being converted to the first transmission data with second communication agreement;
The first transmission data with second communication agreement are sent to described second equipment by described sending module 4;
Described second equipment makes certain response after receiving the first transmission data with second communication agreement.Described response can be, described second equipment is according to the first transmission data with second communication agreement, transmission has the second transmission data of second communication agreement accordingly to relay 01, relay is passed to the first equipment after more described second transmission data being converted to the second transmission data with the first communication protocol.In this way, although the first equipment is different with the communication protocol of the second equipment, also can communicate.
Wherein, described microprocessor 2 by have the first communication protocol first transmission data from be converted to have second communication agreement first transmission data before, described microprocessor 2 receives the communication request of described first equipment and makes feedback, and feds back through described sending module 4 be sent to described first equipment by described.
After described second equipment and described relay 01 establish a communications link, send the beacon information of described second equipment and the beacon information extremely described receiver module 1 of described first equipment;
Receiver module 1, receives the communication request of described second equipment, the beacon information of described second equipment, the beacon information of described first equipment and the second transmission data; The second transmission data now refer to data that send from the second equipment, that have second communication agreement;
Described microprocessor 2 obtains described second communication agreement according to the beacon information of described second equipment received from described memory module 31, and after obtaining described first communication protocol according to the beacon information of described first equipment received from described memory module 31, this microprocessor 2 controls described protocol conversion module 32 and the second transmission data with second communication agreement is converted to the first transmission data with the first communication protocol;
Described second transmission data are sent to described first equipment by described sending module 4;
Described first equipment makes certain response after receiving the second transmission data with the first communication protocol.Described response can be, described first equipment is according to the second transmission data with the first communication protocol, transmission has first of the first communication protocol accordingly and transfers data to relay 01, relay is passed to the second equipment after more described first transmission data being converted to the first transmission data with second communication agreement.
Wherein, described microprocessor 2 by have second communication agreement second transmission data from be converted to have the first communication protocol second transmission data before, receive the communication request of described second equipment and make feedback, and feding back through described sending module 4 be sent to described second equipment by described.
Specifically, as shown in Figure 4, a kind of communication means with the equipment room of different communication protocol, comprises step:
S1: equipment _ M_X sends communication request to described relay 01, and (described memory module 31 stores communication protocol _ M, and total X1 equipment under this agreement, wherein 1≤X≤X1), after the agreement obtaining described relay 01, send its device numbering and the device numbering that will carry out communicating to described relay 01;
S2: described relay 01 receive device numbering _ M_X that described equipment _ M_X sends and _ (described memory module 31 stores communication protocol _ N to N_Y, and total Y1 equipment under this agreement, wherein 1≤Y≤Y1), determine that the required communication protocol changed is into communication protocol _ M and _ N;
S3: equipment _ M_X sends communication data Data_M_X to relay 01;
S4: after relay 01 receives communication data Data_M_X, is converted to communication data Data_N_Y by communication Protocol Conversion module by communication data Data_M_X;
S5: communication data Data_N_Y is sent to equipment _ N_Y by relay 01;
S6: after equipment _ N_Y receives communication data Data_N_Y, makes certain response, sends communication data Data_N_Y ' to relay 01;
S7: communication data Data_N_Y ' is converted to communication data Data_M_X ' after receiving the communication data Data_N_Y ' of equipment _ N_Y transmission by relay 01;
S8: communication data Data_M_X ' is sent to equipment _ M_X by relay 01.
There is a communication means for the equipment room of different communication protocol, between the equipment solving different communication protocol, carry out the problem communicated, thus solve the problem that the internet of things equipment with different communication protocol can not carry out communicating.
Embodiment four
A kind of relay 01 proposed according to above-described embodiment and update method thereof, and there is the communication means of equipment room of different communication protocol accordingly, the present embodiment for the step of equipment _ 1_1 in Internet of Things with the equipment intercommunication of the application different communication protocol that communicates with of equipment _ T_D, as shown in Figure 5.
In Internet of Things, the communication process of equipment _ 1_1 and equipment _ T_D is specially:
S11: equipment _ 1_1 sends communication request to described relay 01, and after the agreement obtaining described relay 01, equipment _ 1_1 sends the numbering of this equipment and the device numbering that will carry out communicating to described relay 01;
S12: the device numbering that described relay 01 receives equipment _ 1_1 transmission is respectively 1_1 and T_D, according to the corresponding relation between device numbering and communication protocol, determines that the communication protocol that will change is communication protocol 1 and communication protocol D;
S13: equipment _ 1_1 sends communication data Data_1_1 to described relay 01;
S14: after described relay 01 receives communication data Data_1_1, by communication Protocol Conversion module, communication data _ 1_1 is converted to communication data Data_T_D;
S15: communication data Data_T_D is sent to equipment _ T_D by described relay 01;
S16: after equipment _ T_D receives communication data Data_T_D, makes certain response, sends communication data Data_T_D ' to described relay 01;
S17: communication data Data_T_D ' is converted to communication data Data_1_1 ' after receiving the communication data Data_T_D ' of equipment _ T_D transmission by described relay 01;
S18: communication data Data_1_1 ' is sent to equipment _ 1_1 by described relay 01.
For example the embody rule of bright the present invention in Internet of Things below.For the device A in a certain Internet of Things and equipment B, device A is from vendor A, equipment B is from manufacturer B, and the communication protocol physical layer that device A and equipment B and other devices communicatings use realizes being bluetooth, but both send not identical with the data format accepting data.The data format of device A transmission and acceptance when communicating as shown in Figure 6, the data format of equipment B transmission and acceptance when communicating as shown in Figure 7, therefore device A can not directly communicate with equipment B, utilize the method that the present invention proposes, we add relay 01 described in this Internet of Things, have the physical interface of Bluetooth communication protocol and ZigBee communication agreement in described relay 01, device A carries out the block diagram that communicates as shown in Figure 8 by relay 01 and equipment B:
S21: device A sends communication request to described relay 01, after obtaining the agreement of described relay 01, to the described device numbering Bluetooth_1_A of relay 01 transmitting apparatus A and the device numbering Bluetooth_2_B of equipment B;
S22: after described relay 01 receives device numbering, according to the relation between communication protocol and device numbering, determines that the communication protocol that will change is Bluetooth_1 and Bluetooth_2;
S23: device A sends communication data Data_Bluetooth_1_A to described relay 01, and the form of data as shown in Figure 6;
S24: after described relay 01 receives communication data Data_Bluetooth_1_A, by communication transfer interface module, communication data Data_Bluetooth_1_A is converted to communication data Data_Bluetooth_2_B, the form of data Data_Bluetooth_2_B as shown in Figure 7;
S25: described relay 01 sends communication data Data_Bluetooth_2_B to equipment B;
S26: equipment B makes certain response after receiving described communication data Data_Bluetooth_2_B, sends communication data Data_Bluetooth_2_B ' to relay 01;
S27: described communication data Data_Bluetooth_2_B ' is converted to communication data Data_Bluetooth_1_A ' after receiving the described communication data Data_Bluetooth_2_B ' of described equipment B transmission by described relay 01;
S28: Data_Bluetooth_1_A ' described in communication data is sent to described device A by described relay 01.
In this example, the communication protocol in described relay 01 and the corresponding relation of device numbering as shown in table 2 below:
The communication protocol of table 2 device A and equipment B and the corresponding relation of device numbering thereof
Communication protocol Device numbering
Bluetooth_1 Bluetooth_1_A
Bluetooth_2 Bluetooth_2_B
If add new equipment C in this Internet of Things, this equipment and external device communication protocol used of carrying out communicating exists in memory module 31, such as communication protocol Bluetooth_1, so we only need to update stored in the corresponding relation of communication protocol in memory module 31 and device numbering, as shown in table 3:
The corresponding relation of communication protocol and device numbering after equipment C is added in table 3 Internet of Things
If add new equipment D in this Internet of Things, the provider of this equipment D and device A, B, C is all not identical, equipment D communication protocol used does not exist in memory module 31, this communication protocol Bluetooth_3 is at the realization of physical layer and data link layer and Bluetooth_1, Bluetooth_2 is identical, but it is different by the part of software simulating in all protocol layers, therefore we need to upgrade communication protocol in memory module 31 and relation corresponding to device numbering, in memory module 31, add communication protocol Bluetooth_3 simultaneously, the transformational relation between Bluetooth_3 and Bluetooth_1 and Bluetooth_2 is upgraded in communication Protocol Conversion module 3.Relation between corresponding communication protocol and device numbering is as shown in table 4 below:
The corresponding relation of communication protocol and device numbering after equipment D is added in table 4 Internet of Things
If add new equipment E in this Internet of Things, the communication protocol physical layer that this equipment and other equipment carry out communicating is embodied as ZigBee_1, because not ZigBee_1 communication protocol in memory module 31, so we add communication protocol ZigBee_1 in memory module 31, upgrade communication protocol ZigBee_1 and other communication protocol Bluetooth_1 in communication Protocol Conversion module 3, transformational relation between Bluetooth_2, Bluetooth_3 simultaneously, upgrade the corresponding relation between communication protocol and device numbering, as shown in table 5:
The corresponding relation of communication protocol and device numbering after equipment E is added in table 5 Internet of Things
The structure chart communicated between equipment E and device A as shown in Figure 9, the step of communication as shown in Figure 10:
S31: device A sends communication request to described relay 01, after obtaining the agreement of described relay 01, to the described device numbering Bluetooth_1_A of relay 01 transmitting apparatus A and the device numbering ZigBee_1_E of equipment E;
S32: after described relay 01 receives device numbering, according to the relation between communication protocol and device numbering, determines that the communication protocol that will change is Bluetooth_1 and ZigBee_1;
S33: device A sends communication data Data_Bluetooth_1_A to described relay 01;
S34: after described relay 01 receives communication data Data_Bluetooth_1_A, by communication transfer interface module, communication data Data_Bluetooth_1_A is converted to communication data Data_ZigBee_1_E;
S35: described relay 01 sends communication data Data_ZigBee_1_E to equipment E;
S36: equipment E makes certain response after receiving communication data Data_ZigBee_1_E, sends communication data Data_ZigBee_1_E ';
S37: communication data Data_ZigBee_1_E ' is converted to communication data Data_Bluetooth_1_A ' after receiving the communication data Data_ZigBee_1_E ' of equipment E transmission by described relay 01;
S38: communication data Data_Bluetooth_1_A ' is sent to device A by described relay 01.
The foregoing is only preferred embodiment of the present invention; not thereby embodiments of the present invention and protection range is limited; to those skilled in the art; the equivalent replacement that all utilizations specification of the present invention and diagramatic content are made and the scheme that apparent change obtains should be recognized, all should be included in protection scope of the present invention.

Claims (14)

1. a relay, is characterized in that, is applied in the data interaction carried out between distinct device in Internet of Things, and described equipment comprises the first equipment of initiating communication and the second equipment of this first device request communication, and described relay comprises:
Memory module, stores the beacon information of described first equipment and the beacon information of described second equipment, and
First communication protocol corresponding with the beacon information of described first equipment, the second communication agreement corresponding with the beacon information of described second equipment;
Receiver module, receives the communication request of described first equipment, the communication request of described second equipment, the beacon information of described first equipment, the beacon information of described second equipment and transmission data;
Microprocessor, be connected with described receiver module and described memory module respectively, and the beacon information of described first equipment received according to described receiver module obtains described first communication protocol from described memory module, the beacon information of described second equipment received according to described receiver module obtains described second communication agreement from described memory module;
Protocol conversion module, being connected with described microprocessor, is maybe the transmission data with described first communication protocol by the transmission data transformations with described second communication agreement in order to be the transmission data with described second communication agreement by the transmission data transformations with described first communication protocol under described microprocessor-based control;
Sending module, be connected with described microprocessor, in order to the transmission data after protocol conversion module process and/or described microprocessor are sent to described first equipment or described second equipment to the feedback obtained after the described communication request process of described first equipment or described second equipment;
Wherein, the transmission data transformations with described first communication protocol is after the transmission data with described second communication agreement by protocol conversion module described in described Microprocessor S3C44B0X, utilizes described sending module that the transmission data with described second communication agreement are sent to described second equipment.
2. relay according to claim 1, it is characterized in that, described first equipment comprises at least one carries out transceiving data equipment based on described first communication protocol, and/or described second equipment comprises at least one carries out transceiving data equipment based on described second communication agreement.
3. relay according to claim 1, it is characterized in that, described receiver module receives the described communication request of described first equipment, and described communication request is passed to described microprocessor, described microprocessor is made feedback to described communication request and is fed back through described sending module be sent to described first equipment by described.
4. relay according to claim 2, it is characterized in that, described first equipment can also comprise multiple equipment carrying out transceiving data based on different communication association, and/or described second equipment comprises multiple equipment carrying out transceiving data based on different communication protocol.
5. relay according to claim 3, is characterized in that, after described transmission data are sent to described second equipment, described second equipment makes response.
6. relay according to claim 1, is characterized in that, described memory module is nonvolatile memory.
7. carry out a method for data interaction based on the equipment room of different communication protocol, it is characterized in that, described method comprises:
The beacon information of pre-stored first equipment and the beacon information of the second equipment in memory module, and first communication protocol corresponding with the beacon information of described first equipment, the second communication agreement corresponding with the beacon information of described second equipment;
After described first equipment and relay establish a communications link, send the beacon information of described first equipment, the beacon information and first of described second equipment transfers data to receiver module;
The communication request of described first equipment of described receiver module reception, the beacon information of described first equipment, the beacon information of described second equipment and first transmit data;
Microprocessor obtains described first communication protocol according to the beacon information of described first equipment received from described memory module, and after obtaining described second communication agreement according to the beacon information of described second equipment received from described memory module, the first transmission data transformations with described first communication protocol is the first transmission data with described second communication agreement by protocol conversion module described in described Microprocessor S3C44B0X;
The first transmission data with described second communication agreement are sent to described second equipment by sending module.
8. the equipment room based on different communication protocol according to claim 7 carries out the method for data interaction, it is characterized in that, described microprocessor by have described first communication protocol first transmission data transformations be have described second communication agreement first transmission data before, described microprocessor receives the communication request of described first equipment and makes feedback, and feds back through described sending module be sent to described first equipment by described.
9. the equipment room based on different communication protocol according to claim 7 carries out the method for data interaction, it is characterized in that, also comprises:
After described second equipment and described relay establish a communications link, send the beacon information of described second equipment and the beacon information extremely described receiver module of described first equipment;
Receiver module, receives the communication request of described second equipment, the beacon information of described second equipment, the beacon information of described first equipment and the second transmission data;
Described microprocessor obtains described second communication agreement according to the beacon information of described second equipment received from described memory module, and after obtaining described first communication protocol according to the beacon information of described first equipment received from described memory module, the second transmission data transformations with described second communication agreement is the second transmission data with described first communication protocol by protocol conversion module described in described Microprocessor S3C44B0X;
Described second transmission data are sent to described first equipment by described sending module.
10. the equipment room based on different communication protocol according to claim 9 carries out the method for data interaction, it is characterized in that, described microprocessor by have described second communication agreement second transmission data transformations be have described first communication protocol second transmission data before, receive the communication request of described second equipment and make feedback, and feding back through described sending module be sent to described second equipment by described.
The update method of 11. 1 kinds of relays, is characterized in that, described method comprises:
Some equipment is added if new in the Internet of Things at described relay place, and described equipment communicate with external device needed for communication protocol be present in the memory module of described relay, in described memory module, increase the new device numbering of described equipment that adds and the corresponding relation of this device numbering and described communication protocol.
The update method of 12. trunkings according to claim 11, is characterized in that, described method also comprises:
Described communication protocol needed for communicating with external device when the new described equipment added is not present in described relay, increase in described memory module new add the device numbering of described equipment, the described communication protocol needed for described equipment and this device numbering and described communication protocol corresponding relation, upgrade new described communication protocol needed for described equipment of adding and the transformational relation between other communication protocol in protocol conversion module simultaneously.
The update method of 13. trunkings according to claim 11, is characterized in that, described method also comprises:
When storing the first communication protocol in described memory module and described in total at least two the first equipment utilizations, the first communication protocol communicates, after removing described first equipment, remove described first equipment removed in described memory module device numbering and the corresponding relation of this device numbering and described first communication protocol.
The update method of 14. trunkings according to claim 13, is characterized in that, described method also comprises:
When storing second communication agreement in described memory module and only have that described in second equipment utilization, second communication agreement communicates, after removing described second equipment, remove the corresponding relation of the device numbering of the second equipment described in described memory module, described second communication agreement and this device numbering and described second communication agreement.
CN201510799457.8A 2015-11-18 2015-11-18 Relay device, update method and method for performing data interaction between devices Pending CN105337981A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510799457.8A CN105337981A (en) 2015-11-18 2015-11-18 Relay device, update method and method for performing data interaction between devices

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510799457.8A CN105337981A (en) 2015-11-18 2015-11-18 Relay device, update method and method for performing data interaction between devices

Publications (1)

Publication Number Publication Date
CN105337981A true CN105337981A (en) 2016-02-17

Family

ID=55288264

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510799457.8A Pending CN105337981A (en) 2015-11-18 2015-11-18 Relay device, update method and method for performing data interaction between devices

Country Status (1)

Country Link
CN (1) CN105337981A (en)

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106549863A (en) * 2016-10-27 2017-03-29 北京物联港科技发展有限公司 A kind of things-internet gateway, terminal and its protocol self-adapting method and apparatus
CN106657118A (en) * 2016-12-31 2017-05-10 杭州古北电子科技有限公司 Communication conversion method, conversion apparatus and conversion system
WO2019015038A1 (en) * 2017-07-20 2019-01-24 深圳市盛路物联通讯技术有限公司 Encryption control method and device for type-based uplink data of internet of things repeater
WO2019015041A1 (en) * 2017-07-19 2019-01-24 深圳市盛路物联通讯技术有限公司 Time division encryption method and device for data of internet of things repeater
WO2019019280A1 (en) * 2017-07-24 2019-01-31 深圳市盛路物联通讯技术有限公司 Method for internet of things terminal to encrypt data according to time periods, and apparatus
CN110995313A (en) * 2019-12-18 2020-04-10 协成科技股份有限公司 Enhanced data relay equipment
CN111277364A (en) * 2020-01-08 2020-06-12 中国电子科技集团公司第五十四研究所 Information forwarding method based on information identification code
CN112333193A (en) * 2020-11-06 2021-02-05 珠海格力电器股份有限公司 Automatic protocol updating method and system

Citations (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102045896A (en) * 2010-11-22 2011-05-04 中山爱科数字科技有限公司 Virtual Internet-of-things gateway system capable of realizing multiprotocol and network self-adapting
CN102137131A (en) * 2010-01-27 2011-07-27 广州盛华信息技术有限公司 System for realizing access of internet of things
CN102148863A (en) * 2011-01-27 2011-08-10 华为技术有限公司 Method and device for delivering M2M (machine to machine) service messages
CN202455395U (en) * 2012-03-06 2012-09-26 深圳市海鹏信电子股份有限公司 Large-scale intelligent management remote monitoring power supply distributor for data center
CN102769608A (en) * 2012-02-28 2012-11-07 重庆和航科技股份有限公司 Internet of things protocol conversion system and method
CN102802139A (en) * 2012-07-10 2012-11-28 无锡航天飞邻测控技术有限公司 Gateway data adapting system and method of Internet of Things
CN103297306A (en) * 2013-06-28 2013-09-11 王毅 Internet of Things system for agriculture
CN103905333A (en) * 2014-04-15 2014-07-02 广东未来信息技术有限公司 Internet of things multi-protocol access transform device and control method thereof
US20140372630A1 (en) * 2013-06-12 2014-12-18 International Business Machines Corporation Service oriented architecture service dependency determination
CN104506407A (en) * 2014-12-25 2015-04-08 南京因泰莱电器股份有限公司 Method for implementing serial port networking on basis of network transmission
CN104754749A (en) * 2015-03-17 2015-07-01 联想(北京)有限公司 Communication control method and central control device
CN104782059A (en) * 2012-12-07 2015-07-15 华为技术有限公司 Systems and methods for packet relaying
CN104823515A (en) * 2012-12-24 2015-08-05 三星电子株式会社 Method and system for communication between devices

Patent Citations (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102137131A (en) * 2010-01-27 2011-07-27 广州盛华信息技术有限公司 System for realizing access of internet of things
CN102045896A (en) * 2010-11-22 2011-05-04 中山爱科数字科技有限公司 Virtual Internet-of-things gateway system capable of realizing multiprotocol and network self-adapting
CN102148863A (en) * 2011-01-27 2011-08-10 华为技术有限公司 Method and device for delivering M2M (machine to machine) service messages
CN102769608A (en) * 2012-02-28 2012-11-07 重庆和航科技股份有限公司 Internet of things protocol conversion system and method
CN202455395U (en) * 2012-03-06 2012-09-26 深圳市海鹏信电子股份有限公司 Large-scale intelligent management remote monitoring power supply distributor for data center
CN102802139A (en) * 2012-07-10 2012-11-28 无锡航天飞邻测控技术有限公司 Gateway data adapting system and method of Internet of Things
CN104782059A (en) * 2012-12-07 2015-07-15 华为技术有限公司 Systems and methods for packet relaying
CN104823515A (en) * 2012-12-24 2015-08-05 三星电子株式会社 Method and system for communication between devices
US20140372630A1 (en) * 2013-06-12 2014-12-18 International Business Machines Corporation Service oriented architecture service dependency determination
CN103297306A (en) * 2013-06-28 2013-09-11 王毅 Internet of Things system for agriculture
CN103905333A (en) * 2014-04-15 2014-07-02 广东未来信息技术有限公司 Internet of things multi-protocol access transform device and control method thereof
CN104506407A (en) * 2014-12-25 2015-04-08 南京因泰莱电器股份有限公司 Method for implementing serial port networking on basis of network transmission
CN104754749A (en) * 2015-03-17 2015-07-01 联想(北京)有限公司 Communication control method and central control device

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106549863A (en) * 2016-10-27 2017-03-29 北京物联港科技发展有限公司 A kind of things-internet gateway, terminal and its protocol self-adapting method and apparatus
CN106549863B (en) * 2016-10-27 2019-06-21 北京物联港科技发展有限公司 A kind of things-internet gateway, terminal and its protocol self-adapting method and apparatus
CN106657118A (en) * 2016-12-31 2017-05-10 杭州古北电子科技有限公司 Communication conversion method, conversion apparatus and conversion system
WO2019015041A1 (en) * 2017-07-19 2019-01-24 深圳市盛路物联通讯技术有限公司 Time division encryption method and device for data of internet of things repeater
WO2019015038A1 (en) * 2017-07-20 2019-01-24 深圳市盛路物联通讯技术有限公司 Encryption control method and device for type-based uplink data of internet of things repeater
WO2019019280A1 (en) * 2017-07-24 2019-01-31 深圳市盛路物联通讯技术有限公司 Method for internet of things terminal to encrypt data according to time periods, and apparatus
CN110995313A (en) * 2019-12-18 2020-04-10 协成科技股份有限公司 Enhanced data relay equipment
CN111277364A (en) * 2020-01-08 2020-06-12 中国电子科技集团公司第五十四研究所 Information forwarding method based on information identification code
CN111277364B (en) * 2020-01-08 2022-03-22 中国电子科技集团公司第五十四研究所 Information forwarding method based on information identification code
CN112333193A (en) * 2020-11-06 2021-02-05 珠海格力电器股份有限公司 Automatic protocol updating method and system

Similar Documents

Publication Publication Date Title
CN105337981A (en) Relay device, update method and method for performing data interaction between devices
CN1949913B (en) Apparatus and method for communication scheduling
CN105723674B (en) For the dynamically method of binding head field specifier in Network Control Protocol
CN102297493B (en) Method and system for monitoring air conditioning units
CN104407599B (en) Portable intelligent home controller and intelligent home control system
CN107925618B (en) Node and method for directed acyclic graph network configuration
CN101099344A (en) Method for providing secure data transfer in a mesh network
CN102714829A (en) Electronic device and operating method thereof
CN102907049A (en) Specifying priority on a virtual station interface discovery and configuration protocol response
JP2003298588A (en) Home appliance networking system and method for controlling the same
CN105404258A (en) Intelligent household management method and platform
CN102457933A (en) Wireless network device, wireless network system and routing control method
CN102325322A (en) Multi-way access gateway device supporting wireless network and certification method
CN106506595A (en) Upgrade method based on point-to-point Internet of Things intelligent Community equipment
CN106688277A (en) Efficient centralized resource and schedule management in time slotted channel hopping networks
CN102665297B (en) Communication device and system as well as method of wireless cloud sensor network
CN103929377A (en) Wired network and wireless network combined dispatching method and system and related devices
CN102611710A (en) Data interaction method and data interaction system for scheduling master station and transformer substation based on MMS (Multimedia Messaging Service)
CN108431701A (en) Control method, control panel and the control system of smart home device
CN103117881A (en) Resource management system of Internet of Things
CN104301906A (en) Method for relay communication between gateways of wireless sensor network
CN103051558A (en) Traffic control method for near field communication software stack logical link layer
CN102065508B (en) Wireless bridge forwarding equipment and method
CN103098105A (en) Systems and methods for communicating among nodes of a wireless network
WO2015143709A1 (en) Network access method, rfid tag, electronic device, and control 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
RJ01 Rejection of invention patent application after publication

Application publication date: 20160217