CN114422618B - Cloud-protogenesis-based IOT platform protocol adaptation method, device, equipment and medium - Google Patents

Cloud-protogenesis-based IOT platform protocol adaptation method, device, equipment and medium Download PDF

Info

Publication number
CN114422618B
CN114422618B CN202111674480.6A CN202111674480A CN114422618B CN 114422618 B CN114422618 B CN 114422618B CN 202111674480 A CN202111674480 A CN 202111674480A CN 114422618 B CN114422618 B CN 114422618B
Authority
CN
China
Prior art keywords
iot platform
adaptation
protocol
cloud
container
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202111674480.6A
Other languages
Chinese (zh)
Other versions
CN114422618A (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.)
Beijing China Transinfo Stock Co ltd
Original Assignee
Beijing China Transinfo Stock 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 Beijing China Transinfo Stock Co ltd filed Critical Beijing China Transinfo Stock Co ltd
Priority to CN202111674480.6A priority Critical patent/CN114422618B/en
Publication of CN114422618A publication Critical patent/CN114422618A/en
Application granted granted Critical
Publication of CN114422618B publication Critical patent/CN114422618B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/18Multiprotocol handlers, e.g. single devices capable of handling multiple protocols
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/06Protocols specially adapted for file transfer, e.g. file transfer protocol [FTP]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/12Protocols specially adapted for proprietary or special-purpose networking environments, e.g. medical networks, sensor networks, networks in vehicles or remote metering networks
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/2866Architectures; Arrangements
    • H04L67/30Profiles

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer Security & Cryptography (AREA)
  • Health & Medical Sciences (AREA)
  • Computing Systems (AREA)
  • General Health & Medical Sciences (AREA)
  • Medical Informatics (AREA)
  • Computer And Data Communications (AREA)

Abstract

The application discloses an IOT platform protocol adaptation method, device, equipment and storage medium based on cloud native, wherein the method comprises the following steps: the cloud IOT platform issues the product adaptation components which are assembled in advance according to the need to the side IOT platform; the side IOT platform checks the product adaptation component issued by the cloud IOT platform; if the verification is passed, the side IOT platform creates a resource deployment file and a service configuration file according to the product adaptation component; and the side IOT platform starts the container according to the resource deployment file and the service configuration file. According to the cloud-protogenesis-based IOT platform protocol adaptation method provided by the embodiment of the application, the network component and the protocol component of the equipment can be flexibly selected according to requirements, and meanwhile, the resources of the container are managed based on the cloud protogenesis technology, so that the effects of flexible equipment access and balanced load of hardware resources are achieved. The device is accessed to the Internet of things platform conveniently, network adaptation is achieved, and protocol adaptation is achieved.

Description

