CN117040806A - Device supporting multi-protocol access authentication - Google Patents

Device supporting multi-protocol access authentication Download PDF

Info

Publication number
CN117040806A
CN117040806A CN202310885670.5A CN202310885670A CN117040806A CN 117040806 A CN117040806 A CN 117040806A CN 202310885670 A CN202310885670 A CN 202310885670A CN 117040806 A CN117040806 A CN 117040806A
Authority
CN
China
Prior art keywords
communication interface
uplink
message format
protocol
protocol message
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202310885670.5A
Other languages
Chinese (zh)
Inventor
张会军
李锐奎
王远洪
龚登位
皮跃银
梅金星
皮凯
王兴鑫
柳宏斌
蔡超超
李义刚
郭彬
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Huaneng Lancang River Hydropower Co Ltd
Original Assignee
Huaneng Lancang River Hydropower 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 Huaneng Lancang River Hydropower Co Ltd filed Critical Huaneng Lancang River Hydropower Co Ltd
Priority to CN202310885670.5A priority Critical patent/CN117040806A/en
Publication of CN117040806A publication Critical patent/CN117040806A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/08Network architectures or network communication protocols for network security for authentication of entities
    • 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
    • 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/22Parsing or analysis of headers
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L9/00Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols
    • H04L9/40Network security protocols
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer Hardware Design (AREA)
  • Computing Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Communication Control (AREA)

Abstract

The invention provides a device supporting multi-protocol access authentication, which relates to the technical field of communication, and comprises: the control management module is used for determining the protocol message format of each communication interface, determining the downlink communication interface corresponding to the uplink communication interface according to the equipment information contained in the protocol message format of any uplink communication interface and the preset uplink-downlink corresponding relation of the communication interface, and carrying out data communication through the uplink communication interface and the downlink communication interface corresponding to the uplink communication interface. Therefore, the device for supporting multi-protocol access authentication can realize the information intercommunication and sharing of the acquisition terminal equipment with a plurality of different protocols, and solve the technical problem that the data acquisition information can not be intercommunicated and shared due to the difference of the protocols among different equipment in a direct-current power supply system in the related technology.

Description

