CN109462613A - A kind of communications protocol compatibility method - Google Patents
A kind of communications protocol compatibility method Download PDFInfo
- Publication number
- CN109462613A CN109462613A CN201811612932.6A CN201811612932A CN109462613A CN 109462613 A CN109462613 A CN 109462613A CN 201811612932 A CN201811612932 A CN 201811612932A CN 109462613 A CN109462613 A CN 109462613A
- Authority
- CN
- China
- Prior art keywords
- smart machine
- protocol
- communications protocol
- sent
- instruction
- 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.)
- Withdrawn
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L69/00—Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
- H04L69/08—Protocols for interworking; Protocol conversion
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L69/00—Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
- H04L69/18—Multiprotocol handlers, e.g. single devices capable of handling multiple protocols
Landscapes
- Engineering & Computer Science (AREA)
- Computer Security & Cryptography (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Communication Control (AREA)
Abstract
The present invention provides a kind of communications protocol compatibility method.This method comprises: the communications protocol and facility information of step 1, reception smart machine, and assembly is combined to the facility information according to the communications protocol and obtains instruction to be sent;The instruction to be sent is put into preset uniform protocol, and the uniform protocol is sent to smart machine by step 2, so that smart machine sends return instruction according to uniform protocol;Step 3 receives the return instruction that smart machine is sent, and is parsed according to the communications protocol to the return instruction;The content of step 1 to step 3 is packaged into file storage to predeterminated position by step 4, is communicated according to the file and the smart machine;If step 5, the communications protocol for receiving newly-increased smart machine repeat step 1 to step 4;Conversely, then terminating to communicate.This invention simplifies equipment frameworks, improve equipment compatibility, reduce maintenance cost.
Description
Technical field
The present invention relates to the smart machines of intellectualizing system construction technique field more particularly to a variety of producer's different models to need
A kind of compatible method of the communications protocol for wanting the intellectualizing system of integrated communication to build.
Background technique
Existing intelligence system all went the agreement of parsing third party device by hardware device in the past, and main flow is as follows:
Firstly, software systems are sent an instruction in management equipment according to unified agreement;Then, management equipment receives software systems hair
After the instruction sent, by the instruction according to the communications protocol of equipment, the transmission instruction for converting forming apparatus is sent to equipment end;It connects down
Come, after equipment end receives instruction, returns to management equipment, instruction is converted to unified agreement again and is back to software by management equipment
In system;Finally, the parsing that software systems are instructed according to unified agreement.For example, Chinese patent
CN201611270105.4 discloses the processing method and processing device that a kind of multilist collection copies agreement, is applied to multilist centralized meter-reading system, just
It is that protocol processes are realized by communication interface converter, concentrator only needs support fixed protocol.Communication interface converter receives
After the first command frame sent to concentrator, the protocol type of first command frame can be obtained, to obtain according to the first command frame
It gets after the meter reading data of meter reading meter, meter reading data is carried out being packed into first according to the protocol type of the first command frame and is answered
It answers data frame and is sent to concentrator.
According to existing method process it is found that needing mating multiple hardwares gateway (example as long as the instrument for increasing a kind of producer
Such as, increase corresponding communication interface converter) etc. equipment.Since the following intelligence system integration degree is higher and higher, across setting
In the case where standby, inter-trade integration, protocol interface cannot accomplish unification.Using hardware devices such as conventional gateways, then what is needed sets
It is standby more, it is at high cost, and later maintenance is inconvenient, need to waste a large amount of manpower and enter power.This results in production division's error rate to increase
Add, after sale department search problem success rate reduce, system maintenance increased costs.
Acquisition device can be kept unity and can facilitate acquisition third the drawbacks of in order to improve existing intelligence system
The data of method, apparatus, and it is adapted to the smart machine of a variety of producers, it is badly in need of a kind of communications protocol compatibility method.
Summary of the invention
To solve the deficiencies in the prior art, the present invention provides a kind of communications protocol compatibility method, improves equipment
Compatibility reduces the cost of construction and maintenance;And when newly-increased smart machine, it is only necessary to increase in platform software system
There is protocol packing file increase and decrease flexibly to change simple feature.
A kind of communications protocol compatibility method provided by the invention, mainly comprises the steps that
Step 1, receive smart machine communications protocol and facility information, and according to the communications protocol to the facility information into
Row composite assembly obtains instruction to be sent;
The instruction to be sent is put into preset uniform protocol, and the uniform protocol is sent to smart machine by step 2,
So that smart machine sends return instruction according to uniform protocol;
Step 3 receives the return instruction that smart machine is sent, and is parsed according to the communications protocol to the return instruction;
The content of step 1 to step 3 is packaged into file storage to predeterminated position, according to the file and the intelligence by step 4
Equipment is communicated;
If step 5, the communications protocol for receiving newly-increased smart machine repeat step 1 to step 4;Conversely, then terminating to lead to
News.
Further, the facility information includes: device type and device address.
Further, in the step 2, according to uniform protocol requirement by it is described it is to be sent instruction with the uniform protocol
Carry out permutation and combination and transmission.
Further, in the step 4, when being stored to the file, the file name of the file and described
The facility information existence anduniquess corresponding relationship of smart machine;When needing to be communicated with the smart machine, then according to
Corresponding relationship calls the file.
Beneficial effects of the present invention:
The compatible method of a kind of communications protocol provided by the invention, according to the communication for the different types of smart machine that user provides
Agreement carries out writing for program to the transmitting-receiving instruction of smart machine, then by the communications protocol transmitting-receiving instruction envelope of the smart machine
Data character string is dressed up, is communicated after the completion of overall package according to the uniform protocol of system default.The present invention solves intelligence
In change system, the integration problem of multiple plant equipments simplifies system equipment framework, improves equipment compatibility, reduces and apply
The cost of work and maintenance;And when newly-increased smart machine, it is only necessary to which increasing protocol packing file in platform software system is
Can, there is increase and decrease flexibly to change simple feature.
Detailed description of the invention
Fig. 1 is the flow diagram of the kernel module partition method provided in an embodiment of the present invention based on module powers and functions
Specific embodiment
To make the object, technical solutions and advantages of the present invention clearer, below in conjunction with attached in the embodiment of the present invention
Figure, technical solution in the embodiment of the present invention are explicitly described, it is clear that described embodiment is a part of the invention
Embodiment, instead of all the embodiments.Based on the embodiments of the present invention, those of ordinary skill in the art are not making wound
Every other embodiment obtained under the premise of the property made labour, shall fall within the protection scope of the present invention.
Smart machine of the present invention includes smart metering device and smart home device.For example, intelligent electric meter, water
The equipment such as table, gas meter, flow meter, calorimeter, intelligent lighting, intelligent air condition.
Fig. 1 is a kind of flow diagram of communications protocol compatibility method provided in an embodiment of the present invention.As shown in Figure 1, should
Method the following steps are included:
S101, receive smart machine communications protocol and facility information, and according to the communications protocol to the facility information into
Row composite assembly obtains instruction to be sent;
Specifically, software systems can receive the communications protocol of the related smart machine of user's upload, communications protocol rule in advance
Surely there is the rule of communication between smart machine and software systems;Then, software systems will be intelligent according to the requirement of the communications protocol
The facility information of equipment is combined assembly, obtains an instruction.The facility information includes: device type and device address.
S102, the instruction to be sent is put into preset uniform protocol, and the uniform protocol is sent to intelligence and is set
It is standby, so that smart machine sends return instruction according to uniform protocol;
Specifically, software systems by instructing combination that step S101 is obtained into being edited in the uniform protocol set in advance, then
Combined uniform protocol is sent to smart machine, smart machine reads the uniform protocol after receiving the uniform protocol
In instruction, according to instruction content to software systems return one instruction.The uniform protocol refers to software systems and each producer
Smart machine communication specification applicable when being communicated.By instructing combination into uniform protocol and when sending, should be according to
The requirement of uniform protocol will instruct and carry out permutation and combination and transmission with uniform protocol.
S103, the return instruction that smart machine is sent is received, the return instruction is solved according to the communications protocol
Analysis;
S104, the content of step 1 to step 3 is packaged into file storage to predeterminated position, according to the file and the intelligence
Equipment is communicated;
Specifically, the communications protocol of the distinct device provided according to user, software systems set intelligence according to communications protocol content
Standby transmitting-receiving instruction carries out writing for program, and the transmitting-receiving instruction of this device protocol is then packaged into data character illustration and text juxtaposed setting as requested
Part, overall package are uploaded to the predeterminated position of software systems after the completion.When being stored to the file, the text of the file
The facility information existence anduniquess corresponding relationship of part title and the smart machine.In this way, software systems need and smart machine into
When row communication, then the uniform protocol of calling above-mentioned data character string file to default according to software systems according to the corresponding relationship into
Row communication.
If S105, the communications protocol for receiving newly-increased smart machine repeat step 1 to step 4;Conversely, then tying
Beam communication.
Method provided in an embodiment of the present invention is right according to the communications protocol for the different types of smart machine that user provides
The transmitting-receiving instruction of smart machine carries out writing for program, and the communications protocol transmitting-receiving instruction of the smart machine is then packaged into data
Character string, overall package are communicated according to the uniform protocol of system default after the completion.Relative to the integrated of existing intelligence system
Mode, the present invention solve in intellectualizing system, the integration problem of multiple plant equipments, simplify system equipment framework, improve
Equipment compatibility, reduces the cost of construction and maintenance;And when newly-increased smart machine, it is only necessary in platform software system
There is middle increase protocol packing file increase and decrease flexibly to change simple feature.
Finally, it should be noted that the above embodiments are merely illustrative of the technical solutions of the present invention, rather than its limitations;Although
Present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that: it still may be used
To modify the technical solutions described in the foregoing embodiments or equivalent replacement of some of the technical features;
And these are modified or replaceed, technical solution of various embodiments of the present invention that it does not separate the essence of the corresponding technical solution spirit and
Range.
Claims (4)
1. a kind of communications protocol compatibility method characterized by comprising
Step 1, receive smart machine communications protocol and facility information, and according to the communications protocol to the facility information into
Row composite assembly obtains instruction to be sent;
The instruction to be sent is put into preset uniform protocol, and the uniform protocol is sent to smart machine by step 2,
So that smart machine sends return instruction according to uniform protocol;
Step 3 receives the return instruction that smart machine is sent, and is parsed according to the communications protocol to the return instruction;
The content of step 1 to step 3 is packaged into file storage to predeterminated position, according to the file and the intelligence by step 4
Equipment is communicated;
If step 5, the communications protocol for receiving newly-increased smart machine repeat step 1 to step 4;Conversely, then terminating to lead to
News.
2. the method according to claim 1, wherein the facility information includes: device type and device address.
3., will be described according to the requirement of uniform protocol the method according to claim 1, wherein in the step 2
Instruction to be sent carries out permutation and combination and transmission with the uniform protocol.
4. the method according to claim 1, wherein in the step 4, when being stored to the file,
The facility information existence anduniquess corresponding relationship of the file name of the file and the smart machine;When needs are set with the intelligence
For when being communicated, then the file is called according to the corresponding relationship.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811612932.6A CN109462613A (en) | 2018-12-27 | 2018-12-27 | A kind of communications protocol compatibility method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811612932.6A CN109462613A (en) | 2018-12-27 | 2018-12-27 | A kind of communications protocol compatibility method |
Publications (1)
Publication Number | Publication Date |
---|---|
CN109462613A true CN109462613A (en) | 2019-03-12 |
Family
ID=65615317
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201811612932.6A Withdrawn CN109462613A (en) | 2018-12-27 | 2018-12-27 | A kind of communications protocol compatibility method |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109462613A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN115086443A (en) * | 2022-05-27 | 2022-09-20 | 广东省离散智造科技创新有限公司 | Communication protocol conversion method and system |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20120036563A1 (en) * | 2010-08-04 | 2012-02-09 | At&T Mobility Ii Llc | Systems, devices, methods and computer program products for establishing network connections between service providers and applications that run natively on devices |
CN103281337A (en) * | 2013-06-20 | 2013-09-04 | 安科智慧城市技术(中国)有限公司 | Method, server and system for equipment centralized management |
CN105404385A (en) * | 2014-05-30 | 2016-03-16 | 阿里巴巴集团控股有限公司 | Method and device for realizing data interaction between intelligent display terminal and somatosensory equipment |
-
2018
- 2018-12-27 CN CN201811612932.6A patent/CN109462613A/en not_active Withdrawn
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20120036563A1 (en) * | 2010-08-04 | 2012-02-09 | At&T Mobility Ii Llc | Systems, devices, methods and computer program products for establishing network connections between service providers and applications that run natively on devices |
CN103281337A (en) * | 2013-06-20 | 2013-09-04 | 安科智慧城市技术(中国)有限公司 | Method, server and system for equipment centralized management |
CN105404385A (en) * | 2014-05-30 | 2016-03-16 | 阿里巴巴集团控股有限公司 | Method and device for realizing data interaction between intelligent display terminal and somatosensory equipment |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN115086443A (en) * | 2022-05-27 | 2022-09-20 | 广东省离散智造科技创新有限公司 | Communication protocol conversion method and system |
CN115086443B (en) * | 2022-05-27 | 2024-03-22 | 广东省离散智造科技创新有限公司 | Communication protocol conversion method and system |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN201146538Y (en) | Apparatus for protocol conversion | |
CN109450662A (en) | Ad hoc network communication manager and network-building method, ad hoc network communication system | |
CN107766132A (en) | Multi-task scheduling method, application server and computer-readable recording medium | |
CN110429708B (en) | Method and system for realizing plug and play of power distribution equipment | |
CN105763619B (en) | The method and device that client and server-side are communicated | |
CN102185383A (en) | Method and system for realizing data sharing between power distribution main station system and power distribution GIS (Geographic Information System) | |
CN105429858A (en) | Real-time message transmission method among multiple robots | |
CN110012002A (en) | Message parsing method, device and server, computer readable storage medium | |
CN109495290B (en) | Operation and maintenance system main station and sub station interaction method and system | |
CN102752299B (en) | Debugging-free composite communication device and method for electric vehicle charging station | |
CN111064726B (en) | Method and system for realizing data conversion between GOOSE protocol and HDLC protocol | |
CN109347861B (en) | Communication method of real-time dynamic monitoring system | |
CN109462844A (en) | A kind of system and method that list WiFi chip runs multi-platform SDK | |
CN107450993A (en) | A kind of data interactive method of distributed IEC61850 communication components | |
CN102055806B (en) | Remote intelligent terminal service control system | |
CN109462613A (en) | A kind of communications protocol compatibility method | |
CN103905233B (en) | Realize method, system and the access network device of analog sensor plug and play | |
CN104539576B (en) | Communication means and system based on IPv6 networks | |
CN107911157B (en) | Universal satellite command automation technology data processing system and method | |
CN113543185B (en) | Automatic-opening-assistance-based 5G high-density base station rapid operation method and system | |
CN106059635A (en) | Bluetooth setting method and device for electronic equipment and Bluetooth connection method | |
CN110808982B (en) | Communication protocol establishing method and system based on registration mechanism | |
CN105207854A (en) | Multi-terminal concurrent testing system and method | |
CN107018085A (en) | A kind of saving flow control methods of industrial control unit (ICU) network cloud management system | |
CN113848829A (en) | Main station and substation integrated operation and maintenance method and system for factory and mine power grid regulation and control system |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
CB02 | Change of applicant information |
Address after: 450000 Beidou Industrial Park C28-2, No. 50 Wutong Street, Zhengzhou High-tech Industrial Development Zone, Henan Province Applicant after: ZHENGZHOU CHUNQUAN ENERGY-SAVING Co.,Ltd. Address before: Bamboo high tech Development Zone in Henan province 450000 Zhengzhou Street No. 6 Building 1 unit 8 floor No. 13 East 1 Applicant before: ZHENGZHOU CHUNQUAN ENERGY-SAVING Co.,Ltd. |
|
CB02 | Change of applicant information | ||
WW01 | Invention patent application withdrawn after publication |
Application publication date: 20190312 |
|
WW01 | Invention patent application withdrawn after publication |