CN111343196B - Communication system and communication method compatible with multiple communication protocols - Google Patents

Communication system and communication method compatible with multiple communication protocols Download PDF

Info

Publication number
CN111343196B
CN111343196B CN202010197493.8A CN202010197493A CN111343196B CN 111343196 B CN111343196 B CN 111343196B CN 202010197493 A CN202010197493 A CN 202010197493A CN 111343196 B CN111343196 B CN 111343196B
Authority
CN
China
Prior art keywords
equipment
matching degree
communication
manufacturer
interface
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.)
Active
Application number
CN202010197493.8A
Other languages
Chinese (zh)
Other versions
CN111343196A (en
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.)
Guangzhou City Construction & Development Mint Network Development Co ltd
Original Assignee
Guangzhou City Construction & Development Mint Network Development 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 Guangzhou City Construction & Development Mint Network Development Co ltd filed Critical Guangzhou City Construction & Development Mint Network Development Co ltd
Priority to CN202010197493.8A priority Critical patent/CN111343196B/en
Publication of CN111343196A publication Critical patent/CN111343196A/en
Application granted granted Critical
Publication of CN111343196B publication Critical patent/CN111343196B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

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/18Multiprotocol handlers, e.g. single devices capable of handling multiple protocols

Abstract

The invention discloses a communication system and a communication method compatible with various communication protocols, which comprises the following steps: step S1: reading a local equipment management configuration file, and acquiring equipment manufacturer information, equipment attributes, equipment uniqueness marks and equipment types; step S2: loading a corresponding manufacturer interface driver and interface communication interface service according to the equipment manufacturer information; step S3: monitoring the device type task; step S4: extracting the message of the task queue in the step S3, judging whether the message issued to the equipment exists, if so, entering the next step, otherwise, jumping to the step S3; step S5: according to the general message format in the system, the unique identification of the recording task is extracted, the unique identification of the task control equipment is obtained, the equipment type is matched according to the equipment identification, the corresponding equipment type data conversion is called, the content is converted into the corresponding equipment communication protocol, the corresponding communication interface is used for sending out, and the interconnection and intercommunication among different manufacturer equipment is realized.

Description

