Dual-channel master control equipment for intelligent equipment in large-scale commercial place and control method of dual-channel master control equipment

By using multi-protocol access modules and dual-channel control technology, the compatibility and reliability issues of intelligent equipment control in large commercial venues have been resolved, enabling efficient, stable, and convenient management of equipment and improving the level of intelligent operation.

CN121887894APending Publication Date: 2026-04-17GUANGZHOU JUNZHI INTELLIGENT TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
GUANGZHOU JUNZHI INTELLIGENT TECH CO LTD
Filing Date
2026-03-11
Publication Date
2026-04-17

AI Technical Summary

Technical Problem

Existing technologies for controlling intelligent devices in large commercial venues suffer from poor compatibility, unreliable control channels, complex configuration management, and insufficient fault tolerance. These issues lead to difficulties in collaborative device control, cumbersome network configuration, untimely synchronization of device status, and the inability to automatically retry after control command execution failures.

Method used

It adopts a multi-protocol access module to support LoRa and Bluetooth communication, and combines local UDP and cloud Wi-Fi dual-channel control to realize device data acquisition and storage. It provides AP network configuration mode and power failure memory function, has device learning and dynamic file update capabilities, supports scene configuration and intelligent retransmission mechanism, and monitors device status in real time.

Benefits of technology

It enables multi-protocol compatible device access, ensures reliable execution of control commands, simplifies network configuration and device management, improves the accuracy of device status synchronization and control stability, reduces maintenance costs, and improves the intelligent operation efficiency of large commercial venues.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN121887894A_ABST
    Figure CN121887894A_ABST
Patent Text Reader

Abstract

The invention discloses a dual-channel master control device and a control method for intelligent devices in a large commercial place. The device comprises a multi-protocol access module, a network configuration module, a device learning module, a dual-channel control module and the like. The method comprises the following steps: accessing intelligent equipment through Lora, Bluetooth and other multi-protocols, and collecting operation and environment data; aP network distribution and wired / wireless network access are supported, and visual management and power-off memory of sub-devices are realized; automatically learning sub-device information and establishing a dynamic file; local UDP and cloud Wi-Fi dual-channel control is constructed, and reliable execution of an instruction is guaranteed; scenarized configuration and multimode triggering are supported, an instruction retransmission fault-tolerant mechanism is configured, and the operation state is output in real time through a serial port. According to the control method, equipment management and control are achieved through the steps of initialization, data collection, configuration management, instruction execution and the like. The scheme is compatible with multiple types of equipment, rapid in control response, stable in operation, simplified in management process, reduced in maintenance cost, and suitable for centralized management and control of intelligent equipment in large commercial places.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of intelligent device control technology, specifically to a dual-channel main control device and control method for intelligent devices in large commercial venues. Background Technology

[0002] With the development of IoT technology, the demand for intelligent upgrades in large commercial venues (such as office buildings, shopping malls, and hotels) is increasing, and centralized management of various intelligent devices (such as air conditioners, lighting, electricity meters, and environmental sensors) is becoming a trend. Currently, the control of intelligent devices in commercial venues mainly relies on traditional central control systems or single-mode intelligent gateways, but existing technologies have many limitations:

[0003] First, device access compatibility is poor. Traditional central control systems mostly use a single communication protocol, which cannot adapt to smart devices from different manufacturers and of different types, making multi-device collaborative control difficult. Second, the reliability of control channels is insufficient. Existing systems mostly rely on a single cloud channel or local channel. When the cloud network fluctuates, the network goes down, or the local area network fails, device control will fail, affecting the normal operation of commercial venues. Third, network configuration is complex and lacks memory function. Initial deployment or network reconstruction is cumbersome, and device configuration information is easily lost due to power outages. In addition, the level of intelligence in sub-device management is low. There is a lack of effective device learning mechanisms and dynamic file update functions. After the device status changes, it cannot be synchronized in time, resulting in incorrect control command issuance. Finally, there is a lack of a sound fault tolerance mechanism and status monitoring. After the control command fails to be sent, it cannot be automatically retried, making it difficult to grasp the device operating status in real time and resulting in high maintenance costs.

[0004] Therefore, there is an urgent need for a master control device with multi-protocol compatibility, dual-channel redundant control, intelligent configuration management, and high reliability and fault tolerance to solve the problems of poor compatibility, low reliability, and inconvenient management of existing technologies in the management and control of intelligent devices in large commercial venues. Summary of the Invention

[0005] This invention provides a dual-channel master control device and control method for intelligent equipment in large commercial venues, aiming to solve technical problems such as poor compatibility of intelligent equipment control, unreliable control channels, complex configuration management, and insufficient fault tolerance in the prior art, so as to achieve efficient, stable and convenient management and control of intelligent equipment in large commercial venues.

[0006] To achieve the above objectives, the present invention is implemented through the following technical solution:

[0007] In a first aspect, the present invention provides a dual-channel main control device for intelligent equipment in large commercial venues, comprising:

[0008] The multi-protocol access module is used to establish connections with intelligent sub-devices in the area through various wireless communication protocols, collect the operation data and environmental perception data of the intelligent sub-devices, and store the collected operation data and environmental perception data locally.

[0009] The network configuration module provides AP network configuration mode and multi-mode network access selection, supports visual management of sub-devices and power-off memory of configuration information;

[0010] The device learning module is used to enter learning mode to receive network access requests from sub-devices, identify the identity information of sub-devices and establish multi-dimensional device profiles, and realize automatic updates of device profiles and power failure memory.

[0011] A dual-channel control module is used to construct a local control channel and a cloud control channel. The local control channel receives control commands through a local area network UDP service, and the cloud control channel connects to a cloud server through a Wi-Fi module to receive remote commands.

[0012] The scene management module is used to store scene configuration information and supports the execution of scene control commands through various triggering methods;

