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

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

Info

Publication number
CN114172800B
CN114172800B CN202111410134.7A CN202111410134A CN114172800B CN 114172800 B CN114172800 B CN 114172800B CN 202111410134 A CN202111410134 A CN 202111410134A CN 114172800 B CN114172800 B CN 114172800B
Authority
CN
China
Prior art keywords
knx
data
gateway
communication
pipeline
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202111410134.7A
Other languages
Chinese (zh)
Other versions
CN114172800A (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

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, which aim at the problems that only one KNX gateway can be connected at a time in the prior KNX gateway communication, and the operation is complex, time consuming and labor consuming under the condition of KNX multi-gateway communication, 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 by configuring the KNX gateway data on an upper computer; and establishing communication connection between the upper computer and a 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, and simultaneously establishes connection and simultaneously disconnects with a plurality of KNX gateways; after connection is established, the user only needs to pay attention to data communication until the user actively disconnects the connection; and 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 large amount of data inflow is avoided.

Description

KNX multi-gateway communication method, KNX multi-gateway communication device, KNX multi-gateway communication 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, device, equipment and storage medium.
Background
KNX is the abbreviation of Konnex, the protocol is based on EIB, takes into account the physical layer specification of BatiBus and EHSA, absorbs the advantages of configuration modes in the BatiBus and EHSA and the like, and provides a complete solution for home and building automation.
The current KNX communication upper computer software, such as ETS (KNX programming tool software) which is designated by KNX association in a unified manner, can only establish connection with one KNX gateway and conduct data communication at the same time, and when data communication with another KNX gateway is needed, the connection established with the last KNX gateway needs to be disconnected first, and a new gateway is selected to reestablish connection, so that data communication can be conducted.
The application in actual projects will appear: how many KNX gateways are needed, how many upper computer communication software are needed to be configured, and each upper computer communication software is needed to be installed on different PC hosts; or a plurality of KNX gateways are arranged, but only one upper computer communication software is configured, and data communication is needed to be carried out by writing a large amount of automation scripts or manually switching the KNX gateways.
If there are a large number of KNX terminal devices in the actual project, but only one KNX communication gateway is used, data communication delay or even data communication cannot be performed due to too many terminal devices connected with the KNX gateway.
The above situation not only increases the cost and the operation complexity of the project, but also causes 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 back and forth 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 exiting, disconnecting all KNX gateways; and during the middle concrete operation, the connection state of other gateways is not worried, and the target gateway is directly selected for 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 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 a 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 batch establishment of communication connection between the upper computer and the plurality of KNX gateways further includes:
Starting the threads with the same number according to the number of KNX gateways;
configuring a subprocess for each thread, and displaying data communicated between the upper computer and the KNX gateway;
and the subprocess receives 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 by using a pipeline 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 the corresponding threads based on the establishment of the subprocesses, wherein the subprocesses are 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 subprocess through a data outflow pipeline of a thread, the subprocess monitors a data inflow event, acquires data and transmits the data to a KNX gateway;
when the KNX gateway transmits data to the upper computer, the corresponding subprocess transmits the data to a data inflow pipeline of a corresponding thread through a 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 one embodiment of the invention, for the KNX gateway for establishing connection, whether the connection state of the KNX gateway is normal or not is detected periodically, if abnormal occurs, the KNX gateway is automatically disconnected, and connection is reestablished.
A KNX multi-gateway communication apparatus comprising:
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 is used for establishing communication connection between the upper computer and the KNX gateways in batches and carrying out data interaction with the KNX gateways in a pipeline communication mode.
According to an embodiment of the invention, the batch communication module comprises a connection establishment unit and a pipeline communication unit;
The connection establishment unit starts the threads with the same number according to the number of KNX gateways; configuring a subprocess for each thread, and displaying data communicated between the upper computer and the KNX gateway; the subprocess 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 subprocesses, and the subprocesses are 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 subprocess through a data outflow pipeline of a thread, the subprocess monitors a data inflow event, acquires data and transmits the data to a KNX gateway; when the KNX gateway transmits data to the upper computer, the corresponding subprocess transmits the data to a data inflow pipeline of a corresponding thread through a 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 communication device comprising:
The device comprises a memory and a processor, wherein instructions are stored in the memory, and the memory and the processor are interconnected through a line;
And the processor calls the instruction in the memory to realize the KNX multi-gateway communication method in one embodiment of the 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 invention.
By adopting the technical scheme, the invention has the following advantages and positive effects compared with the prior art:
Aiming at the problems that only one KNX gateway can be connected at a time in the existing KNX gateway communication, and the operation is complex, time consuming and labor consuming under the condition of KNX multi-gateway communication, the KNX gateway communication method in an embodiment of the invention comprises the steps of 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 establishing communication connection between the upper computer and a 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, and simultaneously establishes connection and simultaneously disconnects with a plurality of KNX gateways; after connection is established, until the user actively disconnects, the user does not need to pay attention to the establishment and the closing of gateway connection any more, and only needs to pay attention to data communication; when the KNX gateway is switched to perform data communication, the connection with the last gateway is not required to be disconnected firstly, and then the connection with a new target gateway is established; and 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 large amount of data inflow is avoided.
Drawings
FIG. 1 is a diagram illustrating an interface of a host computer software according to an embodiment of the invention;
FIG. 2 is a schematic diagram of a connection between an upper computer and a KNX gateway according to an embodiment of the present invention;
FIG. 3 is a schematic diagram of pipeline communication in an embodiment of the present invention;
FIG. 4 is a block diagram of a KNX multi-gateway communication device in accordance with an embodiment of the present invention;
fig. 5 is a schematic diagram of a KNX multi-gateway communication device according to an embodiment of the invention.
Detailed Description
The following describes a KNX multi-gateway communication method, device, equipment and storage medium according to the present invention in further detail with reference to the accompanying drawings and specific embodiments. Advantages and features of the invention will become more apparent from the following description and from the claims.
Example 1
KNX gateway: and the data interaction device is arranged between KNX communication upper computer software and KNX terminal product equipment (such as a KNX lighting module). The upper computer software sends a data packet to the KNX gateway, and then sends the data packet to terminal product equipment through the KNX gateway; after the terminal product equipment produces data, the data are sent to the KNX gateway, and then the data are sent to the upper computer software by the KNX gateway.
The current KNX communication upper computer software, such as ETS (KNX programming tool software) which is designated by KNX association in a unified manner, can only establish connection with one KNX gateway and conduct data communication at the same time, and when data communication with another KNX gateway is needed, the connection established with the last KNX gateway needs to be disconnected first, and a new gateway is selected to reestablish connection, so that data communication can be conducted. If a plurality of KNX gateways exist, only one upper computer communication software is configured, and data communication is needed to be carried out by writing a large number of automatic scripts or manually switching the KNX gateways; if only one KNX communication gateway is used for a plurality of KNX terminal devices, data communication delay is caused by too many terminal devices connected to the KNX gateway, and even data communication cannot be performed.
Aiming at the problems, the embodiment provides a KNX multi-gateway communication method which is used for upper computer software, can be directly connected with all KNX gateways, generates a child process for each KNX gateway, uses the upper computer software as a father process, realizes the communication between the father process and the child process by utilizing a pipeline technology, and is matched with multiple threads and multiple processes, so that the communication of a plurality of KNX gateways is realized; the user only needs to select the target gateway to conduct data communication or develop customized for specific project services.
The KNX multi-gateway communication method comprises the following steps:
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 establishing communication connection between the upper computer and a plurality of KNX gateways in batches, and performing data interaction with each KNX gateway in a pipeline communication mode.
The KNX gateway data is configured on the upper computer, which can be understood that the upper computer software interface is provided with a setting item for adding gateway data, and the main added gateway data comprises: host computer IP, KNX multicast address, KNX multicast port number, communication link port number, data communication port number, KNX gateway IP, KNX gateway port number. After the gateway data is added, visual display is made in the interface, please refer to fig. 1, so that a user can conveniently and quickly know the added gateway data condition. The gateway data may also be modified after addition.
And establishing communication connection between the upper computer and a 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 KNX gateways is established in batches, and it can be understood that a button for one-key connection/disconnection is configured on an interface of the upper computer, and after the gateway data is added, a user operates the button, and the upper computer establishes connection with all the gateways at the same time. After the gateway connection is established successfully, visual effects exist in the interface to show that the gateway has established the connection.
Specifically, referring to fig. 2, firstly, the software starts the threads equal to the KNX gateways according to the number of the KNX gateways, and the threads are started first because different threads can execute different task operations, so that the specific operations (embodied in the specific content of the data packet) of each gateway by the user can be inconsistent.
When the threads are successfully started, each thread independently starts a sub-process. The subprocess is adopted to intuitively display the data communicated between the upper computer and the KNX gateway by using the interface, and the subprocess is adopted to intuitively check the data receiving and transmitting condition in the debugging and testing process of the user.
After the sub-process is successfully started, the upper computer (namely the parent process) transmits the basic data of each KNX gateway to the sub-process through a pipeline technology, and the sub-process acquires the data and automatically starts to establish connection with the KNX gateway.
After the gateway connection is established successfully, the subprocess uploads the data packet with the connection established successfully to the upper computer, and at the moment, the user can start to perform data communication with the KNX gateway.
The data communication between the upper computer and the KNX gateway adopts pipeline technology, please refer to FIG. 3. A pipeline is a communication scheme for sharing data between processes, in fact a section of shared memory. The Windows system uses the data stream I/0 mode to access the shared memory design, and the read by one process and the write by the other process are similar to the two ends of a pipeline. The pipeline is unidirectional, meaning 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, when the parent process has one data outflow pipeline, the child process must establish a corresponding data inflow pipeline, and the two pipelines are in butt joint to transfer data from the parent process to the child process; likewise, the data of the parent process flows into the pipe and must be matched by the data of the child process to upload the data from the child process to the parent process.
In this embodiment, each thread has established a data in pipe and a data out pipe at the moment the sub-process is 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 to monitor the data inflow pipeline of the thread; a loop process is also started in the sub-process for listening to the data flow pipeline of the sub-process.
The user selects a gateway to perform data communication (at this time, the operation of selecting the gateway is still needed, but other operations are not needed, such as disconnecting other gateways, and the like), after writing a data packet, the software triggers a issuing instruction, the data packet is transmitted to a data inflow pipeline of a corresponding subprocess in a data stream form through a data outflow pipeline of a corresponding thread, after the subprocess internal circulation processing monitors that the data inflow pipeline has data inflow, the data stream is analyzed, a complete data packet is obtained, and the data packet is issued to a KNX gateway; after the data is successfully issued to the KNX gateway and processed, the subprocess actively calls a data outflow pipeline, and a successful data packet is uploaded to the data inflow pipeline of the corresponding thread, and is fed back to the upper computer after being monitored by the cyclic processing of the thread.
And for the KNX gateway for establishing connection, periodically detecting whether the connection state of the KNX gateway is normal, and if abnormal, automatically disconnecting and reestablishing connection. In practical application, the method can detect once at regular intervals (such as 1 minute), actively remind the KNX gateway of abnormal connection after detecting abnormality for more than three times (including three times), automatically disconnect the connection established with the KNX gateway, and then attempt to reestablish the connection.
The KNX multi-gateway communication method in the embodiment is realized by combining multithreading and multiple processes through an anonymous pipeline technology based on KNX single gateway communication. The data packet issued by the upper computer has the mark of the target KNX gateway, so that the data packet can be directionally transferred, and the KNX multi-gateway data communication can be accurately realized. The KNX multi-gateway communication method can be operated in batches, and simultaneously establishes connection with a plurality of KNX gateways and simultaneously disconnects the connection. After connection is established, until the user actively disconnects, the user does not need to pay attention to the establishment and the closing of gateway connection any more, and only needs to pay attention to data communication; automatically detecting whether the connection state of the gateway is normal or not, and automatically disconnecting and reconnecting if the connection state of the gateway is abnormal in more than three times (including three times); through the queue mechanism established by pipeline data communication, the problem that the KNX bus is blocked and cannot normally communicate due to large amount of data inflow is avoided.
Example two
The present embodiment provides a KNX multi-gateway communication apparatus, please refer to fig. 4, which includes:
The data configuration module 1 is configured to configure 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 KNX gateways in batches and carrying out data interaction with the KNX gateways by adopting a pipeline communication mode.
The batch communication module 2 includes a connection establishment unit 201 and a pipe communication unit 202. The connection establishment unit 201 starts the threads with the same number according to the number of KNX gateways; configuring a subprocess for each thread, and displaying data communicated between the upper computer and the KNX gateway; the subprocess receives 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 pipe communication unit 202 configures a data inflow pipe and a data outflow pipe for the corresponding threads based on the sub-process created by the connection creation unit 201, and the sub-process automatically connects the data inflow pipe and the data outflow pipe; when the upper computer transmits data to the data inflow pipeline of the corresponding subprocess through the data outflow pipeline of the thread, the subprocess monitors a data inflow event, acquires data and transmits the data to the KNX gateway; when the KNX gateway transmits data to the upper computer, the corresponding subprocess transmits 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 the data inflow event.
The KNX multi-gateway communication apparatus in this embodiment is an apparatus corresponding to the KNX multi-gateway communication method in the first embodiment, and functions and implementation methods of the data configuration module 1 and the bulk communication module 2 are described in the first embodiment, and are not repeated here.
Example III
The embodiment provides KNX multi-gateway communication equipment. Referring to fig. 5, the KNX multi-gateway communication apparatus 500 may vary considerably in configuration or performance and may include one or more processors (central processing units, CPU) 510 (e.g., one or more processors) and memory 520, one or more storage media 530 (e.g., one or more mass storage devices) that store applications 533 or data 532. Wherein memory 520 and storage medium 530 may be transitory 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 on the KNX multi-gateway communication apparatus 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 apparatus 500.
KNX multi-gateway communication device 500 may also include one or more power sources 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 Serve, vista, and the like.
It will be appreciated by those skilled in the art that the KNX multi-gateway communication apparatus structure shown in fig. 5 is not limiting of the KNX multi-gateway communication apparatus and may include more or fewer components than shown, or may combine certain components, 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 which, when run on a computer, cause the computer to perform the steps of the KNX multi-gateway communication method of embodiment one.
The modules in the second embodiment may be stored in a computer-readable storage medium if implemented as software functional modules and sold or used as a separate product. Based on this understanding, the technical solution of the present invention may be embodied in essence or a part contributing to the prior art or all or part of the technical solution in the form of software, and the computer software is stored in a storage medium, and includes several instructions to cause a computer device (which may be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in 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 (Random access memory, RAM), a magnetic disk, or an optical disk, or other various media capable of storing program codes.
It will be clearly understood by those skilled in the art that, for convenience and brevity of description, the specific working process of the apparatus and device described above may refer to the corresponding process in the foregoing method embodiment, which is not repeated herein.
The embodiments of the present invention have been described in detail with reference to the drawings, but the present invention is not limited to the above embodiments. Even if various changes are made to the present invention, it is within the scope of the appended claims and their equivalents to fall within the scope of the invention.

Claims (5)

1. A KNX multi-gateway communication method, comprising:
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;
Establishing communication connection between an upper computer and a plurality of KNX gateways in batches, and performing data interaction with each KNX gateway in a pipeline communication mode;
the batch establishment of the communication connection between the upper computer and the KNX gateways further comprises the following steps:
Starting the threads with the same number according to the number of KNX gateways;
configuring a subprocess for each thread, and displaying data communicated between the upper computer and the KNX gateway;
The subprocess 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 data interaction with each KNX gateway by adopting the pipeline communication mode further comprises the following steps:
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 the corresponding threads based on the establishment of the subprocesses, wherein the subprocesses are 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 subprocess through a data outflow pipeline of a thread, the subprocess monitors a data inflow event, acquires data and transmits the data to a KNX gateway;
when the KNX gateway transmits data to the upper computer, the corresponding subprocess transmits the data to a data inflow pipeline of a corresponding thread through a data outflow pipeline, and the thread acquires the data and uploads the data to the upper computer after monitoring a data inflow event.
2. The KNX multi-gateway communication method according to claim 1, characterized in that, for the KNX gateway that establishes the connection, it is periodically checked whether the connection state of the KNX gateway is normal, and if abnormality occurs, it is automatically disconnected, and the connection is re-established.
3. A KNX multi-gateway communication apparatus, comprising:
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;
The batch communication module is used for establishing communication connection between the upper computer and the KNX gateways in batches and performing data interaction with the KNX gateways in a pipeline communication mode;
the batch communication module comprises a connection establishment unit and a pipeline communication unit;
The connection establishment unit starts the threads with the same number according to the number of KNX gateways; configuring a subprocess for each thread, and displaying data communicated between the upper computer and the KNX gateway; the subprocess 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 subprocesses, and the subprocesses are 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 subprocess through a data outflow pipeline of a thread, the subprocess monitors a data inflow event, acquires data and transmits the data to a KNX gateway; when the KNX gateway transmits data to the upper computer, the corresponding subprocess transmits the data to a data inflow pipeline of a corresponding thread through a data outflow pipeline, and the thread acquires the data and uploads the data to the upper computer after monitoring a data inflow event.
4. A KNX multi-gateway communication device, comprising:
The device comprises a memory and a processor, wherein instructions are stored in the memory, and the memory and the processor are interconnected through a line;
The processor invokes the instructions in the memory to implement the KNX multi-gateway communication method of claim 1 or 2.
5. A computer readable storage medium having stored thereon a computer program, characterized in that the computer program when executed by a processor implements the KNX multi-gateway communication method according to claim 1 or 2.
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 CN114172800A (en) 2022-03-11
CN114172800B true 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 (12)

* 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
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

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2015054611A1 (en) * 2013-10-10 2015-04-16 Digital Lumens Incorporated Methods, systems, and apparatus for intelligent lighting

Patent Citations (12)

* 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
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网关的实现;朱莉;;通讯世界(08);231-232 *
智能家居中的增强型KNXnet/IP路由器实现;朱莉等;计算机应用于软件;第34卷(第10期);第169~173页 *

Also Published As

Publication number Publication date
CN114172800A (en) 2022-03-11

Similar Documents

Publication Publication Date Title
EP1919138B1 (en) A method for implementing backup of the uplink
US7957330B1 (en) Failsafe management of periodic communications during system upgrade for a network device
JP2004192642A (en) Message communication system having high reliability capable of changing setting
CN107948063B (en) Method for establishing aggregation link and access equipment
CN107196820B (en) Switch performance test method, device and system
CN109412890B (en) DDS-based joint test platform middleware node state detection method
US11792098B2 (en) Link detection method and system
JP4616020B2 (en) Network monitoring program and network system
JP5365234B2 (en) Token error detection / recovery method between terminal devices
CN111030877A (en) Main/standby equipment switching method and device
CN107872361B (en) Processing device, network device, control method for processing device, control method for network device, and recording medium
JP4964666B2 (en) Computer, program and method for switching redundant communication paths
CN109039738B (en) DCS network equipment configuration and monitoring method, device, maintenance node and terminal
CN114172800B (en) KNX multi-gateway communication method, KNX multi-gateway communication device, KNX multi-gateway communication equipment and storage medium
CN101848165B (en) The method recovered after controlling interrupted communication link and interface board
CN103685017A (en) Message forwarding method in stacking system, stacking equipment and stacking system
KR101590590B1 (en) Control apparatus and method thereof in software defined network
CN111373700A (en) Communication system, controlled device, and control method of communication system
US20050216578A1 (en) Methods, devices and computer program products using a node affiliation protocol for monitoring and/or controlling networkable devices
JPH04299743A (en) Computer network system
CN107248935B (en) System and method for network management to discover and monitor network elements
CN111628891A (en) Method for realizing dual Ethernet redundancy based on QNX
WO2023185214A1 (en) Network switching method, node, electronic device and readable storage medium
WO2017219912A1 (en) Node control method and apparatus in distributed iptv system
JP2002026932A (en) Monitor control system

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