Communication system and communication method compatible with multiple communication protocols
Technical Field
The invention relates to the technical field of mobile communication, in particular to a communication system and a communication method compatible with multiple communication protocols.
Background
Existing manufacturers select communication interfaces according to application scenarios of products, and influences of equipment node cost, network cost, battery life, data transmission rate (throughput), delay, mobility, network coverage and deployment type, establish respective single communication access technologies and proprietary protocols, establish respective independent equipment ecosystems by the manufacturers, and only equipment under the same manufacturer brand can realize communication between the equipment.
Due to a single communication access technology and a private protocol, data interconnection and intercommunication cannot be technically realized among products of different brands, and even though people all adopt the same communication access technology, manufacturers cannot open a calling interface to competitors in order to protect the benefits of respective products.
Due to the independent ecological problem of manufacturers, the capacity of small manufacturers is limited, the research and development period is long, the ecological forming speed is low, the communication access technology is single in structure, the manufacturer brand of the internet of things ecology cannot be formed, and the users cannot be attracted to purchase the internet of things. And once equipment is damaged, a user only needs to replace products of other manufacturers, the equipment replacement cost is high, and otherwise, the effect of interconnection cannot be realized.
Therefore, a communication system and a communication method compatible with a plurality of communication protocols are provided.
Disclosure of Invention
The present invention is directed to a communication system and a communication method compatible with multiple communication protocols to solve the problems of the background art.
In order to achieve the purpose, the invention provides the following technical scheme: a communication method compatible with a plurality of communication protocols comprises the following steps:
step S1: reading a local equipment management configuration file, and acquiring equipment manufacturer information, equipment attributes, equipment uniqueness marks and equipment types;
step S2: loading a corresponding manufacturer interface driver and interface communication interface service according to the equipment manufacturer information;
step S3: monitoring the device type task;
step S4: extracting the message of the task queue in the step S3, judging whether a message issued to the equipment exists, if so, entering the next step, otherwise, jumping to the step S3;
step S5: according to the general message format in the system, extracting the unique identification of the recorded task, acquiring the unique identification of the task control equipment, matching the equipment type according to the equipment identification, calling corresponding equipment type data conversion, converting the content into a corresponding equipment communication protocol, and sending the protocol out through a corresponding communication interface;
in step S1, an equipment manufacturer matrix G (a, K, L, T, M, J) is stored in the local equipment management configuration file, where a represents manufacturer information, K represents an equipment attribute, L represents an equipment flag, T represents an equipment type, M represents a task type of equipment of a corresponding manufacturer, and J represents a corresponding interface driver matrix;
the interface driving matrix J (I, Z), I represents the interface driving identification, and sets various interfaces; z represents the matching degree of corresponding interface drive, which is arranged from high to low in sequence;
when the corresponding manufacturer interface driver in the queue is loaded according to the equipment manufacturer information, acquiring an interface driver identifier I in real-time butt joint, judging the matching degree Z corresponding to the current interface, evaluating whether the requirement of the corresponding equipment of the corresponding manufacturer is met, and sequentially judging and selecting.
Further, a minimum matching degree matrix Z4 (A, T, Z3) corresponding to the manufacturer equipment is set, A represents manufacturer information, T represents equipment type, and Z3 represents the minimum matching degree corresponding to the interface driver.
Further, a selection matrix Z (A, T, Z0, Z2, Z1) corresponding to the matching degree of factory equipment is set, wherein A represents corresponding factory information, T represents a corresponding equipment type, Z1 represents the matching degree of a communication protocol, Z2 represents the matching degree of a communication interface, Z0 represents the lowest matching degree of a factory, Z1 is larger than Z2, and Z2 is larger than Z0;
the manufacturer information matrix stores corresponding identifications of all manufacturers and corresponding manufacturer names; the equipment type matrix is determined by corresponding manufacturers, different equipment types correspond to a certain manufacturer, and equipment in the same manufacturer can be replaced;
when the real-time matching degree comparison is carried out through the interface drive, firstly, a corresponding mode is determined according to a matching degree interval where the matching degree Z is obtained in real time, and when the matching degree is low, modes of replacing a communication interface, replacing the type of equipment, replacing a manufacturer and stopping communication are respectively adopted.
Further, when the matching degree Z of the interface driver determined in real time is greater than the communication protocol matching degree Z1, normal communication is performed according to the step S5;
when the matching degree Z of the interface drive determined in real time is greater than the matching degree Z2 of the communication interface and less than the matching degree Z1 of the communication protocol, the manufacturer information is unchanged, the corresponding equipment type is unchanged, and the communication protocol is replaced;
when the matching degree Z of the interface drive determined in real time is larger than the lowest matching degree Z0 of the manufacturer and smaller than the matching degree Z2 of the communication interface, the manufacturer information is unchanged, and the corresponding equipment type is replaced;
and when the matching degree Z of the interface driver determined in real time is smaller than the lowest matching degree Z0 of the manufacturer, the manufacturer needs to be replaced, and the communication is stopped.
Further, for the standard matching degree of a certain manufacturer, the obtaining mode is as follows:
obtaining the matching degrees Z1, Z2 and Zi of the corresponding interfaces, and calculating the average matching degree Zk = (Z1+ Z2+ … … + Zi)/i;
communication protocol match Z1=1.5 x Zk;
communication interface matching degree Z2=1.1 x Zk;
the lowest match Z0=0.9 x Zk.
Further, the device status reporting function, that is, after step S2 is completed, further includes the following steps:
step S6: monitoring equipment information;
step S7: judging whether a message report exists according to a hardware enabling bit of the communication interface, if so, entering the next step, otherwise, entering the step S6;
step S8: extracting the equipment identity information through the equipment data content, matching the equipment identification corresponding to the equipment management, calling the corresponding equipment type data for processing, and converting into a general message format in the system.
Further, if there are a plurality of devices of different manufacturers in the step S2, the communication services of the corresponding manufacturers are loaded, and the corresponding steps S3 and S6 are performed.
Further, the method also comprises the step of processing the abnormal task state, which comprises the following steps:
step S9: monitoring the state of a task queue;
step S10: judging whether equipment offline exists or not, whether the returned state of the equipment is inconsistent with the control result or not and whether the task is overtime or not according to the task identifier, the task initiating time and the equipment state, if so, entering the next step, and if not, returning to the step S9;
step S11: and generating local log information according to the abnormal task type, the unique task identifier, the task time, the task sender, the task receiver and the task content.
Further, the method also comprises a client management service, and comprises the following steps:
step S12: establishing a communication service end of a communication system according to an agreement mode;
step S13: waiting for the client to access;
step S14: if a new client is added, the next step is carried out, otherwise, the step S13 is carried out;
step S15: and recording the corresponding communication socket of the new client, the identity information transmitted by the client, monitoring the queue task, and reporting the task information to the client if the reporting task is not completed. If the server receives the message of the client, the type of the message, the unique identification of the message, the identification of the controlled equipment and the communication socket identification of the client are extracted, and a corresponding assigned task is created.
On the other hand, the invention also provides a communication system compatible with a plurality of communication protocols, which comprises a communication module and a data processing module, wherein the data processing module is electrically connected with the communication module;
the data processing module is internally provided with a local equipment management configuration file, acquires equipment manufacturer information, equipment attribute, equipment uniqueness mark and equipment type information, and loads a corresponding manufacturer interface driver and interface communication interface service according to the equipment manufacturer information;
the data processing module extracts and records the unique identification of the task according to the general message format in the system, acquires the unique identification of the task control equipment, matches the equipment type according to the equipment identification, calls corresponding equipment type data conversion, converts the content into a corresponding equipment communication protocol, and sends the protocol out through a corresponding communication interface;
an equipment manufacturer matrix G (A, K, L, T, M, J) is stored in the local equipment management configuration file, wherein A represents manufacturer information, K represents equipment attribute, L represents an equipment mark, T represents equipment type, M represents a task type of equipment of a corresponding manufacturer, and J represents a corresponding interface driving matrix;
the interface driving matrix J (I, Z), I represents the interface driving identification, and sets various interfaces; z represents the matching degree of corresponding interface drive, which is arranged from high to low in sequence;
when the corresponding manufacturer interface driver in the queue is loaded according to the equipment manufacturer information, acquiring an interface driver identifier I in real-time butt joint, judging the matching degree Z corresponding to the current interface, evaluating whether the requirement of the corresponding equipment of the corresponding manufacturer is met, and sequentially judging and selecting.
Compared with the prior art, the invention has the beneficial effects that: the communication system and the method of the invention are to solve the problem that users CAN use equipment of different manufacturers and are not subject to communication barriers brought by different communication interfaces of different manufacturers, the invention is a communication system compatible with a plurality of communication protocols, the communication system is compatible with a plurality of communication interfaces of Ethernet (RJ 45, wifi, 4G), RS485, CAN and Zigbee, by standardizing a communication data structure from the communication module to the cloud end, the communication module adopts different interfaces to butt joint with the established private protocol of each manufacturer according to different application scenes of equipment of different manufacturers to analyze the communication into standard communication, so that the data transmission among the devices, the devices and the cloud end, and the cloud end is consistent, therefore, interconnection and intercommunication among different manufacturer equipment are realized, and a user can select equipment of different manufacturers on the basis of using the communication system without being influenced by cross-communication interfaces and communication protocols.
In particular, an equipment manufacturer matrix G (a, K, L, T, M, J) is stored in the local equipment management configuration file, where a represents manufacturer information, K represents an equipment attribute, L represents an equipment flag, T represents an equipment type, M represents a task type of equipment of a corresponding manufacturer, and J represents a corresponding interface driving matrix; the interface driving matrix J (I, Z), I represents the interface driving identification, and sets various interfaces; z represents the matching degree of corresponding interface drive, which is arranged from high to low in sequence; when the corresponding manufacturer interface driver in the queue is loaded according to the equipment manufacturer information, acquiring an interface driver identifier I in real-time butt joint, judging the matching degree Z corresponding to the current interface, evaluating whether the requirement of the corresponding equipment of the corresponding manufacturer is met, and sequentially judging and selecting.
Particularly, the invention sets the lowest matching degree and the standard matching degree, when the real-time matching degree comparison is carried out through the interface drive, firstly, the corresponding mode is determined according to the matching degree interval where the matching degree Z is obtained in real time, and when the matching degree is low, the modes of replacing the equipment type, replacing the manufacturer and stopping the communication are respectively adopted, so that the communication compatibility is higher.
Drawings
FIG. 1 is a flow chart illustrating compatibility of multiple communication protocols according to an embodiment of the present invention;
fig. 2 is a functional block diagram of multiple communication protocols compatible according to an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Referring to fig. 1, the present invention provides a technical solution: a communication method compatible with a plurality of communication protocols comprises the following steps:
step S1: reading a local equipment management configuration file, acquiring equipment manufacturer information, equipment attribute, equipment uniqueness mark and equipment type, and calling the local configuration file through the acquired equipment manufacturer information, the equipment attribute, the equipment uniqueness mark and the equipment type;
step S2: loading a corresponding manufacturer interface driver and interface communication interface service according to the equipment manufacturer information; the interface drive is preloaded, so that the working efficiency of the system is improved, and the response is rapid.
Step S3: monitoring the device type task;
step S4: extracting the message of the task queue in the step S3, judging whether the message issued to the equipment exists or not, if so, entering the next step, otherwise, jumping to the step S3, and entering the next step after knowing that the message issued to the equipment exists;
step S5: according to the general message format in the system, the unique identification of the recording task is extracted, the unique identification of the task control equipment is obtained, the corresponding equipment type data conversion is called according to the equipment type matched with the equipment identification, the content is converted into the corresponding equipment communication protocol, and the corresponding communication interface is used for sending out, so that the intercommunication among a plurality of different manufacturer equipment is realized.
Particularly, the system also comprises a device state reporting function, and the device state is reported in real time, so that the running condition of the system can be monitored in real time conveniently.
Specifically, the device status reporting function, that is, after step S2 is completed, further includes the following steps:
step S6: monitoring equipment information;
step S7: judging whether a message report exists according to a hardware enabling bit of the communication interface, if so, entering the next step, otherwise, entering the step S6;
step S8: extracting equipment identity information through equipment data content, matching equipment identification corresponding to equipment management, calling corresponding equipment type data for processing, converting the equipment type data into a general message format in the system, generating the general message format in the system, calling task creation of task management, and reporting a task.
Specifically, if there are a plurality of devices of different manufacturers in step S2, the communication services of the corresponding manufacturers are loaded, and a plurality of corresponding steps S3 and S6 are performed to facilitate simultaneously trying connections between the devices of the manufacturers.
Specifically, the method also comprises exception task state processing, and comprises the following steps:
step S9: monitoring the state of a task queue;
step S10: judging whether equipment offline exists or not, whether the returned state of the equipment is inconsistent with the control result or not and whether the task is overtime or not according to the task identifier, the task initiating time and the equipment state, if so, entering the next step, and if not, returning to the step S9;
step S11: according to the abnormal task type, the unique task identification, the task time, the task sender, the task receiver and the task content, log information is locally recorded, so that the reason of the abnormal condition can be conveniently analyzed and processed in time.
Specifically, the method further comprises a client management service, and comprises the following steps:
step S12: establishing a communication service end of a communication system according to an agreement mode;
step S13: waiting for the client to access;
step S14: if a new client is added, the next step is carried out, otherwise, the step S13 is carried out;
step S15: and recording the corresponding communication socket of the new client, the identity information transmitted by the client, monitoring the queue task, and reporting the task information to the client if the reporting task is not completed. If the server receives the message of the client, the type of the message, the unique identification of the message, the identification of the controlled equipment and the communication socket identification of the client are extracted, and a corresponding assigned task is created.
Specifically, the method further includes step S16: loading the daemon process, namely initiating task reporting after the steps are completed, judging whether the task reporting is abnormal according to a heartbeat mechanism between the daemon process and each process, and if the task reporting is abnormal, carrying out the next operation; otherwise, locally recording abnormal information, judging the loading state of the current process, and preparing for the next work.
Specifically, in step S1, an equipment manufacturer matrix G (a, K, L, T, M, J) is stored in the local equipment management configuration file, where a represents manufacturer information, K represents an equipment attribute, L represents an equipment flag, T represents an equipment type, M represents a task type of equipment of a corresponding manufacturer, and J represents a corresponding interface driver matrix;
the interface driving matrix J (I, Z), I represents the interface driving identification, and sets various interfaces; z represents the matching degree of corresponding interface drive, which is arranged from high to low in sequence;
when the corresponding manufacturer interface driver in the queue is loaded according to the equipment manufacturer information, acquiring an interface driver identifier I in real-time butt joint, judging the matching degree Z corresponding to the current interface, evaluating whether the requirement of the corresponding equipment of the corresponding manufacturer is met, and sequentially judging and selecting.
And setting a corresponding manufacturer equipment minimum matching degree matrix Z4 (A, T, Z3), wherein A represents manufacturer information, T represents equipment type, and Z3 represents the minimum matching degree of corresponding interface drive.
A selection matrix Z (A, T, Z0, Z2 and Z1) of the matching degree of the equipment of the corresponding manufacturer is also set, wherein A represents the corresponding manufacturer information, T represents the corresponding equipment type, Z1 represents the matching degree of the communication protocol, Z2 represents the matching degree of the communication interface, Z0 represents the lowest matching degree of the manufacturer, Z1 is larger than Z2, and Z2 is larger than Z0;
the manufacturer information matrix stores corresponding identifications of all manufacturers and corresponding manufacturer names; the equipment type matrix is determined by corresponding manufacturers, different equipment types correspond to a certain manufacturer, and equipment in the same manufacturer can be replaced;
when the real-time matching degree comparison is carried out through the interface drive, firstly, a corresponding mode is determined according to a matching degree interval where the matching degree Z is obtained in real time, and when the matching degree is low, the modes of replacing the equipment type, replacing a manufacturer and stopping communication are respectively adopted.
When the matching degree Z of the interface driver determined in real time is greater than the matching degree Z1 of the communication protocol, normal communication is carried out according to the step S5;
when the matching degree Z of the interface drive determined in real time is greater than the matching degree Z2 of the communication interface and less than the matching degree Z1 of the communication protocol, the manufacturer information is unchanged, the corresponding equipment type is unchanged, and the communication protocol is replaced;
when the matching degree Z of the interface drive determined in real time is larger than the lowest matching degree Z0 of the manufacturer and smaller than the matching degree Z2 of the communication interface, the manufacturer information is unchanged, and the corresponding equipment type is replaced;
when the matching degree Z of the interface driver determined in real time is smaller than the minimum matching degree Z0, the interface driver needs to be replaced by a manufacturer, and communication is stopped.
For the standard matching degree of a certain manufacturer, the acquisition mode is as follows:
obtaining the matching degrees Z1, Z2 and Zi of the corresponding interfaces, and calculating the average matching degree Zk = (Z1+ Z2+ … … + Zi)/i;
communication protocol match Z1=1.5 x Zk;
communication interface matching degree Z2=1.1 x Zk;
the lowest match Z0=0.9 x Zk.
The communication system compatible with various communication protocols of the embodiment of the invention comprises: the device comprises a communication module 1 and a data processing module 2, wherein the data processing module 2 is electrically connected with the communication module 1, and the data processing module 2 integrates multiple functions and is used for analyzing equipment of different manufacturers, carrying out drive loading and distributing a proper communication interface so as to carry out trial assembly on the equipment.
Specifically, a local equipment management configuration file is arranged in the data processing module, equipment manufacturer information, equipment attribute, equipment uniqueness mark and equipment type information are obtained, and a corresponding manufacturer interface driver and an interface communication interface service are loaded according to the equipment manufacturer information;
specifically, the data processing module extracts and records a unique identifier of a task according to a general message format in the system, acquires a unique identifier of task control equipment, matches an equipment type according to the equipment identifier, calls corresponding equipment type data conversion, converts content into a corresponding equipment communication protocol, and sends the content out through a corresponding communication interface;
specifically, an equipment manufacturer matrix G (a, K, L, T, M, J) is stored in the local equipment management configuration file, where a represents manufacturer information, K represents an equipment attribute, L represents an equipment flag, T represents an equipment type, M represents a task type of equipment of a corresponding manufacturer, and J represents a corresponding interface drive matrix;
the interface driving matrix J (I, Z), I represents the interface driving identification, and sets various interfaces; z represents the matching degree of corresponding interface drive, which is arranged from high to low in sequence;
when the corresponding manufacturer interface driver in the queue is loaded according to the equipment manufacturer information, acquiring an interface driver identifier I in real-time butt joint, judging the matching degree Z corresponding to the current interface, evaluating whether the requirement of the corresponding equipment of the corresponding manufacturer is met, and sequentially judging and selecting.
Specifically, the data processing module 2 is compatible with (RJ 45, wifi, 4G), RS485, CAN, Zigbee communication interfaces, so that various communication devices on the market CAN be tried on.
The working principle is as follows: when the cloud communication system is used, the data processing module 2 is used for analyzing a communication data structure from the standardized communication module to the cloud end into standard communication by the communication module according to different application scenes of equipment of different manufacturers and by adopting different interfaces to butt joint established private protocols of the manufacturers, so that data transmission among the equipment, the equipment and the cloud end and between the cloud end and the cloud end is consistent.
In the description of the present invention, unless otherwise expressly specified or limited, the terms "mounted," "connected," and "fixed" are to be construed broadly, e.g., as meaning either a fixed connection, a removable connection, or an integral part; can be mechanically or electrically connected; either directly or indirectly through intervening media, either internally or in any other relationship. The specific meanings of the above terms in the present invention can be understood in specific cases to those skilled in the art.
The standard parts used in the invention can be purchased from the market, the special-shaped parts can be customized according to the description of the specification and the accompanying drawings, the specific connection mode of each part adopts conventional means such as bolts, rivets, welding and the like mature in the prior art, the machines, the parts and equipment adopt conventional models in the prior art, and the circuit connection adopts the conventional connection mode in the prior art, so that the detailed description is omitted.
Although embodiments of the present invention have been shown and described, it will be appreciated by those skilled in the art that changes, modifications, substitutions and alterations can be made in these embodiments without departing from the principles and spirit of the invention, the scope of which is defined in the appended claims and their equivalents.