[0013] The fault-tolerant control module is used to implement an intelligent retransmission mechanism for the issued control commands, mark unresponsive sub-devices and skip the execution of subsequent commands;

[0014] The status monitoring module is used to output device operating status parameters and communication module status information in real time via serial port.

[0015] As a further improvement to the technical solution of the present invention, the multi-protocol access module supports wireless communication protocols including LoRa and Bluetooth, and collects operational data including the power, voltage, and current data of the smart meter, and environmental sensing data including PM2.5 concentration, carbon dioxide concentration, temperature, humidity, and formaldehyde content data; authorized front-end devices obtain locally stored real-time or historical data through UDP or TCP network protocols.

[0016] As a further improvement to the technical solution of the present invention, the AP network configuration mode of the network configuration module is as follows: when the network is used for the first time or reconfigured, an independent Wi-Fi hotspot is automatically created. After the user connects to the hotspot, he enters the configuration page by entering the specified IP address in the browser. The multi-mode network access selection includes wired network access and wireless STA mode access, and supports static IP configuration, dynamic IP acquisition and custom port number settings.

[0017] As a further improvement to the technical solution of the present invention, the learning mode of the device learning module is as follows: receiving the network access learning frame sent by the sub-device, identifying the sub-device's identity code and device type code; the multi-dimensional device file includes the device number, current operating status and unique logical identifier, and automatically updating the device file when the sub-device's model or operating status changes.

[0018] As a further improvement to the technical solution of the present invention, the local control channel receives unicast control commands and query commands sent by the control terminal within the local area network by enabling UDP service and listening on a specific port; the cloud control channel establishes a connection with the cloud server through a built-in Wi-Fi module and receives remote control commands and information query commands sent by the user through the cloud.

[0019] As a further improvement to the technical solution of the present invention, the scene configuration information stored in the scene management module includes the preset operating status of the lights, air conditioners, and curtain motors; the triggering method includes remote triggering via mobile terminal and triggering via UDP command over local area network, and after triggering, the command is parsed and the corresponding scene control is executed.

[0020] As a further improvement to the technical solution of the present invention, the intelligent retransmission mechanism of the fault-tolerant control module is as follows: after the control command is issued for the first time, it waits for the device to respond and confirm. If no response is received, it automatically performs a second retransmission. If no confirmation is received after the second retransmission, it automatically performs a third retransmission. If no confirmation is received after the third retransmission, it marks the device as unresponsive and skips the device to continue executing subsequent commands.

[0021] As a further improvement to the technical solution of the present invention, the status monitoring module outputs data in plain text format through the UART serial port. The output content includes network connection status and communication module operation status. Each output record contains a timestamp and parameter key-value pairs.

[0022] As a further improvement to the technical solution of the present invention, the main control chip of the main control device is ESP32, the multi-protocol access module also includes an ETH network port communication unit, and the network configuration module supports parameter configuration of IO, serial port, LoRa module, ETH network port, Wi-Fi module and Bluetooth module during initialization.

[0023] A second aspect of the present invention provides a control method for a dual-channel main control device of intelligent equipment in a large commercial venue, comprising the following steps:

[0024] S1: The main control device initializes the parameters of each communication module and interface, enters standby mode, and creates Bluetooth receiving thread, SOCKET network connection processing thread, button processing sub-thread, LORA command receiving service thread and LORA sending service thread.

[0025] S2: Establishes a connection with intelligent sub-devices through a multi-protocol access module, and collects and stores device operation data and environmental perception data;

[0026] S3: The network configuration module enables network access configuration and the addition and deletion of sub-devices.

[0027] S4: Receive network access requests from sub-devices through the device learning module, and establish and update multi-dimensional device profiles;

[0028] S5: Receives control commands through local control channels or cloud control channels, and sends commands to the corresponding sub-devices in combination with scene configuration information and intelligent retransmission mechanism;

[0029] S6: Outputs device operating status and communication status information in real time through the status monitoring module.

[0030] The technical solution of the present invention has the following advantages over the prior art:

[0031] This invention utilizes a multi-protocol access module compatible with various communication protocols such as LoRa and Bluetooth, as well as ETH network interface communication, to achieve comprehensive collection and local storage of operational data and environmental perception data from various smart devices. This effectively addresses the technical pain points of traditional master control devices, such as single protocol and poor device compatibility. Leveraging the AP network configuration module's AP configuration guidance, wired / wireless multi-mode network access selection, and power-off memory function for configuration information, coupled with the device learning module's automatic sub-device identification, multi-dimensional profile creation, and dynamic update capabilities, this invention significantly simplifies network deployment and sub-device management processes, ensuring accurate device information synchronization without the need for repetitive configuration. Furthermore, it innovatively constructs a dual-channel architecture: a local UDP channel and a cloud Wi-Fi channel. The control architecture achieves millisecond-level local command response and supports remote control, ensuring the stable operation of critical automated control functions during external network fluctuations and significantly improving control reliability. Combined with the customizable scenario configuration and multi-mode triggering function of the scenario management module, it adapts to the diverse scenario needs of commercial venues. With the intelligent command retransmission and unresponsive device skipping mechanism of the fault-tolerant control module, command execution failures and process delays are reduced. Furthermore, the real-time status output through the serial port of the status monitoring module facilitates maintenance personnel to quickly locate problems and reduce maintenance costs. Overall, it realizes efficient, stable, convenient, and centralized management and control of intelligent equipment in large commercial venues, significantly improving the intelligent operation experience and management efficiency. Attached Figure Description

[0032] Other features, objects, and advantages of the present invention will become more apparent from the following detailed description of non-limiting embodiments with reference to the accompanying drawings:

[0033] Figure 1 This is a functional module architecture diagram of the main control device according to some embodiments of the present invention;