Device supporting multi-protocol access authentication
Technical Field
The present invention relates to the field of communications technologies, and in particular, to a device supporting multi-protocol access authentication.
Background
In the dc power supply system, the battery on-line monitoring device, the discharge device, the dc monitoring manager, and the like each take on their functions in operation. In many application occasions, the storage battery on-line monitoring device, the discharge instrument device, the direct current monitoring and managing machine and the like are supplied by different suppliers, so that more or less difference exists among different equipment protocols, plug-and-play and intercommunication sharing of data acquisition information among the equipment protocols can not be realized, particularly, the discharge instrument device is mainly an independent data acquisition device, repeated workload is added to information intercommunication intangibly, for example, when operation and maintenance are carried out, if the discharge equipment which is temporarily connected is needed, the respective data acquisition boxes are needed to be connected repeatedly, the connection work is complex, errors are easy, wiring is more and the safety risk of the site is increased.
Disclosure of Invention
In order to solve the problem that information among the storage battery online monitoring device, the discharge instrument device, the direct current monitoring manager and the like in the direct current power supply system is difficult to communicate and share, the invention provides a device for supporting multi-protocol access authentication so as to realize complete communication and sharing of the information among the storage battery online monitoring device, the discharge instrument device, the direct current monitoring manager and the like, realize quick and safe access and operation and maintenance, improve operation and maintenance efficiency, save operation and maintenance time and ensure operation and maintenance safety.
The invention provides a device supporting multi-protocol access authentication, which comprises: a control management module (10) and a communication interface module (20);
the communication interface module (20) is provided with communication interfaces with multiple protocols and is used for receiving and transmitting data messages with corresponding protocols through each communication interface;
the control management module (10) is configured to determine a protocol message format of each communication interface, where the communication interfaces include an uplink communication interface and a downlink communication interface, the protocol message format of the uplink communication interface is determined by a data message of a first device connected to the uplink communication interface, and the protocol message format of the downlink communication interface is determined by a data message of a second device connected to the downlink communication interface; and determining a downlink communication interface corresponding to the uplink communication interface according to equipment information contained in a protocol message format of any uplink communication interface and a preset uplink-downlink corresponding relation of the communication interface, and carrying out data communication through the uplink communication interface and the downlink communication interface corresponding to the uplink communication interface.
The device for supporting multi-protocol access authentication provided by the invention, the device information comprises but is not limited to at least one of a device type and a device identification ID, and the determining the downlink communication interface corresponding to the uplink communication interface according to the device information contained in the protocol message format of any uplink communication interface and the preset uplink-downlink correspondence of the communication interface comprises the following steps:
for any one of the uplink communication interfaces, matching the equipment type contained in the protocol message format of the uplink communication interface with a preset equipment type, and/or matching the equipment ID contained in the protocol message format of the uplink communication interface with a preset equipment ID;
and under the condition that the equipment types are matched and/or the equipment IDs are matched and consistent, determining a downlink communication interface corresponding to the uplink communication interface according to a preset uplink and downlink corresponding relation of the communication interface.
According to the device for supporting multi-protocol access authentication provided by the invention, the data communication is performed through the uplink communication interface and the downlink communication interface corresponding to the uplink communication interface, and the device comprises:
determining a message mapping relation between the uplink communication interface and the downlink communication interface according to the protocol message format of the uplink communication interface and the protocol message format of the downlink communication interface corresponding to the uplink communication interface;
and according to the message mapping relation, mapping and outputting the data message of the first equipment through the downlink communication interface and/or reporting the data message of the second equipment through the uplink communication interface.
According to the present invention, a device for supporting multi-protocol access authentication, which determines a protocol message format of each communication interface, includes:
comparing the data message of any communication interface with a preset protocol model to determine a first protocol message format;
continuously acquiring data messages of the communication interface with a set number of frames, and comparing the data messages of two adjacent frames according to bytes so as to determine a second protocol message format based on the difference between the data messages of two adjacent frames;
determining the first protocol message format or the second protocol message format as the protocol message format of the communication interface under the condition that the first protocol message format is consistent with the second protocol message format;
and under the condition that the first protocol message format and the second protocol message format are inconsistent, re-determining the first protocol message format and the second protocol message format until the first protocol message format and the second protocol message format are consistent.
The invention provides a device supporting multi-protocol access authentication, which comprises a control management module (10), a control management module and a control module, wherein the control management module comprises a processor (101), a memory (102), a base frequency circuit (103), a clock circuit (104) and a joint test action organization JTAG communication interface (105);
the memory (102) stores a plurality of programs, wherein the plurality of programs at least comprise a protocol analysis program and a protocol authentication permission program, the protocol analysis program is used for determining a protocol message format of each communication interface, the protocol authentication permission program is used for determining a downlink communication interface corresponding to the uplink communication interface according to equipment information contained in the protocol message format of any uplink communication interface and a preset uplink-downlink correspondence of the communication interface, and data communication is carried out through the uplink communication interface and the downlink communication interface corresponding to the uplink communication interface;
-said processor (101) for executing a program stored in said memory (102);
-said baseband circuit (103) for providing a timing reference;
-the clock circuit (104) for recording time;
the JTAG communication interface (105) is used for communicating with a computer to complete the upgrade of the programs.
According to the present invention, there is provided an apparatus for supporting multi-protocol access authentication, the apparatus further comprising:
and the man-machine interaction module (30) is used for displaying data processing and preset data retrieval after the processor (101) executes the program stored in the memory (102), wherein the preset data comprises the preset uplink and downlink corresponding relation of the communication interface, the preset equipment type, the preset equipment ID and the preset protocol model.
According to the device supporting multi-protocol access authentication, the communication interface module (20) comprises a Bluetooth communication interface, a Transmission Control Protocol (TCP) communication interface and a recommended standard (RS 485) communication interface.
According to the present invention, there is provided an apparatus for supporting multi-protocol access authentication, the apparatus further comprising:
a power input module (40) for powering the circuitry in the device.
The device supporting multi-protocol access authentication provided by the invention comprises: the control management module is used for determining the protocol message format of each communication interface, determining the downlink communication interface corresponding to the uplink communication interface according to the equipment information contained in the protocol message format of any uplink communication interface and the preset uplink-downlink corresponding relation of the communication interface, and carrying out data communication through the uplink communication interface and the downlink communication interface corresponding to the uplink communication interface. Therefore, the device for supporting multi-protocol access authentication can realize the information intercommunication and sharing of the acquisition terminal equipment with a plurality of different protocols, and solve the technical problem that the data acquisition information can not be intercommunicated and shared due to the difference of the protocols among different equipment in a direct-current power supply system in the related technology.
Additional aspects and advantages of the invention will be set forth in part in the description which follows and, in part, will be obvious from the description, or may be learned by practice of the invention.
Drawings
The foregoing and/or additional aspects and advantages of the invention will become apparent and readily appreciated from the following description of the embodiments, taken in conjunction with the accompanying drawings, in which:
fig. 1 is a schematic structural diagram of a device supporting multi-protocol access authentication according to an embodiment of the present invention;
fig. 2 is a program flow chart of an apparatus supporting multi-protocol access authentication in a scenario provided by an embodiment of the present invention.
Detailed Description
Embodiments of the present invention are described in detail below, examples of which are illustrated in the accompanying drawings, wherein like or similar reference numerals refer to like or similar elements or elements having like or similar functions throughout. The embodiments described below by referring to the drawings are illustrative and intended to explain the present invention and should not be construed as limiting the invention.
An apparatus supporting multi-protocol access authentication according to an embodiment of the present invention is described below with reference to the accompanying drawings.
Fig. 1 is a schematic structural diagram of an apparatus supporting multi-protocol access authentication according to an embodiment of the present invention.
As a preferred embodiment, the apparatus supporting multiprotocol access authentication may include a control management module (10) and a communication interface module (20).
The communication interface module (20) is provided with communication interfaces with multiple protocols and is used for receiving and transmitting data messages with corresponding protocols through the communication interfaces.
Alternatively, as shown in fig. 1, the communication interface module (20) may include a bluetooth communication interface, a TCP (Transmission Control Protocol ) communication interface, an RS485 (Recommended Standard 485 ) communication interface. Therefore, the device can be provided with the wiring terminal, the quick-plug port and the wireless communication multiple interfaces, so that the device is suitable for access of acquisition terminal equipment with multiple different protocols.
As an example, the communication interface module (20) may include a communication interface chip, an interface terminal and a wireless signal transmission chip, so as to implement 485, CAN and wireless communication modes, and is suitable for plug and play and flexible access of various related monitoring, detecting and management devices.
The control management module (10) is used for determining the protocol message format of each communication interface, wherein the communication interfaces comprise an uplink communication interface and a downlink communication interface, the protocol message format of the uplink communication interface is determined by the data message of a first device connected with the uplink communication interface, and the protocol message format of the downlink communication interface is determined by the data message of a second device connected with the downlink communication interface; according to the equipment information contained in the protocol message format of any uplink communication interface and the preset uplink and downlink corresponding relation of the communication interfaces, determining the downlink communication interface corresponding to the uplink communication interface, and carrying out data communication through the uplink communication interface and the downlink communication interface corresponding to the uplink communication interface.
Note that, the protocol message formats of the determined communication interfaces may be the same or different, which is not limited in this embodiment.
It should be noted that, the uplink communication interface and the downlink communication interface are both interfaces capable of acquiring data packets, but generally, the uplink communication interface is connected to an active communication device. Optionally, most of the actively communicating devices are accessed upper computer devices with communication data transmission.
It should be noted that, the preset uplink-downlink relationship of the communication interfaces is used to indicate which downlink communication interfaces any uplink communication interface corresponds to, that is, which downlink communication interfaces the uplink communication interface can map with. And the embodiment of the invention is not limited to the setting of the preset uplink and downlink correspondence of the communication interface.
As a possible implementation manner, the device information may include, but is not limited to, at least one of a device type and an IDentity (IDentity), and the process of determining, according to the device information included in a protocol packet format of any uplink communication interface and a preset uplink-downlink correspondence relationship of the communication interface, a downlink communication interface corresponding to the uplink communication interface includes the following steps:
for any uplink communication interface, matching the equipment type contained in the protocol message format of the uplink communication interface with a preset equipment type, and/or matching the equipment ID contained in the protocol message format of the uplink communication interface with a preset equipment ID;
and under the condition that the equipment type matching is consistent and/or the equipment ID matching is consistent, determining a downlink communication interface corresponding to the uplink communication interface according to a preset uplink and downlink corresponding relation of the communication interface.
It should be noted that, for any uplink communication interface, the number of the determined corresponding downlink communication interfaces may be one or more, which is not limited in this embodiment.
It should be noted that, the embodiment of the present invention is not limited to the preset device type and device ID setting.
As a possible implementation manner, the process of performing data communication through the uplink communication interface and the downlink communication interface corresponding to the uplink communication interface includes the following steps:
determining a message mapping relation between an uplink communication interface and a downlink communication interface according to a protocol message format of the uplink communication interface and a protocol message format of the downlink communication interface corresponding to the uplink communication interface;
according to the message mapping relation, the data message of the first equipment is mapped and output through a downlink communication interface and/or the data message of the second equipment is reported through an uplink communication interface.
As a possible implementation manner, the process of determining the protocol message format of each communication interface includes the following steps:
comparing the data message of any communication interface with a preset protocol model to determine a first protocol message format;
continuously acquiring data messages of a set number of frame communication interfaces, and comparing the data messages of two adjacent frames according to bytes so as to determine a second protocol message format based on the difference of the data messages of the two adjacent frames;
under the condition that the first protocol message format is consistent with the second protocol message format, determining the first protocol message format or the second protocol message format as the protocol message format of the communication interface;
and under the condition that the first protocol message format and the second protocol message format are inconsistent, the first protocol message format and the second protocol message format are redetermined until the first protocol message format and the second protocol message format are consistent.
It should be noted that, the embodiment of the present invention is not limited to the setting of the preset protocol model. Similarly, the embodiment of the present invention is not limited to the value of the setting data, alternatively, the setting data may be set according to manual experience, for example, the setting data may be set to sixty, or the setting data may be dynamically adjusted according to the actual application requirement, which is not limited in this embodiment.
As an example, the control management module (10) may include a CPU controller, a peripheral clock circuit, a memory circuit, and an input-output signal isolation circuit, for performing execution of instructions such as a control main program, a protocol auto-resolution program, a protocol access authentication permission program, a man-machine operation, and an input-output interface program.
The CPU controller can adopt a 32-bit high-speed chip of a low-power-consumption high-performance Cortex-M3 kernel high-speed processor technology, the peripheral clock circuit can adopt a passive crystal oscillator and a precise magnetic sheet capacitor to form a clock reference for running of the CPU controller, the storage circuit can adopt an I2C communication mode CPU controller to carry out data transmission for storing permanently stored codes, instructions and variables, the input and output signal isolation circuit can adopt a high-speed photoelectric isolation device, the level safety isolation of an external circuit and an internal CPU controller is realized, and the reliability of communication data transmission is improved.
The control main program is used for controlling the starting of the device, the starting/exiting of each subprogram, parameter setting control and calling and the like; the protocol automatic analysis program is a process of carrying out message analysis, transparent transmission and mapping on the equipment interaction protocol which is selected to be connected, and is completed by a program module/unit which is embedded into the control management module (10); the protocol access authentication permission program is a permission logic control process for performing communication protocol to a designated output interface according to the type and ID number of the access equipment, and is also completed by a program module/unit embedded in the control management module (10).
Optionally, as shown in fig. 1, the control management module (10) may include a processor (101), a memory (102), a baseband circuit (103), a clock circuit (104), a JTAG (Joint Test Action Group, joint test action organization) communication interface (105).
The memory (102) stores a plurality of programs, wherein the plurality of programs at least comprise a protocol analysis program and a protocol authentication permission program, the protocol analysis program is used for determining a protocol message format of each communication interface, the protocol authentication permission program is used for determining a downlink communication interface corresponding to an uplink communication interface according to equipment information contained in the protocol message format of any uplink communication interface and a preset uplink-downlink correspondence of the communication interface, and data communication is carried out through the uplink communication interface and the downlink communication interface corresponding to the uplink communication interface;
a processor (101) for executing a program stored in the memory (102);
a baseband circuit (103) for providing a timing reference;
a clock circuit (104) for recording time;
and the JTAG communication interface (105) is used for communicating with the computer to finish the upgrading of various programs.
As one example, the control management module (10) may include a processor (101), a memory (102), a baseband circuit (103), a clock circuit (104), a JTAG communication interface (105). Wherein the memory (102) has a plurality of programs stored therein, and wherein the plurality of programs may be partitioned into one or more modules/units stored in the memory (102) and executed by the processor (101); the fundamental frequency circuit (103) refers to a reference pulse signal of the CPU chip and is used for the working timing reference of the CPU chip; the clock circuit (104) is a calendar timing clock and is used for realizing accurate time recording of information of the control management module (10); JTAG communication interface (105) refers to the program upgrade communication interface of the module, and communicates with PC to complete upgrade of various programs.
As a preferred embodiment, the apparatus supporting multiprotocol access authentication may further include a man-machine interaction module (30).
The human-computer interaction module (30) is used for displaying data processing and preset data retrieval after the processor (101) executes the program stored in the memory (102), wherein the preset data comprises a preset communication interface uplink and downlink corresponding relation, a preset device type, a preset device ID and a preset protocol model.
As a preferred embodiment, the apparatus for supporting multi-protocol access authentication may further include a power input module (40).
Wherein the power input module (40) is used for supplying power to the circuit in the device. As an example, the input power of the power input module (40) can be automatically adapted to a full range of 24-220V power usage, internally converted to 5V and 3.3V for device internal circuitry and chip power usage.
The device supporting multi-protocol access authentication provided by the invention comprises: the control management module is used for determining the protocol message format of each communication interface, determining the downlink communication interface corresponding to the uplink communication interface according to the equipment information contained in the protocol message format of any uplink communication interface and the preset uplink-downlink corresponding relation of the communication interface, and carrying out data communication through the uplink communication interface and the downlink communication interface corresponding to the uplink communication interface. Therefore, the device for supporting multi-protocol access authentication can realize the information intercommunication and sharing of the acquisition terminal equipment with a plurality of different protocols, and solve the technical problem that the data acquisition information can not be intercommunicated and shared due to the difference of the protocols among different equipment in a direct-current power supply system in the related technology.
In order to clearly illustrate the program flow of the device supporting multi-protocol access authentication provided by the present invention, the present embodiment provides a program flow of the device supporting multi-protocol access authentication, and fig. 2 is a program flow chart of the device supporting multi-protocol access authentication in a scenario provided by the present embodiment.
As shown in fig. 2, the program flow may include the steps of:
step 201, the device starts.
Step 202, the device self-checks a preset protocol model, and scans for access equipment standard protocols.
It should be noted that, a plurality of protocol models are preset in the device, and after the device is started, the preset protocol models can be self-checked to confirm the integrity and availability of the communication format of the preset protocol models.
In this embodiment, the apparatus may scan the access device, obtain the data packet, and determine the protocol packet format based on the data packet. For example, the device may be automatically connected in parallel to the active communication device, obtain the current data packet, calculate according to different check formats according to byte cycles to determine a first protocol packet format of the current data packet, continuously obtain sixty frames of packets, compare the previous frame of packets with the next frame of packets according to bytes, determine the difference byte characteristics, determine a second protocol packet format of the current data packet according to the sixty frames of packets comparing the obtained difference characteristics, and if the determined first protocol packet format is consistent with the second protocol packet format, determine the first protocol packet format or the second protocol packet format as a protocol packet format of the communication interface, otherwise, redetermine the first protocol packet format and the second protocol packet format until the first protocol packet format and the second protocol packet format are consistent.
Step 203, it is determined whether the extraction of the preset device type is completed.
In this embodiment, the apparatus may determine whether the device type included in the determined protocol packet format is consistent with the preset device type, and enter step 204 if so, otherwise, return to step 202.
Step 204, it is determined whether the extraction of the preset device ID is completed.
Similarly, the apparatus may determine whether the device ID included in the determined protocol message format is consistent with the preset device ID, and if so, proceed to step 205, otherwise, return to step 202.
Step 205, selecting a corresponding communication interface according to a preset uplink and downlink correspondence relationship of the communication interface.
In step 206, the selected corresponding communication interface is communication interface 1.
In step 207, when the communication interface 1 is selected, the interface admission protocol control is performed.
In this embodiment, if the communication interface 1 is selected according to the preset uplink-downlink correspondence relationship of the communication interface, the interface permission protocol control may be performed to determine the protocol message format of the communication interface 1.
Step 208, performing data flow uplink and downlink admission control.
In this embodiment, after determining the protocol message format of the uplink communication interface (the protocol message format determined in step 202) and the protocol message format of the corresponding downlink communication interface (the protocol message format of the communication interface 1), the data flow uplink and downlink permission control may be performed to determine the mapping relationship between the uplink and downlink communication interfaces.
In step 209, a communication protocol conversion is performed.
In this embodiment, the uplink and downlink communication interfaces may be used to upload downlink communication data and/or map and output uplink communication data. Specifically, the data message of the device connected with the downlink communication interface may be reported through the uplink communication interface and/or the data message of the device connected with the uplink communication interface may be mapped and output through the downlink communication interface.
In step 210, the selected corresponding communication interface is communication interface 2.
In this embodiment, the communication interface 1 and the communication interface 2 may be selected to perform data interaction at the same time, or only the communication interface 1 may be selected to perform data interaction, or only the communication interface 2 may be selected to perform data interaction, which is not limited in this embodiment.
In step 211, when the communication interface 2 is selected, the interface admission protocol control is performed.
Step 212, performing data flow uplink and downlink admission control.
In step 213, a communication protocol conversion is performed.
In step 214, the selected corresponding communication interface is communication interface n.
In this embodiment, any one or more of the communication interface 1, the communication interface 2, and the communication interface … … may be selected for data interaction, for example, the communication interface 1, the communication interface 2, and the communication interface … … may be selected for data interaction at the same time, or only any one of the communication interface 1, the communication interface 2, and the communication interface … … may be selected for data interaction, which is not limited in this embodiment.
In step 215, when the communication interface n is selected, the interface admission protocol control is performed.
And step 216, performing data flow uplink and downlink admission control.
Step 217, a communication protocol conversion is performed.
Step 218, it is determined whether the data interaction is normal.
In this embodiment, after the corresponding communication interface is selected for data interaction, it is further required to determine whether the data interaction is normal, so that if the data interaction is abnormal, the process returns to step 205 to reselect the communication interface. It will be appreciated that the abnormal data interaction may include that the downstream communication data cannot be uploaded, or that the upstream communication data cannot be mapped out, etc.
Step 219, the device is exited in case the data interaction is completed.
In summary, the device type, the device ID, the protocol model and the uplink-downlink correspondence of the communication interface are preset in the device supporting multi-protocol access authentication of the present invention, so that when the device accesses the communication interface, according to the preset protocol model, the data message of the device is analyzed and authenticated to determine the protocol message format of the communication interface, where the protocol message format of the uplink communication interface is determined by the data message of the external upper computer connected to the uplink communication interface, and the protocol message format of the downlink communication interface is determined by the data message of the external terminal device connected to the downlink communication interface, so that a communication channel between the upper computer and the terminal device is established based on the preset device type, the device ID and the uplink-downlink correspondence of the communication interface, and the external upper computer connected to the uplink communication interface performs data communication between the external terminal device connected to the downlink communication interface through the uplink communication interface, the device and the downlink communication interface.
In the description of the present specification, a description referring to terms "one embodiment," "some embodiments," "examples," "specific examples," or "some examples," etc., means that a particular feature, structure, material, or characteristic described in connection with the embodiment or example is included in at least one embodiment or example of the present invention. In this specification, schematic representations of the above terms are not necessarily directed to the same embodiment or example. Furthermore, the particular features, structures, materials, or characteristics described may be combined in any suitable manner in any one or more embodiments or examples. Furthermore, the different embodiments or examples described in this specification and the features of the different embodiments or examples may be combined and combined by those skilled in the art without contradiction.
Furthermore, the terms "first," "second," and the like, are used for descriptive purposes only and are not to be construed as indicating or implying a relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defining "a first" or "a second" may explicitly or implicitly include at least one such feature. In the description of the present invention, the meaning of "plurality" means at least two, for example, two, three, etc., unless specifically defined otherwise.
Any process or method descriptions in flow charts or otherwise described herein may be understood as representing modules, segments, or portions of code which include one or more executable instructions for implementing specific logical functions or steps of the process, and additional implementations are included within the scope of the preferred embodiment of the present invention in which functions may be executed out of order from that shown or discussed, including substantially concurrently or in reverse order from that shown or discussed, depending on the functionality involved, as would be understood by those reasonably skilled in the art of the embodiments of the present invention.
Logic and/or steps represented in the flowcharts or otherwise described herein, e.g., a ordered listing of executable instructions for implementing logical functions, can be embodied in any computer-readable medium for use by or in connection with an instruction execution system, apparatus, or device, such as a computer-based system, processor-containing system, or other system that can fetch the instructions from the instruction execution system, apparatus, or device and execute the instructions. For the purposes of this description, a "computer-readable medium" can be any means that can contain, store, communicate, propagate, or transport the program for use by or in connection with the instruction execution system, apparatus, or device. More specific examples (a non-exhaustive list) of the computer-readable medium would include the following: an electrical connection (electronic device) having one or more wires, a portable computer diskette (magnetic device), a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber device, and a portable compact disc read-only memory (CDROM). In addition, the computer readable medium may even be paper or other suitable medium on which the program is printed, as the program may be electronically captured, via, for instance, optical scanning of the paper or other medium, then compiled, interpreted or otherwise processed in a suitable manner, if necessary, and then stored in a computer memory.
It is to be understood that portions of the present invention may be implemented in hardware, software, firmware, or a combination thereof. In the above-described embodiments, the various steps or methods may be implemented in software or firmware stored in a memory and executed by a suitable instruction execution system. As with the other embodiments, if implemented in hardware, may be implemented using any one or combination of the following techniques, as is well known in the art: discrete logic circuits having logic gates for implementing logic functions on data signals, application specific integrated circuits having suitable combinational logic gates, programmable Gate Arrays (PGAs), field Programmable Gate Arrays (FPGAs), and the like.
Those of ordinary skill in the art will appreciate that all or a portion of the steps carried out in the method of the above-described embodiments may be implemented by a program to instruct related hardware, where the program may be stored in a computer readable storage medium, and where the program, when executed, includes one or a combination of the steps of the method embodiments.
In addition, each functional unit in the embodiments of the present invention may be integrated in one processing module, or each unit may exist alone physically, or two or more units may be integrated in one module. The integrated modules may be implemented in hardware or in software functional modules. The integrated modules may also be stored in a computer readable storage medium if implemented in the form of software functional modules and sold or used as a stand-alone product.
The above-mentioned storage medium may be a read-only memory, a magnetic disk or an optical disk, or the like. While embodiments of the present invention have been shown and described above, it will be understood that the above embodiments are illustrative and not to be construed as limiting the invention, and that variations, modifications, alternatives and variations may be made to the above embodiments by one of ordinary skill in the art within the scope of the invention.

