CN112751840A - Multi-protocol adapting device of script control strategy - Google Patents

Multi-protocol adapting device of script control strategy Download PDF

Info

Publication number
CN112751840A
CN112751840A CN202011559919.6A CN202011559919A CN112751840A CN 112751840 A CN112751840 A CN 112751840A CN 202011559919 A CN202011559919 A CN 202011559919A CN 112751840 A CN112751840 A CN 112751840A
Authority
CN
China
Prior art keywords
interface
standard
protocol
status lamp
script
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.)
Granted
Application number
CN202011559919.6A
Other languages
Chinese (zh)
Other versions
CN112751840B (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.)
Hebi Power Supply Co of State Grid Henan Electric Power Co Ltd
Original Assignee
Hebi Power Supply Co of State Grid Henan Electric Power 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 Hebi Power Supply Co of State Grid Henan Electric Power Co Ltd filed Critical Hebi Power Supply Co of State Grid Henan Electric Power Co Ltd
Priority to CN202011559919.6A priority Critical patent/CN112751840B/en
Publication of CN112751840A publication Critical patent/CN112751840A/en
Application granted granted Critical
Publication of CN112751840B publication Critical patent/CN112751840B/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
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/08Protocols for interworking; Protocol conversion

Landscapes

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

Abstract

The invention relates to a multi-protocol adapting device of a script control strategy, which comprises a body and an operation panel, wherein a display is arranged in the middle of the upper part of the body, the left side of the display is provided with the operation panel, the right side of the back of the body is provided with a connecting sleeve, an output line is arranged behind the connecting sleeve, the front of the body is provided with a back plate, side protection plates are arranged on the left and right sides of the back plate, first fixing bolts are arranged at four corners of the back plate, a socket plate is arranged on the left of the front of the back plate, a main switch is arranged above the front of the socket plate, a power socket is arranged below the main switch, an interface plate is arranged on the right side of the socket plate, a state lamp plate is arranged on the right side of the interface plate, heat dissipation plates are arranged on the left and; the invention has the advantages of simple structure, easy expansion, convenient management and short adaptation period.

Description