[0034] Figure 2 This is a flowchart of the steps of a smart device control method according to some embodiments of the present invention;

[0035] Figure 3 This is a flowchart illustrating the communication logic of a gateway host control device according to some embodiments of the present invention;

[0036] Figure 4 This is a flowchart illustrating the gateway host query device communication logic according to some embodiments of the present invention;

[0037] Figure 5 This is a flowchart illustrating the communication logic of the gateway host and device registration process according to some embodiments of the present invention;

[0038] Figure 6 This is a main control flowchart of the main control device according to some embodiments of the present invention. Detailed Implementation

[0039] The technical solutions of the present invention will be clearly and completely described below with reference to the accompanying drawings of the embodiments of the present invention. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. All other embodiments obtained by those skilled in the art based on the embodiments of the present invention without creative effort are within the scope of protection of the present invention.

[0040] The following is in conjunction with the appendix Figure 1-6 The present invention will be described in further detail below.

[0041] Reference Figure 1 In a first aspect, the present invention provides a dual-channel main control device for intelligent equipment in large commercial venues, comprising:

[0042] The multi-protocol access module is used to establish connections with intelligent sub-devices in the area through various wireless communication protocols, collect the operation data and environmental perception data of the intelligent sub-devices, and store the collected operation data and environmental perception data locally.

[0043] The network configuration module provides AP network configuration mode and multi-mode network access selection, supports visual management of sub-devices and power-off memory of configuration information;

[0044] The device learning module is used to enter learning mode to receive network access requests from sub-devices, identify the identity information of sub-devices and establish multi-dimensional device profiles, and realize automatic updates of device profiles and power failure memory.

[0045] A dual-channel control module is used to construct a local control channel and a cloud control channel. The local control channel receives control commands through a local area network UDP service, and the cloud control channel connects to a cloud server through a Wi-Fi module to receive remote commands.

[0046] The scene management module is used to store scene configuration information and supports the execution of scene control commands through various triggering methods;

[0047] The fault-tolerant control module is used to implement an intelligent retransmission mechanism for the issued control commands, mark unresponsive sub-devices and skip the execution of subsequent commands;

[0048] The status monitoring module is used to output device operating status parameters and communication module status information in real time via serial port.

[0049] It should be noted that the dual-channel main control device of this large commercial venue's intelligent equipment establishes connections with intelligent sub-devices within the area through a multi-protocol access module using various wireless communication protocols, completing the collection and local storage of sub-device operation data and environmental perception data; the network configuration module provides an AP network configuration mode, allowing users to access the guided page by connecting to a hotspot, select wired or wireless access to the network, and configure relevant parameters. It also supports the visual addition and deletion of sub-devices, and all configuration information and device lists are stored locally for power-off memory; after entering learning mode, the device learning module receives sub-device network access requests and identifies their identity information, establishing a multi-dimensional profile including device number, operating status, and a unique logical identifier. The profile is automatically updated when sub-device information changes; the dual-channel control... The control module simultaneously constructs a local control channel and a cloud control channel. The local channel listens on a specific port via a LAN UDP service to receive unicast commands, while the cloud channel connects to the cloud server via a Wi-Fi module to receive remote commands. The scene management module stores user-defined scene configuration information and supports both mobile remote triggering and LAN UDP command triggering. After triggering, it parses the command and executes the corresponding device control. The fault-tolerant control module initiates a response waiting mechanism after issuing a control command. If no response is received, it automatically retryes. If the second retry fails, it marks the unresponsive device and skips it, continuing to execute subsequent commands. The status monitoring module outputs the device operating status and communication module status information in real time in plain text format via a UART serial port. Each output record includes a timestamp and parameter key-value pairs.

[0050] This invention, through a multi-module collaborative design, achieves multi-protocol compatible access, solving the problems of traditional master control devices having single protocols and poor device adaptability. It can centrally manage and control various intelligent devices in large commercial venues. The local and cloud dual-channel architecture ensures reliable execution of control commands. The local channel achieves millisecond-level response, while the cloud channel supports remote control. Even external network fluctuations do not affect critical local control functions. Intelligent configuration management and power failure memory functions simplify deployment and maintenance processes and avoid redundant configuration. Dynamic device files and fault tolerance mechanisms reduce control errors and process delays. Real-time status monitoring facilitates fault diagnosis. Overall, it achieves efficient, stable, convenient, and centralized management and control of intelligent devices in large commercial venues, improving the level of intelligent operation and management efficiency.

[0051] In some embodiments, the multi-protocol access module supports wireless communication protocols including LoRa and Bluetooth, and the collected operational data includes the power, voltage, and current data of the smart meter, and the environmental sensing data includes PM2.5 concentration, carbon dioxide concentration, temperature, humidity, and formaldehyde content data; authorized front-end devices obtain locally stored real-time or historical data through UDP or TCP network protocols.

[0052] It should be noted that the multi-protocol access module supports both LoRa and Bluetooth wireless communication protocols, and is also compatible with ETH network communication. For smart meters, it can collect operational data such as electricity consumption, voltage, and current; for environmental monitoring, it can collect sensing data such as PM2.5 concentration, carbon dioxide concentration, temperature, humidity, and formaldehyde content. All collected data is temporarily stored in the main control device's local storage module. Authorized system front-end devices can send data requests to the main control device via UDP or TCP network protocols. After receiving the request, the main control device retrieves the corresponding real-time or historical data from its local storage and feeds it back to the front-end device. This invention improves the targeting and compatibility of device access, accurately adapting to metering equipment and environmental sensors in large commercial venues. The local storage and UDP / TCP data access methods ensure data storage security while enabling flexible data acquisition by authorized devices, meeting data query needs in different scenarios and solving the problems of limited data collection and inconvenient access in traditional devices.

