Gateway protocol assimilation method and device and soft gateway

A protocol and gateway technology, applied in transmission systems, electrical components, etc., can solve the problems of inability to convert third-party equipment data format, platform scalability and ease of use defects, and achieve the effect of increasing high scalability and ease of use

Pending Publication Date: 2022-05-24
珠海华发集团科技研究院有限公司
0 Cites 0 Cited by

AI-Extracted Technical Summary

Problems solved by technology

[0004] This technical solution realizes the access of different transmission protocol devices and platforms, but it still has the following disadvantages, that is, when a third-party device of a new p...
View more

Method used

[0068] In addition, an edge router can be set for the platform server, and multiple soft gateways ...
View more

Abstract

The invention provides a gateway protocol assimilation method, and relates to protocol conversion, in particular to a gateway protocol assimilation method. Receiving specific format data sent by the third-party equipment, wherein the specific format data is third-party format data which is generated by the third-party equipment and consists of a header part and a data part; calling a data format pointer, judging whether the format corresponding to the header is a standard data format or not according to the direction of the data format pointer, if not, calling a data transmission protocol corresponding to the header, and decoding the data in the specific format to obtain data content; and according to the data content, encoding the data content by adopting a standard data transmission protocol to generate standard format data, and sending the standard format data to a server. And the data is decoded by calling a third-party protocol, and the data is coded again by a standard protocol, so that the high expansibility and usability of the platform are improved. Meanwhile, the invention also provides a gateway protocol assimilation device and the soft gateway.

Application Domain

Transmission

Technology Topic

Data transmissionData content +7

Image

  • Gateway protocol assimilation method and device and soft gateway
  • Gateway protocol assimilation method and device and soft gateway
  • Gateway protocol assimilation method and device and soft gateway

Examples

  • Experimental program(1)

Example Embodiment