Claims (8)

1. An apparatus for supporting multi-protocol access authentication, comprising: a control management module (10) and a communication interface module (20);
the communication interface module (20) is provided with communication interfaces with multiple protocols and is used for receiving and transmitting data messages with corresponding protocols through each communication interface;
the control management module (10) is configured to determine a protocol message format of each communication interface, where the communication interfaces include an uplink communication interface and a downlink communication interface, the protocol message format of the uplink communication interface is determined by a data message of a first device connected to the uplink communication interface, and the protocol message format of the downlink communication interface is determined by a data message of a second device connected to the downlink communication interface; and determining a downlink communication interface corresponding to the uplink communication interface according to equipment information contained in a protocol message format of any uplink communication interface and a preset uplink-downlink corresponding relation of the communication interface, and carrying out data communication through the uplink communication interface and the downlink communication interface corresponding to the uplink communication interface.
2. The apparatus according to claim 1, wherein the device information includes, but is not limited to, at least one of a device type and a device identification ID, and the determining, according to the device information included in the protocol message format of any one of the uplink communication interfaces and a preset uplink-downlink correspondence of the communication interfaces, a downlink communication interface corresponding to the uplink communication interface includes:
for any one of the uplink communication interfaces, matching the equipment type contained in the protocol message format of the uplink communication interface with a preset equipment type, and/or matching the equipment ID contained in the protocol message format of the uplink communication interface with a preset equipment ID;
and under the condition that the equipment types are matched and/or the equipment IDs are matched and consistent, determining a downlink communication interface corresponding to the uplink communication interface according to a preset uplink and downlink corresponding relation of the communication interface.
3. The apparatus of claim 2, wherein the data communication through the uplink communication interface and the downlink communication interface corresponding to the uplink communication interface comprises:
determining a message mapping relation between the uplink communication interface and the downlink communication interface according to the protocol message format of the uplink communication interface and the protocol message format of the downlink communication interface corresponding to the uplink communication interface;
and according to the message mapping relation, mapping and outputting the data message of the first equipment through the downlink communication interface and/or reporting the data message of the second equipment through the uplink communication interface.
4. The apparatus of claim 3, wherein said determining a protocol message format for each of said communication interfaces comprises:
comparing the data message of any communication interface with a preset protocol model to determine a first protocol message format;
continuously acquiring data messages of the communication interface with a set number of frames, and comparing the data messages of two adjacent frames according to bytes so as to determine a second protocol message format based on the difference between the data messages of two adjacent frames;
determining the first protocol message format or the second protocol message format as the protocol message format of the communication interface under the condition that the first protocol message format is consistent with the second protocol message format;
and under the condition that the first protocol message format and the second protocol message format are inconsistent, re-determining the first protocol message format and the second protocol message format until the first protocol message format and the second protocol message format are consistent.
5. The apparatus of claim 4, wherein the control management module (10) comprises a processor (101), a memory (102), a baseband circuit (103), a clock circuit (104), a joint test action organization, JTAG, communication interface (105);
the memory (102) stores a plurality of programs, wherein the plurality of programs at least comprise a protocol analysis program and a protocol authentication permission program, the protocol analysis program is used for determining a protocol message format of each communication interface, the protocol authentication permission program is used for determining a downlink communication interface corresponding to the uplink communication interface according to equipment information contained in the protocol message format of any uplink communication interface and a preset uplink-downlink correspondence of the communication interface, and data communication is carried out through the uplink communication interface and the downlink communication interface corresponding to the uplink communication interface;
-said processor (101) for executing a program stored in said memory (102);
-said baseband circuit (103) for providing a timing reference;
-the clock circuit (104) for recording time;
the JTAG communication interface (105) is used for communicating with a computer to complete the upgrade of the programs.
6. The apparatus of claim 5, wherein the apparatus further comprises:
and the man-machine interaction module (30) is used for displaying data processing and preset data retrieval after the processor (101) executes the program stored in the memory (102), wherein the preset data comprises the preset uplink and downlink corresponding relation of the communication interface, the preset equipment type, the preset equipment ID and the preset protocol model.
7. The apparatus of claim 1, wherein the communication interface module (20) comprises a bluetooth communication interface, a transmission control protocol TCP communication interface, a recommended standard RS485 communication interface.
8. The apparatus according to any one of claims 1-7, wherein the apparatus further comprises:
a power input module (40) for powering the circuitry in the device.
CN202310885670.5A 2023-07-18 2023-07-18 Device supporting multi-protocol access authentication Pending CN117040806A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310885670.5A CN117040806A (en) 2023-07-18 2023-07-18 Device supporting multi-protocol access authentication

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310885670.5A CN117040806A (en) 2023-07-18 2023-07-18 Device supporting multi-protocol access authentication