[0053] In some embodiments, the AP network configuration mode of the network configuration module is as follows: when the network is used for the first time or reconfigured, an independent Wi-Fi hotspot is automatically created. After the user connects to the hotspot, they can enter the configuration page by entering a specified IP address in a browser. The multi-mode network access selection includes wired network access and wireless STA mode access, and supports static IP configuration, dynamic IP acquisition and custom port number settings.

[0054] It should be noted that the AP network configuration mode of the network configuration module is automatically activated when the device is used for the first time or when the network is reconfigured, generating an independent Wi-Fi hotspot. After connecting to this hotspot via a mobile terminal, users can enter the specified IP address in their browser to access the configuration guide page. The guide page offers two access options: wired network access and wireless STA mode access, allowing users to choose flexibly according to their environment. It also supports static IP address configuration, dynamic IP address acquisition, and custom port number settings. The guide page includes a built-in visual list of learned sub-devices, allowing users to directly add or delete sub-devices on the page. All network configuration parameters and sub-device list information are stored in local non-volatile memory, ensuring data integrity even after power failure and automatic recovery upon power restoration.

[0055] The AP network configuration mode and guided configuration page simplify the network configuration process, lower the operation threshold, and allow deployment without professional technicians; wired and wireless dual access modes and IP and port customization functions adapt to the network environment of different commercial venues, improving the environmental adaptability of the equipment; visual management of sub-devices and power failure memory function avoid repeated operations caused by the loss of configuration information after the device is powered off, reduce maintenance workload, and improve management efficiency.

[0056] In some embodiments, the learning mode of the device learning module is specifically as follows: receiving the network access learning frame sent by the sub-device, identifying the sub-device's identity code and device type code; the multi-dimensional device file includes the device number, current operating status, and unique logical identifier, and automatically updating the device file when the sub-device's model or operating status changes.

[0057] It should be noted that the learning mode of the device learning module can be triggered by a physical button or activated through the configuration page. After entering the learning mode, the master control device continuously listens for network access learning frames sent by the sub-devices. When a new sub-device sends a network access request, the identity code and device type code contained in the learning frame are received and parsed by the master control device. After successfully identifying the sub-device, the master control device assigns it a unique logical identifier and establishes a multi-dimensional device profile containing the device number, current operating status, and the unique logical identifier, storing it in a local profile table. When the sub-device model changes or its operating status changes, the sub-device actively sends a status update frame, which the master control device receives and automatically updates the corresponding device profile information.

[0058] The automated sub-device learning and identification mechanism simplifies the network configuration process for new devices and improves device deployment efficiency; multi-dimensional device profiles and automatic update functions ensure the accuracy and timeliness of sub-device information and avoid errors in control command issuance due to inconsistent device information; the setting of unique logical identifiers enables accurate identification of sub-devices, solving the problems of ambiguous identification and chaotic management of traditional devices and improving control precision.

[0059] In some embodiments, the local control channel receives unicast control commands and query commands sent by control terminals within the local area network by enabling UDP service and listening on a specific port within the local area network; the cloud control channel establishes a connection with the cloud server through a built-in Wi-Fi module to receive remote control commands and information query commands sent by users through the cloud.

[0060] It should be noted that the local control channel of the dual-channel control module automatically enables UDP service and continuously listens on a preset specific port after the device is connected to the local area network. Control terminals such as smart panels and local servers within the local area network can achieve rapid local interaction by sending unicast control commands or data query commands to the IP address and listening port of the main control device. The cloud control channel connects to the Internet through the built-in Wi-Fi module of the main control device and establishes a stable communication link with the cloud server. Users can send remote control commands or information query requests to the cloud server through mobile terminal APP or computer client. The server forwards the commands to the main control device, which then parses and executes the corresponding operations.

[0061] The local UDP channel's unicast communication mode enables millisecond-level command response, making it suitable for scenarios requiring rapid triggering, such as scene mode switching and real-time sensor data reporting. The cloud control channel supports remote management and control, meeting the equipment operation needs when users are not on-site. The dual-channel collaborative design ensures control redundancy, ensuring that even if there are fluctuations or interruptions in the external network, the local key automation control functions can still operate normally, avoiding control failure caused by a single channel failure and significantly improving the reliability of equipment control.

[0062] In some embodiments, the scene configuration information stored in the scene management module includes the preset operating states of lights, air conditioners, and curtain motors; the triggering methods include remote triggering via mobile terminal and triggering via UDP command over local area network, and after triggering, the command is parsed and the corresponding scene control is executed.

[0063] It should be noted that the scene management module allows users to customize scene configurations via a mobile app. Scene configurations include preset operating states for devices such as lights, air conditioners, and curtain motors. After being saved by the user, all scene configuration information is sent to the main control device via a cloud channel or a local channel and permanently stored in the local storage. There are two ways to trigger a scene: one is for the user to send a remote trigger command via the mobile app, which is transmitted to the main control device via the cloud channel; the other is for the control terminal within the local area network to send a UDP trigger command, which is transmitted to the main control device via the local channel. After receiving the trigger command, the main control device parses the scene identifier corresponding to the command, retrieves the stored scene configuration information, generates control commands, and sends them to the corresponding sub-devices to execute scene linkage control.

[0064] The custom scene configuration function adapts to the diverse needs of large commercial venues, such as office, reception, and energy saving, and improves the flexibility of intelligent management and control; the scene configuration information stored locally avoids the problem of offline unavailability caused by relying on cloud storage; the dual triggering methods of remote and local meet the operational needs of different usage scenarios, simplify the scene switching process, and improve the user experience and the convenience of venue operation.

[0065] In some embodiments, the intelligent retransmission mechanism of the fault-tolerant control module is as follows: after the control command is issued for the first time, it waits for the device to respond and confirm. If no response is received, it automatically performs a second retransmission. If no confirmation is received after the second retransmission, it automatically performs a third retransmission. If no confirmation is received after the third retransmission, it marks the device as unresponsive and skips the device to continue executing subsequent commands.

