Summary of the invention
The technical problem that (one) will solve
For solving above-mentioned one or more problems, the invention provides a kind of mine Internet of Things integrated communications system, switch and host computer.
(2) technical scheme
According to an aspect of the present invention, provide a kind of mine Internet of Things integrated communications system.This mine Internet of Things integrated communications system comprises: switch, be positioned at the down-hole, be used for when utilizing the agreement of self storing to resolve the packet that is received by interface, this packet or the facility information that extracts from this packet are sent to host computer by communication network, receive and the storage host computer according to this packet or device type inquire about obtain this packet is resolved needed communication protocol.Communication network is used for the data communication between host computer and the switch; Host computer is positioned at abovegroundly, is used for the communication protocol of storage underground equipment, when receiving packet or facility information, this packet or communication protocol corresponding to device type is issued to switch by communication network.
According to another aspect of the present invention, also provide a kind of switch.This switch is used for the downhole data exchange, comprising: data reception module is used for receiving the packet of being uploaded by each interface; The agreement memory module is used for storage packet is resolved needed agreement; Data resolution module, the packet that is used for each interface is uploaded is according to resolving in the agreement of agreement memory module storage; The protocol update module is used for resolving for the first time when failed at the packet that the data resolution module docking port is uploaded, and this packet or the device type extracted from this packet are transferred to host computer by communication network; Receive the communication protocol that host computer inquires according to this packet or the device type extracted from this packet, and this communication protocol is stored to the agreement memory module.
According to a further aspect of the invention, also provide a kind of host computer.This host computer is used for aboveground agreement storage, comprising: memory module, the communication protocol that is used for storing underground equipment; The agreement enquiry module is used for packet or facility information that basis is reported by the down-hole switch, extracts this packet or communication protocol corresponding to facility information from memory module, and this communication protocol is postbacked to the down-hole switch.
(3) beneficial effect
Can find out that from technique scheme mine Internet of Things integrated communications system of the present invention, switch and host computer have following beneficial effect:
(1) the present invention realizes the automatically communication protocol of inquiry and renewal itself of down-hole switch, brings the agreement incompatibility problem after can reducing to increase new equipment, can simple, quick compatible newly added equipment, saved manpower and materials;
(2) the embedded type CPU support is inquired about New Deal and online with New Deal and be cured among the outside FLASH, but such design can realize need not to upgrade just online updating agreement of embedded type CPU firmware, farthest guaranteed security of system;
(3) realize dissimilar agreements is carried out conversion process, different communication Protocol Conversion is become IP-based communication mode, thereby made things convenient for host computer that the data that receive are processed.
Embodiment
For making the purpose, technical solutions and advantages of the present invention clearer, below in conjunction with specific embodiment, and with reference to accompanying drawing, the present invention is described in more detail.Need to prove that in accompanying drawing or specification description, similar or identical part is all used identical figure number.The implementation that does not illustrate in the accompanying drawing or describe is form known to a person of ordinary skill in the art in the affiliated technical field.
In the mine Internet of Things integrated communications system of the present invention, on the ore deposit, increase new and have different communications protocol equipment, only need to after connecting, hardware communication interface add communication protocol in the host computer to aboveground, the down-hole switch is inquired about New Deal to host computer after receiving unknown agreement automatically, begin communication after receiving and agreement is deposited among the outer FLASH of sheet, thereby realize simple, quick compatible newly added equipment.
In one exemplary embodiment of the present invention, provide mine Internet of Things integrated communications system.As shown in Figure 2, this mine Internet of Things integrated communications system comprises: be positioned at the down-hole switch, be positioned at aboveground host computer and connect switch and the communication network of host computer.
Switch is positioned at the down-hole, is transferred to host computer by communication network after being responsible for the data of down-hole various port are resolved, and it possesses online query and the function of New Deal more.When switch utilized the agreement of self storing can't resolve the packet that receives, extraction equipment information from this packet was sent to host computer with this facility information by communication network; And when the failure of extraction equipment information from packet, this packet is sent to host computer by communication network; Receive and the storage host computer according to device type or packet inquire about obtain these data that can't resolve are resolved needed communication protocol.
Further, this switch can comprise again: data reception module is used for receiving the packet of being uploaded by each interface; The agreement memory module is used for storage packet is resolved needed agreement; Data resolution module, the packet that is used for each interface is uploaded is according to resolving in the agreement of agreement memory module storage; The protocol update module, be used for when the packet that data resolution module can't docking port be uploaded is resolved, this packet or the facility information that extracts from packet are transferred to host computer by communication network, and receive the communication protocol that host computer inquires according to this packet or facility information, and this communication protocol is stored to the agreement memory module.
By communicating by letter of down-hole switch and aboveground host computer, realize the automatically communication protocol of inquiry and renewal itself of down-hole switch, bring the agreement incompatibility problem after can reducing to increase new equipment, can simple, quick compatible newly added equipment, saved manpower and materials.
For fear of the switch that causes crashes because agreement is upgraded, destroy self firmware program, data reception module, data resolution module and protocol update module are all solidified in the middle of embedded type CPU, and the agreement memory module is the outer FLASH chip of sheet, and it is connected in the middle of the above-mentioned embedded type CPU.
In addition, described agreement memory module can also comprise: the first sub module stored, all solidify in the middle of embedded type CPU with data reception module, data resolution module and protocol update module, and be used for the default communication protocol of storage; The second sub module stored for being independent of the FLASH chip outside the described embedded type CPU, is used for the communication protocol that storage is issued by host computer.
By the outer FLASH chip-stored communication protocol of sheet is set, save the research staff and again write the trouble of integrated communication switch program for new equipment communication protocol, promoted simultaneously the embedded protective effect of firmware program itself.
For the correct parsing of mouthful uploading data that achieves a butt joint, above-mentioned data resolution module, failed data are thin resolves again to resolving also to be used for extracting the communication protocol that is issued by host computer from the agreement memory module; If again resolve unsuccessfully, then send alarm signal by communication network to host computer.
In order to realize the unification of signal, this mine Internet of Things integrated communications system also comprises: coding module, be used for utilizing the data of data resolution module successfully resolved, be converted to the packet that meets ICP/IP protocol, and this packet is uploaded to host computer by the optical fiber ring network interface.
Communication network is used for the data communication between host computer and the switch.What commonly use in mine is the optical fiber communication mode-optical fiber ring network of redundant mode.
Host computer, be positioned at aboveground, the communication protocol that is used for all devices under the storage well, when receiving switch and resolve failed packet, this packet is analyzed, know the facility information of this packet by the identifier in the packet, and the communication protocol that this equipment is corresponding is issued to switch by communication network.
Further, this host computer can comprise again: memory module, the communication protocol that is used for storing underground equipment; The agreement enquiry module is used for extracting communication protocol corresponding to this equipment from described memory module, and this communication protocol being postbacked to the down-hole switch according to described packet or the facility information that extracts from packet.
In the present embodiment, interface can comprise various hardware communication interface, such as RS485 interface, RS232 interface, RJ45 interface, 2.4G wave point, 433M wave point, WIFI interface, CAN interface, optical fiber interface, video interface etc.
On a concrete scene of present embodiment, for example increase baroceptor equipment newly, baroceptor equipment sends to the switch of down-hole with the barometric information bag that collects, and packet content is as follows:
Switch finds that packet device type 0xE8 wherein resolves without the communication protocol of correspondence, so send the unidentified communications command of inquiry by optical fiber ring network host computer earthward, comprises device type 0xE8 in the order.The host computer on ground inquires corresponding agreement and agreement is issued to Internet of Things integrated communication switch by optical fiber ring network according to device type.The integrated communication switch is accepted after the new traffic agreement agreement of just now not resolving to be resolved again, resolves complete rear storage New Deal to the agreement memory module.In addition, the down-hole switch also can be uploaded the packet of complete None-identified.Resolve and inquire about by aboveground host computer, and postback the suitable communication protocol that this type packet is resolved of being used for.
According to another aspect of the present invention, also provide a kind of switch.In one embodiment of the invention, this switch is used for the downhole data exchange, comprising: data reception module is used for receiving the packet of being uploaded by each interface; The agreement memory module is used for storage packet is resolved needed agreement; Data resolution module, the packet that is used for each interface is uploaded is according to resolving in the agreement of agreement memory module storage; The protocol update module is used for resolving for the first time when failed at the packet that the data resolution module docking port is uploaded, and this packet or the device type extracted from this packet are transferred to host computer by communication network; Receive the communication protocol that host computer inquires according to this packet or the facility information that extracts from this packet, and this communication protocol is stored to the agreement memory module.
Present embodiment can be used all technical characteristic of said system embodiment, no longer redescribes herein.
According to another aspect of the present invention, also provide a kind of host computer.In one embodiment of the invention, this host computer is used for aboveground agreement storage, comprising: memory module, the communication protocol that is used for storing underground equipment; The agreement enquiry module is used for packet or facility information that basis is reported by the down-hole switch, extracts this packet or communication protocol corresponding to facility information from described memory module, and this communication protocol is postbacked to the down-hole switch.
In like manner, present embodiment can be used all technical characteristic of said system embodiment, no longer redescribes herein.
Above-described specific embodiment; purpose of the present invention, technical scheme and beneficial effect are further described; institute is understood that; the above only is specific embodiments of the invention; be not limited to the present invention; within the spirit and principles in the present invention all, any modification of making, be equal to replacement, improvement etc., all should be included within protection scope of the present invention.