Method and architecture system for increasing access capacity of single lamp controller
By setting up power carrier modules at each phase input end of the intelligent centralized controller and adopting a producer consumer model, the intelligent single-light controller calculates the access time slot based on its own address, and joins the network only when the synchronization time slot is matched with the network, which solves the problem of The problem of insufficient network access capacity has achieved the success of data transmission and reception under large capacity.
Patent Information
- Application Number
- CN202211450663.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-11-18
- Publication Date
- 2025-02-07
- Estimated Expiration
- 2042-11-18
AI Technical Summary
In smart lighting systems, after the number of smart single-light controllers increases, the network access capacity is insufficient, resulting in some smart single-light controllers being unable to successfully access the network.
Power carrier modules are set up at each phase input end of the intelligent centralized controller. Each module uses the sending thread and the receiving thread to communicate, and uses the producer consumer model to synchronize data between threads. The intelligent single-light controller calculates the access time slot based on its own address and only joins the network when the synchronization time slot matches the network, otherwise it will be in a silent state.
By increasing the power carrier module and adopting the producer and consumer model, the access capacity of the intelligent centralized controller is improved, and the disorderly collision and collision of the intelligent single-light controller on the bus is reduced, ensuring the success of data transmission and reception under large capacity .
Smart Images

Figure CN115765791B_ABST
Abstract
Description
Technical Field
[0001] The present invention belongs to the technical field of power equipment, and in particular, relates to a method and an architecture system for increasing the access capacity of a single lamp controller. Background Art
[0002] In the smart lighting system, most products use power carrier for data transmission. The intelligent centralized controller is networked. After the intelligent single-lamp controller is successfully connected to the network, data is transmitted between the intelligent centralized controller and the platform, thereby realizing functions such as electrical parameter reporting and fault alarm. Generally speaking, there are about 200 lamps under a distribution box, and an intelligent centralized controller is installed in a distribution box. Since each lamp is installed with an intelligent single-lamp controller, the number of intelligent single-lamp controllers under the distribution box is also less than 200. In this case, the intelligent single-lamp controllers can all access the network initiated by the intelligent centralized controller, but the more intelligent single-lamp controllers there are, the longer it takes for all intelligent single-lamp controllers to successfully access the network. When the number of intelligent single-lamp controllers under the distribution box exceeds 250, not all intelligent single-lamp controllers can successfully access the network.
[0003] As attached Figure 1 As shown in the figure, the traditional centralized controller uses one power carrier module to process the data of phase A, phase B and phase C. This method has limited capacity and insufficient processing power. In actual applications, a magnolia lamp has four main lamps, so the number of intelligent single lamp controllers will be large, and the number of controllers under some box transformers will exceed 400. In this case, there is insufficient network access capacity. The reasons for this are as follows:
[0004] (1) Traditionally, power carriers are used for data transmission, and the rate is relatively low, generally below 100 kbps. An intelligent single lamp controller occupies the channel for a long time.
[0005] (2) The underlying network of the protocol basically uses CSMA / CD or CSMA / CA to solve the channel contention problem. According to the queuing theory, the efficiency of this network is less than 20%. When the number of intelligent single lamp controllers in the network is large, for example, more than 250, some intelligent single lamp controllers will not be able to successfully access the network.
[0006] (3) All intelligent single-lamp controllers in the network compete for channels. Intelligent single-lamp controllers that fail to successfully access the network will reconnect to the network, which to a certain extent aggravates network congestion. Summary of the invention
[0007] In order to solve the above technical problem, the present invention provides a method for increasing the access capacity of a single lamp controller.
[0008] In a first aspect, the present invention provides a method for increasing the access capacity of a single lamp controller, comprising:
[0009] A power carrier module is provided at each phase input end of the intelligent centralized controller, and each power carrier module uses its own sending thread and receiving thread to communicate;
[0010] The power carrier module puts the received data into a receiving queue, and the receiving thread processes the received data in the receiving queue; the sending thread puts the sending data into the sending queue;
[0011] Each of the power carrier modules adopts a producer-consumer model to synchronize data between threads;
[0012] The intelligent single lamp controller calculates the access time slot of the intelligent single lamp controller according to its own address; the intelligent centralized controller generates a number of different network access time slots, one of which is used as a network synchronization time slot for clock synchronization; the intelligent single lamp controller obtains the network synchronization time slot for clock synchronization; when the access time slot of the intelligent single lamp controller is the same as the network access time slot, the intelligent single lamp controller joins the network; when the access time slot of the intelligent single lamp controller is different from the network access time slot, the intelligent single lamp controller is in a silent state;
[0013] The intelligent single-lamp controller is in a silent state after joining the network, and sends uplink data to the intelligent centralized controller only after receiving the control instruction of the intelligent centralized controller; the intelligent centralized controller sends operation data sending and receiving instructions to the intelligent single-lamp controller according to the number of intelligent single-lamp controllers joining the network, controlling the intelligent single-lamp controller to send and receive data.
[0014] In a second aspect, the present invention provides an architecture system for increasing the access capacity of a single lamp controller, including an intelligent centralized controller and an intelligent single lamp controller, wherein each phase input end of the intelligent centralized controller is provided with a power carrier module; the power carrier module is provided with a sending queue, a sending thread, a receiving queue, a receiving thread and a memory database;
[0015] The power carrier module uses a sending thread and a receiving thread to communicate with the intelligent single lamp controller. The power carrier module stores the received data into a receiving queue, and the receiving thread processes the data in the receiving queue; the sending thread puts the sending data into the sending queue, and sends the sending data to the intelligent centralized controller through the serial port;
[0016] Each of the power carrier modules adopts a producer-consumer model to synchronize data between threads;
[0017] The intelligent centralized controller is provided with a synchronization processing unit, an access control unit and a detection control unit;
[0018] The synchronization processing unit is used to calculate the access time slot of the intelligent single lamp controller according to the address of the intelligent single lamp controller; the intelligent centralized controller generates a plurality of different network access time slots, one of which is used as a network synchronization time slot for clock synchronization; the intelligent single lamp controllers can obtain the network synchronization time slot for clock synchronization;
[0019] The access control unit is used to control the intelligent single lamp controller to join the network or be in a silent state according to whether the access time slot of the intelligent single lamp controller is the same as the network access time slot; when the access time slot of the intelligent single lamp controller is the same as the network access time slot, the intelligent single lamp controller joins the network; when the access time slot of the intelligent single lamp controller is different from the network access time slot, the intelligent single lamp controller is in a silent state;
[0020] The intelligent single-lamp controller is in a silent state after joining the network, and sends uplink data to the intelligent centralized controller only after receiving the control instruction of the intelligent centralized controller; the detection control unit sends an operation data sending and receiving instruction to the intelligent single-lamp controller according to the number of the intelligent single-lamp controllers joining the network, controlling the intelligent single-lamp controller to send and receive data.
[0021] The beneficial effects of the present invention are:
[0022] (1) The present invention increases the access capacity of the centralized controller by setting a power carrier module at each phase input end of the intelligent centralized controller, and each power carrier module uses its own sending thread and receiving thread to communicate;
[0023] (2) The intelligent single lamp controller only transmits and receives data in its own transmit and receive time slot. When it is not in its own access time slot, the intelligent single lamp controller is in a silent state. In this way, the disordered collision conflicts of the intelligent single lamp controller on the bus can be reduced, thereby ensuring the success of data transmission and reception under large capacity; according to whether the access time slot of the intelligent single lamp controller is the same as the network access time slot, the intelligent single lamp controller is controlled to join the network or be in a silent state, which can reduce the disordered collision conflicts of the intelligent single lamp controller on the bus, thereby increasing the access capacity;
[0024] (3) The producer-consumer model is used to synchronize data between threads, which can prevent data loss and ensure the high concurrency capability of the processor.
[0025] Based on the above technical solution, the present invention can also be improved as follows.
[0026] Furthermore, the intelligent single-lamp controller obtains the network synchronization time slot for clock synchronization; the intelligent centralized controller generates a number of different network access time slots; the intelligent single-lamp controller selects one of the network access time slots as the access time slot of the intelligent single-lamp controller, and when the access time slot of the intelligent single-lamp controller is consistent with the network access time slot, the intelligent single-lamp controller joins the network.
[0027] Further, the access time slot of the intelligent single lamp controller is determined according to the upper half byte of the last byte of the address of the intelligent single lamp controller and the lower half byte of the last byte of the address of the intelligent single lamp controller.
[0028] Furthermore, the intelligent centralized controller sends an operation data receiving and sending instruction to the intelligent single-lamp controller according to the number of the intelligent single-lamp controllers joining the network to control the intelligent single-lamp controllers to receive and send data. When the number of the intelligent single-lamp controllers joining the network reaches a set threshold value, the intelligent centralized controller sends the operation data receiving and sending instruction to the intelligent single-lamp controller, and the intelligent single-lamp controller receives and sends and receives data according to the operation data receiving and sending instruction.
[0029] Furthermore, a producer-consumer model is used to synchronize data between threads, and the data is stored in a memory database for preservation; data that has not been successfully processed is reprocessed until it is successfully processed; after the data processing is completed, the data is deleted from the memory database.
[0030] Furthermore, in the silent state, the intelligent centralized controller does not send an operation data receiving and sending instruction to the intelligent single-lamp controller, and the intelligent single-lamp controller does not send uplink data to the intelligent centralized controller.
[0031] Furthermore, the detection control unit includes a detection unit and a control unit; the detection unit is used to detect the number of intelligent single lamps controlled by the intelligent centralized controller that join the network; the control unit obtains the detection result, and when the number of the intelligent single lamp controllers joining the network reaches a set threshold value, the centralized controller sends the operation data receiving and sending instructions to the intelligent single lamp controller, and the intelligent single lamp controller receives and sends and receives data according to the operation data receiving and sending instructions. BRIEF DESCRIPTION OF THE DRAWINGS
[0032] Figure 1 How to set up a power carrier module for a traditional centralized controller;
[0033] Figure 2 A schematic diagram of a method for increasing the access capacity of a single lamp controller provided in Embodiment 1 of the present invention;
[0034] Figure 3 A method for setting a power carrier module in a centralized controller provided in Embodiment 1 of the present invention;
[0035] Figure 4 A schematic diagram of a high-concurrency data processing method provided in Example 1 of the present invention;
[0036] Figure 5 A schematic diagram of an access time slot and a synchronization time slot provided in Embodiment 1 of the present invention;
[0037] Figure 6 A detection flow chart for sending data receiving and sending instructions to the intelligent centralized controller;
[0038] Figure 7 This is an architectural system diagram of the power carrier module that uses the producer-consumer model to synchronize data between threads. DETAILED DESCRIPTION
[0039] In order to make the purpose, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Generally, the components of the embodiments of the present invention described and shown in the drawings here can be arranged and designed in various different configurations.
[0040] Example 1
[0041] As an embodiment, in order to solve the above technical problems, this embodiment provides a method for increasing the access capacity of a single lamp controller, as shown in the attached Figure 2 As shown, the method includes:
[0042] A power carrier module is set at each phase input end of the intelligent centralized controller, and each power carrier module uses its own sending thread and receiving thread to communicate; Figure 3 As shown, the CPU module of the intelligent centralized controller is connected to the input end of each power carrier module through a serial port; three power carrier modules are respectively arranged at the input end of each phase of the power network, and the intelligent single lamp controller is connected to the power network. The present invention increases the access capacity of the centralized controller by arranging power carrier modules at the input end of each phase of the intelligent centralized controller;
[0043] The power carrier module puts the received data into the receiving queue, and the receiving thread processes the received data in the receiving queue; the sending thread puts the sending data into the sending queue;
[0044] Each power carrier module uses the producer-consumer model to synchronize data between threads. Figure 4The schematic diagram of the high-concurrency data processing method shown in the figure puts the data received by the power carrier module in phase A into the receiving queue, and the receiving thread processes the data in the receiving queue; the sending thread puts the data to be sent into the sending queue, and sends the data to the intelligent single-lamp controller through the serial port of the power carrier module. The producer-consumer model is used to synchronize data between threads, and the data is stored in the memory database for preservation to prevent data loss. After successful processing, the processed data is deleted from the memory database to ensure efficient processing of the database. The data that has not been successfully processed is processed again until it is successfully processed. Phases B and C use the same principle, which can achieve high-concurrency data processing, improve the data throughput of the intelligent centralized controller, and thus increase the access capacity of the system.
[0045] The intelligent single-lamp controller calculates the access time slot of the intelligent single-lamp controller according to its own address; the intelligent centralized controller generates several different network access time slots, one of which is used as a network synchronization time slot for clock synchronization; the intelligent single-lamp controller obtains the network synchronization time slot for clock synchronization; when the access time slot of the intelligent single-lamp controller is the same as the network access time slot, the intelligent single-lamp controller joins the network; when the access time slot of the intelligent single-lamp controller is different from the network access time slot, the intelligent single-lamp controller is in a silent state, which can reduce the disordered collision conflicts of the intelligent single-lamp controller on the bus, thereby increasing the access capacity.
[0046] After joining the network, the intelligent single-lamp controller is in silent state, and sends uplink data to the intelligent centralized controller only after receiving control instructions from the intelligent centralized controller; the intelligent centralized controller sends operation data sending and receiving instructions to the intelligent single-lamp controller according to the number of intelligent single-lamp controllers joining the network to control the intelligent single-lamp controller to send and receive data.
[0047] Optionally, the intelligent single-lamp controller obtains the network synchronization time slot for clock synchronization; the intelligent centralized controller generates several different network access time slots; the intelligent single-lamp controller selects a network access time slot from the network access time slots as the access time slot of the intelligent single-lamp controller, and when the access time slot of the intelligent single-lamp controller is consistent with the network access time slot, the intelligent single-lamp controller joins the network.
[0048] In actual application, the schematic diagram of setting the access time slot and synchronization time slot is shown in the attached figure. Figure 5As shown, during the sending and receiving stage, the intelligent centralized controller converts the data sending and receiving time into a network access time slot, one of which is used as a clock synchronization time slot for broadcasting the clock downward. Each intelligent single-lamp controller uses the clock synchronization time slot for time calibration to ensure time synchronization within the local area network. Other network access time slots are used for data sending and receiving by intelligent single-lamp controllers at different addresses, which can reduce disordered collisions of intelligent single-lamp controllers on the bus, thereby ensuring the success of data sending and receiving under large capacity.
[0049] Optionally, the access time slot of the intelligent single lamp controller is determined according to the upper half byte of the last byte of the address of the intelligent single lamp controller and the lower half byte of the last byte of the address of the intelligent single lamp controller.
[0050] In actual application, hiaddr represents the high half byte of the last byte of the address, lowaddr represents the low half byte of the last byte of the address, join_slot_no represents the access time slot of the intelligent single lamp controller. For example, the address of the intelligent single lamp controller is 0401202012021071, and the last byte is 71, then the time slot number is 71, the total time slot number is 1 to 99, and the time of each time slot is 2 seconds. Then the calculation formula for the access time slot of the intelligent single lamp controller is:
[0051] join_slot_no=hiaddr*10+lowaddr;
[0052] After the time slot is synchronized, there is a silent period in the network. The silent period is optional and is set to 1 minute. The length of the silent period can be set according to actual needs. The purpose is to make the broadcast signal of the clock synchronization time slot effectively reach each intelligent single lamp controller.
[0053] Optional, as attached Figure 6 As shown, the detection process of the intelligent centralized controller sending data receiving and sending instructions, the intelligent centralized controller sends the operation data receiving and sending instructions to the intelligent single lamp controllers according to the number of intelligent single lamp controllers joining the network to control the intelligent single lamp controllers to send and receive data. When the number of intelligent single lamp controllers joining the network reaches the set threshold value (such as 90% of the total number of intelligent single lamp controllers), the intelligent centralized controller sends the operation data receiving and sending instructions to the intelligent single lamp controllers, and the intelligent single lamp controllers receive and send and receive data according to the operation data receiving and sending instructions.
[0054] Optionally, a producer-consumer model is used to synchronize data between threads, and the data is stored in a memory database for preservation; data that has not been successfully processed is reprocessed until it is successfully processed; after the data processing is completed, the data is deleted from the memory database.
[0055] In actual application, the memory database is used to temporarily store data to prevent data loss, thus ensuring the high concurrency capability of the processor.
[0056] Optionally, in the silent state, the intelligent centralized controller does not send operation data receiving and sending instructions to the intelligent single-lamp controller, and the intelligent single-lamp controller does not send uplink data to the intelligent centralized controller, which can reduce the disordered collision conflicts of the intelligent single-lamp controller on the bus, thereby ensuring the success of data receiving and sending under large capacity.
[0057] Example 2
[0058] Based on the same principle as the method shown in Example 1 of the present invention, the embodiment of the present invention also provides an architecture system for increasing the access capacity of a single lamp controller, including an intelligent centralized controller and an intelligent single lamp controller, and each phase input end of the intelligent centralized controller is provided with a power carrier module; as shown in the attached Figure 7 As shown, the power carrier module sets a sending queue, a sending thread, a receiving queue, a receiving thread and a memory database;
[0059] The power carrier module uses a sending thread and a receiving thread to communicate with the intelligent single-lamp controller. The power carrier module stores the received data in a receiving queue, and the receiving thread processes the data in the receiving queue; the sending thread puts the sent data into the sending queue and sends the sent data to the intelligent centralized controller through the serial port; in actual application, the CPU module of the intelligent centralized controller is connected to the input end of each power carrier module through the serial port; the three power carrier modules are respectively set at the input end of each phase of the power network, and the intelligent single-lamp controller is connected to the power network.
[0060] Each power carrier module adopts the producer-consumer model to synchronize data between threads and implement the scheduling and distribution of control instructions;
[0061] The intelligent centralized controller is provided with a synchronization processing unit, an access control unit and a detection control unit;
[0062] The synchronization processing unit is used to calculate the access time slot of the intelligent single lamp controller according to the address of the intelligent single lamp controller; the intelligent centralized controller generates a number of different network access time slots, one of which is used as a network synchronization time slot for clock synchronization; the intelligent single lamp controller obtains the network synchronization time slot for clock synchronization;
[0063] An access control unit, used to control the intelligent single lamp controller to join the network or be in a silent state according to whether the access time slot of the intelligent single lamp controller is the same as the network access time slot; when the access time slot of the intelligent single lamp controller is the same as the network access time slot, the intelligent single lamp controller joins the network; when the access time slot of the intelligent single lamp controller is different from the network access time slot, the intelligent single lamp controller is in a silent state;
[0064] After joining the network, the intelligent single-lamp controller is in a silent state and sends uplink data to the intelligent centralized controller only after receiving control instructions from the intelligent centralized controller; the detection control unit sends operation data receiving and sending instructions to the intelligent single-lamp controller according to the number of intelligent single-lamp controllers joining the network to control the intelligent single-lamp controller to send and receive data.
[0065] Optionally, the intelligent single-lamp controller obtains the network synchronization time slot for clock synchronization; the intelligent centralized controller generates several different network access time slots; the intelligent single-lamp controller selects a network access time slot from the network access time slots as the access time slot of the intelligent single-lamp controller, and when the access time slot of the intelligent single-lamp controller is consistent with the network access time slot, the intelligent single-lamp controller joins the network.
[0066] Optionally, the access time slot of the intelligent single lamp controller is determined according to the upper half byte of the last byte of the address of the intelligent single lamp controller and the lower half byte of the last byte of the address of the intelligent single lamp controller.
[0067] Optionally, the intelligent centralized controller sends operation data receiving and sending instructions to the intelligent single-lamp controllers according to the number of intelligent single-lamp controllers joining the network, so as to control the intelligent single-lamp controllers to receive and send data. When the number of intelligent single-lamp controllers joining the network reaches a set threshold value, the intelligent centralized controller sends operation data receiving and sending instructions to the intelligent single-lamp controllers, and the intelligent single-lamp controllers receive and send and receive data according to the operation data receiving and sending instructions.
[0068] Optionally, a producer-consumer model is used to synchronize data between threads, and the data is stored in a memory database for preservation; data that has not been successfully processed is reprocessed until it is successfully processed; after the data processing is completed, the data is deleted from the memory database.
[0069] Optionally, in the silent state, the intelligent centralized controller does not send operation data receiving and sending instructions to the intelligent single-lamp controller, and the intelligent single-lamp controller does not send uplink data to the intelligent centralized controller, which can reduce the disordered collision conflicts of the intelligent single-lamp controller on the bus, thereby ensuring the success of data receiving and sending under large capacity.
[0070] Optionally, the detection control unit includes a detection unit and a control unit; the detection unit is used to detect the number of intelligent single-lamp controllers joining the network by the intelligent centralized controller; the control unit obtains the detection result, and when the number of intelligent single-lamp controllers joining the network reaches a set threshold value, the intelligent centralized controller sends an operation data receiving and sending instruction to the intelligent single-lamp controller, and the intelligent single-lamp controller receives and sends and receives data according to the operation data receiving and sending instruction.
[0071] During the data sending and receiving stage, the intelligent centralized controller converts the data sending and receiving time into several different network access time slots, one of which is used as a network synchronization time slot for clock synchronization; the intelligent single lamp controller obtains the network synchronization time slot for clock synchronization to achieve time calibration, ensuring time synchronization within the local area network, and the other network access time slots are used for data sending and receiving by intelligent single lamp controllers at different addresses.
[0072] The intelligent single-lamp controller calculates the access time slot of the intelligent single-lamp controller according to its own address; the intelligent single-lamp controller obtains the network synchronization time slot. When the access time slot of the intelligent single-lamp controller is the same as the network synchronization time slot, the intelligent single-lamp controller joins the network. When the access time slot of the intelligent single-lamp controller is different from the network synchronization time slot, the intelligent single-lamp controller is in a silent state, which can reduce the disordered collision conflicts of the intelligent single-lamp controller on the bus, thereby increasing the access capacity.
[0073] After joining the network, the smart single-lamp controller is in a silent state and sends uplink data to the smart centralized controller only after receiving control instructions from the smart centralized controller; the smart centralized controller sends operation data sending and receiving instructions to the smart single-lamp controller according to the number of smart single-lamp controllers joining the network to control the smart single-lamp controller to send and receive data, which can reduce the disordered collision conflicts of the smart single-lamp controllers on the bus, thereby ensuring the success of data sending and receiving under large capacity.
[0074] The above are only preferred embodiments of the present invention and are 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 replacement, improvement, etc. made within the spirit and principle of the present invention shall be included in the protection scope of the present invention.
Claims
1. A method for increasing the access capacity of a single lamp controller, characterized in that: include: A power carrier module is provided at each phase input end of the intelligent centralized controller, and each power carrier module uses its own sending thread and receiving thread to communicate; The power carrier module puts the received data into a receiving queue, and the receiving thread processes the received data in the receiving queue; The sending thread puts the sending data into the sending queue; Each of the power carrier modules adopts a producer-consumer model to synchronize data between threads; The single lamp controller calculates the access time slot of the single lamp controller according to its own address; the intelligent centralized controller generates a number of different network access time slots, one of which is used as a network synchronization time slot for clock synchronization; the single lamp controller obtains the network synchronization time slot for clock synchronization; when the access time slot of the single lamp controller is the same as the network access time slot, the single lamp controller joins the network; when the access time slot of the single lamp controller is different from the network access time slot, the single lamp controller is in a silent state; The single lamp controller is in a silent state after joining the network, and sends uplink data to the intelligent centralized controller only after receiving the control instruction of the intelligent centralized controller; the intelligent centralized controller sends operation data receiving and sending instructions to the single lamp controller according to the number of single lamp controllers joining the network, controlling the single lamp controller to send and receive data.
2. The method for increasing the access capacity of a single lamp controller according to claim 1, characterized in that: The single lamp controller obtains the network synchronization time slot for clock synchronization; the intelligent centralized controller generates a number of different network access time slots; the single lamp controller selects one of the network access time slots as the access time slot of the single lamp controller, and when the access time slot of the single lamp controller is consistent with the network access time slot, the single lamp controller joins the network.
3. The method for increasing the access capacity of a single lamp controller according to claim 1, characterized in that: The access time slot of the single lamp controller is determined according to the upper half byte of the last byte of the address of the single lamp controller and the lower half byte of the last byte of the address of the single lamp controller.
4. The method for increasing the access capacity of a single lamp controller according to claim 1, characterized in that: The intelligent centralized controller sends an operation data receiving and sending instruction to the single lamp controller according to the number of the single lamp controllers joining the network, controlling the single lamp controller to receive and send data. When the number of the single lamp controllers joining the network reaches a set threshold value, the intelligent centralized controller sends the operation data receiving and sending instruction to the single lamp controller, and the single lamp controller receives and sends and receives data according to the operation data receiving and sending instruction.
5. The method for increasing the access capacity of a single lamp controller according to claim 1, characterized in that: The producer-consumer model is used to synchronize data between threads, and the data is stored in the memory database for preservation; the data that has not been successfully processed is reprocessed until it is successfully processed; After the data processing is completed, the data is deleted from the memory database.
6. The method for increasing the access capacity of a single lamp controller according to claim 1, characterized in that: In the silent state, the intelligent centralized controller does not send an operation data receiving and sending instruction to the single lamp controller, and the single lamp controller does not send uplink data to the intelligent centralized controller.
7. An architecture system for increasing the access capacity of a single lamp controller, including an intelligent centralized controller and a single lamp controller, characterized in that: Each phase input end of the intelligent centralized controller is provided with a power carrier module; the power carrier module is provided with a sending queue, a sending thread, a receiving queue, a receiving thread and a memory database; The power carrier module uses a sending thread and a receiving thread to communicate with the single lamp controller. The power carrier module stores the received data into a receiving queue, and the receiving thread processes the data in the receiving queue; the sending thread puts the sending data into the sending queue, and sends the sending data to the intelligent centralized controller through the serial port; Each of the power carrier modules adopts a producer-consumer model to synchronize data between threads; The intelligent centralized controller is provided with a synchronization processing unit, an access control unit and a detection control unit; The synchronization processing unit is used to calculate the access time slot of the single lamp controller according to the address of the single lamp controller; the intelligent centralized controller generates a plurality of different network access time slots, one of which is used as a network synchronization time slot for clock synchronization; the single lamp controllers can obtain the network synchronization time slot for clock synchronization; The access control unit is used to control the single lamp controller to join the network or be in a silent state according to whether the access time slot of the single lamp controller is the same as the network access time slot; when the access time slot of the single lamp controller is the same as the network access time slot, the single lamp controller joins the network; when the access time slot of the single lamp controller is different from the network access time slot, the single lamp controller is in a silent state; The single lamp controller is in a silent state after joining the network, and sends uplink data to the intelligent centralized controller only after receiving the control instruction of the intelligent centralized controller; The detection control unit sends an operation data receiving and sending instruction to the single lamp controller according to the number of the single lamp controllers joining the network to control the single lamp controller to receive and send data.
8. The architecture system for increasing the access capacity of a single lamp controller according to claim 7, characterized in that: The detection control unit includes a detection unit and a control unit; the detection unit is used to detect the number of single lamp controllers joining the network of the intelligent centralized controller; the control unit obtains the detection result, and when the number of the single lamp controllers joining the network reaches a set threshold value, the intelligent centralized controller sends the operation data receiving and sending instruction to the single lamp controller, and the single lamp controller receives and sends and receives data according to the operation data receiving and sending instruction.
Citation Information
Patent Citations
Energy-saving management method and system based on power line carrier
CN102148630A
Wireless sensor network based micropower meter reading system and device
CN109949559A