CN114172800A - KNX multi-gateway communication method, device, equipment and storage medium - Google Patents

KNX multi-gateway communication method, device, equipment and storage medium Download PDF

Info

Publication number
CN114172800A
CN114172800A CN202111410134.7A CN202111410134A CN114172800A CN 114172800 A CN114172800 A CN 114172800A CN 202111410134 A CN202111410134 A CN 202111410134A CN 114172800 A CN114172800 A CN 114172800A
Authority
CN
China
Prior art keywords
knx
data
gateway
communication
upper computer
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202111410134.7A
Other languages
Chinese (zh)
Other versions
CN114172800B (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.)
Zhejiang Yuanchuang Intelligent Control Technology Co ltd
Original Assignee
Zhejiang Yuanchuang Intelligent Control Technology 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 Zhejiang Yuanchuang Intelligent Control Technology Co ltd filed Critical Zhejiang Yuanchuang Intelligent Control Technology Co ltd
Priority to CN202111410134.7A priority Critical patent/CN114172800B/en
Publication of CN114172800A publication Critical patent/CN114172800A/en
Application granted granted Critical
Publication of CN114172800B publication Critical patent/CN114172800B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0803Configuration setting
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L47/00Traffic control in data switching networks
    • H04L47/50Queue scheduling
    • H04L47/62Queue scheduling characterised by scheduling criteria
    • H04L47/6205Arrangements for avoiding head of line blocking
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/14Session management
    • H04L67/141Setup of application sessions
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/50Reducing energy consumption in communication networks in wire-line communication networks, e.g. low power modes or reduced link rate

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The invention discloses a KNX multi-gateway communication method, a device, equipment and a storage medium, aiming at the existing KNX gateway communication, only one KNX gateway can be connected at a time, under the condition of the KNX multi-gateway communication, the operation is complex, and the problems of time and labor are solved; and establishing communication connection between the upper computer and the plurality of KNX gateways in batches, and performing data interaction with each KNX gateway in a pipeline communication mode. The method can be operated in batch to establish connection with a plurality of KNX gateways and disconnect the connection at the same time; after the connection is established, only data communication needs to be concerned until the user actively disconnects the connection; and moreover, a queue mechanism is established by adopting pipeline data communication, so that the problem that the KNX bus is blocked and cannot normally communicate due to the fact that a large amount of data are flushed is avoided.

Description

