KNX gateway remote transmission data processing method based on smart home
By building transmission channels and establishing encrypted transmission keys on cloud servers, the problem that ETS software and KNX gateway cannot transmit data in different local area networks is solved, and remote data transmission and management of smart home systems are realized.
Patent Information
- Application Number
- CN202211412409.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-11-11
- Publication Date
- 2025-03-11
- Estimated Expiration
- 2042-11-11
AI Technical Summary
ETS software and KNX gateway cannot achieve data transmission when it is in different local area networks, which limits the remote management and maintenance of smart home systems.
The transmission channel between the ETS software and the KNX gateway is built through a third-party cloud server, and the IP address and preset transmission port list of the cloud server are used to establish an auxiliary forwarding address and an encrypted transmission key to realize remote data transmission.
When the ETS software and the KNX gateway are not on the same LAN, remote data transmission is realized, the problem of LAN restrictions is solved, and the management and maintenance capabilities of smart home systems are improved.
Smart Images

Figure CN115695528B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of data processing, and in particular to a KNX gateway remote transmission data processing method based on smart home. Background Art
[0002] At present, it is recommended to use KNX for smart home systems, because KNX is a system that meets high stability, uniformity, and ease of use, so the problem of signal transmission packet loss is eliminated, and the information transmission of smart homes has been met. The new KNX-SECURE protocol of KNX has passed international certification, and the KNX gateway can perform encrypted transmission. KNX is an open international standard in the field of residential and building control that has been officially approved. Due to the KNX standard, the design, construction, installation and commissioning of KNX equipment are very convenient. The construction efficiency is also very high, and there will be no delays due to smart construction. ETS software is a dedicated configuration software for KNX, the mainstream technology in the international smart home and building intelligence industry. It is a manufacturer-independent programming software tool that can design and debug smart home and building control installations using the KNX system. Therefore, using. ETS software to design and debug smart home and building control installations using the KNX system requires data transmission between ETS software and KNX gateway.
[0003] However, direct data transmission between ETS software and KNX gateway can only be achieved when the ETS software and KNX gateway are in the same LAN. When the ETS software and KNX gateway are not in the same LAN, data transmission between ETS software and KNX gateway cannot be achieved.
[0004] Therefore, the present invention proposes a KNX gateway remote transmission data processing method based on smart home. Summary of the invention
[0005] The present invention provides a KNX gateway remote transmission data processing method based on smart home, which is used for a third-party cloud server to build a transmission channel between ETS software and KNX gateway, and then realize remote data transmission between ETS software and KNX gateway when the ETS software and KNX gateway are not in the same local area network.
[0006] The present invention provides a KNX gateway remote transmission data processing method based on smart home, comprising:
[0007] S1: When the ETS software and the KNX gateway are not in the same LAN, a transmission channel between the ETS software and the KNX gateway is built based on the cloud server;
[0008] S2: Transmit the data to be transmitted to the target port address based on the transmission channel.
[0009] Preferably, S1: when the ETS software and the KNX gateway are not in the same local area network, a transmission channel between the ETS software and the KNX gateway is built based on the cloud server, including:
[0010] S101: Determine whether the ETS software and the KNX gateway are in the same local area network and obtain a determination result;
[0011] S102: When the judgment result is that the ETS software and the KNX gateway are not in the same local area network, a transmission channel between the ETS software and the KNX gateway is established based on the cloud server.
[0012] Preferably, S102: when the judgment result is that the ETS software and the KNX gateway are not in the same local area network, a transmission channel between the ETS software and the KNX gateway is built based on the cloud server, including:
[0013] S1021: When the ETS software and the KNX gateway are not in the same local area network, an IP address that is not occupied and is in the same network segment as the first IP address of the ETS software is determined as an auxiliary forwarding address;
[0014] S1022: Add the second IP address and the preset transmission port list of the cloud server to the configuration of the KNX gateway to obtain the configuration result;
[0015] S1023: Based on the first IP address of the ETS software, the auxiliary forwarding address, the IP address of the cloud server and the configuration result, a transmission channel between the ETS software and the KNX gateway is established.
[0016] Preferably, S1023: building a transmission channel between the ETS software and the KNX gateway based on the first IP address of the ETS software, the auxiliary forwarding address, the IP address of the cloud server, and the configuration result, including:
[0017] Based on the first IP address and auxiliary forwarding address of the ETS software and the IP address of the cloud server, a first transmission channel is established;
[0018] Based on the configuration results, a second transmission channel is built;
[0019] The first transmission channel and the second transmission channel are connected to obtain the transmission channel between the ETS software and the KNX gateway.
[0020] Preferably, based on the configuration result, a second transmission channel is constructed, including:
[0021] The cloud server generates a connection request based on the auxiliary forwarding address and sends the connection request to the KNX gateway;
[0022] When the KNX gateway receives a connection request based on the configuration result, it configures a personalized transmission key for the cloud server based on the auxiliary forwarding address in the connection request, generates a corresponding connection request feedback based on the personalized transmission key and the public key of the KNX gateway, and sends the connection request feedback to the cloud server;
[0023] When the cloud server receives the connection request feedback, a second transmission channel between the cloud server and the KNX gateway is established based on the personalized transmission key in the connection request feedback and the public key of the KNX gateway.
[0024] Preferably, S2: transmitting the data to be transmitted to the target port address based on the transmission channel, including:
[0025] When the cloud server receives the data to be transmitted from the ETS software based on the first transmission channel in the transmission channel, the target transmission port used by the data to be transmitted when it is sent by the cloud server is determined in the preset transmission port list, and the data to be transmitted is transmitted to the target port address of the KNX gateway based on the second transmission channel;
[0026] When the cloud server receives the data to be transmitted sent by the KNX gateway based on the second transmission channel in the transmission channel, the cloud server is controlled to forward the data to be transmitted to the target port address of the ETS software based on the first transmission channel.
[0027] Preferably, determining the target transmission port used when the data to be transmitted is sent from the cloud server in the preset transmission port list includes:
[0028] Determine the transmission order of the data to be transmitted in the remote transmission task;
[0029] Determine the element structure relationship between the data elements in the data to be transmitted, and build a macro data structure diagram of the data to be transmitted based on the element structure relationship between the data elements in the data to be transmitted and the storage structure of the data to be transmitted;
[0030] Determine the structural object category of the data element based on the data structure relationship between all the data elements in the macro data structure diagram, and divide the data to be transmitted into a plurality of partial data based on the structural object category;
[0031] Determine the business purpose of the corresponding part of the data based on the business key characters of the data elements in the part of the data, determine the business logic of the data to be transmitted based on the business purpose, determine the data logic of the data to be transmitted based on the repeated data elements in the data to be transmitted, and use the business logic and data logic of the data to be transmitted as the data logic characteristics of the data to be transmitted;
[0032] Based on the data logic characteristics and transmission order of the data to be transmitted, the target transmission port used when the data to be transmitted is sent from the cloud server is determined in the preset transmission port list.
[0033] Preferably, determining the transmission order of the data to be transmitted in the remote transmission task includes:
[0034] Divide the remote transmission task into multiple subtasks based on the task thread corresponding to the remote transmission task, take the subtask with repeated threads as the target subtask, and determine the business logic of the data to be transmitted of the target subtask;
[0035] Connect the termination business purpose of the previous subtask adjacent to the target subtask and the business logic of the data to be transmitted of the target subtask in order to obtain the business logic to be determined of the corresponding target subtask;
[0036] Calculate the logic comprehensive coherence value based on the sequential logic matching values of all adjacent business purposes in the business logic to be judged and the logic weight of the bit sequence number of the corresponding adjacent business purpose in the business logic to be judged;
[0037] The execution priority of the target subtask is determined based on the logical synthesis coherence value, and the transmission order of the data to be transmitted is determined based on the execution priority of the target subtask.
[0038] Other features and advantages of the present invention will be described in the following description, and partly become apparent from the description, or understood by practicing the present invention. The purpose and other advantages of the present invention can be realized and obtained by the structures particularly pointed out in the written description, claims, and drawings.
[0039] The technical solution of the present invention is further described in detail below through the accompanying drawings and embodiments. BRIEF DESCRIPTION OF THE DRAWINGS
[0040] The accompanying drawings are used to provide a further understanding of the present invention and constitute a part of the specification. Together with the embodiments of the present invention, they are used to explain the present invention and do not constitute a limitation of the present invention. In the accompanying drawings:
[0041] Figure 1 This is a flow chart of a method for processing remote data transmission using a KNX gateway based on a smart home in an embodiment of the present invention;
[0042] Figure 2 This is a flow chart of a KNX gateway remote transmission data processing method based on smart home in an embodiment of the present invention;
[0043] Figure 3 The present invention is a flowchart of a method for processing remote data transmission based on a KNX gateway of a smart home in an embodiment of the present invention. DETAILED DESCRIPTION
[0044] The preferred embodiments of the present invention are described below in conjunction with the accompanying drawings. It should be understood that the preferred embodiments described herein are only used to illustrate and explain the present invention, and are not used to limit the present invention.
[0045] Embodiment 1:
[0046] The present invention provides a KNX gateway remote transmission data processing method based on smart home, referring to Figure 1 ,include:
[0047] S1: When the ETS software and the KNX gateway are not in the same LAN, a transmission channel between the ETS software and the KNX gateway is built based on the cloud server;
[0048] S2: Transmit the data to be transmitted to the target port address based on the transmission channel.
[0049] In this embodiment, the ETS software is a dedicated configuration software for KNX, the mainstream technology in the international smart home and building intelligence industry. It is a manufacturer-independent programming software tool that can design and debug smart home and building control installations using the KNX system. In the present invention, it is the network terminal for remote transmission with the KNX gateway.
[0050] In this embodiment, the cloud server is in the same local area network as the ETS software and is used to forward data sent by the ETS software to a KNX gateway that is not in the same local area network as the ETS software, or to receive and forward data sent by a KNX gateway that is not in the same local area network as the ETS software to a third-party communication terminal.
[0051] In this embodiment, the transmission channel is a data transmission channel used to realize remote data transmission between the ETS software and the KNX gateway based on the auxiliary forwarding address in the cloud server when the ETS software and the KNX gateway are not in the same local area network.
[0052] In this embodiment, the data to be transmitted is the data that needs to be transmitted between the ETS software and the KNX gateway.
[0053] In this embodiment, the target port address is the network port address of the KNX gateway or ETS software to which the data to be transmitted needs to be transmitted.
[0054] The beneficial effect of the above technology is that the third-party cloud server builds a transmission channel between the ETS software and the KNX gateway, and then realizes remote data transmission between the ETS software and the KNX gateway when the ETS software and the KNX gateway are not in the same local area network.
[0055] Embodiment 2:
[0056] On the basis of Example 1, the KNX gateway remote transmission data processing method based on smart home, S1: when the ETS software and the KNX gateway are not in the same local area network, a transmission channel between the ETS software and the KNX gateway is built based on the cloud server, including:
[0057] S101: Determine whether the ETS software and the KNX gateway are in the same local area network and obtain a determination result;
[0058] S102: When the judgment result is that the ETS software and the KNX gateway are not in the same local area network, a transmission channel between the ETS software and the KNX gateway is established based on the cloud server.
[0059] In this embodiment, it is determined whether the ETS software and the KNX gateway are in the same local area network, and a determination result is obtained. The determination result of whether the ETS software and the KNX gateway are in the same local area network input by the user can be used as the corresponding determination result.
[0060] In this embodiment, the judgment result is the result obtained after determining whether the ETS software and the KNX gateway are in the same local area network. The judgment result includes: the ETS software and the KNX gateway are in the same local area network, and the ETS software and the KNX gateway are not in the same local area network.
[0061] The beneficial effects of the above technology are: by judging whether the ETS software and the KNX gateway are in the same local area network, and when the ETS software and the KNX gateway are not in the same local area network, a transmission channel between the ETS software and the KNX gateway is built based on the cloud server, and then when the ETS software and the KNX gateway are not in the same local area network, remote data transmission between the ETS software and the KNX gateway is realized.
[0062] Embodiment 3:
[0063] On the basis of Example 2, the KNX gateway remote transmission data processing method based on smart home, S102: when the judgment result is that the ETS software and the KNX gateway are not in the same local area network, a transmission channel between the ETS software and the KNX gateway is built based on the cloud server, including:
[0064] S1021: When the ETS software and the KNX gateway are not in the same local area network, an IP address that is not occupied and is in the same network segment as the first IP address of the ETS software is determined as an auxiliary forwarding address;
[0065] S1022: Add the second IP address of the cloud server (i.e., the IP address of the cloud server) and the preset transmission port list (a preset list of transmission ports of the cloud server that can be searched by the KNX gateway) to the configuration of the KNX gateway (so that the KNX gateway can receive the connection request sent by the cloud server), and obtain the configuration result;
[0066] S1023: Based on the first IP address of the ETS software, the auxiliary forwarding address, the IP address of the cloud server and the configuration result, a transmission channel between the ETS software and the KNX gateway is established.
[0067] In this embodiment, the first IP address is the IP address of the ETS software.
[0068] In this embodiment, the configuration result is the result obtained after adding the second IP address and the preset transmission port list of the cloud server to the configuration of the KNX gateway.
[0069] In this embodiment, the auxiliary forwarding address is an IP address that is unoccupied and in the same network segment as the first IP address of the ETS software, which is determined when the ETS software and the KNX gateway are not in the same local area network. It is also the forwarding address for receiving and forwarding data sent by the ETS software or the KNX gateway to the other party when the ETS software and the KNX gateway are not in the same local area network.
[0070] In this embodiment, when the ETS software and the KNX gateway are not in the same local area network, an IP address that is not occupied and is in the same network segment as the first IP address of the ETS software is determined as an auxiliary forwarding address, including:
[0071] When the ETS software and the KNX gateway are not in the same LAN, for example, the first IP address of the ETS software is 192.168.43.100 and the IP address of the KNX gateway is 172.16.7.12, 192.168.43.100 can be used as the auxiliary forwarding address.
[0072] The beneficial effect of the above technology is: when the ETS software and the KNX gateway are not in the same local area network, an IP address that is not occupied and is in the same network segment as the first IP address of the ETS software is determined as an auxiliary forwarding address, and based on the first IP address of the ETS software, the auxiliary forwarding address, the IP address of the cloud server and the configuration result, a transmission channel between the ETS software and the KNX gateway is built, thereby overcoming the defect that the ETS software can only communicate with the communication gateway belonging to the same local area network.
[0073] Embodiment 4:
[0074] On the basis of Example 3, the KNX gateway remote transmission data processing method based on smart home, S1023: based on the first IP address of the ETS software, the auxiliary forwarding address and the IP address of the cloud server and the configuration result, a transmission channel between the ETS software and the KNX gateway is established, including:
[0075] Based on the first IP address and auxiliary forwarding address of the ETS software and the IP address of the cloud server, a first transmission channel is established;
[0076] Based on the configuration results, a second transmission channel is built;
[0077] The first transmission channel and the second transmission channel are connected to obtain the transmission channel between the ETS software and the KNX gateway.
[0078] In this embodiment, the first transmission channel is a data transmission channel for realizing data transmission between the ETS software and the cloud server, which is built based on the first IP address and auxiliary forwarding address of the ETS software and the IP address of the cloud server;
[0079] The first transmission channel is the transmission channel from the first IP address of the ETS software to the auxiliary forwarding address and then to the IP address of the cloud server, or it can be the transmission channel from the IP address of the cloud server to the auxiliary forwarding address and then to the first IP address of the ETS software.
[0080] In this embodiment, the second transmission channel is a data transmission channel built based on the configuration result for realizing data transmission between the KNX gateway and the cloud server;
[0081] The second transmission channel is the transmission channel from the IP address of the cloud server to the KNX gateway, or the transmission channel from the KNX gateway to the IP address of the cloud server.
[0082] In this embodiment, the first transmission channel and the second transmission channel are connected to obtain the transmission channel between the ETS software and the KNX gateway, that is:
[0083] The cloud server is used as a transfer node, and the first transmission channel and the second transmission channel are connected to obtain the transmission channel between the ETS software and the KNX gateway.
[0084] The beneficial effects of the above technology are: a first transmission channel for realizing data transmission between the ETS software and the cloud server is built based on the first IP address and auxiliary forwarding address of the ETS software and the IP address of the cloud server, and a data transmission channel for realizing data transmission between the KNX gateway and the cloud server is built based on the configuration result, and a transmission channel is built to realize remote data transmission between the ETS software and the KNX gateway.
[0085] Embodiment 5:
[0086] On the basis of Example 4, the KNX gateway remote transmission data processing method based on smart home, based on the configuration result, builds a second transmission channel, including:
[0087] The cloud server generates a connection request based on the auxiliary forwarding address and sends the connection request to the KNX gateway;
[0088] When the KNX gateway receives a connection request based on the configuration result (the KNX gateway can receive the connection request from the cloud server only after the second IP address and the preset transmission port list of the cloud server are added to the configuration of the KNX gateway), a personalized transmission key is configured for the cloud server based on the auxiliary forwarding address in the connection request, and a corresponding connection request feedback is generated based on the personalized transmission key and the public key of the KNX gateway, and the connection request feedback is sent to the cloud server;
[0089] When the cloud server receives the connection request feedback, a second transmission channel between the cloud server and the KNX gateway is established based on the personalized transmission key in the connection request feedback and the public key of the KNX gateway.
[0090] In this embodiment, the connection request is a request data packet generated based on the auxiliary forwarding address and containing the auxiliary forwarding address for requesting to establish a communication connection request between the auxiliary forwarding address and the KNX gateway.
[0091] In this embodiment, a personalized transmission key is configured for the cloud server based on the auxiliary forwarding address in the connection request, that is, a corresponding personalized transmission key is generated based on a unique identification code corresponding to the auxiliary forwarding address.
[0092] In this embodiment, the personalized transmission key is a transmission key configured for the cloud server based on the auxiliary forwarding address in the connection request for realizing encrypted transmission between the auxiliary forwarding address and the KNX gateway, and is used to decrypt data encrypted based on the public key.
[0093] In this embodiment, the public key is an inverse algorithm (encryption algorithm) used to encrypt the data to be transmitted corresponding to the personalized transmission key.
[0094] In this embodiment, the connection request feedback is a response data packet that contains a personalized transmission key and a public key of the KNX gateway and is used to respond to the connection request.
[0095] In this embodiment, when the cloud server receives a connection request feedback, a second transmission channel between the cloud server and the KNX gateway is built based on the personalized transmission key in the connection request feedback and the public key of the KNX gateway, that is: when the cloud server receives a connection request feedback, a transmission channel for realizing data transmission between the cloud server and the KNX gateway is built based on the personalized transmission key and the public key of the KNX gateway.
[0096] In this embodiment, the established second transmission channel includes a sub-transmission channel between each transmission port of the cloud server pre-configured in the preset transmission port list of the KNX gateway and the KNX gateway.
[0097] The beneficial effects of the above technology are: based on the connection request issued by the cloud server and the connection request feedback issued by the KNX gateway to answer the connection request, the personalized transmission key of the cloud server is obtained, and then combined with the public key of the KNX gateway, a transmission channel is built to realize data transmission between the cloud server and the KNX gateway.
[0098] Embodiment 6:
[0099] On the basis of Example 4, the KNX gateway remote transmission data processing method based on smart home, S2: transmitting the data to be transmitted to the target port address based on the transmission channel, including:
[0100] When the cloud server receives the data to be transmitted from the ETS software based on the first transmission channel in the transmission channel, the target transmission port used by the data to be transmitted when it is sent by the cloud server is determined in the preset transmission port list, and the data to be transmitted is transmitted to the target port address of the KNX gateway based on the second transmission channel;
[0101] When the cloud server receives the data to be transmitted sent by the KNX gateway based on the second transmission channel in the transmission channel, the cloud server is controlled to forward the data to be transmitted to the target port address of the ETS software based on the first transmission channel.
[0102] In this embodiment, when the cloud server receives the data to be transmitted from the ETS software based on the first transmission channel in the transmission channel (that is, when the auxiliary forwarding address in the first transmission channel receives the data to be transmitted sent by the ETS software, the data to be transmitted received by the auxiliary forwarding address is transmitted to the cloud server, and the cloud server will receive the data to be transmitted from the ETS software), the cloud server transmits the received data to be transmitted to the target port address of the KNX gateway based on the second transmission channel in the transmission channel;
[0103] In this embodiment, when the cloud server receives the data to be transmitted from the KNX gateway based on the second transmission channel in the transmission channel, the received data to be transmitted from the KNX gateway is transmitted to the auxiliary forwarding address based on the first transmission channel, and then transmitted to the target port address of the ETS software via the auxiliary forwarding address.
[0104] In this embodiment, the target transmission port is a transmission port determined in the preset transmission port list and used when the data to be transmitted is sent from the cloud server.
[0105] The beneficial effects of the above technology are: based on the first transmission channel for realizing data transmission between the ETS software and the cloud server and the data transmission channel for realizing data transmission between the KNX gateway and the cloud server, remote data transmission between the ETS software and the KNX gateway is realized.
[0106] Embodiment 7:
[0107] On the basis of Example 6, the KNX gateway remote transmission data processing method based on smart home, determining the target transmission port used when the data to be transmitted is sent from the cloud server in the preset transmission port list, includes:
[0108] Determine the transmission order of the data to be transmitted in the remote transmission task;
[0109] Determine the element structure relationship between the data elements in the data to be transmitted, and build a macro data structure diagram of the data to be transmitted based on the element structure relationship between the data elements in the data to be transmitted and the storage structure of the data to be transmitted;
[0110] Determine the structural object category of the data element based on the data structure relationship between all the data elements in the macro data structure diagram, and divide the data to be transmitted into a plurality of partial data based on the structural object category;
[0111] Determine the business purpose of the corresponding part of the data based on the business key characters of the data elements in the part of the data, determine the business logic of the data to be transmitted based on the business purpose, determine the data logic of the data to be transmitted based on the repeated data elements in the data to be transmitted, and use the business logic and data logic of the data to be transmitted as the data logic characteristics of the data to be transmitted;
[0112] Based on the data logic characteristics and transmission order of the data to be transmitted, the target transmission port used when the data to be transmitted is sent from the cloud server is determined in the preset transmission port list.
[0113] In this embodiment, the remote transmission task is a transmission task that needs to be completed between the KNX gateway and the ETS software.
[0114] In this embodiment, the subtask is a part of the task included in the remote transmission task.
[0115] In this embodiment, the data to be transmitted is the data that needs to be transmitted between the KNX gateway and the ETS software in the subtask.
[0116] In this embodiment, the target port address is the port address at which the corresponding data to be transmitted needs to be transmitted to the ETS software in the subtask.
[0117] In this embodiment, the transmission order is the order in which the subtasks are executed in the remote transmission task.
[0118] In this embodiment, the element structure relationship between the data elements in the data to be transmitted is determined, and based on the element structure relationship between the data elements in the data to be transmitted and the storage structure of the data to be transmitted, a macro data structure diagram of the data to be transmitted is constructed, including:
[0119] Determine the storage structure of the data to be transmitted, and based on the preset element structure relationship, determine the element structure relationship between the data elements in the data to be transmitted, and build a macro data structure diagram of the data to be transmitted based on the element structure relationship and storage structure between the data elements in the data to be transmitted;
[0120] In this embodiment, the structural object categories of the data elements are determined based on the data structural relationship between all the data elements in the macro data structure diagram, and the data to be transmitted is divided into a plurality of partial data based on the structural object categories, including:
[0121] Determine the data structure relationship between all data elements in the data to be transmitted based on the macro data structure diagram;
[0122] The structural object category of the data element is determined based on the data structure relationship, and the data to be transmitted is divided into a plurality of partial data based on the structural object category.
[0123] In this embodiment, determining the business purpose of the corresponding part of the data based on the business key characters of the data elements in the part of the data, determining the business logic of the data to be transmitted based on the business purpose, and determining the data logic of the data to be transmitted based on the repeated data elements in the data to be transmitted include:
[0124] Determine the business key characters of the data elements in the partial data, determine the business purpose of the corresponding partial data based on the business key characters, and determine the business logic of the data to be transmitted based on the business purpose of each partial data in the data to be transmitted;
[0125] Repeated data elements in the data to be transmitted are determined, and data logic of the data to be transmitted is determined based on the repeated data elements.
[0126] In this embodiment, the storage structure, for example: sequential storage: storing in a continuous storage space, the logical position and physical position of the element are consistent;
[0127] Chain storage: can be stored on any physical material, and requires an additional part to store pointers to logical relationships;
[0128] Index storage: When storing data, an additional index table is stored. This can improve efficiency when querying.
[0129] Hash storage: Generally, it can be physically continuous storage space, and the storage location needs to be determined by hash function. It can improve efficiency during query.
[0130] In this embodiment, the preset element structure relationship is, for example:
[0131] Set: There is no relationship between elements, which is relatively loose;
[0132] Linear structure: There is a one-to-one relationship between elements; except for the start and terminal nodes, other nodes have a predecessor and a successor;
[0133] Tree structure: There is a one-to-many relationship between elements;
[0134] Graph structure: There is a many-to-many relationship between elements.
[0135] In this embodiment, the macro data structure diagram is a diagram that represents the element structure relationship and storage structure between the data elements to be transmitted.
[0136] In this embodiment, the data structure relationship is the data structure relationship between all data elements in the data to be transmitted determined based on the macro data structure diagram, for example: there is a one-to-one data structure relationship between data element a stored at position A and data element b stored at position B.
[0137] In this embodiment, the structural object category is the category of objects belonging to the same type of structural relationship in the data structure relationship, such as the category of data elements belonging to a one-to-one data structure relationship, or the category of data elements corresponding to the "one" side in a one-to-many data structure relationship.
[0138] In this embodiment, partial data is data obtained by dividing and aggregating data elements belonging to the same structural object category in the data to be transmitted.
[0139] In this embodiment, the business key character is a data character representing a business purpose and included in a preset business key character list included in the partial data.
[0140] In this embodiment, the business purpose is to determine the business purpose of the corresponding part of the data based on the business key character, such as initiating a connection request.
[0141] In this embodiment, the business logic is the logic obtained by sequentially connecting the business purpose of each part of the data to be transmitted, for example: initiating a connection request-receiving response data-establishing a connection relationship.
[0142] In this embodiment, the repeated data elements are repeated data elements in the data to be transmitted.
[0143] In this embodiment, the data logic is a data operation relationship in the data to be transmitted determined based on repeated data elements in the data to be transmitted, for example: the target data is sent to the target port after being denoised.
[0144] In this embodiment, the data logic characteristics are the business logic and data logic of the data to be transmitted.
[0145] In this embodiment, based on the data logic characteristics and transmission order of the data to be transmitted, determining the target transmission port used when the data to be transmitted is sent from the cloud server in the preset transmission port list includes:
[0146] Based on the data logical characteristics of the data to be transmitted and the corresponding transmission bit sequence numbers in the transmission order, the preset transmission port determination list is queried (that is, the transmission ports corresponding to different data logical characteristics and transmission bit sequence numbers, and the transmission port determined here is the port in the preset transmission port list pre-configured in the KNX gateway), and the corresponding transmission port is determined in the preset transmission port list as the target transmission port used when the data to be transmitted is sent from the cloud server.
[0147] In this embodiment, the bit sequence number is the bit sequence number of the corresponding subtask in the remote transmission task determined based on the transmission sequence.
[0148] The beneficial effects of the above technology are: by analyzing the storage structure of the data to be transmitted and the element structure relationship between the data elements, the data structure relationship of the data to be transmitted is determined, and the object category of the data element is determined based on the data structure relationship, so as to realize the division of the data to be transmitted based on the data structure, which is conducive to the subsequent determination of the business logic of the data to be transmitted and the business logic of the data to be transmitted is determined by determining the business purpose of part of the data, and then combined with the data logic in the data to be transmitted, the data logic characteristics of the data to be transmitted are determined, and the cloud server transmits the data to be transmitted to the KNX gateway based on the remote transmission protocol and the data logic characteristics of the data to be transmitted and the bit number corresponding to the transmission sequence. The sending (transmission) port is determined in a personalized manner when the cloud server transmits the data to be transmitted to the KNX gateway, and then the forwarding channel can be personalized based on the personalized characteristics of the data to be transmitted, thereby overcoming the singleness of the traditional encrypted transmission based on a single network transmission protocol and a single transmission channel, and enhancing the data transmission security in encrypted transmission.
[0149] Embodiment 8:
[0150] On the basis of Example 7, the KNX gateway remote transmission data processing method based on smart home determines the transmission order of the data to be transmitted in the remote transmission task, including:
[0151] Divide the remote transmission task into multiple subtasks based on the task thread corresponding to the remote transmission task, take the subtask with repeated threads as the target subtask, and determine the business logic of the data to be transmitted of the target subtask;
[0152] Connect the termination business purpose of the previous subtask adjacent to the target subtask and the business logic of the data to be transmitted of the target subtask in order to obtain the business logic to be determined of the corresponding target subtask;
[0153] Calculate the logic comprehensive coherence value based on the sequential logic matching values of all adjacent business purposes in the business logic to be judged and the logic weight of the bit sequence number of the corresponding adjacent business purpose in the business logic to be judged;
[0154] The execution priority of the target subtask is determined based on the logical synthesis coherence value, and the transmission order of the data to be transmitted is determined based on the execution priority of the target subtask.
[0155] In this embodiment, based on the change points of the data to be transmitted and the change points of the receiving address in the task thread corresponding to the remote transmission task, the remote transmission task is divided into multiple subtasks, including:
[0156] Generate a task thread corresponding to the remote transmission task, and determine the change point of the data to be transmitted and the change point of the receiving address in the remote transmission task as the segmentation point;
[0157] The task thread is divided into a plurality of sub-threads based on the split point, and the remote transmission task is divided into a plurality of sub-tasks based on the obtained sub-threads.
[0158] In this embodiment, the termination business purpose of the adjacent previous subtask of the target subtask and the business logic of the data to be transmitted of the target subtask are connected in sequence to obtain the business logic to be determined of the corresponding target subtask, including:
[0159] Determine the termination business purpose of the adjacent previous subtask of the target subtask in the task thread corresponding to the remote transmission task;
[0160] The business logic of the data to be transmitted of the terminated business purpose and the target subtask are connected in sequence to obtain the business logic to be judged of the corresponding target subtask.
[0161] In this embodiment, the logical comprehensive coherence value is calculated based on the sequential logical matching values of all adjacent service purposes in the service logic to be determined and the logical weight of the bit sequence number of the corresponding adjacent service purpose in the service logic to be determined, including:
[0162] Based on the business purpose sequential logic matching value list, determine the sequential logic matching values of adjacent business purposes in the business logic to be determined;
[0163] The average value of the product of the sequential logic matching values of all adjacent business purposes in the business logic to be judged and the logic weights corresponding to the bit numbers of the corresponding adjacent business purposes in the business logic to be judged is taken as the logical comprehensive coherence value of the business logic to be judged.
[0164] In this embodiment, the execution priority of the target subtask is determined based on the logical synthesis coherence value, including:
[0165] Determine the execution priority of the target subtasks in descending order of logical comprehensive coherence values;
[0166] Among them, the greater the logic synthesis coherence value, the greater the execution priority and the earlier the transmission order, and vice versa.
[0167] In this embodiment, based on the execution priority of the target subtask, the transmission order of the data to be transmitted is determined, including:
[0168] Based on the execution priority of the target subtask, determine the transmission order of the target subtask and the transmission order of the remaining subtasks in the remote transmission task except the target subtask (that is, keep the transmission order of the subtasks before the target subtask, determine the transmission order of the target subtask based on the execution priority of the target subtask, and sort the subtasks after the target subtask in the original transmission order after the target subtask);
[0169] The transmission order of the target subtask and the transmission order of the remaining subtasks in the remote transmission task except the target subtask are regarded as the transmission order of the corresponding data to be transmitted.
[0170] In this embodiment, the task thread is a recording thread for recording the process of the remote transmission task.
[0171] In this embodiment, the change point of the data to be transmitted is the time point at which the data to be transmitted in the task thread changes.
[0172] In this embodiment, the receiving address change point is the time point when the receiving address in the task thread changes.
[0173] In this embodiment, the subtasks are multiple partial tasks obtained by dividing the remote transmission task based on the division points, using the change points of the data to be transmitted and the change points of the receiving address in the task thread as division points.
[0174] In this embodiment, the execution priority is a value representing the priority level at which the subtask is executed.
[0175] In this embodiment, the segmentation points are the change points of the data to be transmitted and the change points of the receiving address in the remote transmission task.
[0176] In this embodiment, the sub-thread is a partial thread obtained by dividing the task thread based on the split point.
[0177] In this embodiment, the target subtask is a subtask that is repeated in the task thread and is also a subtask that needs to determine the transmission order.
[0178] In this embodiment, the adjacent previous subtask is the adjacent previous subtask to the target subtask.
[0179] In this embodiment, the termination service purpose is the last service purpose in the service logic of the data to be transmitted of the previous subtask.
[0180] In this embodiment, the business logic to be determined is the business logic obtained by sequentially connecting the termination business purpose, the business logic of the data to be transmitted of the target subtask, and the start business purpose.
[0181] In this embodiment, the business purpose sequential logical matching value list is a preset list containing sequential logical matching values corresponding to different business purposes when they are in sequential adjacent relationships.
[0182] In this embodiment, the sequential logic matching value is a value representing the degree of logical matching between adjacent service purposes.
[0183] In this embodiment, the bit order numbers of the corresponding adjacent business purposes in the business logic to be judged, for example, the bit order numbers of the first business purpose and the second business purpose in the business logic to be judged in the business logic to be judged are 1, and the bit order numbers of the second business purpose and the third business purpose in the business logic to be judged in the business logic to be judged are 2.
[0184] In this embodiment, the logic weight is a weight value corresponding to the bit number of the adjacent service purpose in the service logic to be determined which is required when calculating the preset logic comprehensive coherence value.
[0185] In this embodiment, the logic synthesis coherence value is the average value of the product of the sequential logic matching values of all adjacent business purposes in the business logic to be judged and the logic weights corresponding to the bit numbers of the corresponding adjacent business purposes in the business logic to be judged.
[0186] The beneficial effects of the above technology are: by dividing the task threads corresponding to the remote transmission task, and based on the business purpose in the business logic of the data to be transmitted of the subtask with repeated threads in the divided subtasks and the business purpose in the business logic of the data to be transmitted of the adjacent subtasks, the logical comprehensive coherence value of different business logics to be judged is determined, and then based on the logical comprehensive coherence value, the target subtask with more coherent business execution logic is determined as the subtask to be executed first, and then the transmission order of the target subtask is determined, and then the transmission order of all subtasks is determined.
[0187] Obviously, those skilled in the art can make various changes and modifications to the present invention without departing from the spirit and scope of the present invention. Thus, if these modifications and variations of the present invention fall within the scope of the claims of the present invention and their equivalents, the present invention is also intended to include these modifications and variations.
Claims
1. A KNX gateway remote transmission data processing method based on smart home, characterized in that: include: S1: When the ETS software and the KNX gateway are not in the same LAN, a transmission channel between the ETS software and the KNX gateway is built based on the cloud server; S2: transmitting the data to be transmitted to the target port address based on the transmission channel, including: when the cloud server receives the data to be transmitted from the ETS software based on the first transmission channel in the transmission channel, determining the target transmission port used by the data to be transmitted when it is sent from the cloud server in the preset transmission port list, and transmitting the data to be transmitted to the target port address of the KNX gateway based on the second transmission channel; when the cloud server receives the data to be transmitted sent by the KNX gateway based on the second transmission channel in the transmission channel, controlling the cloud server to forward the data to be transmitted to the target port address of the ETS software based on the first transmission channel; The target transmission port used when the data to be transmitted is sent from the cloud server is determined in the preset transmission port list, including: Determine the transmission order of the data to be transmitted in the remote transmission task; Determine the element structure relationship between the data elements in the data to be transmitted, and build a macro data structure diagram of the data to be transmitted based on the element structure relationship between the data elements in the data to be transmitted and the storage structure of the data to be transmitted; Determine the structural object category of the data element based on the data structure relationship between all the data elements in the macro data structure diagram, and divide the data to be transmitted into a plurality of partial data based on the structural object category; Determine the business purpose of the corresponding part of the data based on the business key characters of the data elements in the part of the data, determine the business logic of the data to be transmitted based on the business purpose, determine the data logic of the data to be transmitted based on the repeated data elements in the data to be transmitted, and use the business logic and data logic of the data to be transmitted as the data logic characteristics of the data to be transmitted; Based on the data logic characteristics and transmission order of the data to be transmitted, the target transmission port used when the data to be transmitted is sent from the cloud server is determined in the preset transmission port list.
2. The KNX gateway remote transmission data processing method based on smart home according to claim 1 is characterized in that: S1: When the ETS software and the KNX gateway are not in the same LAN, a transmission channel between the ETS software and the KNX gateway is built based on the cloud server, including: S101: Determine whether the ETS software and the KNX gateway are in the same local area network and obtain a determination result; S102: When the judgment result is that the ETS software and the KNX gateway are not in the same local area network, a transmission channel between the ETS software and the KNX gateway is established based on the cloud server.
3. The method for processing KNX gateway remote transmission data based on smart home according to claim 2, characterized in that: S102: When the result of the judgment is that the ETS software and the KNX gateway are not in the same local area network, a transmission channel between the ETS software and the KNX gateway is established based on the cloud server, including: S1021: When the ETS software and the KNX gateway are not in the same local area network, an IP address that is not occupied and is in the same network segment as the first IP address of the ETS software is determined as an auxiliary forwarding address; S1022: Add the second IP address and the preset transmission port list of the cloud server to the configuration of the KNX gateway to obtain the configuration result; S1023: Based on the first IP address of the ETS software, the auxiliary forwarding address, the IP address of the cloud server and the configuration result, a transmission channel between the ETS software and the KNX gateway is established.
4. The method for processing KNX gateway remote transmission data based on smart home according to claim 3 is characterized in that: S1023: Based on the first IP address of the ETS software, the auxiliary forwarding address, the IP address of the cloud server, and the configuration result, a transmission channel between the ETS software and the KNX gateway is established, including: Based on the first IP address and auxiliary forwarding address of the ETS software and the IP address of the cloud server, a first transmission channel is established; Based on the configuration results, a second transmission channel is built; The first transmission channel and the second transmission channel are connected to obtain the transmission channel between the ETS software and the KNX gateway.
5. The method for processing KNX gateway remote transmission data based on smart home according to claim 4 is characterized in that: Based on the configuration results, a second transmission channel is built, including: The cloud server generates a connection request based on the auxiliary forwarding address and sends the connection request to the KNX gateway; When the KNX gateway receives a connection request based on the configuration result, it configures a personalized transmission key for the cloud server based on the auxiliary forwarding address in the connection request, generates a corresponding connection request feedback based on the personalized transmission key and the public key of the KNX gateway, and sends the connection request feedback to the cloud server; When the cloud server receives the connection request feedback, a second transmission channel between the cloud server and the KNX gateway is established based on the personalized transmission key in the connection request feedback and the public key of the KNX gateway.
6. The method for processing KNX gateway remote transmission data based on smart home according to claim 1, characterized in that: Determine the transmission order of the data to be transmitted in the remote transmission task, including: Divide the remote transmission task into multiple subtasks based on the task thread corresponding to the remote transmission task, take the subtask with repeated threads as the target subtask, and determine the business logic of the data to be transmitted of the target subtask; Connect the termination business purpose of the previous subtask adjacent to the target subtask and the business logic of the data to be transmitted of the target subtask in order to obtain the business logic to be determined of the corresponding target subtask; Calculate the logic comprehensive coherence value based on the sequential logic matching values of all adjacent business purposes in the business logic to be judged and the logic weight of the bit sequence number of the corresponding adjacent business purpose in the business logic to be judged; The execution priority of the target subtask is determined based on the logical synthesis coherence value, and the transmission order of the data to be transmitted is determined based on the execution priority of the target subtask.
Citation Information
Patent Citations
KNX remote debugging method and system
CN109871325A