Control method of parallel operation control system
By using wireless modules to support the Thread protocol in the parallel control system, the complex and cumbersome wiring problems are solved, wireless connection is realized, assembly and maintenance complexity is reduced, network configuration is simplified, and the status of parallel equipment is supported in real time.
Patent Information
- Application Number
- CN202411868392.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-17
- Publication Date
- 2025-04-22
AI Technical Summary
The wiring in existing parallel control systems is complicated and cumbersome, prone to connection errors and inconvenient maintenance.
A parallel control system that supports the Thread protocol is adopted to obtain physical address information, detect the Thread network, create a target Thread network, allow other wireless modules to join, multicast query information, receive operation information, and establish a wireless communication connection with the mobile terminal.
No wiring is required, reducing the assembly complexity and maintenance complexity of the parallel control system, simplifying network configuration, and users do not need manual intervention to achieve real-time monitoring of the status and behavior of the parallel equipment.
Smart Images

Figure CN119865875A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of wireless communication, and in particular to a control method of a parallel control system. Background Art
[0002] Traditional parallel control systems often include a variety of different devices that need to be connected together through wired methods such as RS485, RS232, etc. Since all devices in the parallel control system need to be connected in pairs, a large number of communication cables are required, which will lead to complex and cumbersome wiring, prone to connection errors, and inconvenience in maintenance. Summary of the invention
[0003] The technical problem to be solved by the embodiments of the present invention is to provide a control method for a parallel control system to solve the problems in the prior art of complex and cumbersome wiring, easy connection errors and inconvenient maintenance.
[0004] The present invention discloses a control method for a parallel control system, which is applied to a parallel control system, wherein the parallel control system includes at least one parallel unit, each parallel unit includes a wireless module and a parallel device connected to each other, and the wireless module supports the Thread protocol;
[0005] The control method of the parallel control system includes:
[0006] Get its own physical address information and scan to detect whether there is a Thread network within the current communication range;
[0007] If it is detected that no Thread network exists, it will create a target Thread network based on the preset personal area network identifier and network key, and declare itself as the leader module of the target Thread network;
[0008] Allowing other wireless modules to join the target Thread network to complete the establishment of the target Thread network;
[0009] Multicast query information to all non-Leader modules in the target Thread network; receive operation information obtained and unicasted by the non-Leader module based on the query information;
[0010] A wireless communication connection is established with the mobile terminal so that the operation information can be fed back to the mobile terminal.
[0011] Optionally, the step of allowing other wireless modules to join the target Thread network includes:
[0012] Receiving other physical address information sent by unicast of the other wireless modules;
[0013] Detecting whether the other physical address information is repeated with the stored physical address information, and if not, storing the other physical address information and a storage identifier corresponding to the other wireless module;
[0014] Data sending and receiving management and package grouping mode management are performed according to the storage identifier.
[0015] Optionally, after the step of declaring itself as the Leader module of the target Thread network, the following steps are included:
[0016] The target communication address is written into its own flash memory, so that the non-Leader module can unicast information to the Leader module according to the target communication address.
[0017] Optionally, the step of multicasting query information to all non-Leader modules in the target Thread network; and receiving operation information acquired and unicasted by the non-Leader module based on the query information comprises:
[0018] Periodically multicast a device quantity query command, receive a feedback identifier fed back by the non-Leader module in response to the device quantity query command; compare the feedback identifier with the storage identifier to obtain the number of online devices; or
[0019] Periodically multicast a device data query name command, receive the device data of the parallel device connected to it obtained through the serial port after the non-Leader module responds to the device data query name command; obtain the device data of the parallel device connected to itself, and feed back all the device data to the mobile terminal, so that the mobile terminal can send the device data to the cloud platform for statistical analysis; or
[0020] The setting command is multicast periodically, so that the non-Leader module can obtain and parse the corresponding setting command and perform the corresponding setting operation, combined with the setting data sent by the non-Leader module after the setting operation is completed.
[0021] Optionally, after the step of allowing other wireless modules to join the target Thread network to complete the step of establishing the target Thread network, the method further includes:
[0022] Send detection information to the non-leader modules in turn according to a preset period, and receive reply information fed back by the non-leader modules;
[0023] If a non-Leader module fails to feed back the reply information for a preset number of consecutive times, the non-Leader module is regarded as a disconnected module, and a corresponding disconnected notification is generated and sent to the mobile terminal;
[0024] The storage identifier of the offline module and other corresponding physical address information are deleted.
[0025] Optionally, the step of scanning and detecting whether there is a Thread network within the current communication range includes:
[0026] If a Thread network is detected, it will actively request to join the Thread network and unicast its own physical address information to the Leader module of the Thread network.
[0027] Optionally, the control method of the parallel control system further includes:
[0028] When the Leader module of the target Thread network is damaged or disconnected, the target Thread network bootstraps a new Leader module from the non-Leader modules, and the remaining non-Leader modules unicast their own physical address information to the new Leader module to form a new target Thread network.
[0029] Optionally, before the step of scanning and detecting whether there is a Thread network within the current communication range, the step includes:
[0030] Establish a wireless communication connection with the mobile terminal, receive configuration information of the mobile terminal, the configuration information includes the preset personal area network identifier and network key, and join the Thread network based on the configuration information.
[0031] Optionally, after the step of declaring itself as the Leader module of the target Thread network, the following steps are included:
[0032] When there is no other wireless module joining the target Thread network, a wireless communication connection is established with the mobile terminal, and corresponding operations are performed based on the control instructions sent by the mobile terminal.
[0033] Optionally, the wireless module supports low-power Bluetooth communication.
[0034] Compared with the prior art, the beneficial effect of the control method of the parallel control system provided by the embodiment of the present invention is that the parallel control system is constructed by wireless connection, which eliminates the need for wiring and reduces the assembly complexity and maintenance complexity of the parallel control system. It can automatically detect whether there is a Thread network in the current communication range. If not, it can automatically create a target Thread network based on the preset personal area network identifier and network key. This simplifies the network configuration process and eliminates the need for manual intervention by users. Multicast query information to all non-Leader modules in the target Thread network, receive operation information obtained and unicasted by the non-Leader module based on the query information, establish a wireless communication connection with the mobile terminal, and feed back the operation information to the mobile terminal. This enables users to monitor and understand the status and behavior of parallel devices in the network in real time. BRIEF DESCRIPTION OF THE DRAWINGS
[0035] The scheme of the present invention will be further described in detail below with reference to the accompanying drawings and embodiments, in which:
[0036] Figure 1 It is a flow chart of an embodiment of a control method of a parallel control system provided by the present invention;
[0037] Figure 2 It is a structural schematic diagram of an embodiment of a parallel control system provided by the present invention;
[0038] Figure 3 It is a flow chart of another embodiment of the control method of the parallel control system provided by the present invention.
[0039] The reference numerals in the figures are:
[0040] 10. Parallel control system; 11. Parallel unit; 111. Wireless module; 112. Parallel equipment;
[0041] 20. Mobile terminal; 30. Cloud platform. DETAILED DESCRIPTION
[0042] It should be noted that, in the absence of conflict, the embodiments and features in the embodiments of the present application can be combined with each other. Now, in conjunction with the accompanying drawings, the preferred embodiments of the present invention are described in detail.
[0043] Please refer to Figure 1 and Figure 2 , Figure 1 is a flow chart of an embodiment of a control method of a parallel control system provided by the present invention, Figure 2It is a structural diagram of an embodiment of the parallel control system provided by the present invention. The parallel control system 10 provided by the present invention includes at least one parallel unit 11, and each parallel unit 11 includes a wireless module 111 and a parallel device 112 connected to each other. The wireless module 111 is a device that integrates a wireless communication function, and is generally used to realize wireless communication between devices. These modules may include at least one of a Bluetooth module, a Wi-Fi module, and a LoRa module, which are used to implement different wireless communication standards. The wireless module 111 can communicate with the parallel device 112 through a serial port. Specifically, the wireless module 111 sends a specific AT (Attention) command through the serial port, and the wireless module 111 can request information about the parallel device 112 to which it is connected, such as device model, firmware version, status, etc.
[0044] By using a standardized AT command set, the wireless module 111 can communicate with the parallel device 112, including querying device information, configuring parameters, controlling device behavior, etc. AT commands can be used in many different application scenarios, so the method can be adapted to various types and models of parallel devices 112 without having to write a specific communication protocol for each parallel device 112 and application.
[0045] In one implementation scenario, the parallel control system 10 is a motorhome system, and the parallel devices 112 are various devices installed on the motorhome, such as a solar charger, an inverter, a battery management system (BMS), a light controller, a temperature sensor, an electric fan, a water pump, etc.
[0046] Wireless module 111 supports the Thread protocol and has the hardware and software functions required to communicate with the Thread network. Thread is a low-power, highly secure IPv6 protocol network designed specifically for communication between IoT devices. The Thread network uses the IEEE 802.15.4 standard as the physical layer, providing self-organization, self-repairing, strong security, and low power consumption.
[0047] The roles of the communication module in the Thread network include Leader, Router, and End Device / Child. : In the Thread network partition, the Leader is responsible for managing the registry that has been assigned Router IDs and accepting requests from REEDs that meet the conditions for upgrading to routers to become routers. The Leader also decides which REEDs should become routers and can also have child nodes. The Leader uses the CoAP protocol to assign and manage router addresses. If the Leader fails or loses connection to the network, other Routers will be elected as new Leaders, and this process does not require user intervention. The Router is responsible for forwarding data packets and always keeps its transceiver open waiting for communication. The End Device or Child mainly communicates with a single Router and does not forward data packets for other network devices. To reduce power consumption, the End Device can turn off its transceiver but still communicate with the network. These roles work together in the Thread network to form a stable, secure, low-power and easily scalable network environment that is suitable for various IoT application scenarios.
[0048] In this implementation scenario, the wireless module 111 as the Leader is connected to the mobile terminal 20 through wireless communication. The mobile terminal 20 is installed with a corresponding application, which can convert the information sent by the Leader into human-computer interaction information to notify the user. The mobile terminal 20 is also connected to the cloud platform 30 through the network, so that the information sent by the Leader can be sent to the cloud platform 30 through the mobile terminal 20, and the cloud platform 30 performs operations such as storage, statistics and data analysis on this information.
[0049] The control method of the parallel control system provided by the present invention comprises the following steps:
[0050] S101: Obtain its own physical address information and scan to detect whether there is a Thread network within the current communication range; if not, execute step S102.
[0051] In a specific implementation scenario, when the parallel control system is started, the wireless module is powered on and initialized, and reads its own physical address information, such as a unique MAC address. The wireless module may include a wireless communication part and a Thread module. The wireless communication part and the Thread module may be integrated into one chip or may be two chips respectively. This embodiment does not limit the specific circuit of the wireless module, and any circuit structure that can realize the wireless communication + Thread function may be used as a wireless module. In this embodiment, the wireless communication part is taken as a BLE (Bluetooth Low Energy) module as an example for explanation. The BLE module starts the BLE protocol stack and reads its own unique MAC address, which is the unique identifier of the BLE module in the BLE network. The Thread module starts the Thread protocol stack, performs initialization settings, such as setting parameters such as frequency and power, and obtains a unique IPv6 address, which may be fixedly stored in the device or dynamically allocated. The BLE module can communicate with BLE modules in other wireless modules of the Thread network, or with mobile terminals.
[0052] In this implementation scenario, BLE and Thread technologies are used. Both technologies have the characteristics of low power consumption and high efficiency, which are very suitable for IoT applications. The wireless module (BLE+Thread) is combined with the parallel device to form a parallel unit. This design enables various parallel devices to be connected through a wireless network and work together.
[0053] After the wireless module is powered on, it will monitor and scan for surrounding Thread network beacons, which contain network-related information such as network name, signal strength, network type, etc. The wireless module can identify specific beacons of the Thread network, so it can detect whether there is a Thread network within the communication range currently supported by itself.
[0054] If a Thread network currently exists, you can try to establish a connection and join the Thread network. If a Thread network currently does not exist, execute step S102 to create a Thread network yourself.
[0055] S102: Create a target Thread network based on the preset personal area network identifier and network key, and declare itself as the Leader module of the target Thread network.
[0056] In a specific implementation scenario, if there is no Thread network currently, the target Thread network will be created by itself. In order to ensure that there is only one Thread network in a parallel control system, the same PANID (Personal Area Network ID) and networkKey (network key) are preset in each wireless module. These two parameters are key information used to identify and connect to a specific Thread network. When each wireless module starts, they will use the preset PAN ID and networkKey to try to join the Thread network. Since they have the same PAN ID and networkKey, they will try to join the same Thread network. And the Thread network created by any wireless module is the same Thread network.
[0057] Use the preset PANID and networkKey to create a Thread network, which is the target Thread network, and announce itself as the leader module of the target Thread network. For example, it can broadcast specific messages and beacons to notify its leader identity. When other wireless modules join the target Thread network later, their leader identities will also be known.
[0058] In other implementation scenarios, when the wireless module acts as a leader module, a fixed IPv6 address is written into the FLASH memory of the wireless module. This IPv6 address will be used as the receiving address to receive information from other non-leader modules in the target Thread network. The non-leader module will send information to the specified fixed IPv6 address, which may be information about device status, data transmission, etc. Wireless modules with different roles can communicate through fixed IPv6 addresses to ensure that information can be accurately delivered to the correct wireless module.
[0059] S103: Allow other wireless modules to join the target Thread network to complete the establishment of the target Thread network.
[0060] In a specific implementation scenario, after other wireless modules are powered on, they scan and detect the target Thread network created by the wireless module. Based on the preset PAN ID and networkKey, they will actively request to join the target Thread network. According to the Thread protocol, other wireless modules will send a joining request and perform the corresponding handshake process.
[0061] Specifically, when other wireless modules actively join the target Thread network, they will send a unicast message containing their own unique other physical address information to the Leader module. The other physical address can be a MAC address. After receiving the other physical address information, the Leader module determines whether it is repeated with the stored physical address information. If not, since the other physical address information is unique, it can be determined that the other wireless module applying to join the target Thread network is a new wireless module, that is, it represents a new parallel device / parallel unit. Therefore, the other wireless module can be allowed to join the target Thread network, store the other physical address information, and assign a storage identifier to the other wireless module to distinguish it from other stored wireless modules. For example, the wireless modules can be sorted according to the order in which the wireless modules join, and the sorted serial number can be used as an identifier, or the identifier can be obtained according to the device type of the parallel device connected to the wireless module.
[0062] After other physical address information is marked with corresponding identifiers and stored, the storage identifier can be associated with the physical address information for data transmission and reception management and packet grouping management. Specifically, the Leader module is responsible for managing the transmission and reception of data between various wireless modules in the target Thread network. It can determine which wireless module the data should be sent from to which wireless module based on the storage identifier to ensure the correct transmission of the data. The Leader module can manage the assembly and disassembly of data packets based on the storage identifier to ensure that the data packets arrive at the target wireless module in the correct order and can be correctly parsed and processed by the wireless module. In general, by managing the transmission and reception of data and the packet grouping method based on the storage identifier, the Leader can effectively coordinate the communication between all wireless modules in the entire target Thread network to ensure the reliable transmission and correct processing of data in the target Thread network.
[0063] S104: Multicast query information to all non-Leader modules in the target Thread network; receive operation information obtained and unicasted by the non-Leader module based on the query information.
[0064] In a specific implementation scenario, non-Leader modules refer to the Router module and End Device / Child module in the target Thread network. The Leader module sends messages to all non-Leader modules in the target Thread network via multicast. Multicast can send data to multiple target devices at one time without sending data packets to each device separately, thus saving bandwidth and network resources. Non-Leader modules send messages to the Leader module via unicast. The unicast method can reduce the amount of data transmission in the network, avoid data conflicts or collisions, thereby reducing network congestion, and is conducive to rapid networking and efficient communication.
[0065] The Leader module can send query information to all non-Leader modules in the target Thread network via multicast. The query information is used to allow at least one non-Leader module to perform corresponding operations, such as querying the device information of the parallel device connected to the non-Leader module, or controlling the parallel device connected to the non-Leader module to perform corresponding operations, etc. After receiving the query information, the non-Leader module can obtain the operations to be performed based on the query information, obtain the corresponding operation information, and send the operation information back to the Leader module via unicast.
[0066] In other implementation scenarios, when the target Thread network is successfully established, the time interval for the Leader module to query the online modules is determined, for example, once every 3 seconds. The Leader module queries the online non-Leader modules in turn in sequence, and the sequence can be based on the sequence in which the non-Leader modules join the target Thread network, or other user-defined sequences. The response of the online non-Leader module can be obtained by sending specific detection information, and the response information of the non-Leader module based on the detection information can be received.
[0067] If a non-Leader module fails to provide feedback for a preset number of consecutive times (for example, 3 times), the Leader module will mark the non-Leader module as a disconnected module, record the storage identifier of the disconnected module, generate a corresponding disconnected notification and send it to the mobile terminal to notify the user of the disconnected module. The disconnected notification may include the corresponding storage identifier, or the device name of the corresponding parallel device, so that the user can promptly check whether the parallel unit where the disconnected module is located has a fault, such as power disconnection, or damage, freeze, etc.
[0068] Once the Leader module marks a non-Leader module as offline, the storage identifier of the offline module and the corresponding other physical address information need to be deleted. Clearing the relevant information of the offline module can help the target Thread network update the status and ensure that the target Thread network will not continue to attempt to communicate with the offline wireless module. In addition, if the user repairs the offline module in the future and the fault is eliminated, it can rejoin the target Thread network. The specific steps for joining are as described above and will not be repeated here. Through the above operations, an efficient and stable target Thread network is established, which can detect offline devices in time and notify users, thereby improving the reliability of the system and user experience.
[0069] In other implementation scenarios, a period is set, and the Leader module periodically broadcasts the device quantity query command to all non-Leader modules in the target Thread network in a multicast manner. After receiving the device quantity query command, the non-Leader module prepares and sends a specific feedback identifier as a response according to the instruction. This feedback identifier can be a unique identifier used to confirm the existence and online status of the wireless module. After receiving the feedback identifier, the Leader module compares it with the previously stored storage identifier. By comparing, it can be determined which wireless modules are online and which wireless modules are offline, thereby calculating the number of currently online wireless modules. Furthermore, the Leader module can send this number to the mobile terminal, so that the user can obtain the number of currently online parallel devices and determine whether the number is correct.
[0070] In other implementation scenarios, a period is set, and the Leader module sends a device data query command in a multicast manner, requiring all non-Leader modules to report the parallel data of the parallel devices to which they are connected. After receiving the device data query command, the non-Leader module communicates with the parallel device to which it is connected through the serial port to obtain the device data of the corresponding parallel device. The Leader module obtains the device data of the parallel device to which it is connected, and feeds back the device data received from the non-Leader module and the device data obtained by itself to the mobile terminal. After receiving the device data, the mobile terminal sends it to the cloud platform for statistical analysis and further processing.
[0071] In other implementation scenarios, the Leader module periodically sends setting commands in a multicast manner to configure the parameters of the device or perform specific operations. The non-Leader module receives and parses the corresponding setting commands to determine the setting operations to be performed, such as adjusting device parameters or performing specific functions. After completing the setting operation, the non-Leader module sends setting data as confirmation or response to notify the Leader module of the execution status of the setting operation. Furthermore, the Leader module can send the execution status to the mobile terminal via a wireless communication connection, so that the user can understand the specific execution status, such as the air conditioner has been turned off, the water heater has been turned on, etc.
[0072] S105: Establishing a wireless communication connection with the mobile terminal, so that the operation information can be fed back to the mobile terminal.
[0073] In a specific implementation scenario, the Leader module establishes a wireless communication connection with the mobile terminal, so that the operation information can be fed back to the mobile terminal. The Leader module can use the communication protocol it supports (such as Bluetooth) to establish a wireless communication connection with the mobile terminal. The Leader module can transmit the operation information received from the non-Leader module to the mobile terminal through this wireless communication connection. After receiving the operation information from the Leader module, the mobile terminal can perform corresponding processing and feedback.
[0074] When the Leader module is connected to the mobile terminal, the user can use a specially designed mobile application (APP) to detect whether the target THREAD network is normal. The application sends a request to the Leader module to obtain the status information of the THREAD network. After receiving the request, the Leader module checks the connection status of the THREAD network, the online status of the device, and other information, and feeds this status information back to the mobile application. After receiving the feedback information, the application displays the status of the THREAD network on the user interface. This may include information such as whether the network connection is normal, the number of online devices, and the working status of the device. The application can also provide user operation options, such as reconnecting to the network, viewing detailed device information, and performing device control operations.
[0075] In other implementation scenarios, when the original leader module of the target Thread network is damaged or disconnected, one of the remaining non-leader modules can choose to become the new leader module. This selection can be based on some predefined rules or algorithms, such as selecting the non-leader module with the highest priority as the new leader. After the new leader module is determined, it will send a broadcast message to the remaining non-leader modules, multicasting them to notify them of the replacement of the leader module in the network. Then, each of the remaining non-leader modules will unicast its own physical address information to the new leader module. After the new leader module collects the physical address information of all non-leader modules, it can rebuild the topology of the target Thread network. In this way, the network can re-establish the connection and continue to operate normally. The new leader module will establish a new wireless communication connection with the mobile terminal, so that the mobile terminal can continue to obtain information and control operations of the entire new target Thread network through the wireless communication connection.
[0076] In other implementation scenarios, when the target Thread network is successfully established and no other wireless modules have joined the target Thread network, the Leader module directly establishes a wireless communication connection with the mobile terminal, and can receive control instructions sent by the mobile terminal through the wireless communication connection. According to the received control instructions, the corresponding operations are performed, such as controlling the switch of smart home devices, adjusting the temperature, or obtaining the device information of the connected parallel devices, and feeding back the device information to the mobile terminal.
[0077] In one implementation scenario, when the mobile terminal establishes a connection with the wireless module, it can be added only through key pairing to prevent illegal users from using it.
[0078] It can be seen from the above description that in this embodiment, by building a parallel control system by wireless connection, wiring is not required, and the assembly complexity and maintenance complexity of the parallel control system are reduced. It can automatically detect whether there is a Thread network in the current communication range. If not, it can automatically create a target Thread network based on the preset personal area network identifier and network key. This simplifies the network configuration process and eliminates the need for manual intervention by users. Multicast query information to all non-Leader modules in the target Thread network, receive operation information obtained and unicasted by non-Leader modules based on the query information, and establish a wireless communication connection with the mobile terminal to feed back the operation information to the mobile terminal. This enables users to monitor and understand the status and behavior of parallel devices in the network in real time.
[0079] Please refer to Figure 2 and Figure 3 , Figure 3 FIG. 1 is a flow chart of another embodiment of a control method for a parallel control system provided by the present invention. The control method for a parallel control system provided by the present invention comprises the following steps:
[0080] S201: Obtain its own physical address information and scan to detect whether there is a Thread network within the current communication range; if so, execute step S202.
[0081] In a specific implementation scenario, step S201 is substantially consistent with step S101 in an embodiment of the control method of the parallel control system provided by the present invention, and will not be described in detail herein.
[0082] S202: Actively request to join the Thread network and unicast its own physical address information to the Leader module of the Thread network.
[0083] In a specific implementation scenario, when it is detected that there is a Thread network within the current communication range, an application can be made to join the Thread network based on the PAN ID and networkKey. The Leader module in the Thread network will confirm the request, and once authenticated, it will be allowed to join the Thread network. The receiving address of the Leader module is a fixed IPV6 address, which can be notified in the form of broadcast. The current wireless module can send its own physical address information to the IPV6 address in the form of unicast, so that the Leader module can verify based on the physical address information. If the physical address information is not repeated with the physical address information of the wireless module that has been stored (already connected to the network), the current wireless module can be allowed to join the Thread network, and a storage identifier in the Thread network is assigned to the wireless module. After the wireless module obtains the storage identifier, it saves the storage identifier. The Leader module and the wireless module communicate based on the storage identifier in the Thread network.
[0084] In other implementation scenarios, when a Thread network exists, the wireless module can also establish a wireless communication connection with a mobile terminal, be configured by the mobile terminal, and based on the settings corresponding to the configuration information including the preset personal area network identifier and network key provided by the mobile terminal, can successfully join the Thread network based on the configuration information of the preset personal area network identifier and network key, and communicate with at least one other wireless module in the Thread network. When the wireless module joins successfully, it sends physical address information to the Leader module in the Thread network and is assigned a corresponding storage identifier, which is roughly the same as the content of the non-Leader module that actively joins the Thread network in the above text, and will not be repeated here.
[0085] S203: Receive query information sent by the Leader module in multicast, and obtain and unicast operation information to the Leader module based on the query information.
[0086] In a specific implementation scenario, after joining the Thread network, the wireless module acts as a non-leader module and receives the query information sent by the leader module in multicast. The query information is used to allow at least one non-leader module to perform corresponding operations, such as querying the device information of the parallel device connected to the non-leader module, or controlling the parallel device connected to the non-leader module to perform corresponding operations, etc. After receiving the query information, the non-leader module can obtain the operations to be performed based on the query information, obtain the corresponding operation information, and send the operation information back to the leader module in unicast mode.
[0087] From the above description, it can be seen that in this embodiment, the parallel control system is constructed by wireless connection, which can eliminate the need for wiring and reduce the assembly complexity and maintenance complexity of the parallel control system. By actively requesting to join when a Thread network is detected within the current communication range through scanning, the Thread network can be automatically joined, which simplifies the process of network configuration and management and improves the user experience.
[0088] The present invention provides an intelligent system. The intelligent system includes a processor and a memory. The processor is coupled to the memory. A computer program is stored in the memory, and the processor executes the computer program when working to implement the above method. The detailed steps can be referred to above and will not be repeated here.
[0089] The present invention provides a computer-readable storage medium. The computer-readable storage medium stores at least one computer program, which is used to be executed by a processor to implement the above method. The detailed steps can be referred to above and will not be repeated here. In one embodiment, the computer-readable storage medium can be a storage chip, a hard disk, or a mobile hard disk or a USB flash drive, an optical disk, or other readable and writable storage tools in a terminal, or a server, etc.
[0090] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program, and the program can be stored in a non-volatile computer-readable storage medium. When the program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to memory, storage, database or other media used in the embodiments provided in this application can include non-volatile and / or volatile memory. Non-volatile memory may include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM) or flash memory. Volatile memory may include random access memory (RAM) or external cache memory. As an illustration and not limitation, RAM is available in many forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous link (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).
[0091] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.
[0092] It should be understood that the above embodiments are only used to illustrate the technical solutions of the present invention rather than to limit it. For those skilled in the art, the technical solutions described in the above embodiments can be modified, or some of the technical features therein can be replaced by equivalents; and all these modifications and replacements should fall within the scope of protection of the claims attached to the present invention.
Claims
1. A control method for a parallel control system, characterized in that: Applied to a parallel control system, the parallel control system includes at least one parallel unit, each parallel unit includes a wireless module and a parallel device connected to each other, and the wireless module supports the Thread protocol; The control method of the parallel control system includes: Get its own physical address information and scan to detect whether there is a Thread network within the current communication range; If it is detected that no Thread network exists, it will create a target Thread network based on the preset personal area network identifier and network key, and declare itself as the leader module of the target Thread network; Allowing other wireless modules to join the target Thread network to complete the establishment of the target Thread network; Multicast query information to all non-Leader modules in the target Thread network; receive operation information obtained and unicasted by the non-Leader module based on the query information; A wireless communication connection is established with the mobile terminal so that the operation information can be fed back to the mobile terminal.
2. The control method of the parallel control system according to claim 1, characterized in that: The step of allowing other wireless modules to join the target Thread network includes: Receiving other physical address information sent by unicast of the other wireless modules; Detecting whether the other physical address information is repeated with the stored physical address information, and if not, storing the other physical address information and a storage identifier corresponding to the other wireless module; Data sending and receiving management and package grouping mode management are performed according to the storage identifier.
3. The control method of the parallel control system according to claim 2, characterized in that: After the step of declaring itself as the leader module of the target Thread network, the following steps are included: The target communication address is written into its own flash memory, so that the non-Leader module can unicast information to the Leader module according to the target communication address.
4. The control method of the parallel control system according to claim 2, characterized in that: The multicast query information to all non-Leader modules in the target Thread network; The step of receiving the operation information acquired by the non-Leader module based on the query information and unicasted and sent includes: Periodically multicast a device quantity query command, receive a feedback identifier fed back by the non-Leader module in response to the device quantity query command; compare the feedback identifier with the storage identifier to obtain the number of online devices; or Periodically multicast a device data query name command, receive the device data of the parallel device connected to it obtained through the serial port after the non-Leader module responds to the device data query name command; obtain the device data of the parallel device connected to itself, and feed back all the device data to the mobile terminal, so that the mobile terminal can send the device data to the cloud platform for statistical analysis; or The setting command is multicast periodically, so that the non-Leader module can obtain and parse the corresponding setting command and perform the corresponding setting operation, combined with the setting data sent by the non-Leader module after the setting operation is completed.
5. The control method of the parallel control system according to claim 1, characterized in that: After the step of allowing other wireless modules to join the target Thread network to complete the formation of the target Thread network, the step further includes: Send detection information to the non-leader modules in turn according to a preset period, and receive reply information fed back by the non-leader modules; If a non-Leader module fails to feed back the reply information for a preset number of consecutive times, the non-Leader module is regarded as a disconnected module, and a corresponding disconnected notification is generated and sent to the mobile terminal; The storage identifier of the offline module and other corresponding physical address information are deleted.
6. The control method of the parallel control system according to claim 1, characterized in that: The step of scanning and detecting whether there is a Thread network within the current communication range includes: If a Thread network is detected, it will actively request to join the Thread network and unicast its own physical address information to the Leader module of the Thread network.
7. The control method of the parallel control system according to claim 6, characterized in that: The control method of the parallel control system also includes: When the Leader module of the target Thread network is damaged or disconnected, the target Thread network bootstraps a new Leader module from the non-Leader modules, and the remaining non-Leader modules unicast their own physical address information to the new Leader module to form a new target Thread network.
8. The control method of the parallel control system according to claim 6, characterized in that: Before the step of scanning and detecting whether there is a Thread network within the current communication range, the following steps are included: Establish a wireless communication connection with the mobile terminal, receive configuration information of the mobile terminal, the configuration information includes the preset personal area network identifier and network key, and join the Thread network based on the configuration information.
9. The control method of the parallel control system according to claim 1, characterized in that: After the step of declaring itself as the leader module of the target Thread network, the following steps are included: When there is no other wireless module joining the target Thread network, a wireless communication connection is established with the mobile terminal, and corresponding operations are performed based on the control instructions sent by the mobile terminal.
10. The control method of a parallel control system according to any one of claims 1 to 9, characterized in that: The wireless module supports low-power Bluetooth communication.