KNX multi-gateway communication method, device, equipment and storage medium
Technical Field
The invention belongs to the technical field of network communication, and particularly relates to a KNX multi-gateway communication method, a KNX multi-gateway communication device, KNX multi-gateway communication equipment and a KNX multi-gateway communication storage medium.
Background
KNX is an abbreviation of Konnex, the protocol is based on EIB, combines physical layer specifications of BatiBus and EHSA, absorbs advantages of configuration modes in BatiBus and EHSA and the like, and provides a complete solution for home and building automation.
The existing KNX communication upper computer software, such as ETS (KNX programming tool software specified by KNX association), can only establish connection with one KNX gateway and perform data communication at the same time, and when data communication is required to be performed with another KNX gateway, it is necessary to disconnect the connection established with the previous KNX gateway first and select a new gateway to re-establish connection, so that data communication can be performed.
In practical applications, there are: as many KNX gateways are provided, as many upper computer communication software are needed to be configured, and each upper computer communication software needs to be installed on different PC hosts; or a plurality of KNX gateways are provided, but only one upper computer communication software is configured, and data communication is carried out by compiling a large amount of automatic scripts or manually switching the KNX gateways manually.
If there are a large number of KNX terminals in the actual project, but only one KNX communication gateway is used, the data communication delay or even the data communication cannot be performed due to too many terminals connected by the KNX gateway.
The above situation not only increases the cost and the operation complexity of the project, but also causes the waste of manpower and time.
Disclosure of Invention
The invention aims to provide a KNX multi-gateway communication method, which ensures that a user does not need to repeatedly disconnect and establish connection when carrying out multi-KNX gateway data communication operation, and only needs to establish connection with all KNX gateways at the same time when starting to use software; when quitting, disconnecting all the KNX gateways at the same time; during the intermediate specific operation, the connection state of other gateways is not needed to be worried about, and the target gateway is directly selected to carry out data communication operation.
In order to solve the problems, the technical scheme of the invention is as follows:
a KNX multi-gateway communication method, comprising:
configuring KNX gateway data on an upper computer, wherein the KNX gateway data comprise a host IP, a KNX multicast address, a KNX multicast port number, a communication link port number, a data communication port number, a KNX gateway IP and a KNX gateway port number;
and establishing communication connection between the upper computer and the plurality of KNX gateways in batches, and performing data interaction with each KNX gateway in a pipeline communication mode.
According to an embodiment of the present invention, the establishing of the communication connection between the upper computer and the plurality of KNX gateways in batch further includes:
starting threads with the same number according to the number of the KNX gateways;
configuring a subprocess for each thread, wherein the subprocess is used for displaying data communicated by the upper computer and the KNX gateway;
and the subprocess receives the KNX gateway data sent by the upper computer, automatically establishes connection with the corresponding KNX gateway and returns a connection result to the upper computer.
According to an embodiment of the present invention, the performing data interaction with each KNX gateway in a pipe communication manner further includes:
configuring a thread for each KNX gateway, and starting a subprocess for each thread; configuring a data inflow pipeline and a data outflow pipeline for corresponding threads based on the establishment of the subprocess, and automatically connecting the data inflow pipeline and the data outflow pipeline by the subprocess;
when the upper computer transmits data to a data inflow pipeline of a corresponding sub-process through a data outflow pipeline of the thread, the sub-process monitors a data inflow event, acquires the data and sends the data to the KNX gateway;
when the KNX gateway transmits data to the upper computer, the corresponding sub-processes transmit the data to the data inflow pipeline of the corresponding thread through the data outflow pipeline, and the thread acquires the data and uploads the data to the upper computer after monitoring a data inflow event.
According to an embodiment of the invention, for the KNX gateway establishing the connection, whether the connection state of the KNX gateway is normal or not is periodically detected, and if the connection state of the KNX gateway is abnormal, the KNX gateway is automatically disconnected, and the connection is reestablished.
A KNX multi-gateway communications device comprising:
the data configuration module is used for configuring KNX gateway data to be located on an upper computer, wherein the KNX gateway data comprise a host computer IP, a KNX multicast address, a KNX multicast port number, a communication link port number, a data communication port number, a KNX gateway IP and a KNX gateway port number;
and the batch communication module is used for establishing communication connection between the upper computer and the plurality of KNX gateways in batches and performing data interaction with the KNX gateways in a pipeline communication mode.
According to an embodiment of the present invention, the batch communication module includes a connection establishing unit and a pipe communication unit;
the connection establishing unit starts threads with the same number according to the number of the KNX gateways; configuring a subprocess for each thread, wherein the subprocess is used for displaying data communicated by the upper computer and the KNX gateway; the sub-process receives KNX gateway data sent by the upper computer, automatically establishes connection with a corresponding KNX gateway, and returns a connection result to the upper computer;
the pipeline communication unit configures a data inflow pipeline and a data outflow pipeline for corresponding threads based on the establishment of the subprocess, and the subprocess is automatically connected with the data inflow pipeline and the data outflow pipeline; when the upper computer transmits data to a data inflow pipeline of a corresponding sub-process through a data outflow pipeline of the thread, the sub-process monitors a data inflow event, acquires the data and sends the data to the KNX gateway; when the KNX gateway transmits data to the upper computer, the corresponding sub-processes transmit the data to the data inflow pipeline of the corresponding thread through the data outflow pipeline, and the thread acquires the data and uploads the data to the upper computer after monitoring a data inflow event.
A KNX multi-gateway communications device comprising:
a memory having instructions stored therein and a processor, the memory and the processor interconnected by a line;
the processor calls the instruction in the memory to implement the KNX multi-gateway communication method in an embodiment of the present invention.
A computer-readable storage medium having stored thereon a computer program which, when executed by a processor, implements a KNX multi-gateway communication method in an embodiment of the present invention.
Due to the adoption of the technical scheme, compared with the prior art, the invention has the following advantages and positive effects:
aiming at the problems that the existing KNX gateway communication can only be connected with one KNX gateway at one time and the operation is complex, time and labor are wasted under the condition of the KNX multi-gateway communication, the KNX multi-gateway communication method in one embodiment of the invention is characterized in that the KNX gateway data is configured on an upper computer, and the KNX gateway data comprises a host IP, a KNX multicast address, a KNX multicast port number, a communication link port number, a data communication port number, a KNX gateway IP and a KNX gateway port number; and establishing communication connection between the upper computer and the plurality of KNX gateways in batches, and performing data interaction with each KNX gateway in a pipeline communication mode. The method can be operated in batch to establish connection with a plurality of KNX gateways and disconnect the connection at the same time; after the connection is established, the user does not need to pay attention to the establishment and the closing of the gateway connection and only needs to pay attention to the data communication until the user actively disconnects the connection; when the KNX gateway is switched to carry out data communication, the connection with the previous gateway does not need to be disconnected firstly, and then the connection with a new target gateway is established; and moreover, a queue mechanism is established by adopting pipeline data communication, so that the problem that the KNX bus is blocked and cannot normally communicate due to the fact that a large amount of data are flushed is avoided.
Drawings
FIG. 1 is a schematic diagram of a software interface of an upper computer according to an embodiment of the present invention;
fig. 2 is an architecture diagram of the upper computer and the KNX gateway establishing connection in an embodiment of the present invention;
FIG. 3 is a schematic diagram of pipe communication according to an embodiment of the present invention;
fig. 4 is a block diagram of a KNX multi-gateway communications apparatus according to an embodiment of the present invention;
fig. 5 is a schematic diagram of a KNX multi-gateway communication device in an embodiment of the present invention.
Detailed Description
The KNX multi-gateway communication method, apparatus, device and storage medium according to the present invention are further described in detail with reference to the accompanying drawings and specific embodiments. Advantages and features of the present invention will become apparent from the following description and from the claims.
Example one
KNX gateway: and the data interaction equipment is arranged between the KNX communication upper computer software and the KNX terminal product equipment (such as a KNX lighting module). The upper computer software sends the data packet to the KNX gateway and then the data packet is sent to the terminal product equipment by the KNX gateway; and after the terminal product equipment produces the data, the data are sent to a KNX gateway and then sent to the upper computer software by the KNX gateway.
The existing KNX communication upper computer software, such as ETS (KNX programming tool software specified by KNX association), can only establish connection with one KNX gateway and perform data communication at the same time, and when data communication is required to be performed with another KNX gateway, it is necessary to disconnect the connection established with the previous KNX gateway first and select a new gateway to re-establish connection, so that data communication can be performed. If a plurality of KNX gateways exist, only one upper computer communication software is configured, and data communication needs to be carried out by compiling a large number of automatic scripts or manually switching the KNX gateways manually; if a plurality of KNX terminal devices use only one KNX communication gateway, data communication delay or even data communication failure may be caused by excessive terminal devices connected to the KNX gateway.
In view of the above problems, the present embodiment provides a KNX multi-gateway communication method for upper computer software, which can directly establish connection with all KNX gateways, generate a child process for each KNX gateway, and the upper computer software is used as a parent process, and implements communication between the parent and child processes by using a pipeline technology, and cooperates with multiple threads and multiple processes, thereby implementing communication between multiple KNX gateways; the user can perform data communication or customized development aiming at specific project services only by selecting the target gateway.
The KNX multi-gateway communication method comprises the following steps:
configuring KNX gateway data on an upper computer, wherein the KNX gateway data comprise a host IP, a KNX multicast address, a KNX multicast port number, a communication link port number, a data communication port number, a KNX gateway IP and a KNX gateway port number;
and establishing communication connection between the upper computer and the plurality of KNX gateways in batches, and performing data interaction with each KNX gateway in a pipeline communication mode.
Wherein, configuration KNX gateway data is in the host computer, can understand that there is the setting item that adds gateway data on the host computer software interface, and the gateway data of mainly adding include: the host machine IP where the upper computer is located, the KNX multicast address, the KNX multicast port number, the communication link port number, the data communication port number, the KNX gateway IP and the KNX gateway port number. After the gateway data is added, visual display is made in an interface, please refer to fig. 1, so that a user can conveniently and quickly know the added gateway data. The gateway data may also be modified after addition.
And establishing communication connection between the upper computer and the plurality of KNX gateways in batches, and performing data interaction with each KNX gateway in a pipeline communication mode. The communication connection between the upper computer and the plurality of KNX gateways is established in batches, namely a button for connecting/disconnecting a key is configured on an interface of the upper computer, after the gateway data is added, a user operates the button, and the upper computer is simultaneously connected with all the gateways. After the gateway connection is successfully established, the interface has an intuitive effect to show that the gateway is already established.
Specifically, referring to fig. 2, firstly, the software starts up the threads equal to the number of the KNX gateways according to the number of the KNX gateways, and therefore the threads are started up first, because different threads can perform different task operations, so that the specific operations (embodied in the specific content of the data packet) of each gateway by the user may be inconsistent.
And after the threads are started successfully, each thread starts a sub-process independently. The subprocess is adopted to visually display the data communicated with the KNX gateway by using the interface, and the data receiving and sending conditions can be visually checked in the processes of debugging and testing by considering users.
And after the child process is successfully started, the upper computer (namely the parent process) issues the basic data of each KNX gateway to the child process through a pipeline technology, and the child process acquires the data and automatically starts to establish connection with the KNX gateway.
And after the gateway connection is successfully established, the sub-process uploads the data packet with the successfully established connection to the upper computer, and at the moment, the user can start to carry out data communication with the KNX gateway.
The data communication between the upper computer and the KNX gateway adopts a pipeline technology, please refer to fig. 3. A pipeline is a communication means for sharing data between processes, and its essence is a segment of shared memory. The Windows system adopts a data stream I/0 mode to access the shared memory design, and one process reads and the other process writes, which is similar to two ends of a pipeline. The pipelines are unidirectional, which means that data can only flow from a parent process to a child process or from the child process to the parent process, and one pipeline can only be used by one process; similarly, data of a parent process flows into the pipeline, and data of a child process can be uploaded to the parent process only by matching with the data of the child process flowing out pipeline.
In this embodiment, each thread has already established a data ingress pipe and a data egress pipe at the time the sub-process was successfully established. Under the thread, the corresponding sub-process is also connected with two pipelines of a data inflow pipeline and a data outflow pipeline. Meanwhile, a circulation process is started in the thread and is used for monitoring the data flow of the thread into a pipeline; a loop process is also started in the subprocess and is used for monitoring the data flow of the subprocess into the pipeline.
The user selects the gateway to carry out data communication on the upper computer (at this time, the operation of selecting the gateway is still needed, but other operations such as disconnection of other gateway connections and the like are not needed any more), after the data packet is compiled, an issuing instruction is triggered, software can transmit the data packet to a data inflow pipeline of a corresponding sub-process in a data stream mode through a data outflow pipeline of a corresponding thread, and after the data inflow pipeline is monitored to have data inflow by the internal circulation processing of the sub-process, the data stream is analyzed, a complete data packet is obtained, and the data packet is issued to the KNX gateway; after the data are successfully issued to the KNX gateway and processed, the sub-process actively calls the data outflow pipeline, uploads the successful data packets to the data inflow pipeline of the corresponding thread, and feeds the data packets back to the upper computer after the data packets are monitored by the cyclic processing of the thread.
And for the KNX gateway establishing the connection, periodically detecting whether the connection state of the KNX gateway is normal or not, automatically disconnecting the KNX gateway if the connection state of the KNX gateway is abnormal, and reestablishing the connection. In practical application, the detection can be performed once every certain time (such as 1 minute), when the detection is abnormal for more than three times (including three times), the abnormal connection of the KNX gateway is actively reminded, the connection established with the KNX gateway is automatically disconnected, and then the connection is tried to be reestablished.
The KNX multi-gateway communication method in the embodiment is realized by matching multiple threads and multiple processes through an anonymous pipeline technology based on KNX single-gateway communication. The data packet sent by the upper computer is provided with the mark of the target KNX gateway, so that the data packet can be directionally circulated, and the KNX multi-gateway data communication can be accurately realized. The KNX multi-gateway communication method can be operated in batch to establish connection with a plurality of KNX gateways and disconnect the connection at the same time. After the connection is established, the user does not need to pay attention to the establishment and the closing of the gateway connection and only needs to pay attention to the data communication until the user actively disconnects the connection; automatically detecting whether the connection state of the gateway is normal or not, and automatically disconnecting and reconnecting if the detection is abnormal for more than three times (including three times); through the queue mechanism established by pipeline data communication, the problem that the KNX bus cannot normally communicate due to the fact that a large amount of data are flushed is avoided.
Example two
This embodiment provides a KNX multi-gateway communication device, please refer to fig. 4, and this KNX multi-gateway communication device includes:
the data configuration module 1 is used for configuring KNX gateway data on an upper computer, wherein the KNX gateway data comprises a host IP, a KNX multicast address, a KNX multicast port number, a communication link port number, a data communication port number, a KNX gateway IP and a KNX gateway port number;
and the batch communication module 2 is used for establishing communication connection between the upper computer and the plurality of KNX gateways in batches and performing data interaction with the KNX gateways in a pipeline communication mode.
The batch communication module 2 includes a connection establishing unit 201 and a pipeline communication unit 202. The connection establishing unit 201 starts threads with the same number according to the number of the KNX gateways; configuring a subprocess for each thread, wherein the subprocess is used for displaying data communicated by the upper computer and the KNX gateway; the subprocess receives the KNX gateway data sent by the upper computer, automatically establishes connection with the corresponding KNX gateway, and returns a connection result to the upper computer.
The pipeline communication unit 202 configures a data inflow pipeline and a data outflow pipeline for the corresponding thread based on the sub-process created by the connection establishing unit 201, and the sub-process automatically connects the data inflow pipeline and the data outflow pipeline; when the upper computer transmits data to the data inflow pipeline of the corresponding sub-process through the data outflow pipeline of the thread, the sub-process monitors a data inflow event, acquires the data and sends the data to the KNX gateway; when the KNX gateway transmits data to the upper computer, the corresponding sub-processes transmit the data to the data inflow pipeline of the corresponding thread through the data outflow pipeline, and the thread monitors the data inflow event, acquires the data and uploads the data to the upper computer.
The KNX multi-gateway communication device in this embodiment is a device corresponding to the KNX multi-gateway communication method in the first embodiment, and the functions and implementation methods of the data configuration module 1 and the batch communication module 2 are as described in the first embodiment, and are not described herein again.
EXAMPLE III
The embodiment provides a KNX multi-gateway communication device. Referring to fig. 5, the KNX multi-gateway communication device 500 may have a relatively large difference due to different configurations or performances, and may include one or more processors (CPUs) 510 (e.g., one or more processors) and a memory 520, one or more storage media 530 (e.g., one or more mass storage devices) storing applications 533 or data 532. Memory 520 and storage media 530 may be, among other things, transient or persistent storage. The program stored in the storage medium 530 may include one or more modules (not shown), each of which may include a series of instruction operations for the KNX multi-gateway communication device 500.
Further, the processor 510 may be configured to communicate with the storage medium 530, and execute a series of instruction operations in the storage medium 530 on the KNX multi-gateway communication device 500.
The KNX multi-gateway communication device 500 may also include one or more power supplies 540, one or more wired or wireless network interfaces 550, one or more input-output interfaces 560, and/or one or more operating systems 531, such as Windows server, Vista, and the like.
It will be appreciated by a person skilled in the art that the configuration of the KNX multi-gateway communication device shown in fig. 5 does not constitute a limitation of the KNX multi-gateway communication device and may comprise more or less components than those shown, or some components may be combined, or a different arrangement of components.
The present invention also provides a computer-readable storage medium, which may be a non-volatile computer-readable storage medium, and which may also be a volatile computer-readable storage medium. The computer-readable storage medium has stored therein instructions that, when executed on a computer, cause the computer to perform the steps of the KNX multi-gateway communication method of the first embodiment.
The modules in the second embodiment, if implemented in the form of software functional modules and sold or used as independent products, may be stored in a computer-readable storage medium. Based on such understanding, the technical solution of the present invention may be substantially or partially implemented in software, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-only memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
It can be clearly understood by those skilled in the art that, for convenience and brevity of description, the specific working processes of the above-described apparatuses and devices may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
The embodiments of the present invention have been described in detail with reference to the accompanying drawings, but the present invention is not limited to the above embodiments. Even if various changes are made to the present invention, it is still within the scope of the present invention if they fall within the scope of the claims of the present invention and their equivalents.

