Communication control methods, devices, terminal equipment and readable storage media
By introducing a transfer controller and dynamic device address allocation into the elevator control system, the problems of low communication flexibility and efficiency in the existing elevator control system are solved, and convenient and efficient communication and network management between controllers are realized.
Patent Information
- Application Number
- CN202211461026.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-11-17
- Publication Date
- 2025-10-31
- Estimated Expiration
- 2042-11-17
AI Technical Summary
The communication methods between controllers in existing elevator control systems are inflexible and inefficient, resulting in the inability of controllers to communicate normally. This is especially true when there are a large number of controllers, which can easily lead to device address conflicts and make the communication process cumbersome.
The system obtains access commands from the host computer through a relay controller, identifies the controller to be accessed, forwards the commands within the controller network, dynamically allocates device addresses, constructs a flexible controller network, and enables communication between any controllers.
It improves the flexibility and efficiency of communication between controllers, avoids device address conflicts, realizes efficient and convenient communication between the host computer and any controller, and supports remote monitoring of the Internet of Things and remote upgrade of controller programs.
Smart Images

Figure CN115834284B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of communication control technology, and in particular to a communication control method, apparatus, terminal equipment, and computer-readable storage medium. Background Technology
[0002] Elevator operation requires the coordinated work of multiple elevator controllers, which together constitute the elevator control system. In practical applications, these controllers are installed in different locations within the elevator shaft according to their functions. They are connected to each other via various communication buses, with multiple controllers on each bus consisting of a master communication unit and several slave communication units. The necessary data exchange for elevator operation is achieved through communication between the master unit and the individual slave units. A host computer, such as a PC, can connect to the controllers and use communication protocols to access them, read and write parameters or registers, and upgrade the controller software.
[0003] However, in existing elevator control systems, the communication methods between controllers are inflexible and inefficient, which greatly reduces the control efficiency of the elevator system.
[0004] For example, controllers not on the same communication bus cannot communicate with each other; controllers on the same communication bus can only communicate between the master and slave units, and slave units cannot communicate with each other; two controllers that can communicate can only exchange data using a specific protocol, and cannot exchange data using a general protocol; controllers in an elevator control system are all assigned a fixed device address for communicating with the host computer, and when there are many controllers, the device addresses of some controllers may conflict, making it impossible for controllers to communicate normally. Summary of the Invention
[0005] The main objective of this invention is to provide a communication control method, apparatus, terminal device, and computer-readable storage medium, which aims to achieve flexible and efficient communication between controllers based on a controller network, thereby improving the control efficiency of the controllers.
[0006] To achieve the above objectives, the present invention provides a communication control method, which is applied to a relay controller, and the communication control method includes:
[0007] Obtain an access command triggered by a host computer connected to the relay controller;
[0008] Determine the controller to be accessed in a preset controller network corresponding to the access command;
[0009] The access command is forwarded from the relay controller to the controller to be accessed through the controller network, so that the controller to be accessed can return the corresponding response data to the host computer based on the access command.
[0010] Optionally, the controller network includes a master controller, and before the step of determining the controller to be accessed in the preset controller network corresponding to the access command, the method further includes:
[0011] Obtain device information connected to the main controller, and determine the controller network based on the device information, wherein the controller network includes the main controller and slave controllers;
[0012] Assign a corresponding device address to the controller;
[0013] The network information of the controller network, the device address assigned to the slave controller, and the device address of the master controller are sent from the master controller to the slave controller.
[0014] Optionally, the step of sending the network information of the controller network, the device address assigned to the slave controller, and the device address of the master controller from the master controller to the slave controller includes:
[0015] The network information of the controller network, the device address assigned to the slave controller, and the device address of the master controller are sent from the master controller to all slave controllers in the controller network level by level. The network information includes: network topology and network routing information.
[0016] Optionally, the step of obtaining device information accessing the main controller includes:
[0017] When the access controller connects to the main controller, the device information of the access controller is collected;
[0018] When the access controller connects to the slave controller, it acquires the device information of the access controller that is collected by the slave controller and forwarded level by level.
[0019] Optionally, the communication control method further includes:
[0020] The system obtains device information of a new device that is connected to the slave controller, and adds the new device to the controller network based on the device information. When the new device connects to the slave controller, the slave controller forwards the device information of the new device step by step until it is forwarded to the master controller.
[0021] Optionally, after the step of determining the controller to be accessed in a preset controller network corresponding to the access instruction, the method further includes:
[0022] Based on the device address in the access command, determine whether the relay controller currently connected to the host computer is the controller to be accessed;
[0023] If not, then the step of forwarding the access instruction from the relay controller to the controller to be accessed through the controller network is performed;
[0024] If so, then the forwarding of the access command will end.
[0025] Optionally, before the step of forwarding the access instruction from the relay controller to the controller to be accessed via the controller network, the method further includes:
[0026] The routing information corresponding to the access instruction is determined based on the device address and network information of the controller network in the access instruction;
[0027] The forwarding path of the access command is determined based on the routing information;
[0028] The step of forwarding the access command from the relay controller to the controller to be accessed through the controller network includes:
[0029] Through the controller network, the access command is sent from the relay controller to the next controller in the forwarding path according to the forwarding path, so that the next controller can forward the access command until the access command reaches the controller to be accessed.
[0030] To achieve the above objectives, the present invention also provides a communication control device, the communication control device comprising:
[0031] The acquisition module is used to acquire access commands triggered by a host computer connected to the relay controller;
[0032] The determination module is used to determine the controller to be accessed in a preset controller network corresponding to the access instruction;
[0033] The forwarding module is used to forward the access command from the relay controller to the controller to be accessed through the controller network, so that the controller to be accessed can return the corresponding response data to the host computer based on the access command.
[0034] To achieve the above objectives, the present invention also provides a terminal device, the terminal device including a memory, a processor, and a communication control program stored in the memory and executable on the processor, wherein the communication control program, when executed by the processor, implements the steps of the communication control method as described above.
[0035] Furthermore, to achieve the above objectives, the present invention also proposes a computer-readable storage medium storing a communication control program, which, when executed by a processor, implements the steps of the communication control method described above.
[0036] To achieve the above objectives, the present invention also provides a computer program product, the computer program product comprising a computer program, which, when executed by a processor, implements the steps of the communication control method described above.
[0037] This invention provides a communication control method, apparatus, terminal device, computer-readable storage medium, and computer program product. The method involves: acquiring an access command triggered by a host computer connected to a relay controller; determining the controller to be accessed in a preset controller network corresponding to the access command; and forwarding the access command from the relay controller to the controller to be accessed through the controller network, so that the controller to be accessed can return corresponding response data to the host computer based on the access command.
[0038] As can be seen, compared to existing elevator control systems, in this invention, after receiving an access command triggered by the host computer, the relay controller determines the corresponding controller to be accessed in the controller network. It then forwards the access command through the controllers in the network, enabling the controller to receive the command and return corresponding response data to the host computer, thus completing communication between the host computer and any controller. Therefore, this invention achieves the forwarding of access commands through flexible interaction between controllers in the network. That is, controllers not on the same communication bus can communicate, and controllers at the same level can also communicate, simplifying the controller communication method and enabling convenient communication between controllers. Based on this, this invention achieves efficient and convenient communication between the host computer and any controller in the controller network, thereby improving controller-based control efficiency. Attached Figure Description
[0039] Figure 1 This is a schematic diagram of the hardware operating environment involved in the embodiments of the present invention;
[0040] Figure 2 This is a first flowchart illustrating an embodiment of the communication control method of the present invention;
[0041] Figure 3 This is a schematic diagram of the controller topology of an embodiment of the communication control method of the present invention;
[0042] Figure 4 This is a schematic diagram of the controller networking timing of an embodiment of the communication control method of the present invention;
[0043] Figure 5 This is a second flowchart illustrating an embodiment of the communication control method of the present invention;
[0044] Figure 6 This is a schematic diagram of the functional modules of an embodiment of the communication control device of the present invention.
[0045] The realization of the objective, functional features and advantages of the present invention will be further explained in conjunction with the embodiments and with reference to the accompanying drawings. Detailed Implementation
[0046] It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
[0047] like Figure 1 As shown, Figure 1 This is a schematic diagram of the device structure of the hardware operating environment involved in the embodiments of the present invention.
[0048] The terminal device in this embodiment of the invention can be a controller, such as a controller in an elevator system, or a mobile phone, tablet computer, server, and other network devices. The terminal device in this embodiment can be used for communication control.
[0049] like Figure 1 As shown, the terminal device may include: a processor 1001, such as a CPU; a network interface 1004; a user interface 1003; a memory 1005; and a communication bus 1002. The communication bus 1002 is used to enable communication between these components. The user interface 1003 may include a display screen and an input unit such as a keyboard. Optionally, the user interface 1003 may also include a standard wired interface or a wireless interface. The network interface 1004 may optionally include a standard wired interface or a wireless interface (such as a Wi-Fi interface). The memory 1005 may be high-speed RAM or non-volatile memory, such as a disk drive. Optionally, the memory 1005 may also be a storage device independent of the aforementioned processor 1001.
[0050] Those skilled in the art will understand that Figure 1 The device structure shown does not constitute a limitation on the communication control device, and may include more or fewer components than shown, or combine certain components, or have different component arrangements.
[0051] like Figure 1 As shown, the memory 1005, as a computer storage medium, may include an operating system, a network communication module, a user interface module, and a communication control program. The operating system is a program that manages and controls the hardware and software resources of the device, supporting the operation of the communication control program and other software or programs. Figure 1 In the device shown, the user interface 1003 is mainly used for data communication with the client; the network interface 1004 is mainly used for establishing a communication connection with the server; and the processor 1001 can be used to call the communication control program stored in the memory 1005 and perform the following operations:
[0052] Obtain an access command triggered by a host computer connected to the relay controller;
[0053] Determine the controller to be accessed in a preset controller network corresponding to the access command;
[0054] The access command is forwarded from the relay controller to the controller to be accessed through the controller network, so that the controller to be accessed can return the corresponding response data to the host computer based on the access command.
[0055] Furthermore, the controller network includes a master controller. Before the step of determining the controller to be accessed in the preset controller network corresponding to the access instruction, the processor 1001 can be used to call the communication control program stored in the memory 1005 and perform the following operations:
[0056] Obtain device information connected to the main controller, and determine the controller network based on the device information, wherein the controller network includes the main controller and slave controllers;
[0057] Assign a corresponding device address to the controller;
[0058] The network information of the controller network, the device address assigned to the slave controller, and the device address of the master controller are sent from the master controller to the slave controller.
[0059] Furthermore, the processor 1001 can be used to call the communication control program stored in the memory 1005 and perform the following operations:
[0060] The network information of the controller network, the device address assigned to the slave controller, and the device address of the master controller are sent from the master controller to all slave controllers in the controller network level by level. The network information includes: network topology and network routing information.
[0061] Furthermore, the processor 1001 can be used to call the communication control program stored in the memory 1005 and perform the following operations:
[0062] When the access controller connects to the main controller, the device information of the access controller is collected;
[0063] When the access controller connects to the slave controller, it acquires the device information of the access controller that is collected by the slave controller and forwarded level by level.
[0064] Furthermore, the processor 1001 can be used to call the communication control program stored in the memory 1005 and perform the following operations:
[0065] The system obtains device information of a new device that is connected to the slave controller, and adds the new device to the controller network based on the device information. When the new device connects to the slave controller, the slave controller forwards the device information of the new device step by step until it is forwarded to the master controller.
[0066] Furthermore, after determining the controller to be accessed in a preset controller network corresponding to the access instruction, the processor 1001 can invoke the communication control program stored in the memory 1005 and perform the following operations:
[0067] Based on the device address in the access command, determine whether the relay controller currently connected to the host computer is the controller to be accessed;
[0068] If not, then the step of forwarding the access instruction from the relay controller to the controller to be accessed through the controller network is performed;
[0069] If so, then the forwarding of the access command will end.
[0070] Further, prior to the step of forwarding the access command from the relay controller to the controller to be accessed via the controller network, the processor 1001 may invoke the communication control program stored in the memory 1005 and perform the following operations:
[0071] The routing information corresponding to the access instruction is determined based on the device address and network information of the controller network in the access instruction;
[0072] The forwarding path of the access command is determined based on the routing information;
[0073] The step of forwarding the access command from the relay controller to the controller to be accessed through the controller network includes:
[0074] Through the controller network, the access command is sent from the relay controller to the next controller in the forwarding path according to the forwarding path, so that the next controller can forward the access command until the access command reaches the controller to be accessed.
[0075] Reference Figure 2 , Figure 2 This is a flowchart illustrating the first embodiment of the communication control method of the present invention.
[0076] The embodiments of the present invention provide an embodiment of a communication control method. It should be noted that although the logical order is shown in the flowchart, in some cases, the steps shown or described may be executed in a different order than that shown here.
[0077] Considering that in existing elevator control systems, various controllers are installed at different locations in the elevator shaft according to their functions, and can communicate with each other via various communication buses such as CAN bus, RS485 bus (generally referred to as RS485 / EIA-485, belonging to the OSI model physical layer, with electrical characteristics specified as 2-wire, half-duplex, and multi-point communication), SPI (Serial Peripheral Interface, a high-speed, full-duplex synchronous communication bus), and RS232 (generally referred to as RS232, a serial data communication interface standard developed by the Electronic Industries Alliance). On each communication bus, multiple controllers are divided into a communication master and several communication slaves. The master communicates with each slave individually to achieve the data exchange necessary for elevator operation. Specifically, for example... Figure 3 The diagram shows a common network topology for an elevator control system. The elevator main controller (which can be an integrated controller) is the core of the entire control system and is the first-level device in the network. Controllers connected to the first-level device via CAN or 485 bus are called second-level devices, and controllers connected to the second-level device via 485 are called third-level devices, and so on. The first-level device is the superior device of the second-level device, and the second-level device is the subordinate device of the first-level device. In this embodiment, the connection relationship between the devices at each level is not specifically limited. The key point is that the devices in the elevator control system are cascaded.
[0078] It is evident that existing elevator control systems suffer from at least the following problems:
[0079] 1) In the existing elevator control system, controllers that are not on the same communication bus cannot communicate with each other. Even among controllers on the same communication bus, only the master (data sender) and slave (data receiver) can communicate with each other, and slaves cannot communicate with each other.
[0080] 2) Two controllers that can communicate can only exchange data using a specific protocol and cannot exchange data using a general protocol, which greatly limits the communication scenarios between controllers;
[0081] 3) Since each controller in the elevator control system is assigned a fixed device address to communicate with the host computer corresponding to the controller (in this embodiment, the host computer can be a PC, a mobile device, or other network devices), when there are a large number of controllers, there may be a conflict in the device address definitions of some controllers.
[0082] 4) The host computer can only access the controller directly connected to it through a single device address, and cannot access multiple controllers at the same time.
[0083] Therefore, the above problems are all caused by the existing controller networking method. In the existing controller network, the controller has poor communication flexibility, low communication efficiency, and a relatively cumbersome communication process, which makes the control efficiency of the elevator control system very low.
[0084] To address the aforementioned issues, this embodiment proposes a communication control method. This method is specifically applicable to elevator control systems and also to other control systems containing multiple controllers. In this embodiment, by dynamically and automatically networking the elevator controllers, data interconnection between all controllers within the network is achieved, improving the integrity, convenience, and flexibility of elevator control system management. Furthermore, this invention allows any controller within the network to access all controllers, enabling remote monitoring of controllers via the Internet of Things (IoT) and remote upgrades of controller programs. Additionally, a host computer (including mobile devices, PCs, and other network devices) can interact with any controller in the network.
[0085] The communication control method in this embodiment can be applied to a relay controller, such as... Figure 3 As shown, the controller includes a master controller in the primary device and slave controllers at other levels. In this embodiment, the master controller can be an integrated controller. All other controllers are defined as slave controllers. It can be understood that each controller is independent of the others; that is, any controller can act as a data sender (i.e., as a master) to send data to other controllers, and similarly, any controller can act as a data receiver (i.e., as a slave) to receive data sent by other controllers. This enables flexible communication between the controllers. For example, as... Figure 3As shown, the controller in the secondary device can act as a slave to receive data sent by the master controller, and can also act as a master to send data to the controller in the tertiary device. Furthermore, controllers at the same level can also communicate with each other. It is worth noting that, in this embodiment, any of the above controllers can act as a relay controller.
[0086] The communication control method in this embodiment may specifically include the following steps:
[0087] Step S10: Obtain the access command triggered by the host computer connected to the relay controller;
[0088] It should be noted that in this embodiment, the host computer can be a mobile terminal or a PC, etc. The host computer has built-in corresponding control software, which enables the user of the host computer to trigger an access command for any controller through the control software. At this time, the access command will be sent to the controller that is directly connected to the host computer.
[0089] Based on this, the relay controller currently connected to the host computer will receive the above-mentioned access command, wherein the relay controller is located in the preset controller network in this embodiment.
[0090] Step S20: Determine the controller to be accessed in a preset controller network corresponding to the access instruction;
[0091] Step S30: The access command is forwarded from the relay controller to the controller to be accessed through the controller network, so that the controller to be accessed can return the corresponding response data to the host computer based on the access command.
[0092] After receiving the above access command, the relay controller currently connected to the host computer will determine the controller to be accessed in the preset controller network corresponding to the access command. The preset controller network is a pre-built network containing multiple controllers. In this embodiment, the controller network can specifically be an elevator controller network, which contains at least one master controller and multiple slave controllers. Each controller is an independent device, that is, any two controllers can communicate and transmit data with each other.
[0093] Furthermore, when the relay controller directly connected to the host computer is not the controller to be accessed corresponding to the access command, the relay controller also needs to forward the access command to send the access command to the controller to be accessed. The access command includes, but is not limited to, the device address of the controller to be accessed and general protocol data, so that the controller to be accessed can respond when it receives the access command and return the corresponding response data to the host computer that sent the access command.
[0094] In another embodiment, the controller network includes at least one master controller and multiple slave controllers. If the controller directly connected to the host computer is the master controller, upon receiving an access command, if the master controller determines that it is not the controller to be accessed, it needs to forward the access command through the slave controllers in the controller network until the access command is forwarded to the controller to be accessed. If the controller directly connected to the host computer is a slave controller, the slave controller will also perform a similar operation until the access command is forwarded to the controller to be accessed. It is understood that in this embodiment, the host computer can communicate with any controller in the controller network, including the master controller and any slave controller, realizing flexible, convenient, and efficient control of the elevator control system.
[0095] In this embodiment, after the relay controller currently connected to the host computer receives the above access instruction, it will determine the controller to be accessed in the preset controller network corresponding to the access instruction. If the relay controller currently directly connected to the host computer is not the controller to be accessed corresponding to the access instruction, the relay controller also needs to forward the access instruction to send the access instruction to the controller to be accessed.
[0096] As can be seen, compared to existing elevator control systems, in this invention, the relay controller, after receiving the access command triggered by the host computer, determines the corresponding controller to be accessed. If the relay controller determines that the device address of the controller to be accessed by the host computer is not its own address, it needs to forward the access command so that the controller to be accessed can receive the access command. The access controller then returns corresponding response data to the host computer based on the access command, completing the communication between the host computer and any controller.
[0097] Therefore, in this invention, flexible communication between controllers in the controller network, that is, controllers not on the same communication bus can communicate and controllers at the same level can also communicate, simplifies the controller communication method and realizes convenient communication between controllers. On this basis, this invention realizes efficient and convenient communication between the host computer and the controller, thereby improving the control efficiency based on the controller.
[0098] Furthermore, based on the first embodiment of the communication control method of the present invention, a second embodiment of the communication control method of the present invention is proposed.
[0099] In this embodiment, when the controller network includes a main controller, the process may further include the following steps before step S20:
[0100] Step S40: Obtain device information connected to the main controller, and determine the controller network based on the device information. The controller network includes the main controller and slave controllers.
[0101] In the initial stage of the controller dynamic self-organizing network, the main controller needs to obtain the device information of each controller connected to the elevator control system (i.e., the access controller). Then, the main controller will use the obtained device information to build the initial controller network. In this embodiment, the controller network includes a main controller and multiple slave controllers. The device information includes, but is not limited to, the device's MAC address (unique identification code), controller type, and which communication bus it is located on.
[0102] It should be noted that in this embodiment, all controllers other than the master controller are defined as slave controllers, for example, such as Figure 3 As shown, apart from the primary device, i.e. the main controller, other level devices can all act as slave controllers. It is worth noting that in this embodiment, only the main controller can be used to perform self-organizing network operations, while other slave controllers cannot perform controller networking.
[0103] Step S50: Assign a corresponding device address to the slave controller;
[0104] After constructing a controller network based on the acquired device information, the main controller in the elevator system assigns corresponding device addresses to all devices in the network (i.e., assigns corresponding device addresses to each controller) to enable flexible communication among all devices in the network. This ensures that each controller has a corresponding device address. This embodiment avoids device address conflicts and guarantees the independence of each controller, enabling all controllers to communicate and greatly improving control efficiency.
[0105] Specifically, the main controller assigns corresponding device addresses to all slave controllers in the controller network in sequence. In this embodiment, the sequence can be the controller access order, that is, the order in which the main controller obtains device information from the accessing controllers (for example, assigning device addresses to the earliest accessing controller first, and so on). In this embodiment, the device address allocation order is not specifically limited and can be adjusted according to parameters such as the number of accessing controllers and time.
[0106] Step S60: The network information of the controller network, the device address assigned to the slave controller, and the device address of the master controller are sent from the master controller to the slave controller.
[0107] After the master controller constructs the controller network and assigns corresponding device addresses to each controller in the controller network, in order to enable arbitrary data communication among the controllers in the controller network, the master controller also needs to send all the network information of the controller network, the device addresses assigned to each slave controller, and the device address information of the master controller to each controller. This ensures that each slave controller stores complete network information and the device addresses of all other controllers in the controller network (including the master controller and other slave controllers) in its own storage medium. The network information includes, but is not limited to, the network topology and network routing information.
[0108] In another embodiment, after the main controller sends the device address and network information of the controller network, in order for all controllers in the controller network to receive and store the network information and the device addresses of all other controllers, the slave controllers directly connected to the main controller (e.g., Figure 3 The secondary device in the network will first receive the network information and device address sent by the master controller. Then, the slave controller of the secondary device forwards the network information and device address to each slave controller in the tertiary device, and so on. Finally, each controller in the controller network obtains and stores the network information of the controller network and the device addresses of all other controllers.
[0109] Through the above operations, in this embodiment, the main controller realizes communication control. The controllers in the network are independent devices, and any two of them can communicate with each other. This includes controllers that are not on the same communication bus, controllers of the same level, and communication is not limited to a specific protocol (i.e., communication between controllers can be carried out as long as a communication protocol is used). It is generally applicable to communication scenarios of various controllers and realizes flexible, efficient and convenient controller data communication transmission.
[0110] Further, in step S60 above, "sending the network information of the controller network, the device address assigned to the slave controller, and the device address of the master controller from the master controller to the slave controller" may include:
[0111] Step S601: The network information of the controller network, the device address assigned to the slave controller, and the device address of the master controller are sent from the master controller to all slave controllers in the controller network level by level. The network information includes: network topology and network routing information.
[0112] After the master controller assigns the corresponding device addresses to the slave controllers in the controller network, since the controller network generally contains at least one master controller and multiple slave controllers, in order to enable flexible communication between all controllers in the controller network, the master controller also needs to send the device addresses of each controller to all controllers in the controller network, so that each controller stores the device addresses of all other controllers. At the same time, it also needs to send network information containing network topology and network routing information to all controllers in the controller network.
[0113] like Figure 3 As shown, the specific method for sending network information and device addresses is as follows: the main controller (i.e., Figure 3 The primary device in the network sends network information and device addresses to all controllers (i.e., slave controllers) in the secondary device. After receiving the network information and device addresses, the slave controllers in the secondary device then send them to the controllers in the tertiary device, and so on. In the end, each controller in the controller network obtains and stores the network information of the controller network and the device addresses of all other controllers.
[0114] Furthermore, in step S40 above, "obtaining device information accessing the main controller" may include:
[0115] Step S401: When the access controller connects to the main controller, collect the device information of the access controller;
[0116] Step S402: When the access controller connects to the slave controller, the device information of the access controller collected and forwarded by the slave controller level by level is obtained.
[0117] It should be noted that, in this embodiment, various types of controllers need to be added according to the actual usage requirements of the elevator control system, such as... Figure 3 The locations where the door controllers or IC card controllers shown are connected also vary. Furthermore, as... Figure 4 As shown, the access controller may be an N-level device (N≠1, meaning the access device does not act as the main controller).
[0118] Specifically, for example, in order for the main controller to obtain device information of all access devices to build a controller network, if the access controller is directly connected to the main controller (i.e., the access controller is connected to the main controller), then the main controller can directly collect the device information of the access controller.
[0119] If the access controller is directly connected to any slave controller (i.e., the access controller is connected to the slave controller), then the slave controller first needs to collect the device information of the access controller. Based on this, the device information is forwarded to the master controller by the slave controllers at each level through a hierarchical forwarding method. At this time, the master controller can also obtain the device information of the access controller.
[0120] Furthermore, the communication control method of the present invention may further include:
[0121] Step S70: Obtain device information of a new device that has accessed the slave controller, and add the new device to the controller network according to the device information of the new device. When the new device accesses the slave controller, the slave controller forwards the device information of the new device level by level until the device information is forwarded to the master controller.
[0122] It should be noted that, in this embodiment, as Figure 4 As shown, if a new device (i.e., a new controller) is connected during the use of the elevator control system, the connection methods for the new device can include: connecting from slave controllers at other levels other than the primary master controller, or connecting from the master controller in the primary device.
[0123] Specifically, for example, when a new device is connected from a controller at a level other than the primary device, such as... Figure 4 As shown, for example, if a new controller is connected from a slave controller in a level 3 device, the slave controller in the level 3 device will collect the device information of the new controller and forward the device information to the level 2 device. The slave controller in the level 2 device will then send the device information to the master controller in the level 1 device. Finally, the master controller can add new devices to the controller network at any time and assign them corresponding device addresses. This enables flexible configuration of the controller network and allows for continuous functional expansion based on actual usage needs, greatly improving the control efficiency of the elevator system and meeting user requirements.
[0124] In another embodiment, when a new device is connected from the master controller of a primary device, the master controller can directly collect the device information of the new device, without the need for forwarding device information between slave controllers.
[0125] In this embodiment, during the initial communication control phase, the main controller needs to obtain device information from the controllers connected to the elevator control system. Then, the main controller uses this information to construct the initial controller network. Next, it assigns corresponding device addresses to all devices in the controller network (i.e., assigns corresponding device addresses to each controller), ensuring that each controller has a corresponding device address. The main controller also needs to send all network information and the device addresses assigned to each slave controller to each controller, so that each slave controller stores complete network information and the device addresses of all other controllers in the controller network in its own storage medium.
[0126] As can be seen, compared to existing elevator control systems, this invention, after constructing a controller network based on the acquired device information of the access devices, assigns corresponding device addresses to the controllers in the network and sends these addresses to the slave controllers. This ensures that the controllers in the network are independent devices that can communicate with each other based on their device addresses. Therefore, this invention improves the flexibility of communication between controllers in the elevator control system; controllers not on the same communication bus can communicate, and controllers at the same level can also communicate, simplifying the controller communication method, achieving convenient communication between controllers, and thus improving elevator control efficiency. Furthermore, in this invention, since the main controller uniformly assigns device addresses, device address conflicts are avoided, making it suitable for controller networking scenarios involving a large number of controllers.
[0127] Furthermore, based on the first and second embodiments of the communication control of the present invention, a third embodiment of the communication control of the present invention is proposed.
[0128] In this embodiment, after step S20, "determining the controller to be accessed in a preset controller network corresponding to the access instruction", the following may also be included:
[0129] Step S80: Based on the device address in the access instruction, determine whether the relay controller currently connected to the host computer is the controller to be accessed;
[0130] Step S90: If not, then execute the step of forwarding the access command from the relay controller to the controller to be accessed through the controller network;
[0131] Step S100: If yes, then stop forwarding the access instruction.
[0132] After receiving an access command triggered by the host computer, the relay controller currently connected to the host computer needs to determine whether it is the controller to be accessed based on parameters such as the device address and communication protocol data in the received access command. If the relay controller determines that the device address of the controller to be accessed by the host computer is not its own address, it needs to forward the access command so that the controller to be accessed can receive the access command. If the relay controller determines that the device address of the controller to be accessed by the host computer is its own address, it will not forward the access command, but will parse the access command, respond to the access command, and return the received response data to the host computer along the original path. In this embodiment, any controller in the controller network can connect to the host computer and obtain access commands sent by the host computer.
[0133] Furthermore, before step S30 above, "forwarding the access command from the relay controller to the controller to be accessed through the controller network," the following may also be included:
[0134] Step A: Determine the routing information corresponding to the access instruction based on the device address in the access instruction and the network information of the controller network;
[0135] Step B: Determine the forwarding path of the access command based on the routing information;
[0136] The aforementioned step S30 may include:
[0137] Step S301: Through the controller network, the access instruction is sent from the relay controller to the next controller in the forwarding path according to the forwarding path, so that the next controller can forward the access instruction until the access instruction reaches the controller to be accessed.
[0138] It should be noted that in this embodiment, since each relay controller stores the device addresses, network topology, and network routing information of all other controllers, upon receiving an access command, the relay controller can determine the device address of the controller to be accessed based on the access command and query the network topology and network routing information to determine the forwarding path that can reach the controller to be accessed. Therefore, when the relay controller currently connected to the host computer is not the controller to be accessed, before forwarding the access command triggered by the host computer, it is necessary to pre-determine the optimal forwarding path of the access command so that the access can reach the controller to be accessed as quickly and safely as possible when forwarded according to the forwarding path, thereby improving elevator control efficiency.
[0139] Specifically, for example, when the controller currently connected to the host computer determines from the received access command that the device address of the controller to be accessed by the host computer is not its own device address, it will search the network information to determine the correct routing information and plan the best forwarding path for the access command based on the routing information.
[0140] Based on this, the access command from the host computer is sent out along the specified path to the next slave controller in the aforementioned forwarding path. When the next slave controller receives the access command, it will also determine whether it is the controller to be accessed. If it determines that it is not the controller to be accessed, it will continue to forward the access command along the aforementioned forwarding path. In this way, the access command triggered by the host computer is finally sent to the controller to be accessed.
[0141] It is worth noting that, such as Figure 3 As shown, in this embodiment, access commands can be forwarded between controllers at the same level, as well as between controllers at different levels, which greatly improves the flexibility of controller communication and does not require additional hardware, thus saving elevator control costs.
[0142] In this embodiment, it is determined whether the current relay controller is the controller to be accessed. If the relay controller determines that the device address of the controller to be accessed by the host computer is not its own address, it needs to forward the access command so that the controller to be accessed can receive the access command. If the relay controller determines that the device address of the controller to be accessed by the host computer is exactly its own address, it does not forward the access command, but parses the access command, responds to the access command, and returns the received response data to the host computer along the original path. If the controller currently directly connected to the host computer is not the controller to be accessed corresponding to the access command, the controller also needs to forward the access command to send the access command to the controller to be accessed. When the controller currently connected to the host computer determines that the device address of the controller to be accessed by the host computer is not its own device address based on the received access command, it will look up network information to determine the correct routing information and plan the best forwarding path for the access command based on the routing information. On this basis, the general protocol data of the host computer is sent out according to the specified path to the next controller in the above forwarding path, and finally the access command triggered by the host computer is sent to the controller to be accessed.
[0143] As can be seen, in this invention, a controller network containing all controllers of the elevator system is constructed using a main controller, and corresponding device addresses are assigned to each controller in the controller network. Based on this, the access command triggered by the host computer is forwarded to the controller to be accessed, realizing data communication between the host computer and the controller. Furthermore, in this invention, communication between the host computer and the controller, as well as between the controllers, can be achieved using only a common protocol. Therefore, through this invention, any two controllers within the controller network can communicate, and consequently, the host computer can communicate with any controller in the controller network. This invention not only achieves convenient, fast, and flexible communication between controllers but also improves the control efficiency of the elevator control system.
[0144] Furthermore, embodiments of the present invention also propose a communication control device, referring to... Figure 6 The communication control device includes:
[0145] The acquisition module 10 is used to acquire access commands triggered by a host computer connected to the relay controller;
[0146] The determining module 20 is used to determine the controller to be accessed in a preset controller network corresponding to the access instruction;
[0147] The forwarding module 30 is used to forward the access instruction from the relay controller to the controller to be accessed through the controller network, so that the controller to be accessed can return the corresponding response data to the host computer based on the access instruction.
[0148] Furthermore, the communication control device further includes:
[0149] The information acquisition module is used to acquire device information connected to the main controller and determine the controller network based on the device information. The controller network includes the main controller and slave controllers.
[0150] The address allocation module is used to allocate a corresponding device address to the slave controller;
[0151] The address sending module is used to send the network information of the controller network, the device address assigned to the slave controller, and the device address of the master controller from the master controller to the slave controller.
[0152] Furthermore, the address sending module includes:
[0153] The address sending unit is used to send the network information of the controller network, the device address assigned to the slave controller, and the device address of the master controller from the master controller to all slave controllers in the controller network in a step-by-step manner. The network information includes: network topology and network routing information.
[0154] Furthermore, the information acquisition module includes:
[0155] The acquisition unit is used to acquire device information of the access controller when the access controller is connected to the main controller;
[0156] The acquisition unit is used to acquire device information of the access controller that is collected and forwarded level by level by the slave controller when the access controller connects to the slave controller.
[0157] Furthermore, the communication control device further includes:
[0158] The device addition module is used to obtain device information of a new device that is connected to the slave controller, and add the new device to the controller network according to the device information of the new device. When the new device is connected to the slave controller, the slave controller forwards the device information of the new device step by step until the device information is forwarded to the master controller.
[0159] Furthermore, the communication control device further includes:
[0160] The judgment module is used to determine, based on the device address in the access instruction, whether the relay controller currently connected to the host computer is the controller to be accessed;
[0161] The forwarding module is used to forward the access command from the relay controller to the controller to be accessed through the controller network if the relay controller currently connected to the host computer is not the controller to be accessed.
[0162] The termination forwarding module is used to terminate the forwarding of the access command if the relay controller currently connected to the host computer is the controller to be accessed.
[0163] Furthermore, the communication control device further includes:
[0164] The routing information determination module is used to determine the routing information corresponding to the access instruction based on the device address in the access instruction and the network information of the controller network.
[0165] A path determination module is used to determine the forwarding path of the access command based on the routing information;
[0166] The forwarding module 30 includes:
[0167] The instruction forwarding unit is used to send the access instruction from the relay controller to the next controller in the forwarding path through the controller network, according to the forwarding path, so that the next controller can forward the access instruction until the access instruction reaches the controller to be accessed.
[0168] The extended content of the specific implementation of the communication control system of the present invention is basically the same as the various embodiments of the communication control method described above, and will not be repeated here.
[0169] Furthermore, embodiments of the present invention also propose a computer-readable storage medium storing a communication control program, wherein the communication control program, when executed by a processor, implements the steps of the communication control method described below.
[0170] The various embodiments of the communication control device and computer-readable storage medium of the present invention can be referred to the various embodiments of the communication control method of the present invention, and will not be repeated here.
[0171] It should be noted that, in this document, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or system that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or system. Unless otherwise specified, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or system that includes that element.
[0172] The sequence numbers of the above embodiments of the present invention are for descriptive purposes only and do not represent the superiority or inferiority of the embodiments.
[0173] Through the above description of the embodiments, those skilled in the art can clearly understand that the methods of the above embodiments can be implemented by means of software plus necessary general-purpose hardware platforms. Of course, they can also be implemented by hardware, but in many cases the former is a better implementation method. Based on this understanding, the technical solution of the present invention, or the part that contributes to the prior art, can be embodied in the form of a software product. This computer software product is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk) and includes several instructions to cause a terminal device (which can be a controller, such as a controller in an elevator system, or a mobile phone, tablet computer, server, and other network devices, etc.) to execute the methods described in the various embodiments of the present invention.
[0174] The above are merely preferred embodiments of the present invention and do not limit the scope of the patent. Any equivalent structural or procedural transformations made based on the description and drawings of the present invention, or direct or indirect applications in other related technical fields, are similarly included within the scope of patent protection of the present invention.
Claims
1. A communication control method, characterized in that, The communication control method is applied to a relay controller, and the communication control method includes: Obtain an access command triggered by a host computer connected to the relay controller; Determine the controller to be accessed in a preset controller network corresponding to the access command; The access command is forwarded from the relay controller to the controller to be accessed through the controller network, so that the controller to be accessed can return the corresponding response data to the host computer based on the access command; The controller network includes a master controller and slave controllers. Prior to the step of determining the controller to be accessed within the preset controller network corresponding to the access command, the method further includes: The main controller obtains device information connected to it and determines the controller network based on the device information. The master controller assigns a corresponding device address to the slave controller; The master controller sends the network information of the controller network, the device address assigned to the slave controller, and the device address of the master controller to the slave controller.
2. The communication control method as described in claim 1, characterized in that, The step of sending the network information of the controller network, the device address assigned to the slave controller, and the device address of the master controller to the slave controller via the master controller includes: The master controller sends the network information of the controller network, the device address assigned to the slave controller, and the device address of the master controller to all slave controllers in the controller network in a step-by-step manner. The network information includes: network topology and network routing information.
3. The communication control method as described in claim 1, characterized in that, The step of obtaining device information accessing the main controller through the main controller includes: When the access controller connects to the main controller, the main controller collects the device information of the access controller; When the access controller connects to the slave controller, the master controller obtains the device information of the access controller collected by the slave controller and forwarded level by level.
4. The communication control method as described in claim 1, characterized in that, The communication control method further includes: The main controller obtains the device information of a new device that is connected to the slave controller, and adds the new device to the controller network based on the device information. When the new device connects to the slave controller, the slave controller forwards the device information of the new device step by step until it is forwarded to the main controller.
5. The communication control method as described in claim 1, characterized in that, After the step of determining the controller to be accessed in a preset controller network corresponding to the access command, the method further includes: Based on the device address in the access command, determine whether the relay controller currently connected to the host computer is the controller to be accessed; If not, then the step of forwarding the access instruction from the relay controller to the controller to be accessed through the controller network is performed; If so, then stop forwarding the access command.
6. The communication control method as described in claim 1, characterized in that, Prior to the step of forwarding the access instruction from the relay controller to the controller to be accessed via the controller network, the method further includes: The routing information corresponding to the access instruction is determined based on the device address and network information of the controller network in the access instruction; The forwarding path of the access command is determined based on the routing information; The step of forwarding the access command from the relay controller to the controller to be accessed through the controller network includes: Through the controller network, the access command is sent from the relay controller to the next controller in the forwarding path according to the forwarding path, so that the next controller can forward the access command until the access command reaches the controller to be accessed.
7. A communication control device, characterized in that, The communication control device includes: The acquisition module is used to acquire access commands triggered by the host computer connected to the relay controller; The determination module is used to determine the controller to be accessed in a preset controller network corresponding to the access instruction; The forwarding module is used to forward the access command from the relay controller to the controller to be accessed through the controller network, so that the controller to be accessed can return the corresponding response data to the host computer based on the access command; The controller network includes a master controller and slave controllers; The determining module is further configured to obtain device information accessing the main controller through the main controller, and determine the controller network based on the device information; The determining module is further configured to assign a corresponding device address to the slave controller through the master controller; The determining module is further configured to send the network information of the controller network, the device address assigned to the slave controller, and the device address of the master controller to the slave controller via the master controller.
8. A terminal device, characterized in that, The terminal device includes a memory, a processor, and a communication control program stored in the memory and executable on the processor. When executed by the processor, the communication control program implements the steps of the communication control method as described in any one of claims 1 to 6.
9. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores a communication control program, which, when executed by a processor, implements the steps of the communication control method as described in any one of claims 1 to 6.
Citation Information
Patent Citations
Data access method, gateway equipment, system, storage medium and device
CN110493337A
Bus address automatic allocation and identification method, electronic equipment, storage medium and program product
CN114531422A