[0066] It should be noted that after the master control device sends a control command to the sub-device, the fault-tolerant control module starts a response waiting timer of a preset duration. After the first command is sent, the master control device continuously listens for the response confirmation frame from the sub-device. If a response confirmation frame is received before the timer expires, the command is considered to have been executed successfully. If no response confirmation frame is received, the master control device automatically triggers a second command retry after the timer expires, sending the same control command again and restarting the timer. If no response confirmation frame is received from the sub-device after the second command is sent and the timer expires, the master control device automatically triggers a third command retry, sending the same control command a third time and restarting the timer. If no response confirmation frame is received from the sub-device after the third command is sent and the timer expires, the master control device marks the sub-device as unresponsive, records it in the device status log, and automatically skips the sub-device, continuing to execute control commands for subsequent sub-devices.

[0067] The intelligent retransmission mechanism reduces the probability of control command transmission failure due to factors such as communication interference, and improves the success rate of command execution; the no-response device skip function avoids the overall control process from being stuck due to a single device failure, and ensures the continuity of control tasks; the sub-device no-response marker and log recording make it easier for operation and maintenance personnel to quickly locate faulty devices, reduce the difficulty of maintenance and troubleshooting, and improve the stability and reliability of equipment operation.

[0068] In some embodiments, the status monitoring module outputs data in plain text format via the UART serial port. The output content includes network connection status and communication module operating status. Each output record contains a timestamp and parameter key-value pairs.

[0069] It should be noted that the status monitoring module outputs real-time running status data through the UART serial port interface. The serial communication parameters (baud rate, data bits, stop bits, etc.) are preset to fixed configurations. The output data is in plain text format and includes network connection status (online or offline) and the running status (normal or fault) of each communication module (Lora, Bluetooth, etc.). Each output record contains a precise timestamp and parameter key-value pairs. The timestamp records the specific time the data was generated, and the parameter key-value pairs clearly indicate the type and corresponding value of the status parameters, ensuring the traceability and readability of the data.

[0070] The real-time data output of the UART serial port provides maintenance personnel with an intuitive means of monitoring the device's operating status, making it easy to grasp the device's network connection status and the working status of the communication module in real time. The standardized plain text format and parameter key-value pairs containing timestamps ensure the readability and analyzability of the data. Maintenance personnel can quickly identify abnormal states and locate the cause of failures, reducing the technical threshold and workload of device maintenance and improving maintenance efficiency.

[0071] In some embodiments, the main control chip of the main control device is ESP32, the multi-protocol access module further includes an ETH network port communication unit, and the network configuration module supports parameter configuration of IO, serial port, LoRa module, ETH network port, Wi-Fi module and Bluetooth module during initialization.

[0072] It should be noted that the main control device uses the ESP32 as the main control chip. This chip integrates Wi-Fi and Bluetooth dual-mode communication functions, and has multiple interface expansion capabilities and high-performance data processing capabilities. The multi-protocol access module adds an ETH network port communication unit on the basis of the original wireless communication protocol. It connects to the ETH network port module through the expansion interface of the main control chip to realize wired network communication. During the device initialization phase, the main control chip completes the initialization configuration of the IO interface, serial port, LoRa module, ETH network port communication parameters, Wi-Fi module and Bluetooth module in sequence according to the preset program to ensure the compatibility and stability of the collaborative work of each module.

[0073] The high performance and multi-interface features of the ESP32 main control chip provide hardware support for the collaborative work of various functional modules, ensuring the operating efficiency of the equipment. The addition of the ETH network port communication unit enriches the network access methods of the equipment and further improves the adaptability of the equipment to different commercial network environments. The standardized initialization configuration process ensures the compatibility and stability of each module after startup, reduces failures caused by hardware module conflicts, and improves the overall reliability and operational stability of the equipment.

[0074] Reference Figure 2 The second aspect of the present invention provides a control method for a dual-channel main control device of a large commercial intelligent equipment, comprising the following steps:

[0075] S1: The main control device initializes the parameters of each communication module and interface, enters standby mode, and creates Bluetooth receiving thread, SOCKET network connection processing thread, button processing sub-thread, LORA command receiving service thread and LORA sending service thread.

[0076] S2: Establishes a connection with intelligent sub-devices through a multi-protocol access module, and collects and stores device operation data and environmental perception data;

[0077] S3: The network configuration module enables network access configuration and the addition and deletion of sub-devices.

[0078] S4: Receive network access requests from sub-devices through the device learning module, and establish and update multi-dimensional device profiles;

[0079] S5: Receives control commands through local control channels or cloud control channels, and sends commands to the corresponding sub-devices in combination with scene configuration information and intelligent retransmission mechanism;

[0080] S6: Outputs device operating status and communication status information in real time through the status monitoring module.

[0081] In its specific implementation, this intelligent device control method first performs an initialization step. After the main control device powers on, it completes the configuration of various communication modules and interface parameters, enters standby mode, and creates Bluetooth receiving threads, SOCKET network connection processing threads, button processing sub-threads, LORA command receiving service threads, and LORA sending service threads to support subsequent data interaction and command processing. Subsequently, it establishes a connection with the intelligent sub-devices through a multi-protocol access module, collects and stores operational data and environmental perception data according to a preset cycle, and completes network access configuration and sub-device addition and deletion management through a network configuration module. The device learning module receives sub-device network access requests, establishes and dynamically updates multi-dimensional device profiles, and the main control device receives control commands through a local control channel or a cloud control channel. Combining scene configuration information and an intelligent retransmission mechanism, it sends the commands to the corresponding sub-devices. Finally, the status monitoring module outputs real-time device operation status and communication status information to complete the entire process control.