[0037] In the following description, many specific details are set forth in order to fully understand the present application, but the present application can be implemented in many other ways different from those described here, and those skilled in the art can do similar generalization, and thus this application is not limited by the specific implementations disclosed below.
[0038] This application mainly provides a gateway protocol conversion method, including: receiving data in a specific format sent by a third-party device, the data in a specific format is data in a third-party format encoded by a third-party device; judging whether the data in a specific format is in the same format as The data in the standard format is the same, if not, call the third-party protocol corresponding to the encoding method of the third-party device, decode the data in the specific format to obtain the data content; according to the data content, use the standard protocol to encode the data content to generate Standard format data, sent to the cloud server. Specifically, an edge gateway is deployed for the platform, and the edge gateway converts the data format sent by the third-party device to achieve data access of various protocols. The platform refers to a cloud server, and may also be a server in the traditional sense.
[0039] figure 1 It is the flow chart of gateway protocol assimilation in this application.
[0040] Please refer to figure 1 As shown, the gateway protocol assimilation method described in this application includes receiving data, converting data, and sending data.
[0041] S101 Receive data in a specific format sent by a third-party device, the data in a specific format is generated by the third-party device and consists of a header and a data part in a third-party format;
[0042] The format of the data in a specific format is a proprietary format of a third-party device. The format of the data in a specific format refers to the data format category corresponding to the data transmission protocol. This format is not directly compatible with the platform server and must be The data format can be accessed to the platform server only after the data format is converted, and the third-party device can be a device or an APP. The specific format actually mainly includes a header and a data part, the header carries the information of the data format, and the data part is the transmitted data information.
[0043] The third-party device includes: one or more terminal devices with different transmission protocols. For example, in community services, access control, car parks, and various APPs. Various transmission protocols adopted by these third-party devices are different, so if it is desired to manage these third-party devices through a server, difficulties will arise.
[0044] S102 calls the data format pointer, and according to the pointer of the data format pointer, judges whether the format corresponding to the header is a standard data format, if not, calls the data transmission protocol corresponding to the header, and decodes the specific format data to obtain the data content;
[0045] After the edge gateway receives the data in a specific format sent by the third-party device, it first judges whether the format of the data in a specific format is the same as the standard format of the data in the platform server.
[0046] Extract the header of the specific format, judge the format of the specific format data according to the data format identified by the header, and judge the format of the specific format data, and then determine whether the specific data format is the same as the standard data format, and the data The format pointer is a list of the corresponding relationship between the data format identified by the format-specific data header and the data transmission protocol.
[0047] Those skilled in the art know that a gateway is a converter of different protocols, but this conversion is fixed between several protocols and cannot cover all transmission protocols.
[0048] This application adopts a new method, that is, the protocol warehouse is added. The third-party protocol is updated and stored in the protocol warehouse through new protocol updates, and new protocols are continuously updated so that the protocol warehouse can contain the most complete transmission protocols on the market as much as possible. Therefore, the soft gateway described in this application can identify the data sent by each third-party device.
[0049] S103, according to the data content, encode the data content using a standard protocol to generate standard format data, and send it to the cloud server.
[0050] After identifying and determining the format of the data in a specific format, retrieve the transmission protocol corresponding to the data in a specific format from the protocol warehouse, and re-edit the data according to the standard transmission protocol of the platform server after decoding the data in a specific format Content, which forms specific format data in a standard data format.
[0051] After the data format conforms to the data format of the standard transmission protocol, the data in the specific format is sent to the platform server through the edge gateway for further operation, use or processing.
[0052] The present application also provides a data format conversion method.
[0053] Please refer to figure 2 As shown, the data format conversion shown mainly refers to the data processing steps in the gateway in the above content.
[0054] S201 is used to receive data in a specific format sent by a third-party device, the data in a specific format is generated by the third-party device and consists of a header and a data part in a third-party format;
[0055] The third-party device includes: one or more terminal devices with different transmission protocols. The various transmission protocols adopted by these third-party devices are different, so the data sent by them is data in a specific format corresponding to the shown third-party devices.
[0056] S202 is used to compare the format identified by the header of the specific format data with the data transmission protocol, and determine the data format category of the specific format data;
[0057] Firstly, it is judged whether the specific standard format data are the same, but this comparison is not the same. Preferably, it is also possible that the platform itself has determined which devices are those data transmission protocols, so the format of the data can be quickly determined by judging the source of the data.
[0058] Another preferred method is to at least determine that the device connected to the platform is not a standard data transmission protocol, so it is necessary to compare the received data with the data transmission protocol stored on the platform to determine the format category of the data.
[0059] S203 is configured to parse the content of the data in a specific format according to the category of the data in a specific format, re-encode the content according to a standard data transmission protocol, and send it to the server.
[0060] After determining the category of a specific data format, the data can be parsed to obtain data content and recoded to conform to the platform standard.
[0061] The present application also provides a soft gateway, which is mainly used for conversion of various transmission protocols.
[0062] image 3 Shows the layout of the soft gateway in this application.
[0063] Please refer to image 3 As shown, the soft gateway 111 is connected to the cloud 110, and is connected with devices such as a third-party device 112A, a third-party device 112B, and a third-party device 112C.
[0064] The soft gateway 111 includes at least: a protocol repository and standard protocols stored in the protocol repository.
[0065] There are multiple third-party protocols stored in the protocol warehouse. When the cloud gateway receives data in a specific format, it retrieves the third-party protocol corresponding to the format of the data in a specific format from the protocol warehouse, and decodes the data in the specific format. Specific format data and get data content.
[0066] The data content is encoded into standard format data using a standard protocol.
[0067] These third-party protocols can be added through updates. For example, when the transport protocol used by a third-party device cannot be handled by the soft gateway 111, the update of the transport protocol of the third-party device can be extended to the protocol warehouse middle.
[0068] In addition, an edge router can be set up for the platform server, and multiple soft gateways can be connected by the edge router, so that large-scale collaborative operation of third-party devices can be realized.
[0069] The present application also provides a gateway protocol assimilation device for realizing the gateway protocol assimilation method.
[0070] Figure 4 It is a schematic diagram of the gateway protocol assimilation device in this application.
[0071] Please refer to Figure 4 As shown, the gateway protocol assimilation device described in this application includes:
[0072] The receiving module 101 is configured to receive data in a specific format sent by a third-party device, the data in a specific format is generated by a third-party device and is composed of a header and a data part in a third-party format;
[0073] The format of the data in a specific format is a proprietary format of a third-party device. The format of the data in a specific format refers to the data format category corresponding to the data transmission protocol. This format is not directly compatible with the platform server and must be The data format can be accessed to the platform server only after the data format is converted, and the third-party device can be a device or an APP. The specific format actually mainly includes a header and a data part, the header carries the information of the data format, and the data part is the transmitted data information.
[0074] The third-party device includes: one or more terminal devices with different transmission protocols. For example, in community services, access control, car parks, and various APPs. Various transmission protocols adopted by these third-party devices are different, so if it is desired to manage these third-party devices through a server, difficulties will arise.
[0075] The conversion module 102 is used to call the data format pointer, and according to the pointing of the data format pointer, judge whether the format corresponding to the header is a standard data format, if not, call the data transmission protocol corresponding to the header, and decode the specific format data to obtain data content;
[0076] After the edge gateway receives the data in a specific format sent by the third-party device, it first judges whether the format of the data in a specific format is the same as the standard format of the data in the platform server.
[0077] Extract the header of the specific format, judge the format of the specific format data according to the data format identified by the header, and judge the format of the specific format data, and then determine whether the specific data format is the same as the standard data format, and the data The format pointer is a list of the corresponding relationship between the data format identified by the format-specific data header and the data transmission protocol.
[0078] Those skilled in the art know that a gateway is a converter of different protocols, but this conversion is fixed between several protocols and cannot cover all transmission protocols.
[0079] This application adopts a new method, that is, the protocol warehouse is added. The third-party protocol is updated and stored in the protocol warehouse through new protocol updates, and new protocols are continuously updated so that the protocol warehouse can contain the most complete transmission protocols on the market as much as possible. Therefore, the soft gateway described in this application can identify the data sent by each third-party device.
[0080] The encoding module 103 is configured to encode the data content using a standard data transmission protocol according to the data content to generate data in a standard format and send it to the server.
[0081] After identifying and determining the format of the data in a specific format, retrieve the transmission protocol corresponding to the data in a specific format from the protocol warehouse, and re-edit the data according to the standard transmission protocol of the platform server after decoding the data in a specific format Content, which forms specific format data in a standard data format.
[0082] After the data format conforms to the data format of the standard transmission protocol, the data in the specific format is sent to the platform server through the edge gateway for further operation, use or processing.
[0083] Optionally, the gateway protocol assimilation device also includes:
[0084] The protocol repository is used to store the third-party protocol.
[0085] The present application also provides a data format conversion device. The data conversion has been introduced in detail above, and only a brief description of the differences is given here.
[0086] Figure 5 It is the conversion device of the data format in this application.
[0087] Please refer to Figure 5 As shown, the conversion device of the data format includes:
[0088] The acquisition module 201 is configured to receive data in a specific format sent by a third-party device, the data in a specific format is generated by a third-party device and is composed of a header and a data part in a third-party format;
[0089] A comparison module 202, configured to compare the format identified by the header of the specific format data with the data transmission protocol it has, and determine the data format category of the specific format data;
[0090] The assimilation module 203 is configured to parse the content of the specific format data according to the category of the specific format data, re-encode the content according to the standard data transmission protocol and send it to the server.

PUM

no PUM

Description & Claims & Application Information

We can also present the details of the Description, Claims and Application information to help users get a comprehensive understanding of the technical details of the patent, such as background art, summary of invention, brief description of drawings, description of embodiments, and other original content. On the other hand, users can also determine the specific scope of protection of the technology through the list of claims; as well as understand the changes in the life cycle of the technology with the presentation of the patent timeline. Login to view more.
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products