CN105812444A - Method for making Internet-of-Things cloud gateway compatible with multiple protocols and Internet-of-Things cloud gateway - Google Patents

Method for making Internet-of-Things cloud gateway compatible with multiple protocols and Internet-of-Things cloud gateway Download PDF

Info

Publication number
CN105812444A
CN105812444A CN201410857091.0A CN201410857091A CN105812444A CN 105812444 A CN105812444 A CN 105812444A CN 201410857091 A CN201410857091 A CN 201410857091A CN 105812444 A CN105812444 A CN 105812444A
Authority
CN
China
Prior art keywords
communication protocol
internet
things cloud
cloud gateway
usb adapter
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
CN201410857091.0A
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.)
New Union Technology (shanghai) Co Ltd
Original Assignee
New Union Technology (shanghai) 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 New Union Technology (shanghai) Co Ltd filed Critical New Union Technology (shanghai) Co Ltd
Priority to CN201410857091.0A priority Critical patent/CN105812444A/en
Publication of CN105812444A publication Critical patent/CN105812444A/en
Pending legal-status Critical Current

Links

Landscapes

  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The invention relates to the communication field and discloses a method for making an Internet-of-Things cloud gateway compatible with multiple protocols and the Internet-of-Things cloud gateway. In the invention, the gateway sends a request identifying command to a USB adapter inserted into a USB interface via a communication protocol; if the gateway receives responses of the USB adapter to the request identifying command, the communication protocol supported by the USB adapter can be directly obtained; the communication protocol supported by the USB adapter is a communication protocol corresponding to the request identifying command; if the gateway does not receive the responses, the gateway sends the request identifying command to the USB adapter via another communication protocol till the gateways receives the responses, and therefore the communication protocol supported by the USB adapter can be obtained. In an embodiment of the method for making the Internet-of-Things cloud gateway compatible with multiple protocols and the Internet-of-Things cloud gateway, without replacement of the gateway or arrangement of other wireless communication chips, the gateway can be compatible with multiple communication protocols via the USB interface, a problem that a new gateway is needed for supporting a new communication protocol can be prevented, cost can be saved, and a gateway utilization rate is improved.

Description