Claims (8)

1. A KNX multi-gateway communication method, comprising:
configuring KNX gateway data on an upper computer, wherein the KNX gateway data comprise a host IP, a KNX multicast address, a KNX multicast port number, a communication link port number, a data communication port number, a KNX gateway IP and a KNX gateway port number;
and establishing communication connection between the upper computer and the plurality of KNX gateways in batches, and performing data interaction with each KNX gateway in a pipeline communication mode.
2. The KNX multi-gateway communication method of claim 1, wherein the establishing the communication connection of the upper computer and the plurality of KNX gateways in bulk further comprises:
starting threads with the same number according to the number of the KNX gateways;
configuring a subprocess for each thread, wherein the subprocess is used for displaying data communicated by the upper computer and the KNX gateway;
and the subprocess receives the KNX gateway data sent by the upper computer, automatically establishes connection with the corresponding KNX gateway and returns a connection result to the upper computer.
3. The KNX multi-gateway communication method according to claim 1, wherein the performing data interaction with each KNX gateway in a pipe communication manner further comprises:
configuring a thread for each KNX gateway, and starting a subprocess for each thread; configuring a data inflow pipeline and a data outflow pipeline for corresponding threads based on the establishment of the subprocess, and automatically connecting the data inflow pipeline and the data outflow pipeline by the subprocess;
when the upper computer transmits data to a data inflow pipeline of a corresponding sub-process through a data outflow pipeline of the thread, the sub-process monitors a data inflow event, acquires the data and sends the data to the KNX gateway;
when the KNX gateway transmits data to the upper computer, the corresponding sub-processes transmit the data to the data inflow pipeline of the corresponding thread through the data outflow pipeline, and the thread acquires the data and uploads the data to the upper computer after monitoring a data inflow event.
4. The KNX multi-gateway communication method according to claim 1, wherein for a KNX gateway establishing a connection, periodically detecting whether a connection state of the KNX gateway is normal, and automatically disconnecting the KNX gateway if the connection state is abnormal, and reestablishing the connection.
5. A KNX multi-gateway communications device, comprising:
the data configuration module is used for configuring KNX gateway data to be located on an upper computer, wherein the KNX gateway data comprise a host computer IP, a KNX multicast address, a KNX multicast port number, a communication link port number, a data communication port number, a KNX gateway IP and a KNX gateway port number;
and the batch communication module is used for establishing communication connection between the upper computer and the plurality of KNX gateways in batches and performing data interaction with the KNX gateways in a pipeline communication mode.
6. The KNX multi-gateway communications device of claim 5, wherein the bulk communications module includes a connection establishment unit and a conduit communications unit;
the connection establishing unit starts threads with the same number according to the number of the KNX gateways; configuring a subprocess for each thread, wherein the subprocess is used for displaying data communicated by the upper computer and the KNX gateway; the sub-process receives KNX gateway data sent by the upper computer, automatically establishes connection with a corresponding KNX gateway, and returns a connection result to the upper computer;
the pipeline communication unit configures a data inflow pipeline and a data outflow pipeline for corresponding threads based on the establishment of the subprocess, and the subprocess is automatically connected with the data inflow pipeline and the data outflow pipeline; when the upper computer transmits data to a data inflow pipeline of a corresponding sub-process through a data outflow pipeline of the thread, the sub-process monitors a data inflow event, acquires the data and sends the data to the KNX gateway; when the KNX gateway transmits data to the upper computer, the corresponding sub-processes transmit the data to the data inflow pipeline of the corresponding thread through the data outflow pipeline, and the thread acquires the data and uploads the data to the upper computer after monitoring a data inflow event.
7. A KNX multi-gateway communications device, comprising:
a memory having instructions stored therein and a processor, the memory and the processor interconnected by a line;
the processor invokes the instructions in the memory to implement the KNX multi-gateway communication method of any one of claims 1-4.
8. A computer-readable storage medium, having stored thereon a computer program, which, when being executed by a processor, implements the KNX multi-gateway communication method according to any one of claims 1 to 4.
CN202111410134.7A 2021-11-25 2021-11-25 KNX multi-gateway communication method, KNX multi-gateway communication device, KNX multi-gateway communication equipment and storage medium Active CN114172800B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111410134.7A CN114172800B (en) 2021-11-25 2021-11-25 KNX multi-gateway communication method, KNX multi-gateway communication device, KNX multi-gateway communication equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111410134.7A CN114172800B (en) 2021-11-25 2021-11-25 KNX multi-gateway communication method, KNX multi-gateway communication device, KNX multi-gateway communication equipment and storage medium