[0082] The control method of this invention achieves closed-loop control of the entire process, including equipment initialization, data acquisition, configuration management, equipment learning, instruction execution, and status monitoring, through a step-by-step process design. Each link is seamlessly connected and the logic is clear. The threaded instruction processing mechanism improves the ability to handle multiple tasks concurrently and ensures the timeliness of equipment response. Combined with technical features such as multi-protocol access, dual-channel control, and fault tolerance mechanisms, this method not only solves the problems of poor compatibility and low reliability of traditional control methods, but also achieves efficient and precise control of intelligent equipment in large commercial venues, thereby improving the level of intelligent operation and management.

[0083] To better understand the technical solution of this invention, the following will be combined with... Figures 1 to 6 The technical solution of the present invention will be described in detail below with specific implementation methods:

[0084] I. Hardware Structure Description of Main Control Equipment

[0085] In this embodiment, the main control chip of the main control device is the ESP32, which integrates Wi-Fi and Bluetooth dual-mode communication functions, has high-performance processing capabilities and rich I / O interfaces, and can meet the needs of multi-module collaborative work. The main control device also includes a LoRa communication module, an ETH network port module, a UART serial port module, a storage module, and a power supply module. The storage module uses Flash memory to store configuration information, device files, scene configurations, and historical data collected, ensuring that data is not lost after power failure.

[0086] II. Specific Implementation of Each Module of the Main Control Equipment

[0087] Multi-protocol access module implementation:

[0088] The multi-protocol access module expands to a LoRa module via the serial port of the ESP32 chip, enables Bluetooth communication via the chip's built-in Bluetooth module, and achieves wired network connection via an ETH network port module. This module collects power, voltage, and current data from the smart meter via polling, and collects data on PM2.5, carbon dioxide concentration, temperature, humidity, and formaldehyde content via environmental sensors. The collection cycle is configurable (default 1 minute / time), and the collected data is stored in Flash memory. Authorized front-end devices (such as computers and mobile apps) send data requests to the master control device via UDP or TCP protocols. Upon receiving the request, the master control device retrieves the corresponding data from the storage module and provides feedback.

[0089] Network configuration module implementation:

