Air conditioning equipment control method and multi-air conditioning equipment management system
Through the Web front-end and Web Serial API technology, unified and efficient control of multiple air-conditioning equipment is achieved, solving the problems of high user costs, complex operation and poor scalability in the existing technology, and improving management efficiency and equipment reliability.
Patent Information
- Application Number
- CN202411914300.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-24
- Publication Date
- 2025-02-28
AI Technical Summary
The existing multi-air conditioning equipment management technology has problems such as users need to purchase special hardware or install specific APPs, complex operation, limited real-time monitoring capabilities, and poor scalability, resulting in high user costs, low efficiency and untimely maintenance.
The control parameters entered by the user are obtained through the web front-end, control instructions are generated, and the instructions are sent to the air-conditioning device using the Web Serial API to achieve unified and efficient control of multiple air-conditioning devices. The system supports control of any web-enabled device, no dedicated hardware or mobile applications, has real-time monitoring and fault alarm functions, and supports flexible device expansion.
It realizes unified and efficient control of multiple air-conditioning equipment, reduces user costs and usage thresholds, improves management efficiency and equipment reliability, and simplifies the equipment expansion process.
Smart Images

Figure CN119532940A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of control, and in particular to an air-conditioning equipment control method and a multi-air-conditioning equipment management system. Background Art
[0002] At present, the management of multiple air conditioners usually relies on dedicated hardware controllers or specific apps. For example, some smart home systems manage multiple air conditioners through hubs or gateway devices, and users need to control them through these hardware devices or supporting mobile apps. In addition, there are some cloud-based solutions that centrally manage multiple air conditioners through cloud servers, and users can remotely control them through web pages or mobile apps.
[0003] However, existing multi-air conditioning equipment management technology solutions often have the following problems: users need to purchase dedicated hardware controllers or install specific mobile applications, which usually means that they can only run on specific operating systems, such as IOS or Android, limiting user choices and increasing user costs and usage barriers.
[0004] Furthermore, for users who need to manage multiple air conditioners, the existing system is often complicated to operate, especially when batch control is required, users need to set up each device separately, which is inefficient. In addition, the existing system has limited ability to monitor the status of air conditioners in real time, and users cannot obtain the operating status and fault information of the equipment in time, resulting in untimely maintenance. Even when users need to add new air conditioners, additional configuration or hardware upgrades may be required, which is too costly.
[0005] To address the above problems, no effective solution has been proposed yet. Summary of the invention
[0006] The main purpose of the present invention is to overcome the defects of the above-mentioned related technologies and provide an air conditioning equipment control method and a multi-air conditioning equipment management system to solve the technical problem in the related technologies that multiple air conditioning equipment cannot be uniformly and efficiently controlled.
[0007] In one aspect, the present invention provides an air conditioning equipment control method, comprising:
[0008] The Web front end obtains the control parameters entered by the user through the web device access control interface;
[0009] The Web front end generates a control instruction according to the control parameters;
[0010] The Web front end sends the control instruction to the target air-conditioning device through the Web Serial API, wherein the target air-conditioning device is one or more air-conditioning devices connected to a multi-air-conditioning device management system.
[0011] In some implementations, the Web front end sends the control instruction to the target air conditioning device through the Web Serial API, including:
[0012] The Web front end assembles the control instructions in JSON format;
[0013] Convert the assembled JSON format control instructions into binary format data;
[0014] The Web front end sends the binary format data to the target air conditioning device through a writer;
[0015] Accordingly, the method further includes:
[0016] The target air conditioning device receives response data in binary format through a reader in response to the control instruction;
[0017] The target air-conditioning device returns the response data in binary format to the Web front end;
[0018] The Web front end converts the response data in binary format into data in JSON format so that the user can view the status information of the air conditioner.
[0019] In some implementations, before the Web front end sends the control instruction to the target air conditioning device through the Web Serial API, the method further includes:
[0020] The Web front end calls the serial request port to call the serial port list selection dialog box;
[0021] receiving a serial port selected by a user in the serial port list selection dialog box as a target serial interface;
[0022] When the user determines to select the target serial port, granting the front-end application program access to the target serial port through the browser;
[0023] The web front end opens the target serial port and obtains a writer to asynchronously send data to the target air conditioning device;
[0024] The Web front end acquires a reader to asynchronously receive data from the target air conditioning device.
[0025] In some implementations, before the Web front end opens the target serial port, the method further includes:
[0026] Receiving communication parameters input by a user, wherein the communication parameters include at least one of the following: baud rate, check bit, data bit, stop bit;
[0027] The target serial port is set by the communication parameters.
[0028] In some implementations, the Web front end obtains control parameters input by the user through the web device access control interface, including:
[0029] The access control interface of the Web front end displays a list of multiple air-conditioning devices that have established connections;
[0030] receiving one or more air-conditioning devices to be controlled selected by a user in the access control interface through a web-supported device as target control devices;
[0031] The Web front end receives the control parameters input by the user on the access control interface, and verifies the validity and rationality of the control parameters input by the user.
[0032] In some embodiments, the above method further comprises:
[0033] The Web backend periodically sends status query instructions to the target air conditioner through the Web Serial API;
[0034] The Web backend receives the operating status information returned by the target air-conditioning device after receiving the status query instruction;
[0035] The Web backend parses the running status information to obtain parsed data, and stores the parsed data in a database.
[0036] In some embodiments, the above method further comprises:
[0037] The Web front end obtains the operating status information of the target air-conditioning equipment pushed by the Web back end in real time through WebSocket or long polling;
[0038] The Web front end dynamically updates the operation status information and displays it on the access control interface.
[0039] In some embodiments, the above method further comprises:
[0040] The web front end requests access to the new serial port to identify the newly connected air conditioning device;
[0041] The Web front end sends an initial query instruction through the serial port to obtain device information of the newly connected air-conditioning device;
[0042] The Web front end configures the parameters of the serial port according to a preset device communication protocol.
[0043] Another aspect of the present invention provides a multi-air conditioning equipment management system, comprising:
[0044] The Web front end is used to obtain the control parameters input by the user through the control interface supported by the web device, generate control instructions according to the control parameters, and then send the control instructions to the target air-conditioning device through the Web Serial API;
[0045] Web Serial API, used to establish a serial communication connection between the Web front end and the air conditioning equipment to achieve data transmission and control command sending;
[0046] The web backend is used to process the request sent by the web frontend and communicate with the air-conditioning device to obtain the operating status information of the air-conditioning device;
[0047] At least one air conditioning unit.
[0048] Another aspect of the present invention provides an air conditioning equipment control device, located at a Web front end, comprising:
[0049] An acquisition module is used to acquire control parameters input by a user through a web device access control interface;
[0050] A generating module, used for generating a control instruction according to the control parameters;
[0051] The sending module is used to send the control instruction to the target air-conditioning device through the Web Serial API, wherein the target air-conditioning device is one or more air-conditioning devices connected to the multi-air-conditioning device management system.
[0052] Another aspect of the present invention provides a storage medium having a computer program stored thereon, wherein the program implements the steps of any of the aforementioned methods when executed by a processor.
[0053] In another aspect, the present invention provides an air conditioner, comprising a processor, a memory, and a computer program stored in the memory and executable on the processor, wherein the processor implements the steps of any of the aforementioned methods when executing the program.
[0054] In yet another aspect, the present invention provides a computer program product, comprising a computer program, wherein when the computer program is executed by a processor, the steps of any of the aforementioned methods are implemented.
[0055] According to the technical solution of the present invention, the control parameters input by the user through the web device access control interface are obtained through the Web front end, and then the Web front end generates control instructions according to the control parameters; then, the Web front end sends the control instructions to the target air-conditioning device through the WebSerial API. That is, by adopting the Web Serial API technology, a batch control system for multiple air-conditioning devices without dedicated hardware or mobile applications is realized. Users can use any Web-supported device (such as PC, tablet, mobile phone, etc.) for control without installing additional APP. The system supports the simultaneous control of multiple air-conditioning devices. Users can manage the air conditioners in multiple rooms or areas through a unified interface, view the operating status in real time, and receive fault alarm information to perform equipment maintenance in a timely manner. The above solution solves the existing technical problem of being unable to uniformly and efficiently control multiple air-conditioning devices, and achieves the technical effect of effectively improving the management efficiency and energy efficiency of air-conditioning equipment. BRIEF DESCRIPTION OF THE DRAWINGS
[0056] The drawings described herein are used to provide a further understanding of the present invention and constitute a part of the present invention. The exemplary embodiments of the present invention and their descriptions are used to explain the present invention and do not constitute an improper limitation of the present invention. In the drawings:
[0057] Figure 1 is a method schematic diagram of an embodiment of the air conditioning equipment control method provided by the present invention;
[0058] Figure 2 It is a schematic diagram of the architecture of a multi-air conditioning equipment management system provided by the present invention;
[0059] Figure 3 It is a system flow chart provided by the present invention;
[0060] Figure 4 It is a structural block diagram of another embodiment of the air conditioning equipment control device provided by the present invention. DETAILED DESCRIPTION
[0061] In order to make the purpose, technical solution and advantages of the present invention clearer, the technical solution of the present invention will be clearly and completely described below in conjunction with the specific embodiments of the present invention and the corresponding drawings. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of the present invention.
[0062] It should be noted that the terms "first", "second", etc. in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the present invention described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units that are clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.
[0063] In this example, it is considered that users can use Web-enabled devices to achieve control without purchasing dedicated hardware or installing specific applications, thereby reducing the threshold and cost of use. Control is achieved through Web technology, supporting cross-platform operations, and users can operate on any Web-enabled device, thereby improving compatibility and freedom of choice. Furthermore, it supports simultaneous control of multiple air-conditioning devices, and users can manage air-conditioning in multiple rooms or areas through a unified interface, which simplifies the operation process and improves management efficiency. Furthermore, it supports real-time viewing of the operating status of the air-conditioning and receiving fault alarm information, so as to perform maintenance in a timely manner, improving the reliability and maintenance efficiency of the equipment. Through WebSerial API technology, flexible device expansion is supported, and users can easily add new air-conditioning equipment without additional hardware upgrades or complex configurations. Through the above technical solutions, the convenience, efficiency and reliability of multi-air-conditioning equipment management are significantly improved, providing users with a more flexible and efficient air-conditioning equipment management solution.
[0064] Based on this, the present invention provides an air conditioning equipment control method, which is particularly suitable for implementing management and control of multiple air conditioning equipment.
[0065] Figure 1 It is a method schematic diagram of an embodiment of the air conditioning equipment control method provided by the present invention.
[0066] like Figure 1 As shown, according to one embodiment of the present invention, the air conditioning equipment control method at least includes step S110, step S120 and step S130.
[0067] Step S110: The Web front end obtains the control parameters input by the user through the web-supported device access control interface;
[0068] Specifically, the Web front end sends the control instruction to the target air-conditioning device through the Web Serial API, which may include: the Web front end assembles the control instruction in JSON format; converts the assembled JSON format control instruction into binary format data; the Web front end sends the binary format data to the target air-conditioning device through a writer; accordingly, the target air-conditioning device responds to the control instruction and can receive binary format response data through a reader; the target air-conditioning device returns the binary format response data to the Web front end; the Web front end converts the binary format response data into JSON format data for the user to view the status information of the air conditioner.
[0069] When implementing, it is necessary to convert the control instructions sent by the Web front end into a format that the air conditioner can recognize, and convert the status information returned by the air conditioner into a data format that the Web front end can use. Specifically, if the Web front end and the air conditioner are transmitting data via a binary protocol, the data transmission format conversion is as follows:
[0070] 1) Regarding the data format conversion from the Web front end to the air-conditioning device, before sending the control command to the air-conditioning device, the Web front end can first assemble the user control command data in JSON format, and then convert the assembled JSON format data into binary format data, and send the binary format data to the air-conditioning device.
[0071] 2) Regarding the data format conversion from the air-conditioning device to the Web front-end, when the air-conditioning device returns the air-conditioning status information to the Web front-end, it responds to the Web front-end in binary format data, and the Web front-end converts the binary format data responded by the air-conditioning device into JSON format data and displays it for users to view the air-conditioning status information.
[0072] Step S120: The Web front end generates a control instruction according to the control parameters;
[0073] Step S130: The Web front end sends the control instruction to the target air-conditioning device through the Web Serial API, wherein the target air-conditioning device is one or more air-conditioning devices connected to the multi-air-conditioning device management system.
[0074] The above-mentioned Web Serial API is used to establish an efficient serial communication connection between the Web front end and the air-conditioning equipment. Based on this, before the Web front end sends the control instruction to the target air-conditioning equipment through the Web Serial API, the Web front end can call the serial request port to retrieve the serial port list selection dialog box; receive the serial port selected by the user in the serial port list selection dialog box as the target serial interface; when the user determines to select the target serial port, grant the front-end application access to the target serial port through the browser; the Web front end opens the target serial port and obtains a writer to asynchronously send data to the target air-conditioning equipment; the Web front end obtains a reader to asynchronously receive data from the target air-conditioning equipment.
[0075] In order to establish a serial port, before the Web front end opens the target serial port, communication parameters input by the user can be received, wherein the communication parameters include at least one of the following: baud rate, parity bit, data bit, stop bit; the target serial port is set by the communication parameters. That is, before opening the serial port, the user can set the communication parameters, wherein the port parameters may include but are not limited to at least one of the following: baud rate, parity bit, data bit, stop bit, etc.
[0076] In order to realize the centralized control of multiple air-conditioning devices, the access control interface of the Web front end can display the device list of multiple air-conditioning devices that have been connected; then, the user can receive one or more (such as two or more) air-conditioning devices to be controlled selected in the access control interface through the supporting web device as the target control device; the Web front end receives the control parameters input by the user on the access control interface, and verifies the validity and rationality of the control parameters input by the user. That is, the centralized management and control of multiple air-conditioning devices is realized through the interaction between the Web interface and the user.
[0077] For the Web backend, the Web backend can periodically send status query instructions to the target air-conditioning device through the Web Serial API; the Web backend receives the operating status information returned by the target air-conditioning device after receiving the status query instruction; the Web backend parses the operating status information to obtain parsed data, and stores the parsed data in a database.
[0078] Furthermore, the Web backend also monitors the status information of the device in real time to detect whether there are any abnormal conditions, such as: over-temperature, abnormal mode, etc. When an abnormality is detected, the Web backend generates an alarm message and notifies the user through the front-end interface or email.
[0079] In the specific implementation, the Web front end can also actively obtain the operating status information of the target air-conditioning equipment pushed by the Web back end in real time through WebSocket or long polling; the Web front end dynamically updates the operating status information and displays it on the access control interface, so that the user can view the status of the air-conditioning equipment in real time.
[0080] In this example, the Web Serial API technology supports flexible device expansion, allowing users to easily connect and manage new air-conditioning equipment. Based on this, the user requests access to the new serial port through the front-end interface to connect the new air-conditioning equipment. Specifically, the front-end can call the navigator.serial.requestPort() method through JavaScript to request access to the new serial port. The system automatically identifies the newly connected air-conditioning equipment and sends an initial query instruction through the serial interface to obtain the basic information of the equipment (for example: equipment model, supported communication protocols, etc.). Then, according to the communication protocol of the device, the parameters of the serial interface are automatically configured, such as: baud rate, check bit, data bit, stop bit, etc. That is, the Web front-end can request access to the new serial port to identify the newly connected air-conditioning equipment; the Web front-end sends an initial query instruction through the serial port to obtain the device information of the newly connected air-conditioning equipment; the Web front-end configures the parameters of the serial port according to the preset device communication protocol.
[0081] The above method is described below in conjunction with a specific embodiment. However, it should be noted that this specific embodiment is only for better illustrating the present application and does not constitute an improper limitation on the present application.
[0082] At present, the existing multi-air conditioning equipment management technology has the following main problems: 1) Dedicated hardware or specific applications are required, which increases user costs and difficulty of use. 2) Dedicated mobile applications can only run on specific operating systems (such as IOS or Android), which limits user choices. 3) The operation is complicated. Each device needs to be set up separately for batch control, so the efficiency is low. 4) The real-time monitoring capability is limited. Users cannot obtain the operating status and fault information in time, resulting in untimely maintenance. 5) Poor scalability. When adding new equipment, additional configuration or hardware upgrades may be required.
[0083] In order to solve the problem of scalability limitations in existing multi-device control, this example considers that Web Serial API technology can be used to provide a multi-air conditioning equipment batch control and real-time monitoring solution for smart air conditioners. This not only solves the limitations of existing control methods, but also improves the convenience and intelligence level of air conditioning control, thereby effectively improving user experience, management efficiency and energy efficiency. In other words, the application of Web Serial API technology in the smart home market can bring users a more comfortable and convenient life experience.
[0084] Specifically, in this example, a batch control system for multiple air conditioners is implemented without dedicated hardware or mobile applications by using Web Serial API technology. Users can use any Web-enabled device (such as PC, tablet, mobile phone, etc.) for control without installing additional apps. The system supports simultaneous control of multiple air conditioners. Users can manage air conditioners in multiple rooms or areas through a unified interface, view the operating status in real time, and receive fault alarm information for timely equipment maintenance. Furthermore, by setting a batch setting mode in the system, the operation process can be simplified and management efficiency can be improved.
[0085] In this example, a multi-air conditioning equipment management system is provided, such as Figure 2 As shown, it may include:
[0086] 1) Web front-end, which provides an interface for users to access through Web-enabled devices (such as PCs, tablets, mobile phones, etc.). The Web front-end is used to display the status of the air-conditioning equipment, receive control instructions input by users, and display real-time monitoring data. It is used to obtain the control parameters input by users through web-enabled devices to access the control interface, and generate control instructions based on the control parameters, and then send the control instructions to the target air-conditioning equipment through the Web Serial API;
[0087] 2) Web backend, used to process requests sent by the front end, communicate with the air-conditioning equipment, and return equipment status and control results.
[0088] 3) Web Serial API, used to establish a serial communication connection between the Web front end and the air conditioning equipment to achieve data transmission and control command sending.
[0089] In this case, Web Serial API (i.e., Web Serial API) is a new Web API provided through a browser, which allows Web applications to communicate with serial devices through serial ports to achieve data transmission and control command sending. This communication method allows users to remotely control air-conditioning equipment through a Web interface, for example, control the switch of air-conditioning equipment, set the temperature of air-conditioning equipment, etc., and receive equipment status information.
[0090] 4) At least one air-conditioning device, which is a plurality of air-conditioning devices that need to be managed, and the air-conditioning devices communicate with the system through a serial interface.
[0091] The above-mentioned Web front-end can be implemented using technologies such as HTML, CSS and JavaScript to build an efficient and user-friendly interactive interface. The main functions of the Web include:
[0092] A, Equipment list display:
[0093] Display detailed information of all connected air conditioning devices, including: device name, model, connection status, etc.;
[0094] Update the current status of each device in real time, such as temperature, mode (cooling / heating / air supply / dehumidification), wind speed, etc.
[0095] Provides a search box and filtering options, allowing users to quickly find devices based on device name, model, status, etc.
[0096] Supports users to group and manage devices according to physical locations such as rooms and floors.
[0097] B, Batch control interface:
[0098] Users can select multiple devices for batch settings, such as: uniformly adjust temperature, mode, wind speed, etc.;
[0099] Provides multiple preset modes (e.g. sleep mode, energy saving mode, etc.), and users can apply these modes to selected devices with one click.
[0100] Set up scheduled tasks, such as automatically adjusting the operating status of a device at a specified time.
[0101] Record the history logs of all batch operations for easy viewing and tracing by users.
[0102] C, real-time monitoring interface:
[0103] The operating status of the air-conditioning equipment is displayed in real time through charts and numbers, including: temperature change curve, mode switching record, wind speed change, etc.
[0104] When a device fails, the system immediately issues an alarm and displays the fault code and description to help users quickly locate the problem.
[0105] Provides historical data query function, users can view the operating status and change trend of the equipment in a certain period of time in the past.
[0106] D. Based on the operating parameters of the equipment, the system can issue early warnings to alert users of impending problems.
[0107] Among them, the above-mentioned user interaction interface can provide an intuitive control panel, and users can adjust the temperature, mode, wind speed, etc. of the air-conditioning equipment by clicking buttons or entering numerical values; the user interaction interface can also support users to customize various settings of the equipment, such as: setting upper and lower temperature limits, wind speed preferences, etc.; it can also provide detailed instructions and operating guides to help users get started quickly; by setting up a feedback channel, users can submit problems and suggestions encountered during use at any time to improve the user experience.
[0108] The above-mentioned Web backend can be implemented using Node.js technology to build an efficient and scalable server architecture. The main functions include:
[0109] A. Request processing: First, the Web backend receives the HTTP request sent by the Web frontend, parses the request parameters and data, and then processes the request according to the type (e.g., obtaining device status, sending control instructions, etc.). After processing the request, the corresponding response data is generated and returned to the Web frontend. Furthermore, errors that occur during the request process can be captured and processed to ensure the stability and reliability of the system.
[0110] B. Air conditioning equipment communication. Establish a communication connection with the air conditioning equipment through the Web Serial API. Send control commands through the established communication connection and receive status information returned by the equipment. In addition, record all communication data with the air conditioning equipment to facilitate debugging and troubleshooting.
[0111] C. Data storage: Use a high-performance database to store device status information and design a reasonable data structure to store the real-time status and historical data of the device; back up the database regularly to ensure the security and integrity of the data; provide an efficient query interface to support users to query historical data by time range, device ID and other conditions.
[0112] D. Fault alarm: monitor the running status of the equipment in real time and detect whether the equipment is abnormal; automatically detect equipment faults according to preset fault rules and thresholds; when a fault is detected, send alarm information to the user through the Web front-end interface, email, SMS, etc.; record all alarm information, including: fault time, fault type, processing results, etc., to facilitate subsequent analysis and improvement.
[0113] When implementing, it is necessary to convert the control instructions sent by the Web front end into a format that the air conditioner can recognize, and convert the status information returned by the air conditioner into a data format that the Web front end can use. Specifically, if the Web front end and the air conditioner are transmitting data via a binary protocol, the data transmission format conversion is as follows:
[0114] Regarding the data format conversion from the Web front end to the air-conditioning device, before sending the control command to the air-conditioning device, the Web front end can first assemble the user control command data in JSON format, and then convert the assembled JSON format data into binary format data, and send the binary format data to the air-conditioning device.
[0115] Regarding the data format conversion from the air-conditioning device to the Web front-end, when the air-conditioning device returns the air-conditioning status information to the Web front-end, it responds to the Web front-end in binary format data, and the Web front-end converts the binary format data responded by the air-conditioning device into JSON format data and displays it for users to view the air-conditioning status information.
[0116] The Web Serial API is used to establish an efficient serial communication connection between the Web front end and the air conditioning equipment, which may include the following steps:
[0117] S1: Request access to the serial port:
[0118] The web front-end calls the navigator.serial.requestPort() method through JavaScript to request access to the device's serial port. The navigator.serial.requestPort() method pops up a serial port list selection dialog box for the user to select an available serial port. If the user agrees to connect to the selected serial port, the browser grants the front-end application access to the port. Requesting access to the serial port is a function provided by the Web Serial API.
[0119] S: Open the serial port:
[0120] After the user selects a suitable serial port, the Web front end opens the port by calling the port.open() method, obtains the writer through the port.writable.getWriter() method, and uses it to asynchronously send data to the air conditioner. At the same time, the reader is obtained through the port.readable.getReader() method, and is used to asynchronously receive data from the air conditioner. Opening the serial port is a function provided by the Web Serial API.
[0121] Before opening the serial port, the user can set communication parameters, wherein the port parameters may include but are not limited to at least one of the following: baud rate, parity bit, data bit, stop bit, etc.
[0122] S3: Control command sending:
[0123] The web front end converts the control instructions (such as temperature, mode, wind speed, etc.) input by the user into binary format data, and then sends the binary format data to the air conditioning equipment through the writer.
[0124] S4: Status information reception:
[0125] The status information returned by the air conditioning equipment is received through the reader, and the received binary format data is parsed into a readable format (for example: ciphertext decryption), and then the parsed status information is displayed on the Web front-end interface for users to view.
[0126] The above-mentioned air conditioning equipment communicates with the system through a serial interface to ensure accurate data transmission and efficient control of the equipment. Specifically, the following steps may be included:
[0127] S1: Serial interface configuration:
[0128] The air conditioner configures the serial interface and sets the same communication parameters as the Web Serial API. The communication parameters may include but are not limited to at least one of the following: baud rate, data bit, stop bit, and parity check, etc. For example: baud rate: 9600, data bit: 8, stop bit: 1, parity bit: none.
[0129] S2: Receive control instructions:
[0130] The air conditioning equipment receives control instructions from the system through the serial interface, and temporarily stores the received data in a buffer, then reads the control instructions from the buffer and parses the instruction content.
[0131] S3: Execute control instructions:
[0132] The air conditioning equipment performs corresponding operations according to the parsed instruction content, such as adjusting the temperature, switching modes, changing the wind speed, etc.
[0133] S4: Return status information:
[0134] The air conditioning equipment collects the current operating status information, which may include: temperature, mode, wind speed, etc., and returns the collected status information to the system through the serial interface.
[0135] Through the batch control function, users can efficiently set up multiple air conditioning devices in a unified manner. Specifically, the system flow chart can be as follows Figure 3 As shown, the following steps are included:
[0136] S1: Select device:
[0137] The web front-end interface displays a list of all connected air conditioning devices for users to view. Users can select one or more air conditioning devices that need to be batch controlled, for example: select multiple devices by checking boxes or dragging.
[0138] S2: Set parameters:
[0139] In the Web front-end interface, users can enter unified control parameters, such as temperature, mode, wind speed, etc. The Web front-end verifies the parameters entered by users to ensure their validity and rationality. For example, the temperature range should be within the allowed range, and the mode should be a valid option (for example, cooling, heating, air supply, dehumidification, etc.).
[0140] S3: Generate control instructions:
[0141] The Web front end generates corresponding control instructions based on the parameters entered by the user, and each parameter corresponds to a specific instruction format.
[0142] S4: Send control instructions:
[0143] The Web front end sends the generated control instructions to all selected air-conditioning devices through the Web Serial API and ensures that each selected device receives the same control instructions.
[0144] S5: Device execution instructions:
[0145] The air conditioning device receives the control instructions sent by the Web front end through the serial interface, and parses the received control instructions to extract specific control parameters. Then, according to the parsed instruction content, the air conditioning device performs corresponding operations, such as adjusting the temperature, switching modes, changing the wind speed, etc. Then, the air conditioning device returns the execution results to the Web front end through the serial interface.
[0146] S6: Display the execution results:
[0147] The Web front end receives the execution results returned by all devices through the Web Serial API, and finally displays the received execution results on the Web front end interface, so that users can view the effects of batch control.
[0148] Furthermore, through real-time monitoring, users can obtain the operating status of air-conditioning equipment in real time and deal with abnormal situations in a timely manner. Real-time monitoring can specifically include:
[0149] S1: Device status polling:
[0150] The Web backend periodically sends status query instructions to the air-conditioning equipment through the Web Serial API to ensure that the operating status of the equipment is obtained in real time.
[0151] S2: Receive status information:
[0152] After receiving the status query command, the air conditioning device collects the current operating status information of the device and returns it to the Web backend.
[0153] S3: Data analysis:
[0154] After receiving the device status information, the Web backend parses the data and stores it in the database.
[0155] S4: Real-time display:
[0156] The Web front end uses WebSocket or long polling technology to obtain device status information pushed by the back end in real time and dynamically update interface data.
[0157] S5: Fault alarm:
[0158] The Web backend monitors the status information of the device in real time and detects whether there are any abnormal conditions, such as overtemperature, abnormal mode, etc. When an abnormality is detected, the Web backend generates an alarm message and notifies the user through the front-end interface or email.
[0159] In this example, the Web Serial API technology supports flexible device expansion, allowing users to easily connect and manage new air conditioning equipment. The specific steps include:
[0160] S1: New air conditioning equipment connection:
[0161] The user requests access to a new serial port through the front-end interface to connect a new air conditioner. Specifically, the front-end calls the navigator.serial.requestPort() method through JavaScript to request access to the new serial port.
[0162] S2: Device identification and configuration:
[0163] The system automatically identifies the newly connected air conditioning equipment and sends an initial query command through the serial interface to obtain basic information about the equipment (e.g. equipment model, supported communication protocols, etc.). Then, according to the communication protocol of the equipment, the system automatically configures the parameters of the serial interface, such as baud rate, parity bit, data bit, stop bit, etc.
[0164] S3: Device Management:
[0165] Unified interface management: after a new device is added, users can manage and control it through a unified front-end interface without the need for additional hardware upgrades or complex configurations; in addition, the device list on the Web front-end interface will automatically update to display all connected devices and their status.
[0166] In the above example, by adopting Web Serial API technology, a batch control and real-time monitoring system for multiple air-conditioning devices is implemented without the need for dedicated hardware or applications. The system supports cross-platform operations, simplifies the operating process, monitors the device status in real time, and provides flexible device expansion capabilities.
[0167] Figure 4 FIG. 1 is a structural block diagram of an embodiment of the air conditioning equipment control device provided by the present invention. Figure 4 As shown, located at the Web front end, the air conditioning equipment control device 100 includes: an acquisition module 401, a generation module 402 and a sending module 403.
[0168] Acquisition module 401, used to acquire control parameters input by the user through the web device access control interface;
[0169] A generating module 402, configured to generate a control instruction according to the control parameters;
[0170] The sending module 403 is used to send the control instruction to the target air-conditioning device through the Web Serial API, wherein the target air-conditioning device is one or more air-conditioning devices connected to the multi-air-conditioning device management system.
[0171] In a specific implementation, the sending module 403 is specifically used to assemble the control instruction in JSON format; convert the assembled control instruction in JSON format into binary format data; and send the binary format data to the target air conditioning device through a writer;
[0172] Correspondingly, the target air-conditioning device responds to the control instruction and receives response data in binary format through the reader; the target air-conditioning device returns the response data in binary format to the Web front end; the Web front end converts the response data in binary format into data in JSON format so that the user can view the status information of the air conditioner.
[0173] In a specific embodiment, before the Web front end sends the control instruction to the target air-conditioning equipment through the Web SerialAPI, the Web front end calls the serial request port to retrieve the serial port list selection dialog box; receives the serial port selected by the user in the serial port list selection dialog box as the target serial interface; when the user determines to select the target serial port, grants the front-end application access to the target serial port through the browser; the Web front end opens the target serial port and obtains a writer to asynchronously send data to the target air-conditioning equipment; the Web front end obtains a reader to asynchronously receive data from the target air-conditioning equipment.
[0174] In a specific implementation, before the Web front end opens the target serial port, communication parameters input by the user can also be received, wherein the communication parameters include at least one of the following: baud rate, check bit, data bit, stop bit; the target serial port is set by the communication parameters.
[0175] In a specific implementation, the Web front end obtains control parameters input by the user through an access control interface of a web-supported device, which may include: the access control interface of the Web front end displays a device list of multiple air-conditioning devices with established connections; receives one or more air-conditioning devices to be controlled selected by the user in the access control interface through a web-supported device as target control devices; the Web front end receives the control parameters input by the user on the access control interface, and verifies the validity and rationality of the control parameters input by the user.
[0176] In a specific implementation, the Web backend in the above-mentioned air-conditioning equipment control device periodically sends status query instructions to the target air-conditioning equipment through the Web Serial API; the Web backend receives the operating status information returned by the target air-conditioning equipment after receiving the status query instruction; the Web backend parses the operating status information to obtain parsed data, and stores the parsed data in a database.
[0177] In a specific implementation, the Web front end obtains the operating status information of the target air-conditioning equipment pushed by the Web back end in real time through WebSocket or long polling; the Web front end dynamically updates the operating status information and displays it on the access control interface.
[0178] In a specific implementation, the Web front end requests access to a new serial port to identify a newly connected air-conditioning device; the Web front end sends an initial query instruction through the serial port to obtain device information of the newly connected air-conditioning device; the Web front end configures the parameters of the serial port according to a preset device communication protocol.
[0179] The present invention also provides a storage medium corresponding to the air conditioning equipment control method, on which a computer program is stored, and when the computer program is executed by a processor, the steps of any of the aforementioned methods are implemented.
[0180] The present invention also provides an air conditioner corresponding to the air conditioning equipment control method, comprising a processor, a memory, and a computer program stored in the memory and executable on the processor, wherein the processor implements the steps of any of the aforementioned methods when executing the computer program.
[0181] The present invention also provides an air conditioner corresponding to the air conditioner control device, comprising any of the air conditioner control devices described above.
[0182] The present invention also provides a computer program product corresponding to the air conditioning equipment control method, comprising a computer program, and when the computer program is executed by a processor, the steps of any of the aforementioned methods are implemented.
[0183] Accordingly, the solution provided by the present invention obtains the control parameters input by the user through the control interface supported by the web device access through the Web front end, and then the Web front end generates the control instructions according to the control parameters; then, the Web front end sends the control instructions to the target air-conditioning device through the WebSerial API. That is, by adopting the Web Serial API technology, a batch control system for multiple air-conditioning devices without dedicated hardware or mobile applications is realized. Users can use any Web-supported device (for example: PC, tablet, mobile phone, etc.) for control without installing additional APP. The system supports the simultaneous control of multiple air-conditioning devices. Users can manage the air conditioners in multiple rooms or areas through a unified interface, view the operating status in real time, and receive fault alarm information so as to perform equipment maintenance in time. The above solution solves the existing technical problem of being unable to perform unified and efficient control of multiple air-conditioning devices, and achieves the technical effect of effectively improving the management efficiency and energy efficiency of air-conditioning equipment.
[0184] The functions described herein may be implemented in hardware, software executed by a processor, firmware, or any combination thereof. If implemented in software executed by a processor, the functions may be stored as one or more instructions or codes on a computer-readable medium or transmitted via a computer-readable medium. Other examples and implementations are within the scope and spirit of the present invention and the appended claims. For example, due to the nature of software, the functions described above may be implemented using software executed by a processor, hardware, firmware, hard wiring, or a combination of any of these. In addition, each functional unit may be integrated into a processing unit, each unit may exist physically separately, or two or more units may be integrated into one unit.
[0185] In the several embodiments provided in this application, it should be understood that the disclosed technical content can be implemented in other ways. Among them, the device embodiments described above are only schematic. For example, the division of the units can be a logical function division. There may be other division methods in actual implementation. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of units or modules, which can be electrical or other forms.
[0186] The units described as separate components may or may not be physically separated, and the components of the control device may or may not be physical units, that is, they may be located in one place or distributed in multiple units. Some or all of the units may be selected according to actual needs to achieve the purpose of the present embodiment.
[0187] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, in essence, or the part that contributes to the relevant technology or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions to enable a computer device (which can be a personal computer, a server or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: U disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), mobile hard disk, disk or optical disk and other media that can store program codes.
[0188] The above description is only an embodiment of the present invention and is not intended to limit the present invention. For those skilled in the art, the present invention may have various modifications and variations. Any modification, equivalent substitution, improvement, etc. made within the spirit and principle of the present invention shall be included in the scope of the claims of the present invention.
Claims
1. A method for controlling an air conditioning device, characterized in that: include: The Web front end obtains the control parameters entered by the user through the web device access control interface; The Web front end generates a control instruction according to the control parameters; The Web front end sends the control instruction to the target air-conditioning device through the Web Serial API, wherein the target air-conditioning device is one or more air-conditioning devices connected to the multi-air-conditioning device management system.
2. The method according to claim 1, characterized in that The Web front end sends the control instruction to the target air-conditioning device through the Web Serial API, including: The Web front end assembles the control instructions in JSON format; Convert the assembled JSON format control instructions into binary format data; The Web front end sends the binary format data to the target air conditioning device through a writer; Accordingly, the method further includes: The target air conditioning device receives response data in binary format through a reader in response to the control instruction; The target air-conditioning device returns the response data in binary format to the Web front end; The Web front end converts the response data in binary format into data in JSON format so that the user can view the status information of the air conditioner.
3. The method according to claim 1, characterized in that Before the Web front end sends the control instruction to the target air-conditioning device through the Web Serial API, the method further includes: The Web front end calls the serial request port to call the serial port list selection dialog box; receiving a serial port selected by a user in the serial port list selection dialog box as a target serial port; When the user determines to select the target serial port, granting the front-end application program access to the target serial port through the browser; The web front end opens the target serial port and obtains a writer to asynchronously send data to the target air conditioning device; The Web front end acquires a reader to asynchronously receive data from the target air conditioning device.
4. The method according to claim 3, characterized in that Before opening the target serial port on the web front end, also include: Receiving communication parameters input by a user, wherein the communication parameters include at least one of the following: baud rate, check bit, data bit, stop bit; The target serial port is set by the communication parameters.
5. The method according to claim 1, characterized in that The web front end obtains the control parameters entered by the user through the web device access control interface, including: The access control interface of the Web front end displays a list of multiple air-conditioning devices that have established connections; receiving one or more air-conditioning devices to be controlled selected by a user in the access control interface through a web-supported device as target control devices; The Web front end receives the control parameters input by the user on the access control interface, and verifies the validity and rationality of the control parameters input by the user.
6. The method according to claim 1, characterized in that Also includes: The Web backend periodically sends status query instructions to the target air conditioner through the Web Serial API; The Web backend receives the operating status information returned by the target air-conditioning device after receiving the status query instruction; The Web backend parses the running status information to obtain parsed data, and stores the parsed data in a database.
7. The method according to claim 6, characterized in that Also includes: The Web front end obtains the operating status information of the target air-conditioning equipment pushed by the Web back end in real time through WebSocket or long polling; The Web front end dynamically updates the operation status information and displays it on the access control interface.
8. The method according to claim 1, characterized in that Also includes: The web front end requests access to the new serial port to identify the newly connected air conditioning device; The Web front end sends an initial query instruction through the serial port to obtain device information of the newly connected air-conditioning device; The Web front end configures the parameters of the serial port according to a preset device communication protocol.
9. A multi-air conditioning equipment management system, characterized in that: include: The Web front end is used to obtain the control parameters input by the user through the control interface supported by the web device, generate control instructions according to the control parameters, and then send the control instructions to the target air-conditioning equipment through the Web Serial API; Web Serial API, used to establish a serial communication connection between the Web front end and the target air conditioning equipment to achieve data transmission and control command sending; The Web backend is used to process the request sent by the Web frontend and communicate with the target air-conditioning device to obtain the operating status information of the target air-conditioning device; At least one air conditioning unit.
10. An air conditioning equipment control device, characterized in that: Located on the Web front end, including: An acquisition module is used to acquire control parameters input by a user through a web device access control interface; A generating module, used for generating a control instruction according to the control parameters; The sending module is used to send the control instruction to the target air-conditioning device through the Web Serial API, wherein the target air-conditioning device is one or more air-conditioning devices connected to the multi-air-conditioning device management system.
11. A storage medium, characterized in that: A computer program is stored thereon, and when the program is executed by a processor, the steps of any method described in claims 1-8 are implemented.
12. An air conditioner, characterized in that: The method comprises a processor, a memory and a computer program stored in the memory and executable on the processor, wherein the steps of the method according to any one of claims 1 to 8 are implemented when the processor executes the program.
13. A computer program product, characterized in that The invention comprises a computer program, which implements the steps of any one of the methods of claims 1 to 8 when executed by a processor.