CN112039957B - Control system and control method of edge equipment - Google Patents

Control system and control method of edge equipment Download PDF

Info

Publication number
CN112039957B
CN112039957B CN202010816129.5A CN202010816129A CN112039957B CN 112039957 B CN112039957 B CN 112039957B CN 202010816129 A CN202010816129 A CN 202010816129A CN 112039957 B CN112039957 B CN 112039957B
Authority
CN
China
Prior art keywords
bus
edge
control program
target
internet
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
CN202010816129.5A
Other languages
Chinese (zh)
Other versions
CN112039957A (en
Inventor
鲁旭
章红春
刘鹏
张维
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Shougang Automation Information Technology Co Ltd
Original Assignee
Beijing Shougang Automation Information 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 Beijing Shougang Automation Information Technology Co Ltd filed Critical Beijing Shougang Automation Information Technology Co Ltd
Priority to CN202010816129.5A priority Critical patent/CN112039957B/en
Publication of CN112039957A publication Critical patent/CN112039957A/en
Application granted granted Critical
Publication of CN112039957B publication Critical patent/CN112039957B/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
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/12Protocols specially adapted for proprietary or special-purpose networking environments, e.g. medical networks, sensor networks, networks in vehicles or remote metering networks
    • H04L67/125Protocols specially adapted for proprietary or special-purpose networking environments, e.g. medical networks, sensor networks, networks in vehicles or remote metering networks involving control of end-device applications over a network
    • GPHYSICS
    • G16INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR SPECIFIC APPLICATION FIELDS
    • G16YINFORMATION AND COMMUNICATION TECHNOLOGY SPECIALLY ADAPTED FOR THE INTERNET OF THINGS [IoT]
    • G16Y40/00IoT characterised by the purpose of the information processing
    • G16Y40/30Control

Abstract

The invention discloses a control system of edge equipment, comprising: the system comprises an Internet of things platform, an edge device control box, a network interface module, a C-Bus and more than one set of C-Bus output unit; the edge device control box is accessed to the Internet of things platform; the network interface module is connected between the edge equipment control box and the C-Bus, the C-Bus output unit is connected with the C-Bus, a set of C-Bus output unit controls an edge equipment group, and the edge equipment group comprises N pieces of edge equipment; the edge equipment control box is provided with a C-Bus edge control program, and the C-Bus edge control program is accessed to a C-Bus and an Internet of things platform; the Internet of things platform is used for sending a control message to the C-Bus edge control program; the C-Bus edge control program assembles a C-Bus protocol message and sends the C-Bus protocol message to a target C-Bus output unit so as to enable target edge equipment to execute target actions; the control system realizes the control of various edge devices on the C-Bus system by the platform of the Internet of things.

Description

Control system and control method of edge equipment
Technical Field
The application relates to the technical field of control of edge equipment of an Internet of things, in particular to a control system and a control method of the edge equipment.
Background
Due to rapid development and combined application of communication technology, network technology and computer technology, the internet of things environment has become one of more and more important application environments of software and information systems; many software and information-based systems also derive functionality not previously available for interacting with and controlling an underlying system or internet of things device.
The C-Bus system is a distributed and Bus-type intelligent control system developed by Schneider electric subordinate Qisheng company, is mainly used for controlling a lighting system, and can also be used for systems such as fire control, security, access control and the like; the linkage of edge devices such as air conditioners, curtains, projectors, electric curtains and the like. The C-Bus system conforms to the international communication protocol Standard, and is IEEE Standard 802.3'CSMA/CD' widely applied to intelligent buildings. At present, a C-Bus system needs to use a special intelligent control panel customized by Schneider company for each type of edge equipment as an input unit, and is connected with various types of edge equipment through an output unit for control, so that the edge equipment in the C-Bus system cannot be uniformly controlled in the Internet of things, and various inconveniences are caused.
Disclosure of Invention
The invention provides a control system and a control method of edge equipment, which aim to solve or partially solve the technical problem of how to realize unified control of various edge equipment on a C-Bus system of the Internet of things.
In order to solve the above technical problem, the present invention provides a control system for an edge device, including: the system comprises an Internet of things platform, an edge device control box, a network interface module, a C-Bus and more than one set of C-Bus output unit; the edge device control box is accessed to the Internet of things platform; the network interface module is connected between the edge equipment control box and the C-Bus, the C-Bus output unit is connected with the C-Bus, a set of C-Bus output unit controls an edge equipment group, and the edge equipment group comprises N pieces of edge equipment; the edge equipment control box is provided with a C-Bus edge control program, and the C-Bus edge control program is accessed to a C-Bus and an Internet of things platform; n is more than or equal to 1 and is a positive integer;
the Internet of things platform is used for acquiring a path address of a target C-Bus output unit corresponding to the target edge device and designating a parameter value of the path address; sending a control message to the C-Bus edge control program, wherein the control message comprises a path address and a parameter value;
the C-Bus edge control program is used for assembling a C-Bus protocol message according to the control message; sending the C-Bus protocol message to a target C-Bus output unit through a C-Bus so that the target C-Bus output unit controls a target edge device group or target edge devices to execute target actions; the C-Bus protocol message comprises a group code of a target edge device group or a device code of the target edge device determined according to the path address and a target action code determined according to the parameter value.
Optionally, the internet of things platform is configured to manage an address mapping data pair of the C-Bus output unit, where the address mapping data pair includes a path address of the C-Bus output unit, a group code of an edge device group corresponding to the C-Bus output unit, and a device code corresponding to the edge device.
Based on the same inventive concept of the foregoing technical solution, the present invention further provides a control method of an edge device, which is applied to the control system in the foregoing technical solution, and the control method includes:
the method comprises the steps that an Internet of things platform obtains a path address of a target C-Bus output unit corresponding to target edge equipment and specifies a parameter value of the path address;
the Internet of things platform sends a control message to a C-Bus edge control program, wherein the control message comprises a path address and a parameter value;
the C-Bus edge control program receives the control message and assembles a C-Bus protocol message according to the control message; the C-Bus protocol message comprises a group code of a target edge device group or a device code of the target edge device determined according to a path address and a target action code determined according to a parameter value;
the C-Bus edge control program sends a C-Bus protocol message C-Bus to a target C-Bus output unit;
and the C-Bus output unit controls the target edge equipment group or the target edge equipment to execute the target action according to the C-Bus protocol message.
Optionally, the sending, by the internet of things platform, the control message to the C-Bus edge control program specifically includes:
the path address acquires the client-id of the C-Bus edge control program;
establishing TCP connection between the Internet of things platform and the C-Bus edge control program according to the client-id;
and the Internet of things platform specifies a parameter value corresponding to the path address, and sends the TCP control message to the C-Bus edge control program in a numerical value pair mode.
Further, assembling the C-Bus protocol message according to the control message specifically includes:
C-Bus edge control program extracts path address and parameter value from control message;
C-Bus edge control program inquires the group code of the target edge device group or the device code of the target edge device according to the path address;
the C-Bus edge control program converts the parameter value into a target action code;
and the C-Bus edge control program assembles the target action code, the group code of the target edge equipment group or the equipment code of the target edge equipment into a C-Bus protocol message.
According to the technical scheme, before the internet of things platform obtains the path address of the target C-Bus output unit corresponding to the target edge device and specifies the parameter value of the path address, the control method further comprises the following steps:
the control system for connecting and deploying the edge device specifically comprises:
deploying an edge device control box;
loading a network interface module on a C-Bus;
connecting the edge device control box with the network interface module;
accessing a C-Bus edge control program to a C-Bus;
importing the C-Bus output unit into a C-Bus edge control program;
accessing a C-Bus edge control program to an Internet of things platform;
synchronizing a C-Bus output unit managed by a C-Bus edge control program to an Internet of things platform;
maintaining an address mapping data pair of a C-Bus output unit in an Internet of things platform; the address mapping data pair comprises a path address of the C-Bus output unit, a group code of the edge device group corresponding to the C-Bus output unit and a device code of the edge device.
Optionally, accessing the C-Bus edge control program to the C-Bus specifically includes:
configuring a C-Bus protocol header;
configuring a C-Bus application address, wherein the C-Bus application address is used for specifying the position of an application code in a C-Bus protocol message;
configuring a C-Bus application code;
configuring a C-Bus edge device group address and an edge device address, wherein the C-Bus edge device group address and the edge device address are used for specifying the position of a C-Bus application code in a C-Bus protocol message;
configuring a C-Bus action code;
configuring a C-Bus action address, wherein the C-Bus action address is used for specifying the position of a C-Bus action code in a C-Bus protocol message;
and configuring a C-Bus protocol message assembler in the C-Bus edge control program, wherein the C-Bus protocol message assembler is used for assembling a C-Bus protocol message, and the C-Bus protocol message comprises a C-Bus protocol head, a C-Bus application address, a C-Bus application code, a C-Bus action address, a C-Bus action code and an end bit.
Optionally, importing the C-Bus output unit into a C-Bus edge control program, which specifically includes:
importing the list of all C-Bus output units into a C-Bus edge control program;
importing the lists of all the edge equipment groups and the lists of all the edge equipment into a C-Bus edge control program;
configuring a mapping relation between the C-Bus output unit and the corresponding edge equipment group and the corresponding N pieces of edge equipment;
and configuring the path address of each edge device group and each edge device in the platform of the Internet of things.
Optionally, the accessing of the C-Bus edge control program to the internet of things platform specifically includes:
acquiring a client-id of the C-Bus edge control program, and storing the client-id to the C-Bus edge control program and the Internet of things platform;
and the C-Bus edge control program is accessed to the Internet of things platform according to the TCP-IP address and the port provided by the Internet of things platform.
Optionally, synchronizing the C-Bus output unit managed by the C-Bus edge control program to the internet of things platform specifically includes:
establishing a TCP connection between a C-Bus edge control program and an Internet of things platform;
the C-Bus edge control program management sends the group code of the target edge equipment group, the equipment code of the target edge equipment and the path address to the Internet of things platform in a pair mode, so that the C-Bus output unit stores the group code-path address and the equipment code-path address in the Internet of things platform in a pair mode; the group code and the device code are respectively in one-to-one correspondence with the path address.
Through one or more technical schemes of the invention, the invention has the following beneficial effects or advantages:
the invention provides a control system of edge equipment, comprising: the system comprises an Internet of things platform, an edge device control box, a network interface module, a C-Bus and more than one set of C-Bus output unit; acquiring a path address of a target C-Bus output unit corresponding to target edge equipment and designating a parameter value of the path address through an Internet of things platform; sending a control message to a C-Bus edge control program, wherein the C-Bus edge control program is used for assembling a C-Bus protocol message according to the control message; sending the C-Bus protocol message to a target C-Bus output unit through a C-Bus so that the target C-Bus output unit controls a target edge device group or a target edge device to execute a target action; the control system is used for meeting the control requirement of the Internet of things of the intelligent building with the built or planned C-Bus system, and various edge devices on the C-Bus system are controlled on the platform of the Internet of things.
The foregoing description is only an overview of the technical solutions of the present invention, and the embodiments of the present invention are described below in order to make the technical means of the present invention more clearly understood and to make the above and other objects, features, and advantages of the present invention more clearly understandable.
Drawings
Various other advantages and benefits will become apparent to those of ordinary skill in the art upon reading the following detailed description of the preferred embodiments. The drawings are only for purposes of illustrating the preferred embodiments and are not to be construed as limiting the invention. Also, like reference numerals are used to refer to like parts throughout the drawings. In the drawings:
FIG. 1 shows a schematic configuration of a control system of an edge device according to one embodiment of the present invention;
FIG. 2 shows a flow diagram of a control method of an edge device according to one embodiment of the invention;
FIG. 3 shows a block diagram of a bus architecture according to one embodiment of the invention;
description of the reference numerals:
1. an Internet of things platform; 2. an edge device control box; 3. the system comprises a network interface module, a network interface module 4, a C-Bus 5 and a C-Bus output unit; 6. a group of edge devices; 61. an edge device; 7. an Internet of things gateway; 300. a bus; 301. a receiver; 302. a processor; 303. a transmitter; 304. a memory; 306. a bus interface.
Detailed Description
In order to make the present application more clearly understood by those skilled in the art to which the present application pertains, the following detailed description of the present application is made with reference to the accompanying drawings by way of specific embodiments. Throughout the specification, unless otherwise specifically noted, terms used herein should be understood as having meanings as commonly used in the art. Accordingly, unless defined otherwise, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this invention belongs. If there is a conflict, the present specification will control. Unless otherwise specifically stated, various apparatuses and the like used in the present invention are either commercially available or can be prepared by existing methods.
The term "and/or" herein is merely an association describing an associated object, meaning that three relationships may exist, e.g., a and/or B, may mean: a exists alone, A and B exist simultaneously, and B exists alone. In addition, the character "/" herein generally indicates that the former and latter related objects are in an "or" relationship.
In order to implement the control of the edge device on the C-Bus system on the internet of things, in an alternative embodiment, as shown in fig. 1, there is provided a control system of the edge device, including: the system comprises an Internet of things platform 1, an edge device control box 2, a network interface module 3, a C-Bus 4 and more than one set of C-Bus output unit 5; the edge device control box 2 is connected to the Internet of things platform 1; the network interface module 3 is connected between the edge device control box 2 and the C-Bus 4, the C-Bus output unit 5 is connected with the C-Bus 4, one set of C-Bus output unit 5 controls an edge device group 6, and the edge device group 6 comprises N edge devices 61; the edge equipment control box 2 is provided with a C-Bus edge control program, and the C-Bus edge control program is accessed to a C-Bus 4 and the Internet of things platform 1; n is more than or equal to 1 and is a positive integer;
the Internet of things platform 1 is used for acquiring a path address of a target C-Bus output unit corresponding to target edge equipment and designating a parameter value of the path address; sending a control message to the C-Bus edge control program, wherein the control message comprises a path address and a parameter value;
the C-Bus edge control program is used for assembling a C-Bus protocol message according to the control message; sending the C-Bus protocol message to a target C-Bus output unit through a C-Bus 4 so that the target C-Bus output unit controls a target edge device group or a target edge device to execute a target action; the C-Bus protocol message comprises a group code of a target edge device group or a device code of the target edge device determined according to the path address and a target action code determined according to the parameter value.
In general, the conventional C-Bus system includes an input unit, an output unit, and a system unit, and in the control system of the C-Bus edge device provided in this embodiment, the internet of things platform 1 replaces the input unit such as an intelligent panel, and is used as the input of external commands and signals, and the edge device control box 2 and the output unit control various edge devices to execute target actions, such as an edge device system of lighting, fire protection, security, entrance guard, air conditioner, curtain, projector, and the like.
Specifically, the edge device control box 2 is a main control computer provided with a C-Bus edge control program. The C-Bus edge control program comprises a C-Bus protocol message assembler, and the C-Bus protocol message assembler is used for assembling C-Bus protocol messages. Optionally, a Linux operating system and a JDK8 development tool are installed in the edge device control box 2. Specifically, the edge device control box 2 is connected to the internet of things platform 1 through the internet of things gateway 7.
The network interface module 3 is a C-Bus ethernet interface device for enabling communication between an ethernet network and a C-Bus network. Thereby, the C-Bus device is monitored at high speed through the TCP/IP protocol used by the computer network and the Internet. Optionally, the network interface module 3 may select schneider 5500cn.
The C-Bus output unit 5 is responsible for receiving the signal and controlling the edge device to execute the target action, such as adjusting the brightness of the light. The C-Bus output unit 5 directly controls the edge devices 61, and each set of C-Bus output unit 5 can be connected with a plurality of edge devices 61, and the plurality of edge devices 61 form the edge device group 6.
In the C-Bus system, all unit devices (except a power supply) are built with a microprocessor and a memory unit, and are connected to a network through signal lines. Optionally, the signal line is a twisted pair, that is, the network interface module 3 is connected to the edge device control box 2,C-Bus 4 through a twisted pair, and is connected to the network interface module 3 through a twisted pair. UTP5 line (category five line) is preferably used. All edge devices and output units are connected to the C-Bus network via a C-Bus 4.
In order to control a plurality of output units and edge device groups 6/edge devices 61 corresponding to the output units on the platform 1 of the internet of things, optionally, the platform 1 of the internet of things establishes a database for managing address mapping data pairs of the C-Bus output unit 5, where the address mapping data pairs include a path address of the C-Bus output unit 5, a group code of the edge device group 6 corresponding to the C-Bus output unit 5, and a device code corresponding to the edge device 61; the group code, the device code and the path address are in one-to-one correspondence.
An application process of the control system based on the edge device provided by the embodiment is as follows:
after determining a target edge device/target edge device group and a target action to be controlled, the internet of things platform 1 queries an address, namely a path address, of a target C-Bus output unit 5 corresponding to the target edge device; then, obtaining the client-id corresponding to the C-Bus edge control program through a path address; acquiring TCP connection with a C-Bus edge control program through a client-id; then, according to the target action to be executed to the target edge device/target edge device group, the parameter value of the path address is appointed, and the path address and the parameter value are sent to a TCP control message to a C-Bus edge control program in a numerical value pair mode; after the C-Bus edge control program receives the control message, extracting a path address and a parameter value; C-Bus edge control program inquires the device code of the corresponding target edge device or the group code of the target edge device group according to the path address; the C-Bus edge control program converts the parameter value into a target action code; the C-Bus edge control program assembles a C-Bus protocol message and sends the message to a C-Bus 4; the target C-Bus output unit sends a control level to the target edge device when receiving the C-Bus protocol message; the target edge device performs the target action.
The present embodiment provides a control system of an edge device, including: the system comprises an Internet of things platform, an edge device control box, a network interface module, a C-Bus and more than one set of C-Bus output unit; acquiring a path address of a target C-Bus output unit corresponding to target edge equipment and designating a parameter value of the path address through an Internet of things platform; sending a control message to a C-Bus edge control program, wherein the C-Bus edge control program is used for assembling a C-Bus protocol message according to the control message; sending the C-Bus protocol message to a target C-Bus output unit through a C-Bus so that the target C-Bus output unit controls a target edge device group or target edge devices to execute target actions; the control system is used for meeting the control requirement of the Internet of things of the intelligent building with the built or planned C-Bus system, and various edge devices on the C-Bus system are controlled on the platform of the Internet of things.
Based on the same inventive concept of the foregoing embodiment, in a further alternative embodiment, as shown in fig. 2, there is provided a control method of an edge device, which is applied to the control system in the foregoing embodiment, the control method includes the following steps:
s1: the method comprises the steps that an Internet of things platform obtains a path address of a target C-Bus output unit corresponding to target edge equipment and specifies a parameter value of the path address;
specifically, after determining the target edge device/target edge device group and the target action to be controlled; and the Internet of things platform inquires the address of a target C-Bus output unit corresponding to the target edge equipment, namely a path address.
S2: the Internet of things platform sends a control message to a C-Bus edge control program, wherein the control message comprises a path address and a parameter value;
one alternative for the internet of things platform to send a control message to the C-Bus edge control program is as follows:
the path address acquires the client-id of the C-Bus edge control program;
establishing TCP connection between the Internet of things platform and the C-Bus edge control program according to the client-id;
and the platform of the Internet of things designates a parameter value corresponding to the path address, and sends the TCP control message to the C-Bus edge control program in a numerical value pair mode by using the path address and the parameter value.
Namely: obtaining a client-id corresponding to the C-Bus edge control program through path; acquiring TCP connection with a C-Bus edge control program through a client-id; and simultaneously, specifying a parameter value of the path, and sending a TCP message to the C-Bus edge control program in a path and parameter value pair mode, wherein the message is marked as a control message.
S3: the C-Bus edge control program receives the control message and assembles a C-Bus protocol message according to the control message; the C-Bus protocol message comprises a group code of a target edge device group or a device code of the target edge device determined according to a path address and a target action code determined according to a parameter value;
one alternative for assembling a C-Bus protocol message from a control message is:
C-Bus edge control program extracts path address and parameter value from control message;
C-Bus edge control program inquires the group code of the target edge device group or the device code of the target edge device according to the path address;
the C-Bus edge control program converts the parameter value into a target action code;
and the C-Bus edge control program assembles the target action code, the group code of the target edge equipment group or the equipment code of the target edge equipment into a C-Bus protocol message.
Namely: after the C-Bus edge control program receives the control message, extracting a path and a parameter value from the control message; the control box program inquires the corresponding edge equipment group or edge equipment code according to the path; the control box program converts the parameter values into action codes. And a C-Bus protocol message assembler in the C-Bus edge control program assembles the group code or the equipment code and the target action code into a C-Bus protocol message.
S4: the C-Bus edge control program sends a C-Bus protocol message C-Bus to a target C-Bus output unit;
s5: and the C-Bus output unit controls the target edge equipment group or the target edge equipment to execute the target action according to the C-Bus protocol message.
Specifically, the output unit receives the C-Bus protocol packet, i.e., sends a control level to the edge device, and the edge device executes an expected (target) action according to the control level.
The embodiment provides a control method of edge equipment, and the technical effect of uniformly controlling a plurality of C-Bus edge equipment on an Internet of things platform is achieved.
In order to implement connection between the platform of the internet of things, the C-Bus system, and the C-Bus edge device, based on the same inventive concept in the foregoing embodiment, in yet another optional embodiment, before the platform of the internet of things obtains a path address of a target C-Bus output unit corresponding to the target edge device and specifies a parameter value of the path address, the control method further includes:
s0: the control system for connecting and deploying the edge device specifically comprises:
s01: deploying an edge device control box;
s02: loading a network interface module on a C-Bus;
s03: connecting the edge device control box with the network interface module;
s04: accessing a C-Bus edge control program to a C-Bus;
s05: importing the C-Bus output unit into a C-Bus edge control program;
s06: accessing a C-Bus edge control program to an Internet of things platform;
s07: synchronizing a C-Bus output unit managed by a C-Bus edge control program to an Internet of things platform;
s08: maintaining address mapping data pairs of the C-Bus output unit in the platform of the Internet of things; the address mapping data pair comprises a path address of the C-Bus output unit, a group code of the edge device group corresponding to the C-Bus output unit and a device code of the edge device.
For S01, specifically, a Linux operating system is embedded in the edge device control box, a JDK8 development tool is installed, and a C-Bus edge control program is installed.
For S02, specifically, a twisted pair is used to connect the network interface module and the C-Bus, and an IP address is configured for the network interface module.
For S03, specifically, the network interface module and the edge device control box are connected by using a twisted pair; and configuring the IP address of the edge device control box to enable the edge device control box and the network interface module to be in the same network segment.
For S04, optionally, accessing the C-Bus edge control program to the C-Bus specifically includes:
configuring a C-Bus protocol header;
configuring a C-Bus application address, wherein the C-Bus application address is used for specifying the position of an application code in a C-Bus protocol message;
configuring a C-Bus application code;
configuring a C-Bus edge device group address and an edge device address, wherein the C-Bus edge device group address and the edge device address are used for specifying the position of a C-Bus application code in a C-Bus protocol message;
configuring a C-Bus action code;
configuring a C-Bus action address, wherein the C-Bus action address is used for specifying the position of a C-Bus action code in a C-Bus protocol message;
and configuring a C-Bus protocol message assembler in the C-Bus edge control program, wherein the C-Bus protocol message assembler is used for assembling a C-Bus protocol message, and the C-Bus protocol message comprises a C-Bus protocol head, a C-Bus application address, a C-Bus application code, a C-Bus action address, a C-Bus action code and an end bit.
Specifically, after the C-Bus edge control program is accessed to the C-Bus according to the above scheme, the C-Bus protocol message assembler in the C-Bus edge control program follows: and assembling the equipment code and the action code into a C-Bus protocol message by using an assembly format of a protocol header, an application code, a group, an equipment code, an action code and an end bit.
For S05, optionally, importing the C-Bus output unit into a C-Bus edge control program, which specifically includes:
importing the list of all C-Bus output units into a C-Bus edge control program;
importing the lists of all the edge equipment groups and the lists of all the edge equipment into a C-Bus edge control program;
configuring a mapping relation between the C-Bus output unit and the corresponding edge equipment group and the corresponding N pieces of edge equipment;
and configuring the path address of each edge device group and each edge device in the platform of the Internet of things.
Specifically, the output unit directly controls the edge device; a plurality of edge devices form a group; the output unit may send the action code directly to one edge device or may broadcast the action code directly to a group. When the C-Bus output unit is imported, the C-Bus output unit is imported into a control box program; importing a group code list of the C-Bus edge equipment group and an equipment code list of the edge equipment into a control box program; configuring the corresponding relation between the output unit and the group code/equipment code; and configuring a path address of each group code/equipment code in the platform of the Internet of things.
For S06, optionally, accessing the C-Bus edge control program to the internet of things platform specifically includes:
acquiring a client-id of the C-Bus edge control program, and storing the client-id to the C-Bus edge control program and the Internet of things platform;
and the C-Bus edge control program is accessed to the Internet of things platform according to the TCP-IP address and the port provided by the Internet of things platform.
Specifically, each commercial C-Bus edge device control box has a unique client-id; the client-id is obtained by the negotiation between the Internet of things platform and a C-Bus edge control program; storing the client-id in both the Internet of things platform and the C-Bus edge control program; the Internet of things platform provides an access IP address and a port, and a TCP protocol is used by default; the C-Bus edge control program configures an Internet of things platform access IP and a port; and the C-Bus edge control program is used as a client to access the Internet of things platform.
For S07, optionally, synchronizing the C-Bus output unit managed by the C-Bus edge control program to the internet of things platform specifically includes:
establishing a TCP connection between a C-Bus edge control program and an Internet of things platform;
the C-Bus edge control program management sends the group code of the target edge equipment group, the equipment code of the target edge equipment and the path address to the Internet of things platform in pairs so that the C-Bus output unit stores the group code-path address and the equipment code-path address in the Internet of things platform in pairs; the group code and the device code are respectively in one-to-one correspondence with the path address.
Specifically, the C-Bus output unit stores the codes of the edge devices in pairs in the form of edge device group codes/edge device codes and path addresses in the Internet of things platform; the group code/equipment code corresponds to the path address one by one; and the C-Bus edge control program acquires TCP connection with the Internet of things platform, all the group codes/equipment codes and the path address are transmitted to the Internet of things platform in pairs, and the TCP message at the moment is marked as an address mapping initialization message.
For S08, specifically, when a certain edge device group code/edge device code is added or changed, the C-Bus edge control program sends the group code/device code and the path address to the platform of the internet of things in a pair, and the TCP message is marked as an address mapping update message; when a certain group code/equipment code is deleted, the control box program sends the group code/equipment code and the path address to the Internet of things platform in a pair, and the TCP message is marked as an address mapping deletion message; and the Internet of things platform maintains the corresponding relation between the group code/equipment code and the path address according to the message type and the message content.
The embodiment provides a control method of edge devices, which connects an internet of things platform and a C-Bus system, and realizes that the internet of things platform controls various edge devices on the C-Bus system.
Based on the same inventive concept as the aforementioned embodiments, the present invention also provides a computer-readable storage medium on which a computer program is stored, which, when executed by a processor, implements the steps of the control method in the aforementioned embodiments.
As with the figure 3,C-Bus architecture (represented by Bus 300), bus 300 may include any number of interconnected buses and bridges, bus 300 linking together various circuits including one or more processors, represented by processor 302, and memory, represented by memory 304. The bus 300 may also link together various other circuits such as peripherals, voltage regulators, power management circuits, and the like, which are well known in the art, and therefore, will not be described any further herein. A bus interface 306 provides an interface between the bus 300 and the receiver 301 and transmitter 303. The receiver 301 and the transmitter 303 may be the same element, i.e., a transceiver, providing a means for communicating with various other apparatus over a transmission medium.
The processor 302 is responsible for managing the bus 300 and general processing, and the memory 304 may be used for storing data used by the processor 302 in performing operations.
Through one or more embodiments of the invention, the invention has the following advantages or advantages:
the invention provides a control system of edge equipment, comprising: the system comprises an Internet of things platform, an edge device control box, a network interface module, a C-Bus and more than one set of C-Bus output unit; acquiring a path address of a target C-Bus output unit corresponding to target edge equipment and designating a parameter value of the path address through an Internet of things platform; sending a control message to a C-Bus edge control program, wherein the C-Bus edge control program is used for assembling a C-Bus protocol message according to the control message; sending the C-Bus protocol message to a target C-Bus output unit through a C-Bus so that the target C-Bus output unit controls a target edge device group or target edge devices to execute target actions; the control system is used for meeting the control requirement of the Internet of things of an intelligent building with a built or planned C-Bus system, and various edge devices on the C-Bus system are controlled on the platform of the Internet of things.
As will be appreciated by one skilled in the art, embodiments of the present invention may be provided as a method, system, or computer program product. Accordingly, the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present invention is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
It will be apparent to those skilled in the art that various changes and modifications may be made in the present invention without departing from the spirit and scope of the invention. Thus, if such 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 such modifications and variations. It will be apparent to those skilled in the art that various changes and modifications may be made in the present application without departing from the spirit and scope of the application. Thus, if such modifications and variations of the present application fall within the scope of the claims of the present application and their equivalents, the present application is intended to include such modifications and variations as well.

Claims (9)

1. A control system for an edge device, the control system comprising: the system comprises an Internet of things platform, an edge device control box, a network interface module, a C-Bus and more than one set of C-Bus output unit; the edge device control box is accessed to the Internet of things platform; the network interface module is connected between the edge device control box and the C-Bus, the C-Bus output unit is connected with the C-Bus, a set of C-Bus output units controls an edge device group, and the edge device group comprises N edge devices; the edge equipment control box is provided with a C-Bus edge control program, and the C-Bus edge control program is accessed to the C-Bus and the Internet of things platform; n is more than or equal to 1 and is a positive integer;
the Internet of things platform is used for acquiring a path address of a target C-Bus output unit corresponding to target edge equipment and appointing a parameter value of the path address; sending a control message to the C-Bus edge control program, wherein the control message comprises the path address and the parameter value; the address mapping data pair comprises a path address of the C-Bus output unit, a group code of an edge device group corresponding to the C-Bus output unit and a device code corresponding to the edge device;
the C-Bus edge control program is used for assembling a C-Bus protocol message according to the control message; sending the C-Bus protocol message to the target C-Bus output unit through the C-Bus so that the target C-Bus output unit controls a target edge device group or a target edge device to execute a target action; the C-Bus protocol message includes a group code of the target edge device group or a device code of the target edge device determined according to the path address, and a target action code determined according to the parameter value.
2. A control method of an edge device, applied to the control system according to claim 1, the control method comprising:
the Internet of things platform acquires a path address of a target C-Bus output unit corresponding to target edge equipment and specifies a parameter value of the path address;
the Internet of things platform sends a control message to the C-Bus edge control program, wherein the control message comprises the path address and the parameter value;
the C-Bus edge control program receives the control message and assembles a C-Bus protocol message according to the control message; the C-Bus protocol message comprises a group code of the target edge device group or a device code of the target edge device determined according to the path address and a target action code determined according to the parameter value;
the C-Bus edge control program sends the C-Bus protocol message to the target C-Bus output unit through the C-Bus;
and the C-Bus output unit controls the target edge equipment group or the target edge equipment to execute the target action according to the C-Bus protocol message.
3. The control method according to claim 2, wherein the sending of the control packet to the C-Bus edge control program by the internet of things platform specifically includes:
acquiring the client-id of the C-Bus edge control program through the path address;
establishing a TCP connection between the Internet of things platform and the C-Bus edge control program according to the client-id;
and the Internet of things platform appoints the parameter value corresponding to the path address, and sends the TCP control message to the C-Bus edge control program in a numerical value pair mode by using the path address and the parameter value.
4. The control method according to claim 3, wherein assembling the C-Bus protocol packet according to the control packet specifically comprises:
the C-Bus edge control program extracts the path address and the parameter value from the control message;
the C-Bus edge control program inquires the group code of the target edge equipment group or the equipment code of the target edge equipment according to the path address;
the C-Bus edge control program converts the parameter value into the target action code;
and the C-Bus edge control program assembles the target action code, the group code of the target edge equipment group or the equipment code of the target edge equipment into the C-Bus protocol message.
5. The control method according to claim 2, wherein before the platform of the internet of things acquires a path address of a target C-Bus output unit corresponding to a target edge device and specifies a parameter value of the path address, the control method further comprises:
the control system for connecting and deploying the edge device specifically comprises:
deploying the edge device control box;
loading the network interface module on the C-Bus;
connecting the edge device control box with the network interface module;
accessing the C-Bus edge control program to a C-Bus;
importing the C-Bus output unit into the C-Bus edge control program;
accessing the C-Bus edge control program to the Internet of things platform;
synchronizing the C-Bus output unit managed by the C-Bus edge control program to the Internet of things platform;
maintaining address mapping data pairs of the C-Bus output unit in the Internet of things platform; the address mapping data pair comprises a path address of the C-Bus output unit, a group code of an edge device group corresponding to the C-Bus output unit and a device code of the edge device.
6. The method according to claim 5, wherein the accessing the C-Bus edge control program to the C-Bus comprises:
configuring a C-Bus protocol header;
configuring a C-Bus application address, wherein the C-Bus application address is used for specifying the position of an application code in the C-Bus protocol message;
configuring a C-Bus application code;
configuring a C-Bus edge device group address and an edge device address, wherein the C-Bus edge device group address and the edge device address are used for specifying the position of the C-Bus application code in the C-Bus protocol message;
configuring a C-Bus action code;
configuring a C-Bus action address, wherein the C-Bus action address is used for specifying the position of the C-Bus action code in the C-Bus protocol message;
and configuring a C-Bus protocol message assembler in the C-Bus edge control program, wherein the C-Bus protocol message assembler is used for assembling the C-Bus protocol message, and the C-Bus protocol message comprises the C-Bus protocol header, the C-Bus application address, the C-Bus application code, the C-Bus action address, the C-Bus action code and an end bit.
7. The control method according to claim 5, wherein the importing the C-Bus output unit into the C-Bus edge control program specifically comprises:
importing the list of all the C-Bus output units into the C-Bus edge control program;
importing the list of all the edge device groups and the list of all the edge devices into the C-Bus edge control program;
configuring a mapping relation between the C-Bus output unit and the corresponding edge device group and the corresponding N edge devices;
and configuring the path address of each edge device group and each edge device in the platform of the Internet of things.
8. The control method according to claim 5, wherein the accessing the C-Bus edge control program to the internet of things platform specifically includes:
acquiring a client-id of the C-Bus edge control program, and storing the client-id to the C-Bus edge control program and the Internet of things platform;
and the C-Bus edge control program is accessed to the Internet of things platform according to the TCP-IP address and the port provided by the Internet of things platform.
9. The control method according to claim 5, wherein the synchronizing the C-Bus output unit managed by the C-Bus edge control program to the internet of things platform specifically comprises:
establishing a TCP connection between the C-Bus edge control program and the Internet of things platform;
the C-Bus edge control program management sends the group code of the target edge equipment group, the equipment code of the target edge equipment and the path address to the Internet of things platform in a pair mode, so that the C-Bus output unit stores the group code-path address and the equipment code-path address in the Internet of things platform in a pair mode; and the group code and the equipment code are respectively in one-to-one correspondence with the path address.
CN202010816129.5A 2020-08-14 2020-08-14 Control system and control method of edge equipment Active CN112039957B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010816129.5A CN112039957B (en) 2020-08-14 2020-08-14 Control system and control method of edge equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010816129.5A CN112039957B (en) 2020-08-14 2020-08-14 Control system and control method of edge equipment

Publications (2)

Publication Number Publication Date
CN112039957A CN112039957A (en) 2020-12-04
CN112039957B true CN112039957B (en) 2022-10-21

Family

ID=73578174

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010816129.5A Active CN112039957B (en) 2020-08-14 2020-08-14 Control system and control method of edge equipment

Country Status (1)

Country Link
CN (1) CN112039957B (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103179027A (en) * 2011-12-22 2013-06-26 中兴通讯股份有限公司 Method and system for realizing compatibility of electrical appliance, and universal peripheral access gateway
CN103713612A (en) * 2014-01-03 2014-04-09 左华亮 Intelligent home system solution facilitating personalized customization and expansion
CN110708808A (en) * 2019-11-06 2020-01-17 浙江创意声光电科技有限公司 Wisdom urban lighting ecosystem

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2019032728A1 (en) * 2017-08-08 2019-02-14 Sentinel Labs, Inc. Methods, systems, and devices for dynamically modeling and grouping endpoints for edge networking

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103179027A (en) * 2011-12-22 2013-06-26 中兴通讯股份有限公司 Method and system for realizing compatibility of electrical appliance, and universal peripheral access gateway
CN103713612A (en) * 2014-01-03 2014-04-09 左华亮 Intelligent home system solution facilitating personalized customization and expansion
CN110708808A (en) * 2019-11-06 2020-01-17 浙江创意声光电科技有限公司 Wisdom urban lighting ecosystem

Also Published As

Publication number Publication date
CN112039957A (en) 2020-12-04

Similar Documents

Publication Publication Date Title
US7761563B2 (en) BACnet communication Status objects and methods of determining communication status of BACnet devices
US20170315522A1 (en) Virtual simulator and building management system including the same
US20130332929A1 (en) Workflow Decision Management With Workflow Administration Capacities
US6653933B2 (en) Autonomous local area distributed network
EP3919992A1 (en) Method and system for managing virtual controllers in a building management system
EP3919991A2 (en) Method and system for configuring a building management system
US11940786B2 (en) Building management system and method with virtual controller and failsafe mode
US11782410B2 (en) Building management system with control logic distributed between a virtual controller and a smart edge controller
JP5542772B2 (en) Building equipment management system connection system, building equipment management system connection method, and building equipment management system connection program
EP3334098B1 (en) Method, communication web service, web server, and client for providing network communication service between ip devices via the internet
US10735478B2 (en) Controller and method for setting up communication links to redundantly operated controllers in an industrial automation system
US20210320851A1 (en) Simulation System and Method for Simulating Processing of Reservation Enquiries for Multicast Data Streams in Communications Networks
CN112039957B (en) Control system and control method of edge equipment
WO2024051708A1 (en) Control method, system and apparatus, electronic device, storage medium, and program product
CN106130863B (en) Transfer approach, device and the system of LAN protocol message
US10715396B2 (en) Support apparatus, non-transitory computer readable recording medium and setting method
JP7028025B2 (en) Information processing systems, edge devices, and information processing methods
US10554433B2 (en) Method for discovering the configuration of a home-automation facility
KR100605203B1 (en) Network device
KR20140106976A (en) Building automation system, gateway comprised therein and method of operating the gateway
KR101527373B1 (en) Divided hierarchical network system based on software defined networks
TWI673981B (en) The processing method and the system of the remote device about the abstraction and behavior simulation
WO2023132033A1 (en) Relay device, relay method, and program
Steven Tom PHD et al. Campus Challenge, Part 1
CN110753075B (en) Method and system for processing abstract and simulation behaviors of remote equipment

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