Multi-protocol adapting device of script control strategy
Technical Field
The invention belongs to the technical field of multi-protocol adapters, and particularly relates to a multi-protocol adapting device of a script control strategy.
Background
The script control strategy is a strategy and a method for controlling a certain system or instrument by using a specific descriptive language and an executable file written according to a certain format; the multi-protocol adapting device is interface protocol conversion equipment, and can convert and uniformly output interface protocol data of different types and specifications so as to facilitate the use and management of users; therefore, it is necessary to provide a multi-protocol adaptation apparatus for script control strategy, which has simple structure, easy expansion, convenient management and short adaptation period.
Disclosure of Invention
The invention aims to overcome the defects of the prior art and provides a multi-protocol adaptation device of a script control strategy, which has the advantages of simple structure, easy expansion, convenient management and short adaptation period.
The purpose of the invention is realized as follows: the multi-protocol adapting device of the script control strategy comprises a body and an operation panel, wherein a display is arranged in the middle of the upper part of the body, the left side of the display is provided with the operation panel, the right side of the back of the body is provided with a connecting sleeve, the back of the connecting sleeve is provided with an output line, the front of the body is provided with a back plate, the left side and the right side of the back plate are provided with side guard plates, four corners of the back plate are provided with first fixing bolts, the left side of the front of the back plate is provided with a socket plate, a main switch is arranged above the front of the socket plate, a power socket is arranged below the main switch, the right side of the socket plate is provided with an interface plate, the right side of the interface plate is provided with a status lamp plate, the left side and the right side of the body are provided with heat dissipation plates, four, two pin sleeves are uniformly arranged below the left side and the right side of the body, pin shafts are arranged in the pin sleeves, support legs are arranged on the outer sides of the middle parts of the pin shafts, a photoelectric switch is arranged below the right side in the body, a state lamp manager is arranged on the right side of the photoelectric switch, a multi-protocol interface manager is arranged above the photoelectric switch, an interface circuit protection module is arranged on the right side of the multi-protocol interface manager, a power supply is arranged on the left side of the multi-protocol interface manager, a power supply protection circuit module is arranged on the left side of the power supply, a processor is arranged above the power supply, photoelectric isolation is arranged on the right side of the processor, a script control strategy unit is arranged on the right side of the photoelectric isolation, a script resource translator is arranged on the left side in the script control strategy unit, and a binary split protocol manager is arranged on the right side of the script resource translator, the right side of the binary split protocol manager is provided with a script executor, a multi-channel discrete compiler is arranged below the script executor, the right side of the script control strategy unit is provided with a protocol output manager, a protocol package management container is arranged below the inside of the protocol output manager, a customized protocol output unit is arranged above the protocol package management container, and an output port is arranged above the protocol output manager corresponding to the connecting sleeve.
The multi-protocol adapting device of the script control strategy further comprises an interface board, wherein the interface board comprises an RS232 standard interface, an RS232 non-standard interface, an RS485 non-standard interface, an Ethernet non-standard interface, a LoRa interface, a 2.4G wireless interface, a ZigBee interface, a USB interface, a standby standard interface and a standby non-standard interface, the RS232 standard interface, the RS485 standard interface, the Ethernet standard interface, the LoRa interface, the ZigBee interface and the standby standard interface are uniformly arranged above the front of the interface board from left to right, and the RS232 non-standard interface, the RS non-standard interface, the Ethernet non-standard interface, the 2.4G wireless interface, the USB interface and the standby non-standard interface are uniformly arranged below the front of the interface board from left to right.
The multi-protocol adaptation device of script control strategy, it still includes the state lamp plate, the state lamp plate include RS232 standard status lamp, RS232 non-standard status lamp, RS485 non-standard status lamp, ethernet non-standard status lamp, loRa status lamp, 2.4G wireless status lamp, zigBee status lamp, USB status lamp, reserve standard status lamp and reserve non-standard status lamp, the preceding top of state lamp plate evenly be provided with RS232 standard status lamp, RS485 standard status lamp, ethernet standard status lamp, loRa status lamp, zigBee status lamp, reserve standard status lamp from a left side to the right side in proper order, the preceding below of state lamp plate evenly be provided with RS232 non-standard status lamp, RS485 non-standard status lamp, ethernet non-standard status lamp, 2.4G wireless status lamp, USB status lamp, reserve non-standard status lamp from a left side to the right side in proper order.
The supporting legs are of round-angle L-shaped structures.
The use method of the multi-protocol adaptation device of the script control strategy comprises the following steps:
step 1): the interface board inputs: the interface board supports access modes of an RS232 standard interface, an RS232 non-standard interface, an RS485 non-standard interface, an Ethernet non-standard interface, a LoRa interface, a 2.4G wireless interface, a ZigBee interface, a USB interface, a standby standard interface and a standby non-standard interface, so that data information can be conveniently input through the interface board, the same interfaces can be expanded in a cascading mode, and each port can be expanded by 16 paths at most;
step 2): the script control strategy unit: the method comprises the following steps:
2-1: the script resource translator: converting interface resources and software operation instructions occupied by the lower-end equipment into lua script files according to the grammatical requirements of the regular expression;
2-2: the binary split protocol manager: and grouping the access port protocols according to the same type binary minimum grouping according to the script file format, and carrying out zero assignment grouping without the same type of protocols. And recursively selecting one attribute to classify the class labels of the object set, and if the remaining objects are found to belong to the same class when a certain attribute is classified, classifying the objects without selecting the attribute, and only creating a leaf node and representing the leaf node by using the common class. Otherwise, continuing to select the next attribute for classification operation until a certain classification result is in the same class or no attribute is available for selection;
2-3: a script executor: carrying out matching processing of baud rates, processing different baud rates according to a script execution body, and requiring the script execution body according to the principle that the baud rates are different in height and middle in a crossed manner, namely the principle that the baud rates are lower or higher, and for protocol baud rates without intersection, the script execution body can fictionally form a low-end baud rate for matching, namely fictitious matching;
2-4: multi-channel discrete compiler: grouping script protocols according to a binary splitting manager, then compiling in channels, and after the compiling is finished, carrying out unified data management and verification on a communication model generated after the compiling;
step 3): protocol output manager: the method comprises the following steps:
3-1: protocol packet management container: uniformly putting the verified data packets of the script control strategy management unit into a protocol packet management container for temporary storage;
3-2: a customized protocol output unit: according to the protocol adaptation requirement, target data point positions are manually selected from a protocol packet management container and are output in a unified mode after serialization, and the standard protocol not only supports IEC101/IEC104/ModBus-RTU/ModBus-TCP standard protocol, but also supports nonstandard custom protocol meeting the actual application requirement;
step 4): the output port outputs: after the protocol adaptation is realized according to the requirement, the output is realized by the output port and the output line.
In the using method of the multi-protocol adaptation device of the script control strategy, the two-split protocol manager 2-2 in the step 2) can divide the decision tree algorithm into the ID3 and the C4.5 algorithm according to the sequence of the selected attributes, wherein the decision tree algorithm CART only generates binary partitions, and the decision tree algorithm CART considers all 2 binary partitions for creating the binary partitions of the K attributes(K-1)1 method, for the continuous property, the test condition can be the relation between the comparison test with binary output and the threshold (A < v) or (A ≧ v), or the relation with the form vi≤A≤viA range query output by +1(i ═ 1, 2.., K), wherein: a is the feature set and v is the threshold.
The invention has the beneficial effects that: the invention adopts the support legs, the pin sleeves and the shaft pins, and the support legs can rotate around the pin sleeves through the shaft pins, so that the support legs can be unfolded conveniently to support the body, and the support is stable; the invention adopts an interface board, a status lamp board and a status lamp manager, wherein the interface board is provided with a plurality of interfaces including an RS232 standard interface, an RS232 non-standard interface, an RS485 non-standard interface, an Ethernet non-standard interface, a LoRa interface, a 2.4G wireless interface, a ZigBee interface, a USB interface, a standby standard interface and a standby non-standard interface, which are convenient for accessing different types of ports, so that the use and the management of a user are simpler and more convenient, and the same interface can be expanded in a cascading way, each port can be expanded by 16 paths at most, the expansion is easy, the status lamp board is provided with an RS232 standard status lamp, an RS232 non-standard status lamp, an RS485 non-standard status lamp, an Ethernet status lamp, an LoRa status lamp, a 2.4G wireless status lamp, a ZigBee status lamp, a USB status lamp, a standby standard status lamp and a standby non-standard status lamp, the status lamps of the status lamp panel correspond to the interfaces on the interface board one by one and are controlled by the status lamp manager, so that an operator can know the working status information of the corresponding interfaces in time; the invention adopts a multi-protocol interface manager, a script control strategy unit, a protocol output manager and an output port, wherein the multi-protocol interface manager supports all interface types on an interface board, the script control strategy unit carries out conversion, grouping classification, matching processing and sub-channel compiling on the interfaces, and the protocol output manager and the output port realize protocol adaptive output according to requirements, thereby greatly shortening the adaptation period; the invention has the advantages of simple structure, easy expansion, convenient management and short adaptation period.
Drawings
Fig. 1 is a left side view of a multi-protocol adaptation apparatus of script control strategy of the present invention.
Fig. 2 is a right side view of the multi-protocol adaptation apparatus of the script control strategy of the present invention.
Fig. 3 is a schematic structural diagram of an interface board of a multiprotocol adaptation device for controlling a policy by a script according to the present invention.
Fig. 4 is a schematic structural diagram of a status lamp panel of the multiprotocol adaptation apparatus for script control policy according to the present invention.
Fig. 5 is a schematic diagram of the internal structure of the multi-protocol adaptation apparatus for script control policy according to the present invention.
Fig. 6 is a flowchart of the multi-protocol adaptation apparatus for script control policy according to the present invention.
Fig. 7 is a block diagram of a script control policy unit of the multiprotocol adaptation device for script control policy according to the present invention.
Fig. 8 is a block diagram of a protocol output manager of a multiprotocol adaptation apparatus for script control policy according to the present invention.
In the figure: 1. the device comprises a body 2, a display 3, an operation panel 4, a connecting sleeve 5, an output line 6, a back plate 7, a side guard plate 8, a first fixing bolt 9, a socket plate 10, a main switch 11, a power socket 12, an interface board 13, a status lamp panel 14, a heat dissipation plate 15, a second fixing bolt 16, a heat dissipation port 17, a pin sleeve 18, a pin 19, a support leg 20, an RS232 standard interface 201, an RS232 standard status lamp 21, an RS232 non-standard interface 211, an RS232 non-standard status lamp 22, an RS485 standard interface 221, an RS485 standard status lamp 23, an RS485 non-standard interface 231, an RS485 non-standard status lamp 24, an Ethernet standard interface 241, an Ethernet standard status lamp 25, an Ethernet non-standard interface 251, an Ethernet non-standard status lamp 26, a LoRa interface 261, a LoRa status lamp 27, a 2.4G wireless interface 271, a 2.4G wireless status lamp 28, a side guard plate 28, a power supply switch, The device comprises a ZigBee interface 281, a ZigBee state lamp 29, a USB interface 291, a USB state lamp 30, a standby standard interface 301, a standby standard state lamp 31, a standby non-standard interface 311, a standby non-standard state lamp 32, an optoelectronic switch 33, a state lamp manager 34, a multi-protocol interface manager 35, an interface circuit protection module 36, a power supply 37, a power supply protection circuit module 38, a processor 39, an optoelectronic isolator 40, a script control strategy unit 41, a script resource translator 42, a binary split protocol manager 43, a script executor 44, a multi-channel discrete compiler 45, a protocol output manager 46, a protocol packet management container 47, a customized protocol output unit 48 and an output port.
Detailed Description
The invention is further described below with reference to the accompanying drawings.
Example 1
As shown in fig. 1-8, the multi-protocol adapting device of script control strategy comprises a body 1 and an operation panel 3, a display 2 is arranged in the middle of the upper part of the body 1, the operation panel 3 is arranged on the left side of the display 2, a connection sleeve 4 is arranged on the right side of the back of the body 1, an output line 5 is arranged on the back of the connection sleeve 4, a back plate 6 is arranged in front of the body 1, side guard plates 7 are arranged on the left and right sides of the back plate 6, first fixing bolts 8 are arranged at four corners of the back plate 6, a socket plate 9 is arranged on the left side of the front of the back plate 6, a main switch 10 is arranged on the upper part of the front of the socket plate 9, a power socket 11 is arranged below the main switch 10, an interface plate 12 is arranged on the right side of the socket plate 9, and a status lamp plate, the left side and the right side of the body 1 are respectively provided with a heat dissipation plate 14, four corners of the heat dissipation plate 14 are respectively provided with a second fixing bolt 15, the front of the heat dissipation plate 14 is respectively provided with a heat dissipation port 16, two pin sleeves 17 are uniformly arranged below the left side and the right side of the body 1, pin sleeves 17 are respectively internally provided with a pin 18, the outer side of the middle part of each pin 18 is respectively provided with a support leg 19, the lower part of the right side inside the body 1 is provided with a photoelectric switch 32, the right side of the photoelectric switch 32 is provided with a status light manager 33, the upper part of the photoelectric switch 32 is provided with a multi-protocol interface manager 34, the right side of the multi-protocol interface manager 34 is provided with an interface circuit protection module 35, the left side of the multi-protocol interface manager 34 is provided with a power supply 36, the left side of the power supply 36 is provided with a power, the right side of the processor 38 is provided with a photoelectric isolator 39, the right side of the photoelectric isolator 39 is provided with a script control policy unit 40, the left side inside the script control policy unit 40 is provided with a script resource translator 41, the right side of the script resource translator 41 is provided with a binary split protocol manager 42, the right side of the binary split protocol manager 42 is provided with a script executor 43, the lower part of the script executor 43 is provided with a multi-channel discrete compiler 44, the right side of the script control policy unit 40 is provided with a protocol output manager 45, the inner lower part of the protocol output manager 45 is provided with a protocol package management container 46, the upper part of the protocol package management container 46 is provided with a customized protocol output unit 47, and the upper part of the protocol output manager 45 is provided with an output port 48 corresponding to the connecting sleeve 4.
As shown in fig. 3, the multi-protocol adaptation apparatus for script control policy further includes an interface board 12, the interface board 12 comprises an RS232 standard interface 20, an RS232 non-standard interface 21, an RS485 standard interface 22, an RS485 non-standard interface 23, an Ethernet standard interface 24, an Ethernet non-standard interface 25, a LoRa interface 26, a 2.4G wireless interface 27, a ZigBee interface 28, a USB interface 29, a standby standard interface 30 and a standby non-standard interface 31, an RS232 standard interface 20, an RS485 standard interface 22, an Ethernet standard interface 24, a LoRa interface 26, a ZigBee interface 28 and a standby standard interface 30 are uniformly arranged in sequence from left to right above the front of the interface board 12, the front lower part of the interface board 12 is uniformly provided with an RS232 non-standard interface 21, an RS485 non-standard interface 23, an Ethernet non-standard interface 25, a 2.4G wireless interface 27, a USB interface 29 and a standby non-standard interface 31 from left to right.
As shown in fig. 4, the multi-protocol adapting device of the script control strategy further includes a status light panel 13, the status light panel 13 includes an RS232 standard status light 201, an RS232 non-standard status light 211, an RS485 standard status light 221, an RS485 non-standard status light 231, an ethernet standard status light 241, an ethernet non-standard status light 251, an LoRa status light 261, a 2.4G wireless status light 271, a ZigBee status light 281, a USB status light 291, a standby standard status light 301, and a standby non-standard status light 311, the RS232 standard status light 201, the RS485 standard status light 221, the ethernet standard status light 241, the LoRa status light 261, the ZigBee status light 281, and the standby standard status light 301 are uniformly arranged in the front of the status light panel 13 from left to right, the RS232 non-standard status light 211, the RS485 non-standard status light 231, the ethernet non-standard status light 251, the ZigBee status light 281, and the standby standard status light 301 are uniformly arranged in the front of the status light panel 13 from, 2.4G wireless status light 271, USB status light 291, and standby non-standard status light 311.
The invention adopts the support leg 19, the pin sleeve 17 and the pin shaft 18, the support leg 19 can rotate around the pin sleeve 17 through the pin shaft 18, the support leg 19 is convenient to unfold to support the body 1, and the support is stable; the invention adopts an interface board 12, a status lamp panel 13 and a status lamp manager 33, wherein the interface board 12 is provided with an RS232 standard interface 20, an RS232 non-standard interface 21, an RS485 standard interface 22, an RS485 non-standard interface 23, an Ethernet standard interface 24, an Ethernet non-standard interface 25, a LoRa interface 26, a 2.4G wireless interface 27, a ZigBee interface 28, a USB interface 29, a standby standard interface 30 and a standby non-standard interface 31, which are convenient for accessing different types of ports, so that the use and the management of a user are simpler and more convenient, the same interface can be expanded in a cascading mode, each path of port can be expanded by 16 paths at most, the expansion is easy, the status lamp panel 13 is provided with an RS232 standard status lamp 201, an RS232 non-standard status lamp 211, an RS485 standard status lamp 221, an RS485 non-standard status lamp 231, an Ethernet standard status lamp 241, an Ethernet non-standard status lamp 251, a LoRa status lamp 261, a RS232, a USB standard status lamp, 2.4G wireless status light 271, ZigBee status light 281, USB status light 291, standby standard status light 301 and standby non-standard status light 311, where the status light of the status light panel 13 corresponds to the interface on the interface board 12 one by one and is controlled by the status light manager 33, so that an operator can know the working status information of the corresponding interface in time; the invention adopts a multi-protocol interface manager 34, a script control strategy unit 40, a protocol output manager 45 and an output port 48, wherein the multi-protocol interface manager 34 supports all interface types on an interface board 12, the script control strategy unit 40 carries out conversion, grouping classification, matching processing and sub-channel compiling on the interfaces, and the protocol output manager 45 and the output port 48 realize protocol adaptation output as required, thereby greatly shortening the adaptation period; the invention has the advantages of simple structure, easy expansion, convenient management and short adaptation period.
Example 2
As shown in fig. 1-8, the multi-protocol adapting device of script control strategy comprises a body 1 and an operation panel 3, a display 2 is arranged in the middle of the upper part of the body 1, the operation panel 3 is arranged on the left side of the display 2, a connection sleeve 4 is arranged on the right side of the back of the body 1, an output line 5 is arranged on the back of the connection sleeve 4, a back plate 6 is arranged in front of the body 1, side guard plates 7 are arranged on the left and right sides of the back plate 6, first fixing bolts 8 are arranged at four corners of the back plate 6, a socket plate 9 is arranged on the left side of the front of the back plate 6, a main switch 10 is arranged on the upper part of the front of the socket plate 9, a power socket 11 is arranged below the main switch 10, an interface plate 12 is arranged on the right side of the socket plate 9, and a status lamp plate, the left side and the right side of the body 1 are respectively provided with a heat dissipation plate 14, four corners of the heat dissipation plate 14 are respectively provided with a second fixing bolt 15, the front of the heat dissipation plate 14 is respectively provided with a heat dissipation port 16, two pin sleeves 17 are uniformly arranged below the left side and the right side of the body 1, pin sleeves 17 are respectively internally provided with a pin 18, the outer side of the middle part of each pin 18 is respectively provided with a support leg 19, the lower part of the right side inside the body 1 is provided with a photoelectric switch 32, the right side of the photoelectric switch 32 is provided with a status light manager 33, the upper part of the photoelectric switch 32 is provided with a multi-protocol interface manager 34, the right side of the multi-protocol interface manager 34 is provided with an interface circuit protection module 35, the left side of the multi-protocol interface manager 34 is provided with a power supply 36, the left side of the power supply 36 is provided with a power, the right side of the processor 38 is provided with a photoelectric isolator 39, the right side of the photoelectric isolator 39 is provided with a script control policy unit 40, the left side inside the script control policy unit 40 is provided with a script resource translator 41, the right side of the script resource translator 41 is provided with a binary split protocol manager 42, the right side of the binary split protocol manager 42 is provided with a script executor 43, the lower part of the script executor 43 is provided with a multi-channel discrete compiler 44, the right side of the script control policy unit 40 is provided with a protocol output manager 45, the inner lower part of the protocol output manager 45 is provided with a protocol package management container 46, the upper part of the protocol package management container 46 is provided with a customized protocol output unit 47, and the upper part of the protocol output manager 45 is provided with an output port 48 corresponding to the connecting sleeve 4.
As shown in fig. 3, the multi-protocol adaptation apparatus for script control policy further includes an interface board 12, the interface board 12 comprises an RS232 standard interface 20, an RS232 non-standard interface 21, an RS485 standard interface 22, an RS485 non-standard interface 23, an Ethernet standard interface 24, an Ethernet non-standard interface 25, a LoRa interface 26, a 2.4G wireless interface 27, a ZigBee interface 28, a USB interface 29, a standby standard interface 30 and a standby non-standard interface 31, an RS232 standard interface 20, an RS485 standard interface 22, an Ethernet standard interface 24, a LoRa interface 26, a ZigBee interface 28 and a standby standard interface 30 are uniformly arranged in sequence from left to right above the front of the interface board 12, the front lower part of the interface board 12 is uniformly provided with an RS232 non-standard interface 21, an RS485 non-standard interface 23, an Ethernet non-standard interface 25, a 2.4G wireless interface 27, a USB interface 29 and a standby non-standard interface 31 from left to right.
As shown in fig. 4, the multi-protocol adapting device of the script control strategy further includes a status light panel 13, the status light panel 13 includes an RS232 standard status light 201, an RS232 non-standard status light 211, an RS485 standard status light 221, an RS485 non-standard status light 231, an ethernet standard status light 241, an ethernet non-standard status light 251, an LoRa status light 261, a 2.4G wireless status light 271, a ZigBee status light 281, a USB status light 291, a standby standard status light 301, and a standby non-standard status light 311, the RS232 standard status light 201, the RS485 standard status light 221, the ethernet standard status light 241, the LoRa status light 261, the ZigBee status light 281, and the standby standard status light 301 are uniformly arranged in the front of the status light panel 13 from left to right, the RS232 non-standard status light 211, the RS485 non-standard status light 231, the ethernet non-standard status light 251, the ZigBee status light 281, and the standby standard status light 301 are uniformly arranged in the front of the status light panel 13 from, 2.4G wireless status light 271, USB status light 291, and standby non-standard status light 311.
The supporting legs are round-angle L-shaped structures.
The use method of the multi-protocol adaptation device of the script control strategy comprises the following steps:
step 1): the interface board inputs: the interface board supports access modes of an RS232 standard interface, an RS232 non-standard interface, an RS485 non-standard interface, an Ethernet non-standard interface, a LoRa interface, a 2.4G wireless interface, a ZigBee interface, a USB interface, a standby standard interface and a standby non-standard interface, so that data information can be conveniently input through the interface board, the same interfaces can be expanded in a cascading mode, and each port can be expanded by 16 paths at most;
step 2): the script control strategy unit: the method comprises the following steps:
2-1: the script resource translator: converting interface resources and software operation instructions occupied by the lower-end equipment into lua script files according to the grammatical requirements of the regular expression;
2-2: the binary split protocol manager: and grouping the access port protocols according to the same type binary minimum grouping according to the script file format, and carrying out zero assignment grouping without the same type of protocols. And recursively selecting one attribute to classify the class labels of the object set, and if the remaining objects are found to belong to the same class when a certain attribute is classified, classifying the objects without selecting the attribute, and only creating a leaf node and representing the leaf node by using the common class. Otherwise, continuing to select the next attribute for classification operation until a certain classification result is in the same class or no attribute is available for selection;
2-3: a script executor: carrying out matching processing of baud rates, processing different baud rates according to a script execution body, and requiring the script execution body according to the principle that the baud rates are different in height and middle in a crossed manner, namely the principle that the baud rates are lower or higher, and for protocol baud rates without intersection, the script execution body can fictionally form a low-end baud rate for matching, namely fictitious matching;
2-4: multi-channel discrete compiler: grouping script protocols according to a binary splitting manager, then compiling in channels, and after the compiling is finished, carrying out unified data management and verification on a communication model generated after the compiling;
step 3): protocol output manager: the method comprises the following steps:
3-1: protocol packet management container: uniformly putting the verified data packets of the script control strategy management unit into a protocol packet management container for temporary storage;
3-2: a customized protocol output unit: according to the protocol adaptation requirement, target data point positions are manually selected from a protocol packet management container and are output in a unified mode after serialization, and the standard protocol not only supports IEC101/IEC104/ModBus-RTU/ModBus-TCP standard protocol, but also supports nonstandard custom protocol meeting the actual application requirement;
step 4): the output port outputs: after the protocol adaptation is realized according to the requirement, the output is realized by the output port and the output line.
In the using method of the multi-protocol adaptation device of the script control strategy, the two-split protocol manager 2-2 in the step 2) can divide the decision tree algorithm into the ID3 and the C4.5 algorithm according to the sequence of the selected attributes, wherein the decision tree algorithm CART only generates binary partitions, and the decision tree algorithm CART considers all 2 binary partitions for creating the binary partitions of the K attributes(K-1)1 method, for the continuous property, the test condition can be the relation between the comparison test with binary output and the threshold (A < v) or (A ≧ v), or the relation with the form vi≤A≤viA range query output by +1(i ═ 1, 2.., K), wherein: a is the feature set and v is the threshold.
The invention adopts the support leg 19, the pin sleeve 17 and the pin shaft 18, the support leg 19 can rotate around the pin sleeve 17 through the pin shaft 18, the support leg 19 is convenient to unfold to support the body 1, and the support is stable; the invention adopts an interface board 12, a status lamp panel 13 and a status lamp manager 33, wherein the interface board 12 is provided with an RS232 standard interface 20, an RS232 non-standard interface 21, an RS485 standard interface 22, an RS485 non-standard interface 23, an Ethernet standard interface 24, an Ethernet non-standard interface 25, a LoRa interface 26, a 2.4G wireless interface 27, a ZigBee interface 28, a USB interface 29, a standby standard interface 30 and a standby non-standard interface 31, which are convenient for accessing different types of ports, so that the use and the management of a user are simpler and more convenient, the same interface can be expanded in a cascading mode, each path of port can be expanded by 16 paths at most, the expansion is easy, the status lamp panel 13 is provided with an RS232 standard status lamp 201, an RS232 non-standard status lamp 211, an RS485 standard status lamp 221, an RS485 non-standard status lamp 231, an Ethernet standard status lamp 241, an Ethernet non-standard status lamp 251, a LoRa status lamp 261, a RS232, a USB standard status lamp, 2.4G wireless status light 271, ZigBee status light 281, USB status light 291, standby standard status light 301 and standby non-standard status light 311, where the status light of the status light panel 13 corresponds to the interface on the interface board 12 one by one and is controlled by the status light manager 33, so that an operator can know the working status information of the corresponding interface in time; the invention adopts a multi-protocol interface manager 34, a script control strategy unit 40, a protocol output manager 45 and an output port 48, wherein the multi-protocol interface manager 34 supports all interface types on an interface board 12, the script control strategy unit 40 carries out conversion, grouping classification, matching processing and sub-channel compiling on the interfaces, and the protocol output manager 45 and the output port 48 realize protocol adaptation output as required, thereby greatly shortening the adaptation period; the invention has the advantages of simple structure, easy expansion, convenient management and short adaptation period.