Cloud-protogenesis-based IOT platform protocol adaptation method, device, equipment and medium
Technical Field
The present invention relates to the field of computer technologies, and in particular, to a cloud native based IOT platform protocol adaptation method, apparatus, device, and medium.
Background
In the equipment access work of the internet of things industry, especially in the equipment access process of the internet of things in the traffic industry, the internet of things platform is suitable for multi-manufacturer and multi-protocol equipment access work. Because different equipment manufacturers use respective specifications and can use multiple protocols according to different projects, the access of the equipment of the Internet of things in the traffic industry is greatly challenged. Therefore, an internet of things platform scheme meeting flexible access of various devices is needed to be realized.
Disclosure of Invention
The embodiment of the application provides a cloud native based IOT platform protocol adaptation method, a device, equipment and a medium. The following presents a simplified summary in order to provide a basic understanding of some aspects of the disclosed embodiments. This summary is not an extensive overview and is intended to neither identify key/critical elements nor delineate the scope of such embodiments. Its sole purpose is to present some concepts in a simplified form as a prelude to the more detailed description that is presented later.
In a first aspect, an embodiment of the present application provides a cloud native based IOT platform protocol adaptation method, including:
the cloud IOT platform issues the product adaptation components which are assembled in advance according to the need to the side IOT platform;
the side IOT platform checks the product adaptation component issued by the cloud IOT platform;
if the verification is passed, the side IOT platform creates a resource deployment file and a service configuration file according to the product adaptation component;
and the side IOT platform starts the container according to the resource deployment file and the service configuration file.
In an alternative embodiment, before the cloud IOT platform issues the product adaptation components assembled on demand to the edge IOT platform, the cloud IOT platform further comprises:
the cloud IOT platform selects a network component type, an address, a port and a private configuration item according to the accessed side IOT platform and a data transmission protocol and a network transmission protocol required by terminal equipment, and a configured network adaptation component is obtained;
the cloud IOT platform obtains a configured protocol adaptation component according to a protocol adaptation packet developed by the project access equipment and the configured component analysis parameters;
and the cloud IOT platform creates product metadata according to the product specification and the product description information, associates the network adaptation component and the protocol adaptation component, and obtains the product adaptation component assembled as required.
In an alternative embodiment, the verifying, by the edge IOT platform, the product adaptation component issued by the cloud IOT platform includes:
the side IOT platform checks the type support, the IP address availability and the port availability of the network adaptation component;
and checking the format support and the data integrity of the protocol adaptation component.
In an alternative embodiment, the side IOT platform creates a resource deployment file and a service configuration file from a product adaptation component, comprising:
the side IOT platform loads a preset resource deployment file template, and a configuration container initializes an initContainers item according to the resource deployment file template and configuration information of a product adaptation component, assembles an address and a default configuration item of a protocol adaptation package, and generates a resource deployment file;
the side IOT platform analyzes the configuration information of the network adaptation component, judges whether the network component is a server, loads a preset service configuration file template when the network component is the server, and generates a service configuration file according to the service configuration file template and the association information of the internal port and the external port of the container in the configuration information.
In an alternative embodiment, the side IOT platform initiates a container according to a resource deployment file and a service configuration file, comprising:
calling an API interface of the K8S, and pushing configuration information of the service configuration file to a master node server of the K8S cluster to obtain a mapping relation of the internal port and the external port of the container;
and calling an API interface of the K8S, pushing configuration information of the resource deployment file to a master node server of the K8S cluster, starting a container, and starting a Pod watch monitoring state.
In an alternative embodiment, pushing configuration information of the resource deployment file to the K8S cluster master node server and starting the container, and simultaneously starting the Pod watch listening state, includes:
pulling a container base mirror image from a mirror image warehouse to an edge IOT platform according to configuration information of a resource deployment file;
pulling a protocol adaptation package from a file transfer protocol server to an edge IOT platform according to configuration information of a resource deployment file;
when the container is started, loading the protocol adaptation packet which is already mounted in the container to the program context, and starting the Pod Watch thread to report the Pod state after the container is successfully started.
In an alternative embodiment, starting the Pod Watch thread to report the Pod state includes:
the container receives the data reported by the equipment;
the container calls a protocol adaptation packet internal analysis transcoding program to convert the data reported by the equipment into a general format of the IOT platform;
the side IOT platform checks the data converted by the container;
and if the verification is passed, the converted data is sent to the cloud IOT platform.
In a second aspect, an embodiment of the present application provides a cloud native based IOT platform protocol adaptation apparatus, including:
the cloud IOT platform is used for issuing the product adaptation components which are assembled in advance according to the requirements to the side IOT platform;
and the side IOT platform is used for checking the product adaptation component issued by the cloud IOT platform, if the product adaptation component passes the checking, creating a resource deployment file and a service configuration file according to the product adaptation component, and starting the container according to the resource deployment file and the service configuration file.
In a third aspect, an embodiment of the present application provides a cloud native based IOT platform protocol adaptation device, including a processor and a memory storing program instructions, where the processor is configured to execute, when executing the program instructions, the cloud native based IOT platform protocol adaptation method provided in the foregoing embodiment.
In a fourth aspect, embodiments of the present application provide a computer readable medium having computer readable instructions stored thereon, where the computer readable instructions are executed by a processor to implement a cloud native based IOT platform protocol adaptation method provided in the above embodiments.
The technical scheme provided by the embodiment of the application can comprise the following beneficial effects:
according to the cloud native-based IOT platform protocol adaptation method, network adaptation components and protocol adaptation components required by equipment can be assembled flexibly according to equipment requirements in advance, the product adaptation components are obtained, the spliced product adaptation components are sent to an edge-end Internet of things platform, and the edge-end Internet of things platform starts a container according to the product adaptation components. According to the method, the network component and the protocol component of the equipment can be flexibly selected according to requirements, and meanwhile, the resources of the container are managed based on the cloud native technology, so that the effects of flexible equipment access and balanced load of hardware resources are achieved. The device is accessed to the Internet of things platform conveniently, network adaptation is achieved, and protocol adaptation is achieved.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the invention as claimed.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the invention and together with the description, serve to explain the principles of the invention.
FIG. 1 is a flow diagram illustrating a cloud native based IOT platform protocol adaptation method, according to an example embodiment;
FIG. 2 is a flow diagram illustrating an edge IOT platform acquiring an assembled protocol adaptation packet according to an example embodiment;
FIG. 3 is a schematic diagram illustrating an edge IOT platform generating and applying resource deployment files and service configuration files in accordance with an exemplary embodiment;
FIG. 4 is a flow diagram illustrating a startup container according to an exemplary embodiment;
FIG. 5 is a flow diagram illustrating a process for making a base image of a container according to an exemplary embodiment;
FIG. 6 is a flow chart illustrating a process of synchronizing data reported by a device to a cloud IOT platform by an edge IOT platform in accordance with an exemplary embodiment;
FIG. 7 is a schematic diagram of a configuration of a cloud native based IOT platform protocol adaptation device, according to an example embodiment;
fig. 8 is a schematic diagram of a computer storage medium shown according to an example embodiment.
Detailed Description
The following description and the drawings sufficiently illustrate specific embodiments of the invention to enable those skilled in the art to practice them.
It should be understood that the described embodiments are merely some, but not all, embodiments of the invention. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
When the following description refers to the accompanying drawings, the same numbers in different drawings refer to the same or similar elements, unless otherwise indicated. The implementations described in the following exemplary examples do not represent all implementations consistent with the invention. Rather, they are merely examples of systems and methods that are consistent with aspects of the invention as detailed in the accompanying claims.
In the prior art, the internet of things platform has a scheme of meeting flexible access of various devices because of the fact that multiple manufacturers use respective rules of access devices and respective access protocols are used in different project scenes. The application aims to provide a solution for flexibly selecting a protocol to complete equipment access to the Internet of things by equipment of multiple manufacturers through the Internet of things platform, and achieve the purpose that the equipment flexibly uses the protocol and network components to be combined to access to the Internet of things platform.
The following describes in detail the cloud native-based IOT platform protocol adaptation method provided in the embodiments of the present application with reference to fig. 1. Referring to fig. 1, the method specifically includes the following steps.
S101, the cloud IOT platform issues the product adaptation components which are assembled in advance according to the requirements to the side IOT platform.
In one possible implementation, before executing step S101, the method further includes entering network component information and protocol component information on the cloud IOT platform, and combining the adapters as needed.
Specifically, according to one or more accessed side IOT platforms and a data transmission protocol and a network transmission protocol required by data transmission of terminal equipment, a network adaptation component is input in a cloud IOT platform, and a network component type, an address, a port and some private configuration items of the component are selected to obtain the configured network adaptation component. Common network adaptation components include HTTP, TCP, MQTT, etc.
Further, uploading a protocol adaptation packet developed by the equipment to be accessed in the project into a protocol adaptation component, and configuring analysis parameters of the component to obtain the configured protocol adaptation component. The protocol adaptation component is here mainly a package adapted based on the device data protocol.
Further, the cloud IOT platform creates product metadata according to product specifications and product description information, associates the network adaptation component and the protocol adaptation component, and obtains the product adaptation component assembled as required. At this time, the flexibly assembled product adaptation component is configured. Wherein, the product is the father level of a class of equipment, and a plurality of equipment are contained under a product.
Further, the cloud IOT platform sends the assembled product adaptation component to the corresponding one or more border IOT platforms, and at this time, the device data, the network adaptation component data, and the protocol adaptation component data are issued to the corresponding border IOT platforms.
S102, checking a product adaptation component issued by the cloud IOT platform by the side IOT platform.
In one possible implementation, after the edge IOT platform receives the issued product adaptation component, the received product adaptation component is first verified.
Specifically, the side IOT platform checks the type support, the IP address availability and the port availability of the network adaptation component, determines whether the type of the network adaptation component is supported, whether the IP address is available, whether the port is available, checks the format support and the data integrity of the protocol adaptation component, determines whether the data format of the protocol adaptation component is supported, and whether the data is complete.
By verifying the received product adaptation component, the correctness and usability of the product adaptation component can be ensured.
Fig. 2 is a schematic flow chart of acquiring an assembled protocol adaptation packet by an end-of-line IOT platform according to an exemplary embodiment, as shown in fig. 2, first, logging in a cloud IOT platform, logging in a network adaptation component and a protocol adaptation component, sending the logged-in protocol adaptation packet to an FTP server, then creating product metadata according to product specifications and product description information, and associating the network adaptation component and the protocol adaptation component to obtain the product adaptation component assembled according to requirements. And sending the product adaptation components assembled according to the requirement to an edge IOT platform, checking the issued network adaptation components and protocol adaptation components by the edge IOT platform, and if the checking is passed, pulling the protocol adaptation packets from the FTP server.
And S103, if the verification is passed, the side IOT platform creates a resource deployment file and a service configuration file according to the product adaptation component.
In one possible implementation manner, if the verification is not passed, the side IOT platform returns information that the verification is not passed to the cloud IOT platform, and the cloud IOT platform regenerates the product adaptation component and issues the product adaptation component to the side IOT platform until the verification of the side IOT platform is passed.
If the verification of the side IOT platform is passed, the side IOT platform creates a resource deployment file and a service configuration file according to the product adaptation component.
Specifically, the side IOT platform loads a preset resource deployment file template, and according to the resource deployment file template and configuration information of the product adaptation component, the configuration container initializes initcontainers items, assembles addresses and default configuration items of the protocol adaptation package, and generates a resource deployment file.
Further, the side IOT platform analyzes the configuration information of the network adaptation component, judges whether the network component is a server, loads a preset service configuration file template when the network component is the server, and generates a service configuration file according to the service configuration file template and the association information of the internal port and the external port of the container in the configuration information. The container port and the physical host port may be mapped according to the service profile.
S104, the side IOT platform starts the container according to the resource deployment file and the service configuration file.
In one possible implementation, after generating the resource deployment file and the service configuration file, the method further includes starting the container according to the resource deployment file and the service configuration file.
Specifically, an API interface of the K8S is called, configuration information of the service configuration file is pushed to a master node server of the K8S cluster, and mapping relation of ports inside and outside a container is obtained. At this time, the mapping relationship of the ports inside and outside the container has been established.
Further, an API interface of the K8S is called, configuration information of the resource deployment file is pushed to a master node server of the K8S cluster, a container is started, and meanwhile, a Pod watch monitoring state is started.
FIG. 3 is a schematic diagram illustrating the generation and application of resource deployment files and service configuration files by an edge IOT platform according to an exemplary embodiment, and as shown in FIG. 3, the network adaptation component and protocol adaptation component are checked, and if the verification is passed, a preset template is loaded to assemble the resource deployment files and service deployment files. The side IOT platform analyzes the configuration information of the network adaptation component and the protocol adaptation component, and according to the configuration information of the resource deployment file template and the product adaptation component, the configuration container initializes an initContainers item, assembles the address and the default configuration item of the protocol adaptation package, and generates a resource deployment file.
Further, whether the network component is a server is judged, and when the network component is the server, a service configuration file is generated according to the service configuration file template and the association information of the internal port and the external port of the container in the configuration information. The container port and the physical host port may be mapped according to the service profile.
Further, the service configuration file is applied, an API interface of the K8S is called, and configuration information of the service configuration file is pushed to a K8S cluster master node server to obtain the mapping relation of the ports inside and outside the container. At this time, the mapping relationship of the ports inside and outside the container has been established. And (3) applying the resource deployment file, calling an API interface of the K8S, pushing configuration information of the resource deployment file to a master node server of the K8S cluster, starting a container, and simultaneously starting a Pod watch monitoring state.
In one possible implementation, the detailed start-up procedure of the container includes:
firstly, according to the configuration information of the resource deployment file, pulling a container base mirror image from a mirror image warehouse to an edge IOT platform.
Before the container base mirror image is pulled from the mirror image warehouse according to the configuration information of the resource deployment file, the method further comprises the step of making the container base mirror image, and fig. 5 is a schematic flow chart of making the container base mirror image according to an exemplary embodiment, as shown in fig. 5, java8-jdk is used as the base mirror image, a program of an Adapter Mesh is embedded into the container and prefabricated into a default starting item, and after the mirror image is made, the program is uploaded to a mirror image warehouse (product warehouse Harbor) for subsequent use.
Further, according to the configuration information of the resource deployment file, the protocol adaptation package is pulled from the file transfer protocol server to the edge IOT platform.
Specifically, according to the address of the initcontainers configuration, a protocol adaptation package is pulled from an FTP (file transfer protocol) server into a storage file of a local server, and the package is configured to be mounted to a specified location inside the container in the deviyment resource Deployment file.
And finally, starting the container, loading the protocol adaptation packet which is already mounted in the container to the program context, and starting the Pod Watch thread to report the Pod state after the starting is successful.
FIG. 4 is a flow diagram illustrating a startup container according to an exemplary embodiment, as shown in FIG. 4, wherein first, an Adapter Mesh base mirror image is pulled from a production library to a server of a side IOT platform according to configuration information of a Deployment file of a development resource; pulling a protocol adaptation package from the FTP server into a storage file of a local server according to an address configured by an initialization container, wherein the package is configured to be mounted to a designated position inside the container in a resource file Deployment of the application; and then when the Adapter Mesh container is started, loading the protocol adaptation packet which is already mounted in the container to the program context, and starting the Pod Watch thread to monitor the subsequent state after the starting is successful.
In an alternative embodiment, starting the Pod Watch thread to report the Pod state includes: the container receives the data reported by the equipment, when the internal program of the equipment triggers an event to report a preset threshold value, the data reporting is started, and the data is reported to the Adapter Mesh container through the configured address.
Further, the universal interface of the container receives data reported by the device, calls the protocol adaptation packet internal analysis transcoding program, and converts the data reported by the device into an SDK format universal to the IOT platform.
Further, the side IOT platform performs verification on the data converted by the container, for example, verifies the integrity, format correctness and the like of the data, and if the verification is passed, the converted data is sent to the cloud IOT platform.
Fig. 6 is a schematic flow chart of synchronizing data reported by a device to a cloud IOT platform by an edge IOT platform according to an exemplary embodiment, and as shown in fig. 6, when an internal program trigger event of the device reports a preset threshold value, reporting the data to an Adapter Mesh container by a configured address is started. And the container receives the data reported by the equipment, calls a protocol adaptation packet internal analysis transcoding program, and converts the data reported by the equipment into an SDK format which is universal for the IOT platform. Further, the side IOT platform checks the data converted by the container, for example, checks the integrity, format correctness and the like of the data, if the data pass the check, the converted data is sent to the cloud IOT platform, and the cloud IOT platform analyzes and displays the received data.
In a specific embodiment, when the device class is newly added, the network adaptation component and the protocol adaptation component of the device can be flexibly selected according to the requirements of network transmission protocol, data transmission protocol and the like required by the access device, and the network adaptation component and the protocol adaptation component are assembled into the product adaptation component.
If a new device is accessed, based on an access adaptation protocol corresponding to the new device, such as a protocol adaptation component assembled by a network transmission protocol, a data transmission protocol and the like, uploading the protocol adaptation component of the new device to the protocol adaptation component on the basis of the existing protocol adaptation component in the cloud, wherein the new protocol and the protocol of the existing protocol adaptation component are loosely coupled or isolated from each other, product metadata are created according to information such as product specifications, product descriptions and the like of the product, and are related to the corresponding network adaptation protocol, and the network adaptation protocol is related to the product, so that registration of the new device and flexible new addition of the adaptation protocol are completed.
In one embodiment, for the newly added product adaptation protocol, a new product adapter is separately made, that is, the product adapter of the new device and the original product adaptation component are loosely coupled or isolated, then the cloud native technology is adopted to select the adapter to start and automatically issue the configured new protocol to the corresponding side IOT platform, and the method specifically issued to the side IOT platform is shown in the embodiment of the method, so that the flexible new addition of the new device is realized, the flexibility of accessing the new device is greatly improved, the new addition of the new device and the protocol can be realized under the condition that the original protocol adaptation component of the IOT platform is not required to be modified, and by adopting the method, when the new device type is required, only the cloud device and the adaptation protocol are required to be newly added, repeated protocol adaptation setting is not required to be performed on a plurality of side IOT platforms, the workload is greatly reduced, and after the protocol adaptation is completed, the cloud device can be issued to the corresponding side IOT platform according to the requirements.
The embodiment of the application also provides an IOT platform protocol adaptation device based on cloud native, which comprises:
the cloud IOT platform is used for issuing the product adaptation components which are assembled in advance according to the requirements to the side IOT platform;
and the side IOT platform is used for checking the product adaptation component issued by the cloud IOT platform, if the product adaptation component passes the checking, creating a resource deployment file and a service configuration file according to the product adaptation component, and starting the container according to the resource deployment file and the service configuration file.
It should be noted that, when executing the IOT platform protocol adaptation method based on cloud native, the IOT platform protocol adaptation device based on cloud native provided in the foregoing embodiments is only exemplified by the division of the foregoing functional modules, and in practical application, the foregoing functional allocation may be completed by different functional modules according to needs, that is, the internal structure of the device is divided into different functional modules, so as to complete all or part of the functions described above. In addition, the cloud native-based IOT platform protocol adaptation device provided in the foregoing embodiments and the cloud native-based IOT platform protocol adaptation method embodiment belong to the same concept, and detailed implementation processes of the embodiment are shown in the method embodiment, which is not described herein.
The embodiment of the application also provides an electronic device corresponding to the cloud-protocal-based IOT platform protocol adaptation method provided by the foregoing embodiment, so as to execute the cloud-protocal-based IOT platform protocol adaptation method.
Referring to fig. 7, a schematic diagram of an electronic device according to some embodiments of the present application is shown. As shown in fig. 7, the electronic device includes: processor 700, memory 701, bus 702, and communication interface 703, processor 700, communication interface 703, and memory 701 being connected by bus 702; the memory 701 stores a computer program that can be executed on the processor 700, where the processor 700 executes the cloud native-based IOT platform protocol adaptation method provided in any of the foregoing embodiments of the present application.
The memory 701 may include a high-speed random access memory (RAM: random Access Memory), and may further include a non-volatile memory (non-volatile memory), such as at least one magnetic disk memory. The communication connection between the system network element and at least one other network element is implemented via at least one communication interface 703 (which may be wired or wireless), the internet, a wide area network, a local network, a metropolitan area network, etc. may be used.
Bus 702 may be an ISA bus, a PCI bus, an EISA bus, or the like. The buses may be divided into address buses, data buses, control buses, etc. The memory 701 is configured to store a program, and the processor 700 executes the program after receiving an execution instruction, and the cloud native-based IOT platform protocol adaptation method disclosed in any of the foregoing embodiments of the present application may be applied to the processor 700 or implemented by the processor 700.
The processor 700 may be an integrated circuit chip having signal processing capabilities. In implementation, the steps of the methods described above may be performed by integrated logic circuitry in hardware or instructions in software in processor 700. The processor 700 may be a general-purpose processor, including a central processing unit (Central Processing Unit, CPU for short), a network processor (Network Processor, NP for short), etc.; but may also be a Digital Signal Processor (DSP), application Specific Integrated Circuit (ASIC), an off-the-shelf programmable gate array (FPGA) or other programmable logic device, discrete gate or transistor logic device, discrete hardware components. The disclosed methods, steps, and logic blocks in the embodiments of the present application may be implemented or performed. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like. The steps of a method disclosed in connection with the embodiments of the present application may be embodied directly in hardware, in a decoded processor, or in a combination of hardware and software modules in a decoded processor. The software modules may be located in a random access memory, flash memory, read only memory, programmable read only memory, or electrically erasable programmable memory, registers, etc. as well known in the art. The storage medium is located in the memory 701, and the processor 700 reads information in the memory 701, and in combination with its hardware, performs the steps of the above method.
The electronic equipment provided by the embodiment of the application and the cloud native-based IOT platform protocol adaptation method provided by the embodiment of the application are the same in concept and have the same beneficial effects as the method adopted, operated or realized by the electronic equipment.
The embodiment of the present application further provides a computer readable storage medium corresponding to the cloud native based IOT platform protocol adaptation method provided in the foregoing embodiment, referring to fig. 8, the computer readable storage medium is shown as an optical disc 800, on which a computer program (i.e., a program product) is stored, and the computer program, when executed by a processor, performs the cloud native based IOT platform protocol adaptation method provided in any of the foregoing embodiments.
It should be noted that examples of the computer readable storage medium may also include, but are not limited to, a phase change memory (PRAM), a Static Random Access Memory (SRAM), a Dynamic Random Access Memory (DRAM), other types of Random Access Memory (RAM), a Read Only Memory (ROM), an Electrically Erasable Programmable Read Only Memory (EEPROM), a flash memory, or other optical or magnetic storage medium, which will not be described in detail herein.
The computer readable storage medium provided by the above embodiment of the present application and the cloud native based IOT platform protocol adaptation method provided by the embodiment of the present application are the same inventive concept, and have the same beneficial effects as the method adopted, operated or implemented by the application program stored therein.
The technical features of the above embodiments may be arbitrarily combined, and all possible combinations of the technical features in the above embodiments are not described for brevity of description, however, as long as there is no contradiction between the combinations of the technical features, they should be considered as the scope of the description.
The foregoing examples illustrate only a few embodiments of the invention, which are described in detail and are not to be construed as limiting the scope of the invention. It should be noted that it will be apparent to those skilled in the art that several variations and modifications can be made without departing from the spirit of the invention, which are all within the scope of the invention. Accordingly, the scope of protection of the present invention is to be determined by the appended claims.