The method of Internet of Things cloud gateway compatibility multi-protocols and Internet of Things cloud gateway
Technical field
The present invention relates to the communications field, particularly to method and the Internet of Things cloud gateway of a kind of Internet of Things cloud gateway compatibility multi-protocols.
Background technology
Internet of Things is the important component part of generation information technology, and its English name is: " TheInternetofthings ".As its name suggests, Internet of Things is exactly the Internet that thing thing is connected.The mainly wireless communication technology that Internet of Things adopts.General Internet of Things short-distance wireless communication mode has Zigbee, Bluetooth Low Energy BLE (BluetoothLowEnergy), 433MHz, WI-FI, Z-wave and 6LoWPAN etc..Existing Internet of Things short-distance wireless communication sometimes needs multi-protocols simultaneously parallel, thus can cause incompatible each other.
As it is shown in figure 1, existing Internet of Things cloud gateway, including wireless communication chips 1, application processor 2, ethernet control chip 3, flash memory flash storage 4, Double Data Rate synchronous DRAM DDR5 and RJ45 interface 6.Owing to each Internet of Things cloud gateway only comprising a wireless communication chips 1, therefore, each gateway can only support a kind of communication protocol, such as 433MHz gateway, only comprise 433MHz wireless communication chips, therefore can only support 433MHz communication protocol, bluetooth (BLE) gateway, only comprise bluetooth (BLE) wireless communication chips, therefore also can only support bluetooth (BLE) communication protocol.In this case, want to allow Internet of Things cloud gateway support multiple short-range communication protocols simultaneously, just only by increasing various wireless communication chip in original gateway, as in 433MHz gateway, after increasing bluetooth (BLE) wireless communication chips and Zigbee wireless communication chips, this 433MHz gateway just can support 433MHz simultaneously, bluetooth (BLE) and tri-kinds of communication protocols of Zigbee, but this way not only needs the reserved position increasing wireless communication chips in initial gateway designs, the extra volume increasing gateway, also can increase cost, simultaneously, it is also extremely limited on the number supporting communication protocol, the protocol extension in later stage cannot be realized.
Summary of the invention
It is an object of the invention to provide a kind of method of Internet of Things cloud gateway compatibility multi-protocols and Internet of Things cloud gateway so that Internet of Things cloud gateway, when increasing various communications protocols module, just can support various communications protocols simultaneously;Avoid the problem that need to set up a new gateway for supporting new communication protocol, thus decreasing cost simultaneously.
For solving above-mentioned technical problem, embodiments of the present invention provide a kind of method of Internet of Things cloud gateway compatibility multi-protocols, comprise the steps of
Internet of Things cloud gateway sends identification request command with a kind of communication protocol to the USB adapter accessing general-purpose serial bus USB interface;
If described Internet of Things cloud gateway receives from the response to described identification request command of the described USB adapter, then it is directly obtained the communication protocol that described USB adapter is supported;Wherein, the communication protocol of described USB adapter support is the communication protocol that described identification request command is corresponding;
If described Internet of Things cloud gateway does not receive described response, then described Internet of Things cloud gateway sends identification request command with another kind of communication protocol to described USB adapter, until described Internet of Things cloud gateway receives response, get the communication protocol that described USB adapter is supported.
Embodiments of the present invention additionally provide a kind of Internet of Things cloud gateway, and described Internet of Things cloud gateway includes: order sending module, judge module, agreement acquisition module;
Described order sending module is for sending identification request command with a kind of communication protocol to the USB adapter accessing general-purpose serial bus USB interface;
Described judge module is for judging whether described Internet of Things cloud gateway receives from the response to described identification request command of the described USB adapter, and judging that described Internet of Things cloud gateway does not receive after the response to described identification request command of the described USB adapter, send to described order sending module and unsuccessfully indicate, the order sending module receiving described failure instruction sends identification request command with another kind of communication protocol to described USB adapter, until described Internet of Things cloud gateway receives response;
Described agreement acquisition module, for receiving after the response to described identification request command of the described USB adapter at described Internet of Things cloud gateway, is directly obtained the communication protocol that described USB adapter is supported;Wherein, the communication protocol of described USB adapter support is the communication protocol that described identification request command is corresponding.
nullEmbodiment of the present invention is in terms of existing technologies,Internet of Things cloud gateway is arranged to access the USB interface of USB adapter,This USB interface is not intended to the kind of the USB adapter accessed,Namely the type of the communication protocol that USB adapter is supported it is not intended to,That is,User can pass through to change USB adapter thus adding and change the type of communication protocol neatly,Internet of Things cloud gateway is by sending the identification request command of communication protocol,Identify the communication protocol type that this USB adapter is supported,So that embodiment of the present invention is when changing gateway or set up other wireless communication chips,Only it is compatible with various communications protocols by a USB interface,That is,User has only to change on existing gateway or increase new communication protocol,Without in order to support that new communication protocol sets up a new gateway again,Do so not only saves cost,And improve the utilization rate of gateway,It is also convenient for the protocol extension in later stage.
Further, described Internet of Things cloud gateway with a kind of communication protocol to access USB interface USB adapter send identify request command step before, further comprising the steps of:
Described Internet of Things cloud gateway dynamically detects whether described USB interface accesses USB adapter;
After described Internet of Things cloud gateway detects access USB adapter, trigger the described step sending identification request command to the USB adapter accessing USB interface.First whether detection USB interface accesses USB adapter, is conducive to the later stage to send to the USB adapter accessed in time and identifies request command.
Further, described Internet of Things cloud gateway includes at least two USB interface;
Dynamically detecting in the step whether described USB interface accesses USB adapter at described Internet of Things cloud gateway, described Internet of Things cloud gateway adopts the mode that poll or event trigger to detect whether all of USB interface accesses USB adapter.The mode that poll or event trigger is adopted to detect whether all of USB interface accesses USB adapter, on the one hand, to be conducive to avoiding the situation of missing inspection, on the other hand, also can guarantee that the USB adapter of access is processed timely.
Further, after getting the step of the communication protocol that described USB adapter is supported, further comprising the steps of:
The described Internet of Things cloud gateway communication protocol by regularly supporting with described USB adapter, sends the identification request command of described communication protocol to described USB adapter, and whether the communication protocol detecting described USB adapter support changes;
Or, the mode that described Internet of Things cloud gateway is triggered by event, whether the communication protocol detecting described USB adapter support changes.Be conducive to the USB adapter after change being detected in time.
Further, send in the step that identify request command with a kind of communication protocol to the USB adapter accessing general-purpose serial bus USB interface at described Internet of Things cloud gateway, including following sub-step:
Described Internet of Things cloud gateway selects communication protocol according to the priority of each communication protocol, and sends identification request command with the communication protocol of described selection to described USB adapter;
Wherein, the priority of communication protocol presets, and described Internet of Things cloud gateway preferably selects the communication protocol that priority is high.Select communication protocol according to priority set in advance, can make gateway can the communication protocol supported of the higher USB adapter of prioritizing selection probability, thus being conducive to improving gateway to identify the speed of USB adapter protocol type.
Accompanying drawing explanation
Fig. 1 is the structural representation of the Internet of Things cloud gateway according to prior art;
Fig. 2 is the flow chart of the method for the Internet of Things cloud gateway compatibility multi-protocols according to first embodiment of the invention;
Fig. 3 is the structural representation of the Internet of Things cloud gateway according to first embodiment of the invention;
Fig. 4 is the structural representation of the Internet of Things cloud gateway according to second embodiment of the invention;
Fig. 5 is the schematic diagram of the application of the Internet of Things cloud gateway according to second embodiment of the invention;
Fig. 6 is the structural representation of the Internet of Things cloud gateway implemented according to the present invention the 5th.
Detailed description of the invention
For making the object, technical solutions and advantages of the present invention clearly, below in conjunction with accompanying drawing, the embodiments of the present invention are explained in detail.But, it will be understood by those skilled in the art that in each embodiment of the present invention, propose many ins and outs in order to make reader be more fully understood that the application.But, even without these ins and outs with based on the many variations of following embodiment and amendment, it is also possible to realize the application each claim technical scheme required for protection.
First embodiment of the present invention relates to a kind of method of Internet of Things cloud gateway compatibility multi-protocols.Idiographic flow is as shown in Figure 2.
In step 201, Internet of Things cloud gateway dynamically detects whether USB (universal serial bus) (UniversalSerialBus, " USB ") interface accesses USB adapter.In present embodiment, include a USB interface for Internet of Things cloud gateway and illustrate.
Specifically, in this step, Internet of Things cloud gateway adopts the mode that periodically inquiry (namely every the time one default, a just USB interface 8 of detection) or event trigger to detect whether USB interface accesses USB adapter.The mode that described event triggers refers to: utilize the access information that the USB adapter accessing USB interface sends, trigger Internet of Things cloud gateway and know that its USB interface has accessed USB adapter according to this access information, it is to say, whether Internet of Things cloud gateway receives access information according to it judges whether USB interface accesses USB adapter.
It addition, as it is shown on figure 3, in present embodiment, Internet of Things cloud gateway also includes: application processor 2, ethernet control chip 3, flash memory flash storage 4, Double Data Rate synchronous DRAM DDR5, RJ45 interface 6, usb hub 7 and USB interface 8.In this step, application processor 2 periodically detects whether USB interface 8 accesses USB adapter, and after access USB adapter being detected, enters step 202;If being not detected by accessing USB adapter, then return this step.
It is noted that USB adapter is for sending the data from intelligent terminal node to application processor 2 by USB interface 8, and the data from application processor 2 that will be received by USB interface 8, transmit to intelligent terminal node.
In step 202., Internet of Things cloud gateway sends identification request command with a kind of communication protocol to the USB adapter accessing USB interface 8.Specifically, after the application processor 2 of Internet of Things cloud gateway detects access USB adapter, application processor 2 can randomly choose a kind of communication protocol from the communication protocol prestored, and sends identification request command with this communication protocol randomly choosed to USB adapter.Such as, application processor 2 is from the 433MHz agreement prestored, Zigbee protocol, bluetooth (BLE) agreement, WI-FI agreement, randomly choosed bluetooth (BLE) agreement in the agreements such as Z-wave agreement and 6LoWPAN, then application processor 2 sends identification request command with bluetooth (BLE) agreement to the USB adapter inserting USB interface.
In step 203, Internet of Things cloud gateway judges whether to receive from the USB adapter response to identifying request command.If receiving response, then enter step 204, and in step 204, be directly obtained the communication protocol that USB adapter is supported;Wherein, the communication protocol of USB adapter support is identify the communication protocol that request command is corresponding;Without receiving response, then enter step 205.For above-mentioned case, after application processor 2 sends identification request command with bluetooth (BLE) agreement to USB adapter, if gateway have received the USB adapter response to this identification request command, then enter step 204, it is directly obtained the communication protocol that USB adapter is supported, i.e. bluetooth (BLE) agreement.If gateway does not receive response, then enter step 205.
In step 205, Internet of Things cloud gateway judges whether all communication protocols of its storage select complete.It is worth mentioning that, all communication protocols refer to all communication protocol that may be present, that is, in the present embodiment, application processor 2 stores all communication protocol that may be present in advance, such as Zigbee protocol, bluetooth (BLE) agreement, 433MHz agreement, WI-FI agreement, Z-wave agreement and 6LoWPAN agreement etc..
If the communication protocol stored is complete but without selecting, then entering step 206, in step 206, application processor 2 randomly chooses a kind of communication protocol in the communication protocol not being selected, and after sending identification request command with this communication protocol to this USB adapter, return step 203.For above-mentioned case, in gateway, storage has the various protocols such as 433MHz agreement, Zigbee protocol, bluetooth (BLE) agreement, but only it is transmitted across identifying request command with bluetooth (BLE) at present, therefore when not receiving the response from USB adapter, send identification request command with communication protocol in another (such as 433MHz agreement) to this USB adapter, and return step 203.
If the communication protocol stored is chosen complete, say, that application processor 2 has sent the identification request command of all communication protocol to USB adapter, but all do not receive response, then entering step 207, in step 207, application processor sends the instruction that reports an error.
It is seen that, compared with prior art, Internet of Things cloud gateway is arranged to access the USB interface of USB adapter, this USB interface is not intended to the kind of the USB adapter accessed, namely the type of the communication protocol that USB adapter is supported it is not intended to, that is, user can pass through to change USB adapter thus adding and change the type of communication protocol neatly, Internet of Things cloud gateway is by sending the identification request command of communication protocol, identify the communication protocol type that this USB adapter is supported, so that embodiment of the present invention is when changing gateway or set up other wireless communication chips, only it is compatible with various communications protocols by a USB interface, not only save cost, and improve the utilization rate of gateway.
The step of various methods divides above, is intended merely to description clear, it is achieved time can be merged into a step or some step is split, and is decomposed into multiple step, as long as comprising identical logical relation, all in the protection domain of this patent;To adding inessential amendment in algorithm or in flow process or introducing inessential design, but do not change the core design of its algorithm and flow process all in the protection domain of this patent.
Second embodiment of the invention relates to a kind of method of Internet of Things cloud gateway compatibility multi-protocols.Second embodiment and the first embodiment are roughly the same, and main distinction part is in that: in the first embodiment, and Internet of Things cloud gateway is provided with a USB interface 8;And in second embodiment of the invention, Internet of Things cloud gateway is provided with multiple USB interface 8.
As shown in Figure 4, Internet of Things cloud gateway is provided with 4 USB interface 8, and 4 USB interface 8 are connected with application processor each through usb hub 7.
It is worth mentioning that, owing to present embodiment being provided with multiple USB interface 8, therefore to avoid the occurrence of the situation of missing inspection, ensureing that the USB adapter that all of USB interface 8 accesses can be found, process in time in time, present embodiment adopts the mode of the mode of poll or event triggering to detect whether all of USB interface 8 accesses USB adapter.All of USB interface 8, namely every the time one default, is just all detected one time by described poll successively.
Compared with the first embodiment, present embodiment adds the quantity of USB interface 8, so that Internet of Things cloud gateway can simultaneously compatible various communications protocols in the same time.As it is shown in figure 5, access ZigbeeUSBDongle (adapter) at the USB interface 8a of Internet of Things cloud gateway, Zigbee communication agreement supported by this adapter;Accessing 433MHzUSBDongle at USB interface 8b, 433MHz communication protocol supported by this adapter;Accessing bluetooth (BLE) USBDongle at USB interface 8c, bluetooth (BLE) communication protocol supported by this adapter.
During work, the data collected are carried out pretreatment by acquisition terminal node 9a, form the data of Zigbee protocol form, send ZigbeeUSBDongle, ZigbeeUSBDongle to again through Zigbee network and send the data of this Zigbee protocol form to application processor 2 (not shown) by USB interface 8a;Similar, 433MHzUSBDongle and bluetooth (BLE) USBDongle also can translate into the data of 433MHz protocol format respectively and the data of bluetooth (BLE) protocol format send application processor 2 to by corresponding USB interface 8;Application processor 2 is by unified for the data of the data of Zigbee protocol form received, the data of 433MHz protocol format and bluetooth (BLE) the protocol format data converting the protocol format that Internet of Things cloud gateway is given tacit consent to and after processing, convert thereof into the data of Ethernet protocol form again, and it is sent to Cloud Server by Ethernet, the data of the Cloud Server ethernet format to receiving store and analyze, intelligent terminal is attached by the Internet and Cloud Server, thus realizing the management of intelligent terminal and remotely controlling.Adopt above-mentioned control system to be capable of the monitor in real time to family, office etc., and can carry out when accident occurs remotely controlling timely and management, be obviously enhanced safety, increase transmission range, improve capacity of resisting disturbance and stability.
nullIt should be noted that,Present embodiment is with USB interface 8a、USB interface 8b and USB interface 8c is respectively connected to ZigbeeUSBDongle、433MHzUSBDongle and bluetooth (BLE) USBDongle is that example illustrates,But in actual applications,USB interface 8a is possible not only to access ZigbeeUSBDongle,433MHzUSBDongle can also be accessed、Bluetooth (BLE) USBDongle、Z-waveUSBDongle、Any one USBDongle in 6LoWPANUSBDongle and WI-FIUSBDongle etc.,That is,USB interface 8a is not intended to the type of the USBDongle accessed,Similar,USB interface 8b and USB interface 8c is also the same with USB interface 8a,It is not intended to the type of the USBDongle accessed,Present embodiment repeats no more.
Third embodiment of the invention relates to a kind of method of Internet of Things cloud gateway compatibility multi-protocols.3rd embodiment is the further improvement done on the basis of the second embodiment, it thes improvement is that: in this second embodiment, application processor 2 is to select communication protocol from the communication protocol prestored by the mode randomly selected, and sends identification request command with this communication protocol randomly choosed to USB adapter;And in third embodiment of the invention, the communication protocol of storage is carried out the setting of priority then the communication protocol that prioritizing selection priority is high by gateway in advance, and send identification request command with the communication protocol that this priority is high to USB adapter.Wherein, the setting of priority, can be set according to the use frequency of various communication protocols, such as, (as in one month) each USB interface 8 in default a period of time of can monitoring gateway accesses communication protocol type that USB adapter supports and adds up, the communication protocol type that occurrence number is more many, namely think that it uses frequency more high, as added up discovery, in one month, 433MHz agreement occurs in that 8 times, Zigbee protocol occurs in that 6 times, and bluetooth (BLE) agreement only occurs in that 2 times, then think that the priority of 433MHz agreement is the highest, and the priority of bluetooth (BLE) agreement is minimum.Select communication protocol according to priority set in advance, can make gateway can the communication protocol supported of the higher USB adapter of prioritizing selection probability, thus being conducive to improving gateway to identify the speed of USB adapter protocol type.
It should be noted that, in actual applications, the selection of agreement can also be communicated according to the record that uses of USB interface 8 last time that USB adapter accesses, namely the communication protocol that the USB adapter accessed with this USB interface last time is supported, the USB adapter being currently accessed to this USB interface sends identification request command.
Four embodiment of the invention relates to a kind of method of Internet of Things cloud gateway compatibility multi-protocols.4th embodiment is the further improvement done on the basis of the 3rd embodiment, it thes improvement is that: in four embodiment of the invention, application processor 2 is after getting the communication protocol that USB adapter is supported, the communication protocol still regularly supported with this USB adapter, sending to this USB adapter and identify request command, whether the communication protocol of detection USB adapter support changes;Or by the mode that event triggers, whether the communication protocol of detection USB adapter support changes.This way is conducive to the USB adapter after change being detected in time.
5th embodiment of the present invention relates to a kind of Internet of Things cloud gateway, and as shown in Figure 6, this Internet of Things cloud gateway includes: order sending module, judge module, agreement acquisition module;
Order sending module is for sending identification request command with a kind of communication protocol to the USB adapter accessing general-purpose serial bus USB interface;
Judge module for judge Internet of Things cloud gateway whether receive from described USB adapter to identify request command response, and judge Internet of Things cloud gateway do not receive from USB adapter to identify request command response after, send to order sending module and unsuccessfully indicate, receive the order sending module unsuccessfully indicated and send identification request command with another kind of communication protocol to USB adapter, until Internet of Things cloud gateway receives response;
Agreement acquisition module for Internet of Things cloud gateway receive from USB adapter to identify request command response after, be directly obtained USB adapter support communication protocol;Wherein, the communication protocol of USB adapter support is identify the communication protocol that request command is corresponding.
Specifically, this Internet of Things cloud gateway also includes detection module, this detection module identifies before request command for sending to the USB adapter accessing general-purpose serial bus USB interface with a kind of communication protocol at order sending module, dynamically whether detection USB interface accesses USB adapter, and after accessing USB adapter in USB interface being detected, send instruction to order sending module, after order sending module receives this instruction, send to the USB adapter accessing USB interface and identify request command.
What deserves to be explained is, order sending module includes sub module stored, agreement sends submodule and response receives submodule, and wherein, sub module stored is previously stored with all communication protocol that may be present;Agreement sends submodule for receiving the instruction that detection module sends, and after receiving the indication, from the communication protocol all that may be present that sub module stored prestores, randomly choose a kind of communication protocol, and send identification request command with this communication protocol randomly choosed to USB adapter.Response receive submodule for receive from this USB adapter to identify request command response.Send identify after request command when agreement sends submodule, it is judged that module can judge that response receives whether submodule receives from the response to identifying request command of this USB adapter.
If response receives submodule and receives response, it is judged that module can send, to agreement acquisition module, the instruction receiving response, agreement acquisition module after receiving this instruction, can directly obtain the communication protocol that this USB adapter is supported.If response receives submodule and does not receive response, judge module can send to the agreement transmission submodule of order sending module and unsuccessfully indicate, receive the agreement transmission submodule unsuccessfully indicated and can randomly choose a kind of communication protocol from the communication protocol not being selected of sub module stored storage, and send identification request command with this communication protocol to this USB adapter, until response receives submodule and receives response.
It is worth mentioning that, if the communication protocol that sub module stored stores is chosen complete, say, that agreement sends submodule and sent the identification request command of all communication protocol to USB adapter, but all not receiving response, agreement sends submodule can send the instruction that reports an error.
It is seen that, present embodiment is the system embodiment corresponding with the first embodiment, and present embodiment can be worked in coordination enforcement with the first embodiment.The relevant technical details mentioned in first embodiment is still effective in the present embodiment, in order to reduce repetition, repeats no more here.Correspondingly, the relevant technical details mentioned in present embodiment is also applicable in the first embodiment.
It is noted that each module involved in present embodiment is logic module, in actual applications, a logical block can be a physical location, it is also possible to be a part for a physical location, it is also possible to realize with the combination of multiple physical locations.Additionally, for the innovative part highlighting the present invention, do not introduced by the unit less close with solving technical problem relation proposed by the invention in present embodiment, but this is not intended that in present embodiment to be absent from other unit.
Sixth embodiment of the invention relates to a kind of Internet of Things cloud gateway.6th embodiment and the 5th embodiment are roughly the same, and main distinction part is in that: in the 5th embodiment, and Internet of Things cloud gateway is provided with a USB interface 8;And in sixth embodiment of the invention, Internet of Things cloud gateway is provided with 4 USB interface 8, and 4 USB interface 8 electrically connect with application processor each through usb hub 7.
It is worth mentioning that, owing to present embodiment being provided with multiple USB interface 8, therefore to avoid the occurrence of the situation of missing inspection, ensure that the USB adapter that all of USB interface 8 accesses can be found, process in time in time, in present embodiment, detection module adopts the mode ground that poll or event trigger to detect whether all of USB interface 8 accesses USB adapter.Compared with the 5th embodiment, present embodiment adds the quantity of USB interface 8, so that Internet of Things cloud gateway can simultaneously compatible various communications protocols in the same time.
It is seen that, present embodiment is the system embodiment corresponding with the second embodiment, and present embodiment can be worked in coordination enforcement with the second embodiment.The relevant technical details mentioned in second embodiment is still effective in the present embodiment, in order to reduce repetition, repeats no more here.Correspondingly, the relevant technical details mentioned in present embodiment is also applicable in the second embodiment.
Seventh embodiment of the invention relates to a kind of Internet of Things cloud gateway.7th embodiment is the further improvement done on the basis of the 6th embodiment, it thes improvement is that: in the 6th embodiment, it is select communication protocol from the communication protocol that sub module stored prestores by the mode randomly selected that agreement sends submodule, and sends identification request command with this communication protocol randomly choosed to USB adapter;And in seventh embodiment of the invention, the communication protocol of storage is carried out the setting of priority by sub module stored in advance, agreement sends the submodule priority according to its setting, the communication protocol that prioritizing selection priority is high, and send identification request command with the communication protocol that this priority is high to USB adapter.Wherein, the setting of priority, it is possible to be set according to the use frequency of various communication protocols.
It should be noted that, in actual applications, agreement sends submodule can also communicate the selection of agreement according to the record that uses of USB interface 8 last time that USB adapter accesses, namely the communication protocol that the USB adapter accessed with this USB interface last time is supported, the USB adapter being currently accessed to this USB interface sends identification request command.
Eighth embodiment of the invention relates to a kind of Internet of Things cloud gateway.8th embodiment is the further improvement done on the basis of the 7th embodiment, it thes improvement is that: in eighth embodiment of the invention, response receives submodule after getting the communication protocol that USB adapter is supported, agreement sends the communication protocol that submodule is still regularly supported with this USB adapter, sending to this USB adapter and identify request command, whether the communication protocol of detection USB adapter support changes;Or by the mode that event triggers, whether the communication protocol of detection USB adapter support changes.This way is conducive to the USB adapter after change being detected in time.
It is seen that, present embodiment is the system embodiment corresponding with the 4th embodiment, and present embodiment can be worked in coordination enforcement with the 4th embodiment.The relevant technical details mentioned in 4th embodiment is still effective in the present embodiment, in order to reduce repetition, repeats no more here.Correspondingly, the relevant technical details mentioned in present embodiment is also applicable in the 4th embodiment.
It will be understood by those skilled in the art that the respective embodiments described above are to realize specific embodiments of the invention, and in actual applications, it is possible in the form and details it is done various change, without departing from the spirit and scope of the present invention.