Claims (6)

1. The multi-protocol adapting device of the script control strategy comprises a body and an operation panel, and is characterized in that: the display is arranged in the middle of the upper part of the body, an operation panel is arranged on the left side of the display, a connecting sleeve is arranged on the right side of the back of the body, an output line is arranged on the back of the connecting sleeve, a back plate is arranged in front of the body, side protection plates are arranged on the left side and the right side of the back plate, first fixing bolts are arranged at four corners of the back plate, a socket plate is arranged on the left side of the front of the back plate, a main switch is arranged above the front of the socket plate, a power socket is arranged below the main switch, an interface plate is arranged on the right side of the socket plate, a status lamp plate is arranged on the right side of the interface plate, heat dissipation plates are arranged on the left side and the right side of the body, second fixing bolts are arranged at four corners of the heat dissipation plates, heat dissipation ports are arranged, the pin bush is internally provided with a pin, the outer side of the middle part of the pin is provided with a support leg, a photoelectric switch is arranged below the right side in the body, the right side of the photoelectric switch is provided with a state lamp manager, a multi-protocol interface manager is arranged above the photoelectric switch, the right side of the multi-protocol interface manager is provided with an interface circuit protection module, the left side of the multi-protocol interface manager is provided with a power supply, the left side of the power supply is provided with a power supply protection circuit module, a processor is arranged above the power supply, the right side of the processor is provided with photoelectric isolation, the right side of the photoelectric isolation is provided with a script control strategy unit, the left side in the script control strategy unit is provided with a script resource translator, the right side of the script resource translator is provided with a binary split protocol manager, and the right side of the binary split protocol manager is provided with a script executor, the system comprises a script executor and a script control strategy unit, and is characterized in that a multi-channel discrete compiler is arranged below the script executor, a protocol output manager is arranged on the right side of the script control strategy unit, a protocol package management container is arranged below the inside of the protocol output manager, a customized protocol output unit is arranged above the protocol package management container, and an output port is arranged above the protocol output manager corresponding to a connecting sleeve.
2. The apparatus for multiprotocol adaptation of a script control policy of claim 1, further comprising an interface board, characterized in that: the interface board comprises an RS232 standard interface, an RS232 non-standard interface, an RS485 non-standard interface, an Ethernet non-standard interface, a LoRa interface, a 2.4G wireless interface, a ZigBee interface, a USB interface, a standby standard interface and a standby non-standard interface, wherein the RS232 standard interface, the RS485 standard interface, the Ethernet standard interface, the LoRa interface, the ZigBee interface and the standby standard interface are uniformly arranged above the front of the interface board from left to right, and the RS232 non-standard interface, the RS485 non-standard interface, the Ethernet non-standard interface, the 2.4G wireless interface, the USB interface and the standby non-standard interface are uniformly arranged below the front of the interface board from left to right.
3. The multi-protocol adaptation apparatus of script control strategy of claim 1, further comprising a status light panel, characterized in that: the status lamp plate comprises an RS232 standard status lamp, an RS232 non-standard status lamp, an RS485 non-standard status lamp, an Ethernet non-standard status lamp, a LoRa status lamp, a 2.4G wireless status lamp, a ZigBee status lamp, a USB status lamp, a standby standard status lamp and a standby non-standard status lamp, wherein the RS232 standard status lamp, the RS485 standard status lamp, the Ethernet standard status lamp, the LoRa status lamp, the ZigBee status lamp and the standby standard status lamp are sequentially and uniformly arranged above the front surface of the status lamp plate from left to right, and the RS232 non-standard status lamp, the RS485 non-standard status lamp, the Ethernet non-standard status lamp, the 2.4G wireless status lamp, the USB status lamp and the standby non-standard status lamp are sequentially and uniformly arranged below the front surface of the status lamp plate from left to right.
4. The multi-protocol adaptation device of script control policy of claim 1, wherein: the supporting legs are of round-angle L-shaped structures.
5. The method for using a multi-protocol adaptation means of a script control strategy according to claim 1, characterized by: it comprises the following steps:
step 1): the interface board inputs: the interface board supports access modes of an RS232 standard interface, an RS232 non-standard interface, an RS485 non-standard interface, an Ethernet non-standard interface, a LoRa interface, a 2.4G wireless interface, a ZigBee interface, a USB interface, a standby standard interface and a standby non-standard interface, so that data information can be conveniently input through the interface board, the same interfaces can be expanded in a cascading mode, and each port can be expanded by 16 paths at most;
step 2): the script control strategy unit: the method comprises the following steps:
2-1: the script resource translator: converting interface resources and software operation instructions occupied by the lower-end equipment into lua script files according to the grammatical requirements of the regular expression;
2-2: the binary split protocol manager: and grouping the access port protocols according to the same type binary minimum grouping according to the script file format, and carrying out zero assignment grouping without the same type of protocols. And recursively selecting one attribute to classify the class labels of the object set, and if the remaining objects are found to belong to the same class when a certain attribute is classified, classifying the objects without selecting the attribute, and only creating a leaf node and representing the leaf node by using the common class. Otherwise, continuing to select the next attribute for classification operation until a certain classification result is in the same class or no attribute is available for selection;
2-3: a script executor: carrying out matching processing of baud rates, processing different baud rates according to a script execution body, and requiring the script execution body according to the principle that the baud rates are different in height and middle in a crossed manner, namely the principle that the baud rates are lower or higher, and for protocol baud rates without intersection, the script execution body can fictionally form a low-end baud rate for matching, namely fictitious matching;
2-4: multi-channel discrete compiler: grouping script protocols according to a binary splitting manager, then compiling in channels, and after the compiling is finished, carrying out unified data management and verification on a communication model generated after the compiling;
step 3): protocol output manager: the method comprises the following steps:
3-1: protocol packet management container: uniformly putting the verified data packets of the script control strategy management unit into a protocol packet management container for temporary storage;
3-2: a customized protocol output unit: according to the protocol adaptation requirement, target data point positions are manually selected from a protocol packet management container and are output in a unified mode after serialization, and the standard protocol not only supports IEC101/IEC104/ModBus-RTU/ModBus-TCP standard protocol, but also supports nonstandard custom protocol meeting the actual application requirement;
step 4): the output port outputs: after the protocol adaptation is realized according to the requirement, the output is realized by the output port and the output line.
6. The method for using a multi-protocol adaptation means of a script control strategy according to claim 5, characterized by: said binary split protocol manager of step 2) -2 can split the decision tree algorithm into ID3, C4.5 algorithms according to the order of selecting attributes, wherein the decision tree algorithm CART only generates binary partitions considering all 2 binary partitions creating K attributes(K -1)1 method, for the continuous property, the test condition can be the relation between the comparison test with binary output and the threshold (A < v) or (A ≧ v), or the relation with the form vi≤A≤viA range query output by +1(i ═ 1, 2.., K), wherein: a is the feature set and v is the threshold.
CN202011559919.6A 2020-12-25 2020-12-25 Multi-protocol adapting device of script control strategy Active CN112751840B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011559919.6A CN112751840B (en) 2020-12-25 2020-12-25 Multi-protocol adapting device of script control strategy

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011559919.6A CN112751840B (en) 2020-12-25 2020-12-25 Multi-protocol adapting device of script control strategy