[0090] Upon initial use, the main control device automatically creates a Wi-Fi hotspot named "jonzy-master-xxxxx" (XXXX being the device's unique identifier). The hotspot has no password by default. After connecting to the hotspot with their mobile phone, users can enter the IP address 10.10.10.1 in their browser to access the configuration page. The page offers "Wired Connection" and "Wireless Connection" options. When selecting wired connection, users can configure a static IP address, subnet mask, gateway, and port number. When selecting wireless connection, users can search for nearby Wi-Fi hotspots and enter the password to connect. DHCP dynamic IP acquisition or static IP configuration is supported. The configuration page also displays a list of learned sub-devices. Users can manage sub-devices using the "Add Device" and "Delete Device" buttons. All configuration information and the device list are stored in Flash memory and automatically restored after a power outage and power-on.

[0091] Device learning module implementation:

[0092] Users can enter learning mode on the main control device by pressing and holding the learning button for 5 seconds, or by clicking the "Enter Learning Mode" button on the configuration page. The learning mode lasts for 60 seconds (configurable). After the slave device powers on, it sends a network learning frame (containing an identification code and device type code). The LoRa module or Bluetooth module receives the learning frame and transmits it to the ESP32 chip. After parsing the identification information, the chip assigns a unique logical identifier to the slave device and establishes a multi-dimensional profile containing the device number, logical identifier, device type, and current operating status, storing it in the device profile table. When the slave device model changes or its operating status changes, the slave device actively sends a status update frame, which the main control device receives and automatically updates the device profile table.

[0093] Dual-channel control module implementation:

[0094] Cloud Control Channel: The main control device connects to the internet via its built-in Wi-Fi module, establishes a persistent TCP connection with the cloud server, and periodically (every 30 seconds by default) sends heartbeat packets to the server to maintain the connection. Users send control commands to the cloud server via a mobile app or computer client. The server forwards the commands to the main control device, which then parses the commands and distributes them to the corresponding sub-devices.

[0095] Local control channel: The main control device enables UDP service within the local area network and listens on port 8080 (which can be customized through the configuration page). Control terminals such as smart panels and local servers within the local area network send control commands to the IP address and listening port of the main control device via unicast. The main control device receives, parses, and executes the commands immediately, with a command response time of ≤50ms.

[0096] Scene management module implementation:

[0097] Users create scenarios (such as "Office Mode," "Welcome Mode," and "Energy Saving Mode") via a mobile app, configuring the corresponding device states (e.g., Office Mode: lights on, air conditioning set to 25℃, curtains open; Energy Saving Mode: unnecessary lights off, air conditioning set to 27℃). Scene configuration information is sent to the main control device via a cloud channel or local channel and stored in Flash memory. When a scenario is triggered, a trigger command can be sent remotely via the mobile app (cloud channel) or via a UDP trigger command sent from a control terminal within the local area network (local channel). After receiving the command, the main control device retrieves the corresponding device state configuration, generates control commands, and sends them to each sub-device.

[0098] Fault-tolerant control module implementation:

[0099] After the master control device sends a control command to the slave device, it starts a 500ms timer to wait for a response confirmation frame from the slave device. If a response confirmation frame is received within 500ms, the command is considered successfully sent; if not, the control command is automatically resent, and the 500ms timer is started again. If no response is received after the second resend, the slave device is marked as "unresponsive" and logged. Simultaneously, the device is skipped, and control commands for subsequent devices are executed. Users can view the list of unresponsive devices through the configuration page for troubleshooting.

[0100] Status monitoring module implementation:

[0101] The status monitoring module outputs real-time operating status data via a UART serial port (9600 baud rate, 8 data bits, 1 stop bit, none parity). The output format is "[timestamp] Network status: XXX; LoRa module status: XXX; Bluetooth module status: XXX; Number of connected sub-devices: XXX", where network status includes "online" and "offline", and communication module status includes "normal" and "fault". Maintenance personnel can connect to the main control device via a serial port tool to view the operating status in real time, or obtain historical status records through the log export function.

[0102] III. Specific Flowchart of Intelligent Device Control Method

[0103] Initialization phase (step S1):

[0104] After the main control device is powered on, the ESP32 chip initializes the I / O interface, serial port, LoRa module, ETH network port, Wi-Fi module, and Bluetooth module. After initialization, it enters standby mode. Simultaneously, five threads are created: a Bluetooth receiving thread (listening for Bluetooth commands), a SOCKET network connection processing thread (handling cloud TCP connections and data interaction), a button processing sub-thread (listening for physical button operations), a LoRa command receiving service thread (receiving data and commands from LoRa module sub-devices), and a LoRa sending service thread (issuing LoRa control commands).

[0105] Data acquisition phase (step S2):

[0106] The multi-protocol access module collects intelligent sub-device operation data and environmental perception data according to a preset cycle. After the collected data is processed in a standardized format (such as "Device No.: XXX; Power: XXX kWh; Collection Time: XXX"), it is stored in the Flash memory and the real-time data cache is updated for front-end devices to query.

[0107] Configuration management phase (step S3):

[0108] Users complete network access configuration through AP configuration mode, and add or delete sub-devices through the configuration page or physical buttons. Configuration information and device list are stored in real time to Flash memory to ensure that they are not lost when power is off.

[0109] Equipment learning phase (step S4):

[0110] After the master control device enters learning mode, it receives network access requests from sub-devices, parses their identity information, and establishes multi-dimensional device profiles. The profiles are automatically updated when the device status changes to ensure the accuracy of the device information.

[0111] Instruction execution phase (step S5):

[0112] The master control device receives control commands via a cloud channel or a local channel, parses the device identifier, control parameters, and scene information in the commands, retrieves the corresponding device file and scene configuration, generates a standardized control frame (containing device logical identifier, control command code, and parameter values), and sends it to the sub-devices via the corresponding communication protocol (Lora / Bluetooth). An intelligent retransmission mechanism is activated during the transmission process to ensure reliable command execution.

[0113] Status monitoring phase (step S6):

[0114] The status monitoring module collects the network connection status of the main control device, the operating status of the communication module, and the number of connected sub-devices in real time. It continuously outputs status information through the UART serial port, which facilitates maintenance personnel to monitor the equipment operation in real time and troubleshoot faults in a timely manner.

[0115] IV. Application Scenarios Examples

[0116] Taking a large office building as an example, the main control equipment is deployed in the floor's low-voltage shaft. It connects to the smart meters, air conditioning controllers, light switches, curtain motors, and environmental sensors on that floor via LoRa modules, and accesses the office building's local area network via an ETH network port.

[0117] During daily office work, users select "office mode" through a mobile APP. The cloud channel sends a trigger command, and the main control device receives it and controls all lights to turn on, the air conditioner to be set to 25°C, and the curtains to open. At the same time, the multi-protocol access module collects indoor temperature and carbon dioxide concentration in real time. When the carbon dioxide concentration exceeds 1000ppm, it automatically controls the fresh air system to turn on.

[0118] When leaving get off work, users can send a "energy-saving mode" UDP trigger command through the local smart panel. The local channel responds quickly, controlling unnecessary lights to turn off, air conditioning to turn off, and curtains to close.

[0119] When the external network is down, the local channel continues to operate normally, and the smart panels on the floor can still control all devices, ensuring that office work is not affected.

[0120] Maintenance personnel used serial port tools to check the operating status of the main control equipment and found that a certain air conditioner controller was marked as "no response". They promptly carried out maintenance to ensure the normal operation of the equipment.

[0121] This invention solves the compatibility, reliability, and convenience issues of intelligent equipment management in large commercial venues through a comprehensive design that integrates multi-protocol access, dual-channel control, intelligent configuration management, dynamic device learning, fault-tolerant control, and real-time status monitoring. It improves the level of intelligent management and has broad application prospects.

[0122] The dual-channel main control device and control method for intelligent equipment in large commercial venues provided in this embodiment of the invention have the following beneficial effects:

[0123] Multi-protocol compatibility enhances adaptability: It enables the access of different types of smart devices through multiple wireless communication protocols such as LoRa and Bluetooth, while also supporting ETH network port communication. This solves the problems of single protocol and poor device compatibility in traditional central control systems, and can be adapted to various smart devices such as electricity meters, air conditioners, lights, and sensors in large commercial venues to achieve centralized management and control.

[0124] Dual-channel control ensures reliability: An innovative dual-modal control architecture is constructed, consisting of a local UDP channel and a cloud Wi-Fi channel. The local channel achieves millisecond-level command response, suitable for rapid triggering scenarios; the cloud channel supports remote control, ensuring that critical local automation control functions can still operate normally even if the external network fluctuates or is disconnected, avoiding control failure and ensuring the operational stability of commercial venues.

[0125] Intelligent configuration management reduces operational difficulty: The AP network configuration mode simplifies the network configuration process through a guided page, supports wired / wireless dual-mode network access and custom IP, and the configuration information and device list have a power failure memory function, eliminating the need for repeated configuration; the visual management interface for sub-devices facilitates adding and deleting operations, improving deployment and maintenance efficiency.

[0126] Dynamic device management ensures precise control: the device learning mode can automatically identify the identity information of sub-devices and establish multi-dimensional profiles. When the device model or status changes, it is automatically updated synchronously to avoid control errors caused by inconsistent device information; the setting of unique logical identifiers enables accurate identification and control of sub-devices.

[0127] Fault tolerance mechanisms and status monitoring reduce maintenance costs: Intelligent retransmission mechanism reduces the probability of command transmission failure, and the skip function for unresponsive devices avoids control flow blockage; the serial port outputs the running status and communication status in real time, making it easier for maintenance personnel to discover faults and locate problems in a timely manner, reducing maintenance difficulty and costs.

[0128] Scenario-based management enhances ease of use: It supports custom scene configurations and local storage, and can be remotely triggered by mobile devices or triggered by LAN UDP commands to achieve linkage control of devices such as lights and air conditioners, adapting to the diverse scene needs of commercial venues such as offices and reception areas, and enhancing the intelligent experience.

[0129] The technical solutions provided by the embodiments of the present invention have been described in detail above. Specific examples have been used to illustrate the principles and implementation methods of the embodiments of the present invention. The descriptions of the embodiments above are only for helping to understand the principles of the embodiments of the present invention. At the same time, for those skilled in the art, there will be changes in the specific implementation methods and application scope based on the embodiments of the present invention. Therefore, the content of this specification should not be construed as a limitation of the present invention.

Claims

1. A large commercial site intelligent device dual-channel master control device, characterized in that, include: The multi-protocol access module is used to establish connections with intelligent sub-devices in the area through various wireless communication protocols, collect the operation data and environmental perception data of the intelligent sub-devices, and store the collected operation data and environmental perception data locally. The network configuration module provides AP network configuration mode and multi-mode network access selection, supports visual management of sub-devices and power-off memory of configuration information; The device learning module is used to enter learning mode to receive network access requests from sub-devices, identify the identity information of sub-devices, and establish multi-dimensional device profiles, enabling automatic updates of device profiles and power-off memory. A dual-channel control module is used to construct a local control channel and a cloud control channel. The local control channel receives control commands through a local area network UDP service, and the cloud control channel connects to the cloud server through a Wi-Fi module to receive remote commands. The scene management module stores scene configuration information and supports the execution of scene control commands through various triggering methods. The fault-tolerant control module is used to implement an intelligent retransmission mechanism for the issued control commands, mark unresponsive sub-devices and skip the execution of subsequent commands; The status monitoring module is used to output device operating status parameters and communication module status information in real time via serial port.

2. The large commercial premises smart device dual-channel master device of claim 1, wherein, The multi-protocol access module supports wireless communication protocols including LoRa and Bluetooth. The collected operational data includes the power, voltage, and current data of the smart meter, and the environmental sensing data includes PM2.5 concentration, carbon dioxide concentration, temperature, humidity, and formaldehyde content data. Authorized front-end devices can obtain locally stored real-time or historical data through UDP or TCP network protocols.

3. The large commercial premises smart device dual-channel master device of claim 1, wherein, The AP network configuration mode of the network configuration module is as follows: when using or reconfiguring the network for the first time, an independent Wi-Fi hotspot is automatically created. After the user connects to the hotspot, they can enter the configuration page by entering the specified IP address in the browser. The multi-mode network access selection includes wired network access and wireless STA mode access, and supports static IP configuration, dynamic IP acquisition and custom port number settings.

4. The large commercial premises smart device dual-path master device of claim 1, wherein, The learning mode of the device learning module is as follows: receiving the network access learning frame sent by the sub-device and identifying the sub-device's identity code and device type code; the multi-dimensional device file includes the device number, current operating status and unique logical identifier, and automatically updating the device file when the sub-device's model or operating status changes.

5. The large commercial premises smart device dual-path master device of claim 1, wherein, The local control channel receives unicast control and query commands from control terminals within the local area network by enabling UDP service and listening on a specific port. The cloud control channel establishes a connection with the cloud server through a built-in Wi-Fi module and receives remote control and information query commands sent by users through the cloud.

6. The large commercial premises smart device dual-path master device of claim 1, wherein, The scene management module stores scene configuration information including preset operating states of lights, air conditioners, and curtain motors; the triggering methods include remote triggering via mobile terminal and UDP command triggering via local area network. After triggering, the command is parsed and the corresponding scene control is executed.

7. The large commercial premises smart device dual-path master device of claim 1, wherein, The intelligent retransmission mechanism of the fault-tolerant control module is as follows: after the control command is issued for the first time, it waits for the device to respond and confirm. If no response is received, it automatically performs a second retransmission. If no confirmation is received after the second retransmission, it automatically performs a third retransmission. If no confirmation is received after the third retransmission, it marks the device as unresponsive and skips the device to continue executing subsequent commands.

8. The large commercial premises smart device dual-path master device of claim 1, wherein, The status monitoring module outputs data in plain text format via the UART serial port. The output content includes network connection status and communication module operating status. Each output record contains a timestamp and parameter key-value pairs.

9. The large commercial premises smart device dual-path master device of claim 1, wherein, The main control chip of the main control device is ESP32, and the multi-protocol access module also includes an ETH network port communication unit. The network configuration module supports parameter configuration of IO, serial port, LoRa module, ETH network port, Wi-Fi module and Bluetooth module during initialization.

10. A method for controlling an intelligent device based on the master control device according to any one of claims 1-9, characterized in that, Includes the following steps: S1: The main control device initializes the parameters of each communication module and interface, enters standby mode, and creates Bluetooth receiving thread, SOCKET network connection processing thread, button processing sub-thread, LORA command receiving service thread and LORA sending service thread. S2: Establishes a connection with intelligent sub-devices through a multi-protocol access module, and collects and stores device operation data and environmental perception data; S3: The network configuration module enables network access configuration and the addition and deletion of sub-devices. S4: Receive network access requests from sub-devices through the device learning module, and establish and update multi-dimensional device profiles; S5: Receives control commands through local control channels or cloud control channels, and sends commands to the corresponding sub-devices in combination with scene configuration information and intelligent retransmission mechanism; S6: Outputs device operating status and communication status information in real time through the status monitoring module.