Publications (1)

Publication Number Publication Date
CN117040806A true CN117040806A (en) 2023-11-10

Family

ID=88643884

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310885670.5A Pending CN117040806A (en) 2023-07-18 2023-07-18 Device supporting multi-protocol access authentication

Country Status (1)

Country Link
CN (1) CN117040806A (en)

Similar Documents

Publication Publication Date Title
US8510587B2 (en) Time synchronization system and server using a baseboard management controller acquiring time signals to record occurrence time of system logs before than host system
CN102109572B (en) Method for testing and method for testing and controlling transmission chip
CN111063386A (en) DDR chip testing method and device
CN105677420A (en) Method and device for interface pin configuration
CN106547668A (en) Computer system fault alarming method, apparatus and system
CN112328467B (en) Embedded system program testing method and device
CN113746821A (en) Intelligent device control method and device, storage medium and electronic device
CN115543746A (en) Graphics processor monitoring method, system and device and electronic equipment
CN109901664B (en) Method, apparatus, system, device and readable storage medium for providing clock signal
CN113282490A (en) Intelligent door lock testing method and electronic equipment
CN117040806A (en) Device supporting multi-protocol access authentication
WO2018170866A1 (en) Data acquisition method and apparatus
CN208477328U (en) A kind of control panel circuit and electronic equipment
CN110532034A (en) Image forming apparatus and its starting control method, storage medium
CN101317784B (en) Multi-collocation module equipment and automatic collocation method for module
CN115277284B (en) Communication method, communication device, communication system, and computer-readable storage medium
CN112463499A (en) Method, device, equipment and storage medium for adapting external equipment
CN114328044B (en) AIC+box topology testing method, device and system
CN113900715B (en) Information management system, method, device and storage medium
CN111007336A (en) Module production test power-on and power-off automatic detection system and method based on serial port communication
CN105493048A (en) Debug device, debug method, and debug program
CN108513169A (en) A kind of chip downloads method, chip and the LCD TV of startup program
CN109491818A (en) A kind of storage device failure positioning device
CN109634906B (en) IC communication system and method
CN115470068A (en) Mainboard, computer mainboard management system and computer mainboard management method

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