Claims (10)

1. the method for Internet of Things cloud gateway compatibility multi-protocols, it is characterised in that comprise the steps of
Internet of Things cloud gateway sends identification request command with a kind of communication protocol to the USB adapter accessing general-purpose serial bus USB interface;
If described Internet of Things cloud gateway receives from the response to described identification request command of the described USB adapter, then it is directly obtained the communication protocol that described USB adapter is supported;Wherein, the communication protocol of described USB adapter support is the communication protocol that described identification request command is corresponding;
If described Internet of Things cloud gateway does not receive described response, then described Internet of Things cloud gateway sends identification request command with another kind of communication protocol to described USB adapter, until described Internet of Things cloud gateway receives response, get the communication protocol that described USB adapter is supported.
2. the method for Internet of Things cloud gateway compatibility multi-protocols according to claim 1, it is characterized in that, described Internet of Things cloud gateway with a kind of communication protocol to access USB interface USB adapter send identify request command step before, further comprising the steps of:
Described Internet of Things cloud gateway dynamically detects whether described USB interface accesses USB adapter;
After described Internet of Things cloud gateway detects access USB adapter, trigger the described step sending identification request command to the USB adapter accessing USB interface.
3. the method for Internet of Things cloud gateway compatibility multi-protocols according to claim 2, it is characterised in that described Internet of Things cloud gateway includes at least two USB interface;
Dynamically detecting in the step whether described USB interface accesses USB adapter at described Internet of Things cloud gateway, described Internet of Things cloud gateway adopts the mode that poll or event trigger to detect whether all of USB interface accesses USB adapter.
4. the method for Internet of Things cloud gateway compatibility multi-protocols according to claim 1, it is characterised in that after getting the step of the communication protocol that described USB adapter is supported, further comprising the steps of:
The described Internet of Things cloud gateway communication protocol by regularly supporting with described USB adapter, sends to described USB adapter and identifies request command, and whether the communication protocol detecting described USB adapter support changes;
Or, the mode that described Internet of Things cloud gateway is triggered by event, whether the communication protocol detecting described USB adapter support changes.
5. the method for Internet of Things cloud gateway compatibility multi-protocols according to claim 1, it is characterized in that, send in the step that identify request command with a kind of communication protocol to the USB adapter accessing general-purpose serial bus USB interface at described Internet of Things cloud gateway, including following sub-step:
Described Internet of Things cloud gateway selects communication protocol according to the priority of each communication protocol, and sends identification request command with the communication protocol of described selection to described USB adapter;
Wherein, the priority of communication protocol presets, and described Internet of Things cloud gateway preferably selects the communication protocol that priority is high.
6. the method for Internet of Things cloud gateway compatibility multi-protocols according to claim 1, it is characterized in that, send in the step that identify request command with a kind of communication protocol to the USB adapter accessing general-purpose serial bus USB interface at described Internet of Things cloud gateway, including following sub-step:
The communication protocol that described Internet of Things cloud gateway is supported with the USB adapter that the described USB interface last time is accessed, the USB adapter being currently accessed to described USB interface sends identification request command.
7. the method for Internet of Things cloud gateway compatibility multi-protocols according to claim 1, it is characterised in that also comprise the steps of
If described Internet of Things cloud gateway is after sending described identification request command with all possible communication protocol to described USB adapter, do not receive described response yet, then described Internet of Things cloud gateway sends the information that reports an error.
8. the method for Internet of Things cloud gateway compatibility multi-protocols according to claim 1, it is characterised in that described Internet of Things cloud gateway includes application processor and usb hub;
Send in the step that identify request command with a kind of communication protocol to the USB adapter accessing general-purpose serial bus USB interface at described Internet of Things cloud gateway, including following sub-step:
Described application processor selects a kind of communication protocol from the communication protocol prestored;
Described application processor, with the communication protocol of described selection, sends identification request command by described usb hub to described USB adapter.
9. an Internet of Things cloud gateway, it is characterised in that described Internet of Things cloud gateway includes: order sending module, judge module, agreement acquisition module;
Described order sending module is for sending identification request command with a kind of communication protocol to the USB adapter accessing general-purpose serial bus USB interface;
Described judge module is for judging whether described Internet of Things cloud gateway receives from the response to described identification request command of the described USB adapter, and judging that described Internet of Things cloud gateway does not receive after the response to described identification request command of the described USB adapter, send to described order sending module and unsuccessfully indicate, the order sending module receiving described failure instruction sends identification request command with another kind of communication protocol to described USB adapter, until described Internet of Things cloud gateway receives response;
Described agreement acquisition module, for receiving after the response to described identification request command of the described USB adapter at described Internet of Things cloud gateway, is directly obtained the communication protocol that described USB adapter is supported;
Wherein, the communication protocol of described USB adapter support is the communication protocol that described identification request command is corresponding.
10. Internet of Things cloud gateway according to claim 9, it is characterised in that described Internet of Things cloud gateway also includes detection module;
Described detection module identifies before request command for sending to the USB adapter accessing general-purpose serial bus USB interface with a kind of communication protocol at described order sending module, dynamically detect whether described USB interface accesses USB adapter, and after accessing USB adapter in described USB interface being detected, trigger described order sending module and send identification request command to the USB adapter accessing USB interface;
Described Internet of Things cloud gateway includes at least two USB interface;Described detection module adopts the mode that poll or event trigger to detect whether all of USB interface accesses USB adapter;
Described order sending module is additionally operable to after described agreement acquisition module gets the communication protocol that described USB adapter is supported, by the communication protocol regularly supported with described USB adapter, send the identification request command of described communication protocol to described USB adapter, whether the communication protocol detecting described USB adapter support changes;Or the mode that described order sending module is triggered by event, whether the communication protocol detecting described USB adapter support changes.
CN201410857091.0A 2014-12-29 2014-12-29 Method for making Internet-of-Things cloud gateway compatible with multiple protocols and Internet-of-Things cloud gateway Pending CN105812444A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410857091.0A CN105812444A (en) 2014-12-29 2014-12-29 Method for making Internet-of-Things cloud gateway compatible with multiple protocols and Internet-of-Things cloud gateway

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410857091.0A CN105812444A (en) 2014-12-29 2014-12-29 Method for making Internet-of-Things cloud gateway compatible with multiple protocols and Internet-of-Things cloud gateway