Publications (2)

Publication Number Publication Date
CN112751840A true CN112751840A (en) 2021-05-04
CN112751840B CN112751840B (en) 2022-09-30

Family

ID=75645867

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011559919.6A Active CN112751840B (en) 2020-12-25 2020-12-25 Multi-protocol adapting device of script control strategy

Country Status (1)

Country Link
CN (1) CN112751840B (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2009159135A (en) * 2007-12-25 2009-07-16 Duaxes Corp Protocol converting apparatus
US20120089677A1 (en) * 2010-10-08 2012-04-12 Traffix Systems Method and system for providing network services
CN206402259U (en) * 2017-01-16 2017-08-11 天芯宜智能网络科技(天津)有限公司 A kind of expansible multi-protocol adaptive control device

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2009159135A (en) * 2007-12-25 2009-07-16 Duaxes Corp Protocol converting apparatus
US20120089677A1 (en) * 2010-10-08 2012-04-12 Traffix Systems Method and system for providing network services
CN206402259U (en) * 2017-01-16 2017-08-11 天芯宜智能网络科技(天津)有限公司 A kind of expansible multi-protocol adaptive control device

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
洞庭春色: "二元分类", 《百度网页,HTTPS://BLOG.CSDN.NETU011471286ARTICLEDETAILS49564903》 *

Also Published As

Publication number Publication date
CN112751840B (en) 2022-09-30

Similar Documents

Publication Publication Date Title
CN102843245B (en) Configuration data exchange method and device
CN103516541B (en) Configuration information automatic management method based on Intelligent transformer station
CN102622463B (en) Drawing-model uniformity based method for automatic check of design drawings
CN104410662A (en) Parallel mass data transmitting middleware of Internet of things and working method thereof
CN101145130A (en) Simple network management protocol software test device and test method
WO2022142927A1 (en) Rule-based fault analysis method and apparatus, device, and storage medium
CN107332702A (en) A kind of SCD file visualization parsing automatic generation method based on network topology
CN104050003A (en) Method for starting Nutch collecting system with shell script
CN112751840B (en) Multi-protocol adapting device of script control strategy
CN103365661A (en) Development method and system for automatic testing scripts
US20050015234A1 (en) Method and apparatus for automatic generation of multiple integrated circuit simulation configuration
CN109687985B (en) Automatic configuration method and system for process level network of transformer substation
US9495428B1 (en) Filtering output from operational commands executed on a network device
CN106354966B (en) The method of the conversion of chip id E project file and rapid configuration artificial debugging environment
CN110096114A (en) A kind of system and method managing multiple ARM server nodes
CN102437920A (en) Configuration data processing method and device and wireless communication equipment
CN114362872B (en) Multi-network cooperative edge intelligent device based on TSN network
CN101895439A (en) Multi-network element polling device and method
CN103905228B (en) The collocation method and system of serial line interface attribute
CN105046561A (en) Method capable of adapting to various bank transaction message formats
CN115664005A (en) Rapid communication point establishing method and system based on new energy electrical equipment model
CN106254438B (en) A kind of power distribution network CPS main website based on open communication
KR20140123126A (en) System and method for generating database based on SCL
CN104580456B (en) A kind of dynamic message distribution method and system for distributed system
CN102148729A (en) Automatic test method for private SNMP (simple network management protocol) management instruction of passive optical network equipment

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