Claims (9)

1. The cloud native-based IOT platform protocol adaptation method is characterized by comprising the following steps of:
the cloud IOT platform selects a network component type, an address, a port and a private configuration item according to the accessed side IOT platform and a data transmission protocol and a network transmission protocol required by terminal equipment, and a configured network adaptation component is obtained; according to the protocol adaptation package developed by the project access equipment and the analysis parameters of the configured components, the configured protocol adaptation components are obtained; creating product metadata according to the product specification and the product description information, and associating the network adaptation component and the protocol adaptation component to obtain a product adaptation component assembled according to the requirement;
the cloud IOT platform issues the product adaptation components which are assembled in advance according to the need to the side IOT platform;
the side IOT platform checks the product adaptation component issued by the cloud IOT platform;
if the verification is passed, the side IOT platform creates a resource deployment file and a service configuration file according to the product adaptation component;
and the side IOT platform starts the container according to the resource deployment file and the service configuration file.
2. The method of claim 1, wherein verifying the product adaptation component issued by a cloud IOT platform by an edge IOT platform comprises:
the side IOT platform checks the type support, the IP address availability and the port availability of the network adaptation component;
and checking the format support and the data integrity of the protocol adaptation component.
3. The method of claim 1, wherein the side IOT platform creates a resource deployment file and a service configuration file from the product adaptation component, comprising:
loading a preset resource deployment file template by an edge IOT platform, initializing an initContainers item by a configuration container according to the resource deployment file template and configuration information of a product adaptation component, assembling an address and a default configuration item of a protocol adaptation package, and generating the resource deployment file;
and the side IOT platform analyzes the configuration information of the network adaptation component, judges whether the network component is a server, loads a preset service configuration file template when the network component is the server, and generates the service configuration file according to the service configuration file template and the association information of the internal port and the external port of the container in the configuration information.
4. The method of claim 1, wherein the edge IOT platform initiates a container based on the resource deployment file and the service configuration file, comprising:
calling an API interface of the K8S, and pushing configuration information of the service configuration file to a master node server of the K8S cluster to obtain a mapping relation of the internal port and the external port of the container;
and calling an API interface of the K8S, pushing configuration information of the resource deployment file to a master node server of the K8S cluster, starting a container, and starting a Pod watch monitoring state.
5. The method of claim 4, wherein pushing configuration information of the resource deployment file to the K8S cluster master node server and starting the container, while starting the Pod watch listening state, comprises:
pulling a container base mirror image from a mirror image warehouse to an edge IOT platform according to configuration information of a resource deployment file;
pulling a protocol adaptation package from a file transfer protocol server to an edge IOT platform according to configuration information of a resource deployment file;
when the container is started, loading the protocol adaptation packet which is already mounted in the container to the program context, and starting the Pod Watch thread to report the Pod state after the container is successfully started.
6. The method of claim 5, wherein starting a Pod Watch thread to report Pod status comprises:
the container receives the data reported by the equipment;
the container calls a protocol adaptation packet internal analysis transcoding program to convert the data reported by the equipment into a general format of the IOT platform;
the side IOT platform checks the data converted by the container;
and if the verification is passed, the converted data is sent to the cloud IOT platform.
7. An IOT platform protocol adaptation device based on cloud native, comprising:
the cloud IOT platform is used for selecting network component types, addresses, ports and private configuration items according to the accessed side IOT platform and a data transmission protocol and a network transmission protocol required by the terminal equipment to obtain a configured network adaptation component; according to the protocol adaptation package developed by the project access equipment and the analysis parameters of the configured components, the configured protocol adaptation components are obtained; creating product metadata according to the product specification and the product description information, and associating the network adaptation component and the protocol adaptation component to obtain a product adaptation component assembled according to the requirement; issuing the product adaptation components which are assembled in advance according to the requirements to an edge IOT platform;
and the side IOT platform is used for checking the product adaptation component issued by the cloud IOT platform, if the product adaptation component passes the checking, creating a resource deployment file and a service configuration file according to the product adaptation component, and starting a container according to the resource deployment file and the service configuration file.
8. A cloud-native based IOT platform protocol adaptation device, comprising a processor and a memory storing program instructions, the processor configured, when executing the program instructions, to perform the cloud-native based IOT platform protocol adaptation method of any of claims 1-6.
9. A computer readable medium having stored thereon computer readable instructions for execution by a processor to implement a cloud native based IOT platform protocol adaptation method according to any of claims 1 to 6.
CN202111674480.6A 2021-12-31 2021-12-31 Cloud-protogenesis-based IOT platform protocol adaptation method, device, equipment and medium Active CN114422618B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111674480.6A CN114422618B (en) 2021-12-31 2021-12-31 Cloud-protogenesis-based IOT platform protocol adaptation method, device, equipment and medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111674480.6A CN114422618B (en) 2021-12-31 2021-12-31 Cloud-protogenesis-based IOT platform protocol adaptation method, device, equipment and medium