Claims (6)

1. A communication method compatible with a plurality of communication protocols is characterized by comprising the following steps:
step S1: reading a local equipment management configuration file, and acquiring equipment manufacturer information, equipment attributes, equipment uniqueness marks and equipment types;
step S2: loading a corresponding manufacturer interface driver and interface communication interface service according to the equipment manufacturer information;
step S3: monitoring the device type task;
step S4: extracting the message of the task queue in the step S3, judging whether a message issued to the equipment exists, if so, entering the next step, otherwise, jumping to the step S3;
step S5: according to the general message format in the system, extracting the unique identification of the recorded task, acquiring the unique identification of the task control equipment, matching the equipment type according to the equipment identification, calling corresponding equipment type data conversion, converting the content into a corresponding equipment communication protocol, and sending the protocol out through a corresponding communication interface;
in step S1, an equipment manufacturer matrix G (a, K, L, T, M, J) is stored in the local equipment management configuration file, where a represents manufacturer information, K represents an equipment attribute, L represents an equipment flag, T represents an equipment type, M represents a task type of equipment of a corresponding manufacturer, and J represents a corresponding interface driver matrix;
the interface driving matrix J (I, Z), I represents the interface driving identification, and sets various interfaces; z represents the matching degree of corresponding interface drive, which is arranged from high to low in sequence;
when a corresponding manufacturer interface driver in a queue is loaded according to equipment manufacturer information, acquiring an interface driver identifier I in real-time butt joint, judging the matching degree Z corresponding to the current interface, evaluating whether the requirement of the corresponding manufacturer corresponding equipment is met, and sequentially judging and selecting;
a selection matrix Z (A, T, Z0, Z2 and Z1) of the matching degree of the communication interface of the corresponding factory equipment is also set, wherein A represents the corresponding factory information, T represents the corresponding equipment type, Z1 represents the matching degree of the communication protocol, Z2 represents the matching degree of the communication interface, Z0 represents the lowest matching degree of the factory, Z1 is larger than Z2, and Z2 is larger than Z0;
the manufacturer information matrix stores corresponding identifications of all manufacturers and corresponding manufacturer names; the equipment type matrix is determined by corresponding manufacturers, different equipment types correspond to a certain manufacturer, and equipment in the same manufacturer can be replaced;
when the real-time matching degree comparison is carried out through interface driving, firstly, a corresponding mode is determined to be adopted according to a matching degree interval where the matching degree Z is obtained in real time, and when the matching degree is low, a mode of replacing the equipment type, replacing a manufacturer and stopping communication is respectively adopted;
when the matching degree Z of the interface driver determined in real time is greater than the matching degree Z1 of the communication protocol, normal communication is carried out according to the step S5;
when the matching degree Z of the interface drive determined in real time is greater than the matching degree Z2 of the communication interface and less than the matching degree Z1 of the communication protocol, the manufacturer information is unchanged, the equipment type is unchanged, and the communication protocol of the corresponding equipment type is replaced; when the matching degree Z of the interface drive determined in real time is larger than the lowest matching degree Z0 and smaller than the communication interface quasi-matching degree Z2, the manufacturer information is unchanged, and the corresponding equipment type is replaced; when the matching degree Z of the interface drive determined in real time is smaller than the lowest matching degree Z0, the manufacturer needs to be replaced, and the communication is stopped;
for the standard matching degree of a certain manufacturer, the acquisition mode is as follows:
obtaining the matching degrees Z1, Z2 and Zi of the corresponding interfaces, and calculating the average matching degree Zk = (Z1+ Z2+ … … + Zi)/i;
communication protocol match degree Z1=1.5 Zk;
the communication interface matching degree Z2=1.1 Zk;
the lowest matching degree Z0=0.9 Zk;
and setting a corresponding manufacturer equipment minimum matching degree matrix Z4 (A, T, Z3), wherein A represents manufacturer information, T represents equipment type, and Z3 represents the minimum matching degree of corresponding interface drive.
2. The communication method according to claim 1, wherein the communication method is compatible with a plurality of communication protocols: the device status reporting function, after step S2 is completed, further includes the following steps: step S6: monitoring equipment information; step S7: judging whether a message report exists according to a hardware enabling bit of the communication interface, if so, entering the next step, otherwise, entering the step S6; step S8: extracting the equipment identity information through the equipment data content, matching the equipment identification corresponding to the equipment management, calling the corresponding equipment type data for processing, and converting into a general message format in the system.
3. The communication method according to claim 2, wherein the communication method is compatible with a plurality of communication protocols: if there are a plurality of devices of different manufacturers in step S2, the communication services of the corresponding manufacturers are loaded, and corresponding steps S3 and S6 are performed.
4. The communication method according to any of claims 1 to 3, wherein: the method also comprises the following steps of processing the abnormal task state:
step S9: monitoring the state of a task queue;
step S10: judging whether equipment offline exists or not, whether the returned state of the equipment is inconsistent with the control result or not and whether the task is overtime or not according to the task identifier, the task initiating time and the equipment state, if so, entering the next step, and if not, returning to the step S9;
step S11: and generating local record log information according to the abnormal task type, the unique task identifier, the task time, the task sender and receiver and the task content.
5. The communication method according to any of claims 1 to 3, wherein: the method also comprises a client management service, and comprises the following steps:
step S12: establishing a communication service end of a communication system according to an agreement mode;
step S13: waiting for the client to access;
step S14: if a new client is added, the next step is carried out, otherwise, the step S13 is carried out;
step S15: recording the corresponding communication socket of the new client, the identity information transmitted by the client, monitoring the queue task, reporting the task information to the client if the reported task is not completed, extracting the type of the message, the unique identification of the message, the identification of the controlled equipment and the communication socket identification of the client if the server receives the message of the client, and creating the corresponding assigned task.
6. A communication system compatible with a plurality of communication protocols: the method is characterized in that: the device comprises a communication module (1) and a data processing module (2), wherein the data processing module (2) is connected with the communication module (1);
the data processing module is internally provided with a local equipment management configuration file, acquires equipment manufacturer information, equipment attribute, equipment uniqueness mark and equipment type information, and loads a corresponding manufacturer interface driver and interface communication interface service according to the equipment manufacturer information;
the data processing module extracts and records the unique identification of the task according to the general message format in the system, acquires the unique identification of the task control equipment, matches the equipment type according to the equipment identification, calls corresponding equipment type data conversion, converts the content into a corresponding equipment communication protocol, and sends the protocol out through a corresponding communication interface;
an equipment manufacturer matrix G (A, K, L, T, M, J) is stored in the local equipment management configuration file, wherein A represents manufacturer information, K represents equipment attribute, L represents an equipment mark, T represents equipment type, M represents a task type of equipment of a corresponding manufacturer, and J represents a corresponding interface driving matrix;
the interface driving matrix J (I, Z), I represents the interface driving identification, and sets various interfaces; z represents the matching degree of corresponding interface drive, which is arranged from high to low in sequence;
when a corresponding manufacturer interface driver in a queue is loaded according to equipment manufacturer information, acquiring an interface driver identifier I in real-time butt joint, judging the matching degree Z corresponding to the current interface, evaluating whether the requirement of the corresponding manufacturer corresponding equipment is met, and sequentially judging and selecting;
a selection matrix Z (A, T, Z0, Z2 and Z1) of the matching degree of the communication interface of the corresponding factory equipment is also set, wherein A represents the corresponding factory information, T represents the corresponding equipment type, Z1 represents the matching degree of the communication protocol, Z2 represents the matching degree of the communication interface, Z0 represents the lowest matching degree of the factory, Z1 is larger than Z2, and Z2 is larger than Z0;
the manufacturer information matrix stores corresponding identifications of all manufacturers and corresponding manufacturer names; the equipment type matrix is determined by corresponding manufacturers, different equipment types correspond to a certain manufacturer, and equipment in the same manufacturer can be replaced;
when the real-time matching degree comparison is carried out through interface driving, firstly, a corresponding mode is determined to be adopted according to a matching degree interval where the matching degree Z is obtained in real time, and when the matching degree is low, a mode of replacing the equipment type, replacing a manufacturer and stopping communication is respectively adopted;
when the matching degree Z of the interface drive determined in real time is greater than the matching degree Z1 of the communication protocol, the data processing module extracts and records the unique identification of the task according to the general message format in the system, acquires the unique identification of the task control equipment, calls the corresponding equipment type data conversion according to the equipment type matched by the equipment identification, converts the content into the corresponding equipment communication protocol, and sends the protocol out through the corresponding communication interface;
when the matching degree Z of the interface drive determined in real time is greater than the matching degree Z2 of the communication interface and less than the matching degree Z1 of the communication protocol, the manufacturer information is unchanged, the equipment type is unchanged, and the communication protocol of the corresponding equipment type is replaced; when the matching degree Z of the interface drive determined in real time is larger than the lowest matching degree Z0 and smaller than the communication interface quasi-matching degree Z2, the manufacturer information is unchanged, and the corresponding equipment type is replaced; when the matching degree Z of the interface drive determined in real time is smaller than the lowest matching degree Z0, the manufacturer needs to be replaced, and the communication is stopped;
for the standard matching degree of a certain manufacturer, the acquisition mode is as follows:
obtaining the matching degrees Z1, Z2 and Zi of the corresponding interfaces, and calculating the average matching degree Zk = (Z1+ Z2+ … … + Zi)/i;
communication protocol match degree Z1=1.5 Zk;
the communication interface matching degree Z2=1.1 Zk;
the lowest matching degree Z0=0.9 Zk;
and setting a corresponding manufacturer equipment minimum matching degree matrix Z4 (A, T, Z3), wherein A represents manufacturer information, T represents equipment type, and Z3 represents the minimum matching degree of corresponding interface drive.
CN202010197493.8A 2020-03-19 2020-03-19 Communication system and communication method compatible with multiple communication protocols Active CN111343196B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010197493.8A CN111343196B (en) 2020-03-19 2020-03-19 Communication system and communication method compatible with multiple communication protocols

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010197493.8A CN111343196B (en) 2020-03-19 2020-03-19 Communication system and communication method compatible with multiple communication protocols

