CN114500676A - Information interaction method and device among industrial internet devices and storage medium - Google Patents

Information interaction method and device among industrial internet devices and storage medium Download PDF

Info

Publication number
CN114500676A
CN114500676A CN202111631293.XA CN202111631293A CN114500676A CN 114500676 A CN114500676 A CN 114500676A CN 202111631293 A CN202111631293 A CN 202111631293A CN 114500676 A CN114500676 A CN 114500676A
Authority
CN
China
Prior art keywords
interface
protocol
compatible
interface protocol
protocols
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
CN202111631293.XA
Other languages
Chinese (zh)
Other versions
CN114500676B (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.)
Shandong Inspur Industrial Internet Industry Co Ltd
Original Assignee
Shandong Inspur Industrial Internet Industry 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 Shandong Inspur Industrial Internet Industry Co Ltd filed Critical Shandong Inspur Industrial Internet Industry Co Ltd
Priority to CN202111631293.XA priority Critical patent/CN114500676B/en
Publication of CN114500676A publication Critical patent/CN114500676A/en
Application granted granted Critical
Publication of CN114500676B publication Critical patent/CN114500676B/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/08Protocols for interworking; Protocol conversion
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/10File systems; File servers
    • G06F16/16File or folder operations, e.g. details of user interfaces specifically adapted to file systems
    • 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
    • Y02PCLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
    • Y02P90/00Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
    • Y02P90/02Total factory control, e.g. smart factories, flexible manufacturing systems [FMS] or integrated manufacturing systems [IMS]

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • Signal Processing (AREA)
  • Human Computer Interaction (AREA)
  • Data Mining & Analysis (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Security & Cryptography (AREA)
  • Communication Control (AREA)
  • Computer And Data Communications (AREA)

Abstract

The application discloses an information interaction method, equipment and a storage medium among industrial internet equipment, which solve the technical problem that the conventional interfaces of different types cannot be directly called with each other. The method comprises the following steps: acquiring interface control files of a plurality of different types of interfaces in an interface database; analyzing and extracting interface protocols in each interface control file, and dividing the interface protocols into a plurality of interface protocol sets according to the interface protocol identifications; carrying out compatibility processing on each interface protocol set to generate a compatible protocol file; when two different interfaces of the interface control file are called, receiving and analyzing a first calling request sent by a first interface to determine a second interface identifier contained in the first calling request, and converting the first calling request into a second calling request based on a compatible protocol file; and sending the second calling request to the second interface to initiate the calling of the first interface to the second interface. The method realizes the mutual calling among different types of interfaces.

Description

Information interaction method and device among industrial internet devices and storage medium
Technical Field
The present application relates to the field of industrial internet technologies, and in particular, to a method, a device, and a storage medium for information interaction between industrial internet devices.
Background
The industrial internet is a novel infrastructure, an application mode and an industrial ecology deeply integrated by a new generation of information communication technology and industrial economy, and a brand new manufacturing and service system covering a whole industrial chain and a whole value chain is constructed by comprehensively connecting people, machines, objects, systems and the like, so that a realization way is provided for the industrial and even industrial digital, networked and intelligent development.
However, with the overall connection of people, machines, things, systems and the like, new problems are brought to the communication among the people, the machines, the things, the systems and the like. The corresponding interface files of different devices or systems are different, so that each device or system needs to provide an external calling logic for realizing the mutual calling among different types of interfaces, which brings considerable workload and working cost to all devices and systems.
Disclosure of Invention
The embodiment of the application provides an information interaction method and device among industrial Internet devices and a storage medium, and solves the technical problem that interfaces of different types cannot be directly called with each other.
In a first aspect, an embodiment of the present application provides an information interaction method between industrial internet devices, where the method includes: acquiring interface control files of a plurality of different types of interfaces in an interface database; the interface control file comprises a plurality of interface protocols for controlling interface communication; analyzing and extracting interface protocols in each interface control file, and dividing the interface protocols into a plurality of interface protocol sets according to the interface protocol identifications; each interface protocol in the interface protocol set has an interface protocol identifier with the same type; carrying out compatibility processing on each interface protocol set to determine compatible protocols corresponding to each interface protocol set and generate compatible protocol files; when any two interfaces with different interface control files perform mutual inter-modulation, receiving and analyzing a first calling request sent by a first interface to determine a second interface identifier contained in the first calling request, and converting the first calling request into a second calling request based on a compatible protocol file; and determining a second interface based on the second interface identification, and sending a second calling request to the second interface so as to initiate the calling of the first interface to the second interface.
According to the information interaction method between the industrial internet devices, the interface control files of the industrial internet devices are collected, then compatible processing is carried out on the interface control files of different types, and compatible protocol files are generated so that the compatible protocol files can be suitable for the interfaces of different types. When two interfaces of different types are called, the calling request can be converted through the compatible protocol file, so that the mutual calling between the interfaces of different types is realized.
In an implementation manner of the present application, parsing and extracting an interface protocol in each interface control file, and dividing the interface protocol into a plurality of interface protocol sets according to an interface protocol identifier specifically includes: analyzing the interface protocol in each interface control file to determine the corresponding interface protocol identification contained in each interface protocol; determining a non-repeated interface protocol identification set, and establishing a plurality of interface protocol sets named by interface protocol identifications on the basis of a plurality of interface protocol identifications in the interface protocol identification set; the non-repeated interface protocol identification set comprises all types of interface protocol identifications, and the type of each interface protocol identification is different from the types of other interface protocol identifications; and extracting the interface protocol in each interface control file into a corresponding interface protocol set.
In an implementation manner of the present application, analyzing an interface protocol in each interface control file to determine a corresponding interface protocol identifier included in each interface protocol in each interface control file specifically includes: classifying texts of the interface control file to determine a plurality of texts in the interface control file; wherein the type of the text comprises words, numbers and symbols; and identifying the interface protocol identifier separation symbols in the plurality of texts, and determining the interface protocol identifiers in the plurality of texts based on the interface protocol identifier separation symbols.
In an implementation manner of the present application, performing compatibility processing on each interface protocol set to determine a compatible protocol corresponding to each interface protocol set specifically includes: determining any interface protocol in the interface protocol set as an initial compatible protocol, and setting an initial compatible expression for the initial compatible protocol; the initial compatible expression is used for realizing the conversion between the interface protocol and the initial compatible protocol; adjusting the initial compatible protocol and the initial compatible expression based on other interface protocols in the interface protocol set so that the initial compatible protocol and the initial compatible expression are suitable for all the interface protocols in the interface protocol set; a compatible protocol is determined based on the initial compatible protocol and the initial compatible expression.
In one implementation of the present application, the method further comprises: under the condition that a new device interface to be compatible exists, analyzing the interface control file to be compatible so as to determine an interface protocol identifier to be compatible corresponding to each interface protocol to be compatible in the interface control file to be compatible, and determining whether each interface protocol identifier to be compatible has a corresponding interface protocol set; and under the condition that the interface protocol identifications to be compatible all have the corresponding interface protocol set, updating the corresponding compatible protocol in the compatible protocol file based on the interface protocol to be compatible.
In one implementation of the present application, the method further comprises: and under the condition that the to-be-compatible interface protocol identification without the corresponding interface protocol set exists in each to-be-compatible interface protocol identification, generating a new compatible protocol based on the to-be-compatible interface protocol corresponding to the to-be-compatible interface protocol identification, and adding the new compatible protocol into a compatible protocol file.
In an implementation manner of the present application, after obtaining the interface control file of each interface in the interface database, the method further includes: determining an equipment interface corresponding to each interface control file, and acquiring the calling authorization of the equipment interface; and sorting the interface identification of each equipment interface to generate an equipment interface directory.
In one implementation manner of the present application, after determining the second interface identifier included in the first invocation request, the method further includes: querying the device interface directory to determine whether a second interface identifier exists in the device interface directory; and under the condition that the equipment interface directory does not have the second interface identifier, generating a call failure notification, and returning the call failure notification to the first interface.
In a second aspect, an embodiment of the present application further provides an information interaction device between industrial internet devices, where the information interaction device includes: a processor; and a memory having executable code stored thereon, which when executed, causes the processor to perform a method according to any one of claims 1-8.
In a third aspect, an embodiment of the present application further provides a non-volatile computer storage medium for information interaction between industrial internet devices, where the non-volatile computer storage medium stores computer-executable instructions, and the computer-executable instructions are configured to: acquiring interface control files of a plurality of different types of interfaces in an interface database; the interface control file comprises a plurality of interface protocols for controlling interface communication; analyzing and extracting interface protocols in each interface control file, and dividing the interface protocols into a plurality of interface protocol sets according to the interface protocol identifications; each interface protocol in the interface protocol set has an interface protocol identifier with the same type; carrying out compatibility processing on each interface protocol set to determine compatible protocols corresponding to each interface protocol set and generate compatible protocol files; when any two interfaces with different interface control files perform mutual inter-modulation, receiving and analyzing a first calling request sent by a first interface to determine a second interface identifier contained in the first calling request, and converting the first calling request into a second calling request based on a compatible protocol file; and determining a second interface based on the second interface identification, and sending a second calling request to the second interface so as to initiate the calling of the first interface to the second interface.
Drawings
The accompanying drawings, which are included to provide a further understanding of the application and are incorporated in and constitute a part of this application, illustrate embodiment(s) of the application and together with the description serve to explain the application and not to limit the application. In the drawings:
fig. 1 is a flowchart of an information interaction method between industrial internet devices according to an embodiment of the present disclosure;
fig. 2 is a schematic structural diagram of an information interaction device between industrial internet devices according to an embodiment of the present application.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the technical solutions of the present application will be described in detail and completely with reference to the following specific embodiments of the present application and the accompanying drawings. It should be apparent that the described embodiments are only some of the embodiments of the present application, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
The embodiment of the application provides an information interaction method and device among industrial Internet devices and a storage medium, and solves the technical problem that interfaces of different types cannot be directly called with each other.
The technical solutions proposed in the embodiments of the present application are described in detail below with reference to the accompanying drawings.
Fig. 1 is a flowchart of an information interaction method between industrial internet devices according to an embodiment of the present disclosure.
As shown in fig. 1, an information interaction method between industrial internet devices provided in an embodiment of the present application specifically includes the following steps:
step 101, obtaining interface control files of a plurality of different types of interfaces in an interface database.
First, it should be noted that the information interaction method between the industrial internet devices in the embodiment of the present application is mainly used for interface call between the industrial internet devices belonging to different systems. For example, in order to automatically avoid pedestrians or non-motor vehicles, a sprinkler in operation acquires a real-time video shot by a camera in the existing traffic monitoring system. The interface database is a database for storing interface control files of corresponding industrial internet equipment. It will be appreciated that there may be more than one interface database, and that internet devices belonging to different systems will have their corresponding interface databases.
In one embodiment of the present application, to implement information interaction between industrial internet devices with different types of interfaces, first, interface control files of a plurality of industrial internet device interfaces in an interface database need to be obtained. It will be appreciated that several interface protocols for controlling interface communications are contained in the interface control file. The interface protocol is a formal description of the methods and structures involved for a particular input or output.
It should be noted that before obtaining the interface control file in the interface database, access authorization of each interface database needs to be obtained. The specific authorization process may adopt any existing authorization method, and the application is not limited herein.
In an embodiment of the present application, after the interface control file of each interface in the interface database is obtained, the device interface corresponding to each interface control file is further determined. And then obtaining the calling authorization of the device interface so as to manage the interface. In order to facilitate management of each equipment interface, after the authorization of the equipment interface is obtained, the interface identifier of each equipment interface is obtained and is sorted based on the interface identifier to generate an equipment interface catalog.
And 102, analyzing and extracting the interface protocols in the interface control files, and dividing the interface protocols into a plurality of interface protocol sets according to the interface protocol identifications.
In an embodiment of the present application, after the interface control files of the interfaces are obtained, the interface protocols in the interface control files need to be parsed and extracted first.
Specifically, firstly, text classification is carried out on an interface protocol in an interface control file to determine a plurality of texts corresponding to the interface protocol in the interface control file; the types of text include words, numbers, and symbols. It should be noted that, in the embodiment of the present application, when text classification is performed on the interface control file, the order between the interface protocols is not disturbed, and the text order in the interface protocols is not disturbed. Therefore, after text classification, the interface protocol identifier separation symbols in a plurality of texts are identified, and the position of the interface protocol identifier can be determined.
Further, determining a non-repeated interface protocol identification set; it is understood that the interface protocol identifier set without duplication includes all types of interface protocol identifiers, and the type of each interface protocol identifier is different from the types of other interface protocol identifiers. Then, based on a plurality of interface protocol identifications in the interface protocol identification set, establishing a plurality of corresponding interface protocol sets named by the interface protocol identifications; and finally, extracting the interface protocol in each interface control file into a corresponding interface protocol set.
And 103, performing compatibility processing on each interface protocol set to determine compatible protocols corresponding to each interface protocol set, and generating compatible protocol files.
In an embodiment of the present application, after the interface protocols are subjected to type classification to obtain a plurality of interface protocol sets, each interface protocol set is subjected to compatibility processing to determine a compatible protocol corresponding to each interface protocol set.
Specifically, any one of several interface protocol sets is taken as an example. Firstly, any interface protocol in the interface protocol set is determined to be an initial compatible protocol, and an initial compatible expression is set for the initial compatible protocol. It should be noted that, the initial compatible expression of the present application is used for realizing the conversion between the interface protocol and the initial compatible protocol; it will be appreciated that the translation relationship is bi-directional.
Further, other interface protocols in the interface protocol set are respectively compatible with the determined initial compatible protocol, so as to generate an initial compatible protocol and an initial compatible expression which are applicable to all interface protocols in the interface protocol set. It will be appreciated that the process of performing compatibility will continually adjust the compatibility expression and the initial compatible protocol to be applicable to each interface protocol in the collection of interface protocols. After all the protocols in the interface protocol set are compatible, the compatible protocol is determined based on the compatible initial compatible protocol and the compatible expression.
Further, after the compatible protocol corresponding to each interface protocol set is determined, the completed compatible protocol file is determined based on the compatible protocol corresponding to each interface protocol set.
It can be understood that there may be more repeatability of interface protocols in the interface protocol set, and in an interface protocol set containing tens of hundreds of interface protocols, there may be only two or three versions of the interface protocols. Therefore, the compatible protocol and the compatible expression are not too complex, and all interface protocols in a certain interface protocol set can be compatible by using a plurality of conditions. And because of the different interface types, the version of the interface control file corresponding to the compatible protocol file is determined according to the interface types. Therefore, the compatible protocol file provided by the embodiment of the application is not only not complex, but also has extremely high compatibility rate.
In an embodiment of the application, if a new device interface to be compatible needs to be compatible, first, the interface control file to be compatible needs to be analyzed to determine an interface protocol identifier to be compatible corresponding to each interface protocol to be compatible in the interface control file to be compatible, and then, whether each interface protocol identifier to be compatible has a corresponding interface protocol set is determined; and under the condition that the interface protocol identifications to be compatible all have the corresponding interface protocol set, updating the corresponding compatible protocol in the compatible protocol file based on the interface protocol to be compatible so that the compatible protocol can be compatible with the interface control file to be compatible.
Further, if it is determined that the to-be-compatible interface protocol identifier without the corresponding interface protocol set exists in each to-be-compatible interface protocol identifier, generating a new compatible protocol based on the to-be-compatible interface protocol corresponding to the to-be-compatible interface protocol identifier, and adding the new compatible protocol into the compatible protocol file. It can be understood that the newly added compatible protocol is the interface protocol to be compatible.
Step 104, when any two interfaces with different interface control files perform inter-modulation, receiving and analyzing a first call request sent by a first interface to determine a second interface identifier contained in the first call request, and converting the first call request into a second call request based on a compatible protocol file
In an embodiment of the present application, when any two interfaces with different interface control files perform phase intermodulation, first, a first call request sent by a first interface needs to be received and analyzed to determine a second interface identifier included in the first call request. The process of specifically determining the second interface identifier included in the first invocation request may be obtained by matching keywords.
Further, the device interface directory is queried to determine if a second interface identification exists in the device interface directory. And if the second interface identifier does not exist in the equipment interface directory, returning a calling failure notice to the first interface.
And in the case that the second interface identification exists in the equipment interface directory, converting the first calling request into a second calling request based on the compatible protocol file. It can be understood that the process of converting the first call request into the second call request is to convert the call request conforming to the interface control file corresponding to the first interface into the call request conforming to the interface control file corresponding to the second interface.
It should also be noted that, in order to enable the compatible protocol to identify the requirements of the second invocation request to be translated, the translation module may also need to add translation conditions to the contents of the first invocation request prior to translation. It will be appreciated that the conversion condition is a condition that conforms to a compatible expression.
And 105, determining a second interface based on the second interface identifier, and sending a second call request to the second interface to initiate the call of the first interface to the second interface.
After the second call request is determined, the corresponding second interface is further determined according to the second interface identifier. Then, a second call request is sent to the second interface to initiate a call of the first interface to the second interface.
It is understood that when the first interface calls the second interface to perform data transmission, the format of the data file is also converted according to the compatible protocol
Based on the same inventive concept, the embodiment of the application also provides information interaction equipment among industrial internet equipment, and the internal structure of the information interaction equipment is shown in fig. 2.
Fig. 2 is a schematic diagram of an internal structure of an information interaction device between industrial internet devices according to an embodiment of the present application. As shown in fig. 2, the apparatus includes: a processor 201; the memory 202 has executable instructions stored thereon, and when executed, the processor 201 is enabled to execute a method for information interaction between industrial internet devices as described above.
In an embodiment of the present application, the processor 201 is configured to obtain interface control files of a plurality of different types of interfaces in the interface database; the interface control file comprises a plurality of interface protocols for controlling interface communication; analyzing and extracting interface protocols in each interface control file, and dividing the interface protocols into a plurality of interface protocol sets according to the interface protocol identifications; each interface protocol in the interface protocol set has an interface protocol identifier with the same type; carrying out compatibility processing on each interface protocol set to determine compatible protocols corresponding to each interface protocol set and generate compatible protocol files; when any two interfaces with different interface control files perform mutual inter-modulation, receiving and analyzing a first calling request sent by a first interface to determine a second interface identifier contained in the first calling request, and converting the first calling request into a second calling request based on a compatible protocol file; and determining a second interface based on the second interface identification, and sending a second calling request to the second interface so as to initiate the calling of the first interface to the second interface.
Some embodiments of the present application provide a non-transitory computer storage medium corresponding to an information interaction between industrial internet devices of fig. 1, storing computer-executable instructions configured to:
acquiring interface control files of a plurality of different types of interfaces in an interface database; the interface control file comprises a plurality of interface protocols for controlling interface communication;
analyzing and extracting interface protocols in each interface control file, and dividing the interface protocols into a plurality of interface protocol sets according to the interface protocol identifications; each interface protocol in the interface protocol set has an interface protocol identifier with the same type;
carrying out compatibility processing on each interface protocol set to determine compatible protocols corresponding to each interface protocol set and generate compatible protocol files;
when any two interfaces with different interface control files perform mutual inter-modulation, receiving and analyzing a first calling request sent by a first interface to determine a second interface identifier contained in the first calling request, and converting the first calling request into a second calling request based on a compatible protocol file;
and determining a second interface based on the second interface identification, and sending a second calling request to the second interface so as to initiate the calling of the first interface to the second interface.
The embodiments in the present application are described in a progressive manner, and the same and similar parts among the embodiments can be referred to each other, and each embodiment focuses on the differences from the other embodiments. Especially, for the internet of things device and medium embodiments, since they are substantially similar to the method embodiments, the description is simple, and the relevant points can be referred to the partial description of the method embodiments.
The device and the medium provided by the embodiment of the application correspond to the method one to one, so the device and the medium also have the similar beneficial technical effects as the corresponding method, and the beneficial technical effects of the method are explained in detail above, so the beneficial technical effects of the device and the medium are not repeated herein.
As will be appreciated by one skilled in the art, embodiments of the present application may be provided as a method, apparatus, or computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present application is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the application. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
In a typical configuration, a computing device includes one or more processors (CPUs), input/output interfaces, network interfaces, and memory.
The memory may include forms of volatile memory in a computer readable medium, Random Access Memory (RAM) and/or non-volatile memory, such as Read Only Memory (ROM) or flash memory (flash RAM). Memory is an example of a computer-readable medium.
Computer-readable media, including both non-transitory and non-transitory, removable and non-removable media, may implement information storage by any method or technology. The information may be computer readable instructions, data structures, modules of a program, or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), Static Random Access Memory (SRAM), Dynamic Random Access Memory (DRAM), other types of Random Access Memory (RAM), Read Only Memory (ROM), Electrically Erasable Programmable Read Only Memory (EEPROM), flash memory or other memory technology, compact disc read only memory (CD-ROM), Digital Versatile Discs (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices, or any other non-transmission medium that can be used to store information that can be accessed by a computing device. As defined herein, a computer readable medium does not include a transitory computer readable medium such as a modulated data signal and a carrier wave.
It should also be noted that the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
The above description is only an example of the present application and is not intended to limit the present application. Various modifications and changes may occur to those skilled in the art. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application should be included in the scope of the claims of the present application.

Claims (10)

1. An information interaction method between industrial internet devices is characterized by comprising the following steps:
acquiring interface control files of a plurality of different types of interfaces in an interface database; the interface control file comprises a plurality of interface protocols for controlling interface communication;
analyzing and extracting interface protocols in each interface control file, and dividing the interface protocols into a plurality of interface protocol sets according to interface protocol identifications; wherein, each interface protocol in the interface protocol set has an interface protocol identifier with the same type;
carrying out compatibility processing on each interface protocol set to determine compatible protocols corresponding to each interface protocol set and generate compatible protocol files;
when any two interfaces with different interface control files perform inter-modulation, receiving and analyzing a first calling request sent by a first interface to determine a second interface identifier contained in the first calling request, and converting the first calling request into a second calling request based on the compatible protocol file;
and determining the second interface based on the second interface identifier, and sending the second calling request to the second interface so as to initiate the calling of the first interface to the second interface.
2. The method as claimed in claim 1, wherein parsing and extracting interface protocols in each interface control file, and dividing the interface protocols into a plurality of interface protocol sets according to interface protocol identifiers, specifically comprises:
analyzing the interface protocol in each interface control file to determine the corresponding interface protocol identification contained in each interface protocol;
determining a non-repeated interface protocol identification set, and establishing a plurality of interface protocol sets named by the interface protocol identifications on the basis of a plurality of interface protocol identifications in the interface protocol identification set; the non-repeated interface protocol identification set comprises all types of interface protocol identifications, and the type of each interface protocol identification is different from the types of other interface protocol identifications;
and extracting the interface protocol in each interface control file into a corresponding interface protocol set.
3. The method as claimed in claim 2, wherein parsing the interface protocol in each interface control file to determine the corresponding interface protocol identifier included in each interface protocol in each interface control file includes:
performing text classification on the interface control file to determine a plurality of texts in the interface control file; wherein the type of the text comprises words, numbers, symbols;
and identifying interface protocol identification separation symbols in the texts, and determining the interface protocol identifications in the texts based on the interface protocol identification separation symbols.
4. The method of claim 1, wherein performing compatibility processing on each interface protocol set to determine a compatible protocol corresponding to each interface protocol set specifically comprises:
determining any interface protocol in the interface protocol set as an initial compatible protocol, and setting an initial compatible expression for the initial compatible protocol; the initial compatible expression is used for realizing the conversion between an interface protocol and the initial compatible protocol;
based on other interface protocols in the interface protocol set, adjusting the initial compatible protocol and the initial compatible expression so that the initial compatible protocol and the initial compatible expression are applicable to all the interface protocols in the interface protocol set;
determining the compatible protocol based on the initial compatible protocol and an initial compatible expression.
5. The method of claim 1, further comprising:
under the condition that a new device interface to be compatible exists, analyzing the interface control file to be compatible so as to determine an interface protocol identifier to be compatible corresponding to each interface protocol to be compatible in the interface control file to be compatible, and determining whether each interface protocol identifier to be compatible has a corresponding interface protocol set;
and under the condition that the interface protocol identifications to be compatible all have the corresponding interface protocol set, updating the corresponding compatible protocol in the compatible protocol file based on the interface protocol to be compatible.
6. The method of claim 5, further comprising:
and under the condition that the interface protocol identification to be compatible without the corresponding interface protocol set exists in the interface protocol identifications to be compatible, generating a new compatible protocol based on the interface protocol to be compatible corresponding to the interface protocol identification to be compatible, and adding the new compatible protocol into the compatible protocol file.
7. The method as claimed in claim 1, wherein after obtaining the interface control file of each interface in the interface database, the method further comprises:
determining an equipment interface corresponding to each interface control file, and acquiring the calling authorization of the equipment interface; and the number of the first and second groups,
and sorting the interface identification of each equipment interface to generate an equipment interface directory.
8. The method of claim 7, wherein after determining the second interface identifier included in the first invocation request, the method further comprises:
querying the device interface directory to determine whether a second interface identifier exists in the device interface directory;
and under the condition that the second interface identifier does not exist in the equipment interface directory, generating a call failure notification, and returning the call failure notification to the first interface.
9. An information interaction device between industrial internet devices, the device comprising:
a processor;
and a memory having executable code stored thereon, which when executed, causes the processor to perform a method as claimed in any one of claims 1-8.
10. A non-transitory computer storage medium for information interaction between industrial internet devices, storing computer-executable instructions configured to:
acquiring interface control files of a plurality of different types of interfaces in an interface database; the interface control file comprises a plurality of interface protocols for controlling interface communication;
analyzing and extracting interface protocols in each interface control file, and dividing the interface protocols into a plurality of interface protocol sets according to interface protocol identifications; wherein, the interface protocols in the interface protocol set have the same type of interface protocol identification;
carrying out compatibility processing on each interface protocol set to determine compatible protocols corresponding to each interface protocol set and generate compatible protocol files;
when any two interfaces with different interface control files perform inter-modulation, receiving and analyzing a first calling request sent by a first interface to determine a second interface identifier contained in the first calling request, and converting the first calling request into a second calling request based on the compatible protocol file;
and determining the second interface based on the second interface identifier, and sending the second calling request to the second interface so as to initiate the calling of the first interface to the second interface.
CN202111631293.XA 2021-12-28 2021-12-28 Information interaction method and device between industrial Internet devices and storage medium Active CN114500676B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111631293.XA CN114500676B (en) 2021-12-28 2021-12-28 Information interaction method and device between industrial Internet devices and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111631293.XA CN114500676B (en) 2021-12-28 2021-12-28 Information interaction method and device between industrial Internet devices and storage medium

Publications (2)

Publication Number Publication Date
CN114500676A true CN114500676A (en) 2022-05-13
CN114500676B CN114500676B (en) 2024-05-24

Family

ID=81496273

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111631293.XA Active CN114500676B (en) 2021-12-28 2021-12-28 Information interaction method and device between industrial Internet devices and storage medium

Country Status (1)

Country Link
CN (1) CN114500676B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116431718A (en) * 2023-04-17 2023-07-14 哈尔滨东尧科技有限公司 Internet-based integrated information processing system and method

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20170085682A1 (en) * 2015-09-22 2017-03-23 Audio-Technica U.S., Inc. Method and system for interchangeable network communications protocol configurations
CN109510737A (en) * 2018-12-14 2019-03-22 深圳壹账通智能科技有限公司 Protocol interface test method, device, computer equipment and storage medium
CN110581826A (en) * 2018-06-07 2019-12-17 大唐移动通信设备有限公司 core network communication method, device and system
CN113051202A (en) * 2019-12-27 2021-06-29 中国移动通信集团湖南有限公司 Interface adaptation method, device, electronic equipment and computer readable storage medium

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20170085682A1 (en) * 2015-09-22 2017-03-23 Audio-Technica U.S., Inc. Method and system for interchangeable network communications protocol configurations
CN110581826A (en) * 2018-06-07 2019-12-17 大唐移动通信设备有限公司 core network communication method, device and system
CN109510737A (en) * 2018-12-14 2019-03-22 深圳壹账通智能科技有限公司 Protocol interface test method, device, computer equipment and storage medium
CN113051202A (en) * 2019-12-27 2021-06-29 中国移动通信集团湖南有限公司 Interface adaptation method, device, electronic equipment and computer readable storage medium

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
DIRK BEYER等: "web service interface", PROCEEDING OF THE 14TH INTERNATIONAL CONFERENCE ON WORLD WIDE WEB, 10 May 2005 (2005-05-10) *
杨会伟;周先飞;马书香;: "基于FPGA多接口协议间转换系统研究", 佳木斯大学学报(自然科学版), no. 06, 15 November 2019 (2019-11-15) *

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116431718A (en) * 2023-04-17 2023-07-14 哈尔滨东尧科技有限公司 Internet-based integrated information processing system and method

Also Published As

Publication number Publication date
CN114500676B (en) 2024-05-24

Similar Documents

Publication Publication Date Title
Khare et al. Big data in IoT
CN110535928B (en) Event pushing method for JAVA intelligent contract of block chain
CN111061678B (en) Service data processing method, device, computer equipment and storage medium
CN108228664B (en) Unstructured data processing method and device
CN114490641A (en) Industrial Internet data sharing method, equipment and medium
CN111865905B (en) Ukey-based communication method, device and storage medium
CN113923268B (en) Resolution method, device and storage medium for multi-version communication protocol
CN104965829A (en) Method, server and system for classifying terminal applications
CN114500676B (en) Information interaction method and device between industrial Internet devices and storage medium
CN115033646A (en) Method for constructing real-time warehouse system based on Flink and Doris
CN116233164A (en) Method, apparatus, storage medium and processor for collecting device data
CN111241152A (en) Policy information mining method and device and cloud server
CN114490679A (en) Data management method, device, equipment and medium based on identification analysis
CN112612802B (en) Real-time data middle station processing method, device and platform
CN112035466B (en) External index development framework for block chain query
CN105933396B (en) A kind of each canalization interface of collaboration realizes the method and system of long flow
CN112699183A (en) Data processing method, system, readable storage medium and computer equipment
CN117319527A (en) Time sequence data processing method, device and medium based on identification analysis gateway
CN112817539A (en) Industrial data storage method and system, electronic device and storage medium
CN1567829A (en) General purpose data file conversion method
CN112541001A (en) Data query method, device, storage medium and equipment
CN113297274B (en) Signing data query method and system
CN115374086A (en) Data migration method, device, equipment and medium based on message queue
CN113704203A (en) Log file processing method and device
CN115914358A (en) Message pushing method and device, electronic equipment and computer storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
CB02 Change of applicant information

Country or region after: China

Address after: 250101 19th floor, building S02, Inspur Science Park, No. 1036, Inspur Road, high tech Zone, Jinan, Shandong Province

Applicant after: Inspur industrial Internet Co.,Ltd.

Address before: 250101 19th floor, building S02, Inspur Science Park, No. 1036, Inspur Road, high tech Zone, Jinan, Shandong Province

Applicant before: Shandong Inspur industrial Internet Industry Co.,Ltd.

Country or region before: China

CB02 Change of applicant information
GR01 Patent grant
GR01 Patent grant