Publications (1)

Publication Number Publication Date
CN105812444A true CN105812444A (en) 2016-07-27

Family

ID=56465451

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410857091.0A Pending CN105812444A (en) 2014-12-29 2014-12-29 Method for making Internet-of-Things cloud gateway compatible with multiple protocols and Internet-of-Things cloud gateway

Country Status (1)

Country Link
CN (1) CN105812444A (en)

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106294242A (en) * 2016-08-05 2017-01-04 江苏亚奥科技股份有限公司 The device of upgrading changed by a kind of embedded device processor that quickly realizes
CN106330208A (en) * 2016-08-22 2017-01-11 武汉芯泰科技有限公司 IP over RF network system
CN106506347A (en) * 2016-11-10 2017-03-15 成都中嵌自动化工程有限公司 A kind of multi-protocol data communication gate equipment for air traffic control system
TWI658712B (en) * 2017-09-13 2019-05-01 財團法人資訊工業策進會 Gateway and method of determining machines to be networked at gateway
CN109729040A (en) * 2017-10-27 2019-05-07 伊姆西Ip控股有限责任公司 Method, equipment and the computer-readable medium of the selection of agreement
CN109814501A (en) * 2018-12-29 2019-05-28 北京农业信息技术研究中心 A kind of information acquisition system and method for field detecting device flexible access
CN109977053A (en) * 2019-04-03 2019-07-05 山东超越数控电子股份有限公司 The network-based shared I/O interface design method of one kind and system
CN111800403A (en) * 2020-06-29 2020-10-20 南京酷开智慧屏科技有限公司 Multi-protocol communication method and system for contact communication
CN112188510A (en) * 2019-07-04 2021-01-05 安立股份有限公司 Measuring device and measuring method

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070189270A1 (en) * 2006-02-15 2007-08-16 Borislow Daniel M Network adapter
CN102055687A (en) * 2010-12-30 2011-05-11 上海顶竹通讯技术有限公司 Internet of things (IOT) access gateway
CN102082699A (en) * 2009-11-27 2011-06-01 上海博达数据通信有限公司 P2P (peer-to-peer) protocol identification method on basis of active detection mode
CN102291856A (en) * 2011-09-21 2011-12-21 大连钜正科技有限公司 Internet of things gateway with multipassage and multichannel supporting effect
CN102801658A (en) * 2011-05-23 2012-11-28 镇江金钛软件有限公司 Configurable access gateway for Internet of things
CN103036862A (en) * 2011-10-10 2013-04-10 (株)拜斯倍斯 Multi protocol adapter

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070189270A1 (en) * 2006-02-15 2007-08-16 Borislow Daniel M Network adapter
CN102082699A (en) * 2009-11-27 2011-06-01 上海博达数据通信有限公司 P2P (peer-to-peer) protocol identification method on basis of active detection mode
CN102055687A (en) * 2010-12-30 2011-05-11 上海顶竹通讯技术有限公司 Internet of things (IOT) access gateway
CN102801658A (en) * 2011-05-23 2012-11-28 镇江金钛软件有限公司 Configurable access gateway for Internet of things
CN102291856A (en) * 2011-09-21 2011-12-21 大连钜正科技有限公司 Internet of things gateway with multipassage and multichannel supporting effect
CN103036862A (en) * 2011-10-10 2013-04-10 (株)拜斯倍斯 Multi protocol adapter