Publications (2)

Publication Number Publication Date
CN111343196A CN111343196A (en) 2020-06-26
CN111343196B true CN111343196B (en) 2020-12-08

Family

ID=71187696

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010197493.8A Active CN111343196B (en) 2020-03-19 2020-03-19 Communication system and communication method compatible with multiple communication protocols

Country Status (1)

Country Link
CN (1) CN111343196B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111843137B (en) * 2020-06-30 2022-06-10 中国船舶重工集团公司第七一六研究所 Universal communication method for robot and bus type arc welding machine
CN113055360A (en) * 2021-02-26 2021-06-29 山东鲁能软件技术有限公司 Multi-protocol-based data access method and device

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1516840A (en) * 2001-04-25 2004-07-28 �ź㴫 Adaptive multi-protocol communications system
CN101605126A (en) * 2008-06-11 2009-12-16 中国科学院计算技术研究所 A kind of method and system of multi-protocol data Classification and Identification
CN108123842A (en) * 2017-12-22 2018-06-05 武汉虹信技术服务有限责任公司 A kind of adaption system and method that can access more plant equipments based on KNX agreements
CN109347699A (en) * 2018-10-26 2019-02-15 武汉虹旭信息技术有限责任公司 Wireless terminal acquisition system and its method based on openwrt router

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7773588B2 (en) * 2006-04-13 2010-08-10 Directpacket Research, Inc. System and method for cross protocol communication
CN105391486B (en) * 2014-08-29 2018-11-20 深圳航天科技创新研究院 A kind of communication means and device of spaceborne data
CN107343005B (en) * 2017-07-12 2019-10-22 北京紫光恒越网络科技有限公司 Bootstrap information sending method and device based on multi-protocol stack
CN109460952B (en) * 2018-10-25 2022-03-18 北京卫星信息工程研究所 Heterogeneous network convergence communication device and communication method for emergency logistics
CN110855680B (en) * 2019-11-18 2022-03-11 中国电子科技集团公司信息科学研究院 Internet of things equipment docking method and device

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1516840A (en) * 2001-04-25 2004-07-28 �ź㴫 Adaptive multi-protocol communications system
CN101605126A (en) * 2008-06-11 2009-12-16 中国科学院计算技术研究所 A kind of method and system of multi-protocol data Classification and Identification
CN108123842A (en) * 2017-12-22 2018-06-05 武汉虹信技术服务有限责任公司 A kind of adaption system and method that can access more plant equipments based on KNX agreements
CN109347699A (en) * 2018-10-26 2019-02-15 武汉虹旭信息技术有限责任公司 Wireless terminal acquisition system and its method based on openwrt router

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
"智能化多协议转换器的研究及其在车载***中的应用";田志浩;《万方数据库》;20061117;全文 *