Publications (2)

Publication Number Publication Date
CN114172800A true CN114172800A (en) 2022-03-11
CN114172800B CN114172800B (en) 2024-05-03

Family

ID=80481038

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111410134.7A Active CN114172800B (en) 2021-11-25 2021-11-25 KNX multi-gateway communication method, KNX multi-gateway communication device, KNX multi-gateway communication equipment and storage medium

Country Status (1)

Country Link
CN (1) CN114172800B (en)

Citations (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103618667A (en) * 2013-12-16 2014-03-05 苏州工业园区服务外包职业学院 Information transfer method, access gateway and system
CN103763187A (en) * 2014-02-17 2014-04-30 南京天溯自动化控制系统有限公司 IP gateway of EnOcean and KNX and communication network and method
US20160360594A1 (en) * 2013-10-10 2016-12-08 Digital Lumens, Inc. Methods, systems, and apparatus for intelligent lighting
CN206364826U (en) * 2016-12-29 2017-07-28 广州视声智能股份有限公司 A kind of synthesized gateway
CN107124481A (en) * 2017-05-09 2017-09-01 广州海盈电气技术有限公司 A kind of collocation method, system and the equipment of KNX group address
CN108494671A (en) * 2018-03-19 2018-09-04 珠海格力电器股份有限公司 A kind of gateway device
KR20190045681A (en) * 2017-10-24 2019-05-03 주식회사 사이클로직 Energy management system and Method of Data communication for the same
CN111030925A (en) * 2019-12-20 2020-04-17 杭州涂鸦信息技术有限公司 Multi-gateway communication method and system based on remote procedure call
CN111106955A (en) * 2019-12-17 2020-05-05 国网智能科技股份有限公司 Intelligent station communication gateway machine and communication method
CN111405018A (en) * 2020-03-10 2020-07-10 创新奇智(上海)科技有限公司 File transmission method and device, electronic equipment and storage medium
CN111416767A (en) * 2020-03-16 2020-07-14 广东科徕尼智能科技有限公司 Log output method, device and storage medium of edge intelligent gateway
CN113612665A (en) * 2021-08-27 2021-11-05 中国电信股份有限公司 Gateway detection method and device, electronic equipment and computer readable medium
WO2021228372A1 (en) * 2020-05-12 2021-11-18 Spagkakas Christodoulos Online training method

Patent Citations (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20160360594A1 (en) * 2013-10-10 2016-12-08 Digital Lumens, Inc. Methods, systems, and apparatus for intelligent lighting
CN103618667A (en) * 2013-12-16 2014-03-05 苏州工业园区服务外包职业学院 Information transfer method, access gateway and system
CN103763187A (en) * 2014-02-17 2014-04-30 南京天溯自动化控制系统有限公司 IP gateway of EnOcean and KNX and communication network and method
CN206364826U (en) * 2016-12-29 2017-07-28 广州视声智能股份有限公司 A kind of synthesized gateway
CN107124481A (en) * 2017-05-09 2017-09-01 广州海盈电气技术有限公司 A kind of collocation method, system and the equipment of KNX group address
KR20190045681A (en) * 2017-10-24 2019-05-03 주식회사 사이클로직 Energy management system and Method of Data communication for the same
CN108494671A (en) * 2018-03-19 2018-09-04 珠海格力电器股份有限公司 A kind of gateway device
CN111106955A (en) * 2019-12-17 2020-05-05 国网智能科技股份有限公司 Intelligent station communication gateway machine and communication method
CN111030925A (en) * 2019-12-20 2020-04-17 杭州涂鸦信息技术有限公司 Multi-gateway communication method and system based on remote procedure call
CN111405018A (en) * 2020-03-10 2020-07-10 创新奇智(上海)科技有限公司 File transmission method and device, electronic equipment and storage medium
CN111416767A (en) * 2020-03-16 2020-07-14 广东科徕尼智能科技有限公司 Log output method, device and storage medium of edge intelligent gateway
WO2021228372A1 (en) * 2020-05-12 2021-11-18 Spagkakas Christodoulos Online training method
CN113612665A (en) * 2021-08-27 2021-11-05 中国电信股份有限公司 Gateway detection method and device, electronic equipment and computer readable medium

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
朱莉;: "智能家居中KNX/DALI网关的实现", 通讯世界, no. 08, pages 231 - 232 *
朱莉等: "智能家居中的增强型KNXnet/IP路由器实现", 计算机应用于软件, vol. 34, no. 10, pages 169 *

Also Published As

Publication number Publication date
CN114172800B (en) 2024-05-03

Similar Documents

Publication Publication Date Title
US7957330B1 (en) Failsafe management of periodic communications during system upgrade for a network device
CN105450779B (en) The method of one household appliance connection multiserver
CN107948063B (en) Method for establishing aggregation link and access equipment
CN111447101A (en) Link detection method and device, computer equipment and storage medium
CN107360012B (en) Link state processing method and network node equipment
CN114172800A (en) KNX multi-gateway communication method, device, equipment and storage medium
CN115022384B (en) HSMS communication connection method and device
Cisco Configuring Interfaces
Cisco Configuring Interfaces
Cisco Configuring Interfaces
Cisco Configuring Interfaces
Cisco Configuring Interfaces
Cisco Configuring Interfaces
Cisco Configuring Interfaces
Cisco Configuring Interfaces
EP4239539A1 (en) Network system and control device
Cisco Configuring Interfaces
Cisco Configuring Interfaces
Cisco Configuring Interfaces
Cisco Configuring Interfaces
Cisco Configuring Interfaces
Cisco Configuring Interfaces
Cisco Configuring Interfaces
Cisco Configuring Interfaces
Cisco Configuring Interfaces

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