Cited By (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106294242A (en) * 2016-08-05 2017-01-04 江苏亚奥科技股份有限公司 The device of upgrading changed by a kind of embedded device processor that quickly realizes
CN106330208A (en) * 2016-08-22 2017-01-11 武汉芯泰科技有限公司 IP over RF network system
CN106330208B (en) * 2016-08-22 2019-02-15 武汉芯泰科技有限公司 A kind of device based on IP over RF network formats
CN106506347A (en) * 2016-11-10 2017-03-15 成都中嵌自动化工程有限公司 A kind of multi-protocol data communication gate equipment for air traffic control system
CN106506347B (en) * 2016-11-10 2019-10-22 成都中嵌自动化工程有限公司 A kind of multi-protocol data communication gate equipment for air traffic control system
TWI658712B (en) * 2017-09-13 2019-05-01 財團法人資訊工業策進會 Gateway and method of determining machines to be networked at gateway
US10999377B2 (en) 2017-10-27 2021-05-04 EMC IP Holding Company LLC Method, device and computer program product for protocol selection
CN109729040A (en) * 2017-10-27 2019-05-07 伊姆西Ip控股有限责任公司 Method, equipment and the computer-readable medium of the selection of agreement
CN109729040B (en) * 2017-10-27 2022-04-29 伊姆西Ip控股有限责任公司 Method, apparatus and computer readable medium for selection of a protocol
CN109814501A (en) * 2018-12-29 2019-05-28 北京农业信息技术研究中心 A kind of information acquisition system and method for field detecting device flexible access
CN109977053A (en) * 2019-04-03 2019-07-05 山东超越数控电子股份有限公司 The network-based shared I/O interface design method of one kind and system
CN112188510A (en) * 2019-07-04 2021-01-05 安立股份有限公司 Measuring device and measuring method
CN112188510B (en) * 2019-07-04 2023-08-15 安立股份有限公司 Measuring device and measuring method
CN111800403A (en) * 2020-06-29 2020-10-20 南京酷开智慧屏科技有限公司 Multi-protocol communication method and system for contact communication

Similar Documents

Publication Publication Date Title
CN105812444A (en) Method for making Internet-of-Things cloud gateway compatible with multiple protocols and Internet-of-Things cloud gateway
EP2460258B1 (en) Method and device for auto-generating goose signal connection topology from substation level
CN106878459B (en) Self-adaptive Internet of things intelligent gateway implementation method and equipment thereof
CN102404306B (en) Protocol configuration method and device
CN102802139A (en) Gateway data adapting system and method of Internet of Things
CN109993958A (en) A kind of data collection system and method for RS485 bus
CN109067930A (en) Domain name cut-in method, domain name analytic method, server, terminal and storage medium
CN109768970A (en) It is a kind of based on configurable puppy parc generation method
EP2945340A1 (en) Operation trigger method and device for machine-to-machine communications
CN104639385B (en) Detect the method and apparatus of L2VPN network user's side interface connectivity
CN109067633B (en) Power management system and method based on Ethernet daisy chain communication network topology
US10091066B2 (en) Integration method and system
CN110912944A (en) CAN equipment safety test system and test method
CN108512907B (en) Semi-transparent transmission equipment communication method
CN106850268B (en) device and method for realizing linear protection switching
US20190296936A1 (en) Gateway system for heterogeneous fieldbus
KR20100020253A (en) Monitoring apparatus for message transmission in network for a vehicle
CN108345558B (en) RS485 centralized configuration unit supporting multiple protocols
CN202748417U (en) Parameter monitoring system of frequency converter in wind generating set
KR20180074128A (en) Diagnosis message routing system and method for gateway of vehicle
CN111770146A (en) Method and system for realizing electrified railway fault distance measurement message interaction based on goose information general program architecture
WO2008086175A1 (en) Method and system for managing user preferences for one or more software applications running on a mobile computing device
CN104022934A (en) PROFIBUS-DP protocol-based communication equipment communication method
CN214380929U (en) Gateway equipment for connecting Internet of things sensing equipment and electric power information acquisition equipment
Terreros-Barreto et al. Systematic Review of Wired Communication’s Technologies for Active Distribution Networks

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: 20160727