Also Published As

Publication number Publication date
CN111343196A (en) 2020-06-26

Similar Documents

Publication Publication Date Title
CN111835786B (en) System for data acquisition and equipment control of multi-protocol equipment
CN111343196B (en) Communication system and communication method compatible with multiple communication protocols
CN111431773B (en) OpenTracing-based link tracking method
CN103023693B (en) A kind of user behaviors log data management system and method
CN107800565A (en) Method for inspecting, device, system, computer equipment and storage medium
CN111400127B (en) Service log monitoring method and device, storage medium and computer equipment
CN108462598A (en) A kind of daily record generation method, log analysis method and device
CN107925652B (en) Fixed conversion method and device of transmission protocol based on message protocol identification
CN112637366A (en) Vehicle network vehicle data acquisition method based on micro-service
CN112235364A (en) Business cascade expansion method of talkback service cluster and execution unit thereof
CN105530658B (en) Remote diagnosis method, device and system for wireless communication module
CN101197714B (en) Method for centrally capturing mobile data service condition
EP2566217A1 (en) Device, method and system for processing machine to machine service
JP2001292467A (en) Operation and maintenance method for base station utilizing remote procedure call
CN112616171A (en) Communication method and device based on wireless local area network and computer readable storage medium
CN109039427B (en) Ship monitoring management device
CN101715202B (en) Method and system for monitoring wireless network user behaviors
CN117319433A (en) Intelligent information management system for plane shunting operation
CN116760732A (en) Power distribution terminal data communication monitoring method and device and related equipment
EP2654278A1 (en) Network maintenance system, method and device
CN114785874B (en) Method for providing high-availability transmission channel based on multi-network protocol
CN106330567A (en) Server management control method and server management control system for server cluster
CN107645563B (en) Internet of things communication method and system of medical test equipment
CN114157561B (en) Fault processing system and method
CN112312376A (en) Method and system for remotely and interactively managing multifunctional electric meter

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
GR01 Patent grant
GR01 Patent grant