Publications (2)

Publication Number Publication Date
CN114422618A CN114422618A (en) 2022-04-29
CN114422618B true CN114422618B (en) 2024-01-02

Family

ID=81272066

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111674480.6A Active CN114422618B (en) 2021-12-31 2021-12-31 Cloud-protogenesis-based IOT platform protocol adaptation method, device, equipment and medium

Country Status (1)

Country Link
CN (1) CN114422618B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115514611B (en) * 2022-09-21 2023-07-28 杭州网易再顾科技有限公司 Message processing method, device, equipment and storage medium
CN115643263B (en) * 2022-12-08 2023-03-21 阿里巴巴(中国)有限公司 Cloud native platform resource allocation method, storage medium and electronic device
CN117792913B (en) * 2024-02-23 2024-04-23 北京天维信通科技股份有限公司 Method for realizing ECR mirror image file adaptation to public cloud based on component package

Citations (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106603659A (en) * 2016-12-13 2017-04-26 南京邮电大学 Intelligent manufacturing special network data acquisition scheduling system
CN109327551A (en) * 2018-12-04 2019-02-12 浩云科技股份有限公司 By the method and device of internet of things equipment access platform of internet of things, server
CN110417766A (en) * 2019-07-22 2019-11-05 深圳市酷达通讯有限公司 A kind of method and apparatus of protocol analysis
CN111083168A (en) * 2019-12-31 2020-04-28 广东嘉泰智能技术有限公司 Configurable data transmission method and device of Internet of things platform gateway and gateway
CN111416821A (en) * 2020-03-20 2020-07-14 杭州物源科技有限公司 Internet of things equipment information acquisition method, system and device
CN111784076A (en) * 2020-07-22 2020-10-16 济源国泰自动化信息技术有限公司 Cloud metering system for industrial Internet and use method thereof
CN111970230A (en) * 2020-06-24 2020-11-20 格创东智(深圳)科技有限公司 Industrial field protocol automatic analysis method and system based on cloud identification
CN112379934A (en) * 2019-07-29 2021-02-19 中移(苏州)软件技术有限公司 Deployment method and device of cloud computing platform and storage medium
CN112422519A (en) * 2020-10-27 2021-02-26 黑龙江省电工仪器仪表工程技术研究中心有限公司 Electric power Internet of things IP fusion terminal and communication method thereof
CN112596740A (en) * 2020-12-28 2021-04-02 北京千方科技股份有限公司 Program deployment method and device
KR102248727B1 (en) * 2019-12-13 2021-05-06 주식회사 두두원 Multi-protocol iot gateway for energy management
KR102262321B1 (en) * 2019-11-29 2021-06-08 주식회사 두두원 IoT GATEWAY SYSTEM FOR INDUSTRIAL
CN112995348A (en) * 2021-05-12 2021-06-18 北京金山云网络技术有限公司 Control method, device and system of Internet of things equipment
CN113452743A (en) * 2021-03-05 2021-09-28 浙江华云信息科技有限公司 MQTT protocol and COAP protocol fusion algorithm

Patent Citations (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106603659A (en) * 2016-12-13 2017-04-26 南京邮电大学 Intelligent manufacturing special network data acquisition scheduling system
CN109327551A (en) * 2018-12-04 2019-02-12 浩云科技股份有限公司 By the method and device of internet of things equipment access platform of internet of things, server
CN110417766A (en) * 2019-07-22 2019-11-05 深圳市酷达通讯有限公司 A kind of method and apparatus of protocol analysis
CN112379934A (en) * 2019-07-29 2021-02-19 中移(苏州)软件技术有限公司 Deployment method and device of cloud computing platform and storage medium
KR102262321B1 (en) * 2019-11-29 2021-06-08 주식회사 두두원 IoT GATEWAY SYSTEM FOR INDUSTRIAL
KR102248727B1 (en) * 2019-12-13 2021-05-06 주식회사 두두원 Multi-protocol iot gateway for energy management
CN111083168A (en) * 2019-12-31 2020-04-28 广东嘉泰智能技术有限公司 Configurable data transmission method and device of Internet of things platform gateway and gateway
CN111416821A (en) * 2020-03-20 2020-07-14 杭州物源科技有限公司 Internet of things equipment information acquisition method, system and device
CN111970230A (en) * 2020-06-24 2020-11-20 格创东智(深圳)科技有限公司 Industrial field protocol automatic analysis method and system based on cloud identification
CN111784076A (en) * 2020-07-22 2020-10-16 济源国泰自动化信息技术有限公司 Cloud metering system for industrial Internet and use method thereof
CN112422519A (en) * 2020-10-27 2021-02-26 黑龙江省电工仪器仪表工程技术研究中心有限公司 Electric power Internet of things IP fusion terminal and communication method thereof
CN112596740A (en) * 2020-12-28 2021-04-02 北京千方科技股份有限公司 Program deployment method and device
CN113452743A (en) * 2021-03-05 2021-09-28 浙江华云信息科技有限公司 MQTT protocol and COAP protocol fusion algorithm
CN112995348A (en) * 2021-05-12 2021-06-18 北京金山云网络技术有限公司 Control method, device and system of Internet of things equipment

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
A Decentralized Adaptation System for QoS Optimization;Nanxi Chen;《Wiley Telecom》;全文 *
物联网平台接入网关研究;田创;《信息技术》;全文 *

Also Published As

Publication number Publication date
CN114422618A (en) 2022-04-29

Similar Documents

Publication Publication Date Title
CN114422618B (en) Cloud-protogenesis-based IOT platform protocol adaptation method, device, equipment and medium
CN112346818B (en) Container application deployment method and device, electronic equipment and storage medium
US8332490B2 (en) Method, apparatus and program product for provisioning a computer system
US20170230257A1 (en) Provisioning a service
CN113824795B (en) Communication method, device and system of vehicle end and cloud end
CN112491948B (en) Non-invasive monomer application micro-service method, device and computer equipment
US20210240491A1 (en) System and method for runtime synchronization and authentication of pre-boot device drivers for a rescue operating system
CN113190282B (en) Android running environment construction method and device
CN111273924B (en) Software updating method and device
CN110855746A (en) Middleware management method, electronic device and storage medium
CN111459524A (en) Software upgrading method, device and system
CN114237498A (en) Snapshot generation method and system for cloud native storage data volume
CN112764823A (en) Starting method of NVR (network video recorder) system, host operating system and data communication method
CN113965548A (en) Hardware drive updating method, system, equipment and medium of storage server
CN107301053B (en) Picture configuration method and device and electronic terminal
CN108234174B (en) Management method and device of virtual network function
CN115758334A (en) Cloud application access method and device, electronic equipment and storage medium
CN114095498B (en) Cluster environment deployment method, system, computer equipment and storage medium
CN114615285B (en) Physical machine deployment method and device, electronic equipment and storage medium
CN115202674A (en) Helm-based automatic deployment method for local volumes in kubernets cluster
CN113076128B (en) Method, device, electronic equipment and storage medium for robot configuration
CN117560285B (en) Intelligent control internet of things OTA upgrading method, client and server
CN112448839A (en) Network card configuration method and device and computer storage medium
CN112732332B (en) Software package management method and device suitable for koji management system and electronic equipment
CN110401554B (en) VNF (virtual network function) nanotube management method, device, system, electronic equipment and 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
GR01 Patent grant
GR01 Patent grant