CN109766109B - Client updating method, device and system of lighting controller - Google Patents

Client updating method, device and system of lighting controller Download PDF

Info

Publication number
CN109766109B
CN109766109B CN201811542286.0A CN201811542286A CN109766109B CN 109766109 B CN109766109 B CN 109766109B CN 201811542286 A CN201811542286 A CN 201811542286A CN 109766109 B CN109766109 B CN 109766109B
Authority
CN
China
Prior art keywords
lighting
control program
controller
state
lighting controller
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201811542286.0A
Other languages
Chinese (zh)
Other versions
CN109766109A (en
Inventor
穆建江
李勋
王玥
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Perfection Av Technology Zhejiang Co ltd
Original Assignee
Perfection Av Technology Zhejiang Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Perfection Av Technology Zhejiang Co ltd filed Critical Perfection Av Technology Zhejiang Co ltd
Priority to CN201811542286.0A priority Critical patent/CN109766109B/en
Publication of CN109766109A publication Critical patent/CN109766109A/en
Application granted granted Critical
Publication of CN109766109B publication Critical patent/CN109766109B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

The invention relates to a method, a device and a system for updating a client of an illumination controller, which are used for acquiring an illumination control program needing to be upgraded and uploading the illumination control program needing to be upgraded to a server; detecting whether lighting control loops of the lighting controller to the tail-end lighting equipment are all in a closed state; if the lighting control loops are all in a closed state, and the time of the closed state is within the daytime period range, judging that the lighting controller is in an idle state; and downloading the lighting control program needing to be upgraded from the server to the lighting controller in the idle state, and updating the client of the lighting controller according to the lighting control program needing to be upgraded in the idle state.

Description

Client updating method, device and system of lighting controller
Technical Field
The present invention relates to the field of lighting controller technologies, and in particular, to a method and an apparatus for updating a client of a lighting controller, and a system for updating a client of a lighting controller.
Background
The lighting controller downloads an installation client, which is a program for implementing lighting control. The lighting controller controls the end lighting devices including lighting fixtures, entertainment fixtures, audio, video players, etc. through the client.
The program developer can upgrade the program of the client according to the requirement, and the lighting controller needs to download the upgrade program and update the lighting client according to the upgrade program. When the lighting controller downloads the upgrade program, if the lighting controller is controlling the end point lighting device using the lighting client, the control flow may be affected.
Disclosure of Invention
Based on this, there is a need to provide a client update method for a lighting controller.
A client update method for a lighting controller, the method comprising:
acquiring an illumination control program needing to be upgraded, and uploading the illumination control program needing to be upgraded to a server;
detecting whether lighting control loops of the lighting controller to the tail-end lighting equipment are all in a closed state;
if the lighting control loops are all in the closed state, and the time of the closed state is within the daytime period range, judging that the lighting controller is in the idle state;
and downloading the lighting control program needing to be upgraded from the server to the lighting controller in the idle state, and updating the client of the lighting controller according to the lighting control program needing to be upgraded in the idle state.
According to the method for updating the client of the lighting controller, when the lighting control loops of the lighting controller are all in the closed state, and the time of the closed state is in the daytime period range, the lighting control program to be updated is downloaded, the client of the lighting controller is updated, the control flow of the lighting controller to the tail-end lighting lamp is not influenced, and the idle state of the lighting controller is selected to update the client of the lighting controller, so that the updating speed can be increased, and the blocking condition can be reduced.
In one embodiment, if it is determined that a plurality of the lighting controllers are in an idle state at the same time;
the step of downloading the lighting control program requiring upgrade from the server to the lighting controller in the idle state includes:
acquiring an IP address of each lighting controller;
dividing each lighting controller into more than two groups according to the size of each IP address;
and downloading the lighting control program to be upgraded from the server for each lighting controller group client in the idle state.
In one embodiment, if it is determined that a plurality of the lighting controllers are in an idle state at the same time;
the step of downloading the lighting control program requiring upgrade from the server to the lighting controller in the idle state comprises:
acquiring lighting item information of each lighting controller;
setting download priorities for the lighting controllers according to the lighting item information;
and downloading the lighting control programs needing to be upgraded for each lighting controller from the server in the idle state according to the set downloading priority.
In one embodiment, if the lighting controllers have the same download priority, the belonged level of the city where the lighting controllers are located is obtained;
and sequentially downloading the lighting control programs to be upgraded from the server to the corresponding lighting controllers from high to low according to the level of the city where each lighting controller is located.
In one embodiment, the step of downloading the lighting control program requiring upgrade from the server to the lighting controller in the idle state includes:
acquiring the version of the lighting control program of the client of the lighting controller in the idle state, and inquiring whether the version of the lighting control program of the client is matched with the version of the lighting control program needing to be upgraded in the server;
if the version of the lighting control program of the client is different from the version of the lighting control program needing to be upgraded, sending a downloading request to the server in the idle state, and downloading the lighting control program needing to be upgraded from the server to the lighting controller in the idle state according to the downloading request.
In one embodiment, if it is determined that a plurality of the lighting controllers are in an idle state at the same time;
the step of acquiring the version of the lighting control program of the client of the lighting controller in the idle state, and inquiring whether the version of the lighting control program of the client is matched with the version of the lighting control program needing to be upgraded in the server includes:
acquiring the lighting control program version of the client of each lighting controller in the idle state;
and enabling each lighting controller to successively inquire whether the version of the corresponding client lighting control program is matched with the version of the lighting control program needing to be upgraded in a time-sharing inquiry mode.
In one embodiment, the step after the idle state updates the client of the lighting controller according to the upgrade-needed lighting control program comprises:
restarting a client of the lighting controller;
matching a lighting control program of a client of the lighting controller with the lighting control program needing to be upgraded;
if the lighting control program of the client of the lighting controller is the same as the lighting control program needing to be upgraded, judging that the client of the lighting controller is successfully updated; and if not, returning to the step of downloading the lighting control program needing to be upgraded from the server to the lighting controller in the idle state.
In one embodiment, the step of detecting whether the lighting control loops of the lighting controller to the end lighting devices are all in the off state includes detecting whether the lighting control loops are all in the off state at intervals if the lighting control loops are detected to be in the on state for the first time;
and if the illumination control loop is detected to be in a closed state for the first time, the interval between the time when the illumination control loop is detected to be in the closed state for the first time and the time when the illumination control loop is detected to be in the conducting state for the last time is larger than a preset interval threshold value, and if the time when the illumination control loop is detected to be in the closed state for the first time is in the daytime period range, the illumination controller is judged to be in an idle state.
It is also presented a client update apparatus for a lighting controller, the apparatus comprising:
the program uploading module is used for acquiring the lighting control program to be upgraded and uploading the lighting control program to be upgraded to the server;
the closed state detection module is used for detecting whether lighting control loops of the lighting controller for the tail-end lighting equipment are all in a closed state;
an idle state determination module, configured to determine that the lighting controller is in an idle state if the lighting control loops are all in an off state and a time of the off state is within a daytime period range;
and the client updating module is used for downloading the lighting control program needing to be upgraded from the server to the lighting controller in the idle state and updating the client of the lighting controller according to the lighting control program needing to be upgraded in the idle state.
The client updating system of the lighting controller comprises a server and the lighting controller; the server establishes a communication connection with the lighting controller; the lighting controller is used for controlling the tail end lighting equipment;
the server is used for acquiring the lighting control program needing to be upgraded;
the lighting controller is used for detecting whether lighting control loops of the lighting controller to the tail-end lighting equipment are all in a closed state, if the lighting control loops are all in the closed state and the time of the closed state is within a daytime period range, the lighting controller is judged to be in an idle state, the lighting control program needing to be upgraded is downloaded from a server in the idle state, and a client of the lighting controller is updated in the idle state according to the lighting control program needing to be upgraded.
Drawings
Fig. 1 is a flowchart illustrating a client update method for a lighting controller according to an embodiment;
fig. 2 is a schematic structural diagram of a client update apparatus of a lighting controller in an embodiment;
fig. 3 is a schematic structural diagram of a client update system of a lighting controller in an embodiment.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, the present invention is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
Fig. 1 is a flow diagram illustrating a client update method for a lighting controller, according to an embodiment. The client of the lighting controller is a program for implementing lighting control. The lighting controller controls the end lighting equipment including lighting fixtures, entertainment fixtures, audio equipment, video players and the like through the lighting client.
Referring to fig. 1, the method for updating a client of a lighting controller in the embodiment of the present application includes steps 102 to 108:
step 102, obtaining an illumination control program needing to be upgraded, and uploading the illumination control program needing to be upgraded to a server.
In particular, the lighting control program requiring the upgrade may be acquired by the server. In particular, the lighting control program may be uploaded to the server as it is updated, such that the server keeps the latest version of the lighting control program at all times.
And 104, detecting whether the lighting control loops of the lighting controller to the tail end lighting device are all in a closed state.
In particular, the lighting controller may detect whether the lighting control loops of the lighting controller to the end lighting devices are all in an off state. Specifically, if the lighting control loops are all in the off state, it indicates that the lighting controller is not controlling the operation of the end lighting device.
And 106, if the lighting control loops are all in the closed state and the time in the closed state is within the daytime period range, judging that the lighting controller is in the idle state.
Specifically, the daytime period range is the period after the sun rises and before the sun falls in the area where the lighting controller is located, during which the lighting controller generally does not control the operation of the end lighting fixtures.
In particular, it may be determined by the lighting controller whether it is in an idle state.
In one embodiment, the step of detecting whether the lighting control loops of the lighting controller to the end lighting device are all in the off state includes detecting whether the lighting control loops are all in the off state at intervals if it is detected that the lighting control loops are in the on state for the first time. In particular, a portion of the lighting control loop being in a conducting state may also be considered to be the lighting control loop being in a conducting state.
And if the first time after the illumination control loop is detected to be in the conducting state for the last time, the illumination control loop is detected to be in the closing state for the first time, the interval between the time when the illumination control loop is detected to be in the closing state for the first time and the time when the illumination control loop is detected to be in the conducting state for the last time is larger than a preset interval threshold value, and if the time when the illumination control loop is detected to be in the closing state for the first time is in the daytime period range, the illumination controller is judged to be in the idle state. The preset interval threshold may be 1 hour.
In this embodiment, if it is detected that the lighting control circuit is in the on state for the first time, it is indicated that at least a part of the lighting control circuits may be in the on state in the next period of time, the detection of the interval may reduce the load, and if the interval between the time when the lighting control circuits are detected to be in the off state for the first time and the time when the lighting control circuits are detected to be in the on state for the last time is greater than the preset interval threshold, it is indicated that the lighting control circuits are already in the off state for a period of time, it is determined that the lighting controller is in the idle state, and the probability of erroneously determining the lighting control circuit fault off condition of the lighting controller as being in the idle state is reduced.
And 108, downloading the lighting control program needing to be upgraded from the server to the lighting controller in the idle state, and updating the client of the lighting controller according to the lighting control program needing to be upgraded in the idle state.
In particular, the lighting control program that needs to be upgraded includes a script. The lighting controller may execute the updated script to complete the update of the client.
Specifically, the program to be upgraded may be a lighting control program newly developed by a program developer for a client of the lighting controller, or may be a program further improved according to the lighting control program of the client of the lighting controller. The program that needs to be upgraded may be a new complete program for the client that developed the lighting controller, or may be a program that improves some plug-in to the client. Correspondingly, the step of subsequently updating the lighting controller client may be to update the entire client, or may be to update a plug-in of the client.
In one embodiment, the step of downloading the lighting control program requiring upgrade from the server to the lighting controller in the idle state includes: acquiring the version of the lighting control program of the client of the lighting controller in the idle state, and inquiring whether the version of the lighting control program of the client is matched with the version of the lighting control program needing to be upgraded in the server; if the version of the lighting control program of the client is different from the version of the lighting control program needing to be upgraded, sending a downloading request to the server in the idle state, and downloading the lighting control program needing to be upgraded from the server to the lighting controller in the idle state according to the downloading request.
Specifically, the lighting controller acquires the version of the lighting control program of the client of the lighting controller in the idle state, and queries whether the version of the lighting control program of the client is matched with the version of the lighting control program to be upgraded in the server, if the version of the lighting control program queried to the client is different from the version of the lighting control program to be upgraded, the client of the lighting controller sends a download request to the server, the server responds to the download request to send the lighting control program to be upgraded to the lighting controller, and then the lighting controller updates the client according to the lighting control program to be upgraded.
In one embodiment, the step after the idle state updates the client of the lighting controller according to the upgrade-needed lighting control program comprises: restarting a client of the lighting controller; matching a lighting control program of a client of the lighting controller with the lighting control program needing to be upgraded; if the lighting control program of the client of the lighting controller is the same as the lighting control program needing to be upgraded, judging that the client of the lighting controller is successfully updated; and if not, returning to the step of downloading the lighting control program needing to be upgraded from the server to the lighting controller in the idle state.
If a request for downloading a program to be upgraded to a server at the same time causes a large access pressure to the server, some load balancing processing may be performed at the server side, and the following embodiments describe specific implementations of the load balancing processing of the server.
In one embodiment, if it is determined that a plurality of the lighting controllers are in an idle state at the same time; the step of downloading the lighting control program requiring upgrade from the server to the lighting controller in the idle state includes: acquiring an IP address of each lighting controller; then dividing each lighting controller into more than two groups according to the size of each IP address; and then downloading the lighting control programs needing to be upgraded from the server for each lighting controller group in the idle state.
In this embodiment, if it is determined that a plurality of lighting controllers are in an idle state at the same time, the IP addresses of the lighting controllers may be arranged from small to large into two or more groups, and then the lighting control program to be upgraded is downloaded from the server for the lighting controller group with the smaller IP address, and then the lighting control program to be upgraded is downloaded from the server for the lighting controller group with the larger IP address.
In one embodiment, if it is determined that a plurality of the lighting controllers are in an idle state at the same time; the step of downloading the lighting control program requiring upgrade from the server to the lighting controller in the idle state comprises: acquiring lighting item information of each lighting controller; setting download priorities for the lighting controllers according to the lighting item information; and then downloading the lighting control programs needing to be upgraded for each lighting controller from the server in sequence according to the set downloading priority.
Specifically, the download priority may be set according to the importance degree of each lighting controller lighting item. The downloading priority may also be set according to the sequence of the execution time of the lighting items of each lighting controller, for example, if the lighting item of the lighting controller a needs to be executed at 20 o 'clock at night, and the lighting item of the lighting controller B needs to be executed at 21 o' clock at night, the downloading priority of the lighting controller a is set to be higher than that of the lighting controller B, and then the lighting controller a is preferentially downloaded with the lighting control program that needs to be upgraded from the server.
In this embodiment, the lighting controller generally controls the end lighting device according to the issued lighting items, and if there are a plurality of lighting controllers in an idle state at the same time, the lighting controller program to be upgraded is downloaded from the server to the lighting controller with a high download priority, so that the access pressure of the server can be reduced, and the item requirements of the lighting controller are also met.
Further, in one embodiment, if each lighting controller has the same download priority, the affiliated level of the city in which each lighting controller is located is obtained, and the lighting control programs to be upgraded are downloaded from the server to the corresponding lighting controllers in sequence from high to low according to the affiliated levels of the cities in which each lighting controller is located. For example, the download priority of the lighting controller a is equal to that of the lighting controller B, but the city in which the lighting controller a is located is a first-line city, the city in which the lighting controller B is located is a second-line city, and the level of the city in which the lighting controller a is located is higher than that of the lighting controller B, the lighting controller a is configured to download the lighting controller program to be upgraded for the lighting controller a first.
Besides some load balancing processing at the server side, the access pressure of the server can be relieved by adopting a time-sharing query mode at the lighting controller side.
In one embodiment, if it is determined that a plurality of the lighting controllers are in an idle state at the same time; and after the illumination control program versions of the clients of the illumination controllers are acquired in the idle state, enabling the illumination controllers to successively inquire whether the versions of the illumination control programs of the corresponding clients are matched with the versions of the illumination control programs needing to be upgraded in a time-sharing inquiry mode. Therefore, each lighting controller inquires whether the version of the lighting control program of the corresponding client is matched with the version of the lighting control program needing to be upgraded at different time, and the access pressure of the server can be relieved.
Then inquiring whether the version of the lighting control program of the client is matched with the version of the lighting control program needing to be upgraded in the server;
if the version of the lighting control program of the client is different from the version of the lighting control program needing to be upgraded, sending a downloading request to the server in the idle state, and downloading the lighting control program needing to be upgraded from the server to the lighting controller client in the idle state according to the downloading request.
According to the method for updating the client of the lighting controller, when the lighting control loops of the lighting controller are all in the closed state, and the time of the closed state is in the daytime period range, the lighting control program to be updated is downloaded, the client of the lighting controller is updated, the control flow of the lighting controller to the tail-end lighting lamp is not influenced, and the idle state of the lighting controller is selected to update the client of the lighting controller, so that the updating speed can be increased, and the blocking condition can be reduced.
An embodiment of the present application further provides a client updating apparatus for a lighting controller, please refer to fig. 2, where the apparatus includes:
the program uploading module 210 is configured to acquire an illumination control program to be upgraded and upload the illumination control program to be upgraded to a server;
an off-state detection module 220, configured to detect whether lighting control loops of the lighting controller to the end lighting device are all in an off state;
an idle state determination module 230, configured to determine that the lighting controller is in an idle state if the lighting control loops are all in an off state, and the time in the off state is within a daytime period range;
a client updating module 240, configured to download the lighting control program to be upgraded from the server to the lighting controller in the idle state, and update the client of the lighting controller according to the lighting control program to be upgraded in the idle state.
According to the client updating device of the lighting controller, when the lighting control loops of the lighting controller are all in the closed state, and the time of the closed state is in the daytime period range, the lighting control program to be updated is downloaded, the client of the lighting controller is updated, the control flow of the lighting controller to the tail-end lighting lamp is not influenced, and the client of the lighting controller is updated by selecting the idle state of the lighting controller, so that the updating speed can be increased, and the blocking condition can be reduced.
The division of the modules in the client update apparatus of the lighting controller is only used for illustration, and in other embodiments, the client update apparatus of the lighting controller may be divided into different modules as needed to complete all or part of the functions of the client update apparatus of the lighting controller.
For specific definition of the client update apparatus of the lighting controller, reference may be made to the above definition of the client update method of the lighting controller, which is not described herein again. The various modules in the client update apparatus of the lighting controller described above may be implemented in whole or in part by software, hardware, and combinations thereof. The modules can be embedded in a hardware form or independent from a processor in the computer device, and can also be stored in a memory in the computer device in a software form, so that the processor can call and execute operations corresponding to the modules.
The embodiment of the application also provides a client updating system of the lighting controller. Referring to fig. 3, the client update system of the lighting controller includes a server 310 and a lighting controller 320; the server 310 establishes a communication connection with the lighting controller 320, and specifically may establish a wired communication connection or a wireless communication connection; the illumination controller 320 is used for controlling the end illumination device;
the server 310 is configured to obtain a lighting control program that needs to be upgraded;
the lighting controller 320 is configured to detect whether lighting control loops of the lighting controller to the end lighting devices are all in an off state; if the lighting control loops are all in the closed state, and the time of the closed state is within the daytime period range, judging that the lighting controller is in the idle state; and downloading the lighting control program needing to be upgraded from a server in the idle state, and updating the client of the lighting controller according to the lighting control program needing to be upgraded in the idle state. Specifically, the number of the lighting controllers may be plural.
In the above system for updating the client of the lighting controller, the lighting controller 320 downloads the lighting control program to be updated when the lighting control loops of the lighting controller 320 are all in the off state and the time of the off state is within the daytime period range, and updates the client of the lighting controller 320 without affecting the control flow of the lighting controller 320 to the terminal lighting fixture, and the lighting controller 320 selects the idle state of the lighting controller to update its client, so that the updating speed can be increased and the blocking condition can be reduced.
The technical features of the embodiments described above may be arbitrarily combined, and for the sake of brevity, all possible combinations of the technical features in the embodiments described above are not described, but should be considered as being within the scope of the present specification as long as there is no contradiction between the combinations of the technical features.
The above-mentioned embodiments only express several embodiments of the present invention, and the description thereof is more specific and detailed, but not construed as limiting the scope of the invention. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the inventive concept, which falls within the scope of the present invention. Therefore, the protection scope of the present patent shall be subject to the appended claims.

Claims (10)

1. A method for client update of a lighting controller, the method comprising:
acquiring an illumination control program needing to be upgraded, and uploading the illumination control program needing to be upgraded to a server;
detecting whether lighting control loops of the lighting controller to the tail-end lighting equipment are all in a closed state;
if the lighting control loops are all in a closed state, and the time of the closed state is within the daytime period range, judging that the lighting controller is in an idle state;
downloading the lighting control program needing to be upgraded from a server to the lighting controller in the idle state, and updating a client of the lighting controller according to the lighting control program needing to be upgraded in the idle state;
wherein:
if the lighting control loops are all in the off state, and the time in the off state is within the daytime period range, the step of determining that the lighting controller is in the idle state includes:
and if the first time after the last time that the illumination control loops are detected to be in the on state, the illumination control loops are detected to be in the off state for the first time, the interval between the time when the illumination control loops are detected to be in the off state for the first time and the time when the illumination control loops are detected to be in the on state for the last time is larger than a preset interval threshold, and if the time when the illumination control loops are detected to be in the off state for the first time is in the daytime period range, the illumination controller is judged to be in the idle state.
2. The method of claim 1, wherein if it is determined that a plurality of the lighting controllers are in an idle state at the same time; the step of downloading the lighting control program requiring upgrade from the server to the lighting controller in the idle state includes:
acquiring an IP address of each lighting controller;
dividing each lighting controller into more than two groups according to the size of each IP address;
and downloading the lighting control program to be upgraded from the server for each lighting controller group client in the idle state.
3. The method of claim 1, wherein if it is determined that a plurality of the lighting controllers are in an idle state at the same time; the step of downloading the lighting control program requiring upgrade from the server to the lighting controller in the idle state comprises:
acquiring lighting item information of each lighting controller;
setting download priorities for the lighting controllers according to the lighting item information;
and downloading the lighting control programs needing to be upgraded for each lighting controller from the server in the idle state according to the set downloading priority.
4. The method according to claim 3, wherein if each lighting controller has the same download priority, the affiliation level of the city in which each lighting controller is located is obtained;
and sequentially downloading the lighting control programs to be upgraded from the server to the corresponding lighting controllers from high to low according to the level of the city where each lighting controller is located.
5. The method of claim 1, wherein the step of downloading the upgrade-required lighting control program from a server to the lighting controller in the idle state comprises:
acquiring the version of the lighting control program of the client of the lighting controller in the idle state, and inquiring whether the version of the lighting control program of the client is matched with the version of the lighting control program needing to be upgraded in the server;
if the version of the lighting control program of the client is different from the version of the lighting control program needing to be upgraded, sending a downloading request to the server in the idle state, and downloading the lighting control program needing to be upgraded from the server to the lighting controller in the idle state according to the downloading request.
6. The method of claim 5, wherein if it is determined that a plurality of the lighting controllers are idle at the same time; the step of acquiring the version of the lighting control program of the client of the lighting controller in the idle state, and inquiring whether the version of the lighting control program of the client is matched with the version of the lighting control program needing to be upgraded in the server includes:
acquiring the lighting control program version of the client of each lighting controller in the idle state;
and enabling each lighting controller to successively inquire whether the version of the corresponding client lighting control program is matched with the version of the lighting control program needing to be upgraded in a time-sharing inquiry mode.
7. The method of claim 1, wherein the step after updating the client of the lighting controller in the idle state according to the upgrade-needed lighting control program comprises:
restarting a client of the lighting controller;
matching a lighting control program of a client of the lighting controller with the lighting control program needing to be upgraded;
if the lighting control program of the client of the lighting controller is the same as the lighting control program needing to be upgraded, judging that the client of the lighting controller is successfully updated; and if not, returning to the step of downloading the lighting control program needing to be upgraded from the server to the lighting controller in the idle state.
8. The method according to any one of claims 1-7, wherein the step of detecting whether the lighting control loops of the lighting controller to the end lighting devices are all in an off state comprises:
and if the illumination control loop is detected to be in a conducting state for the first time, detecting whether the illumination control loop is in a closing state at intervals.
9. A client update apparatus for a lighting controller, the apparatus comprising:
the program uploading module is used for acquiring the lighting control program to be upgraded and uploading the lighting control program to be upgraded to the server;
the closed state detection module is used for detecting whether lighting control loops of the lighting controller for the tail-end lighting equipment are all in a closed state;
an idle state determination module, configured to determine that the lighting controller is in an idle state if the lighting control loops are all in an off state and a time of the off state is within a daytime period range; wherein:
the idle state determination module is configured to determine that the lighting controller is in an idle state if the lighting control loops are detected to be in an off state for the first time after the lighting control loops are detected to be in the on state for the last time, and an interval between time when the lighting control loops are detected to be in the off state for the first time and time when the lighting control loops are detected to be in the on state for the last time is greater than a preset interval threshold, and if the time when the lighting control loops are detected to be in the off state for the first time is within a daytime period range;
and the client updating module is used for downloading the lighting control program needing to be upgraded from the server to the lighting controller in the idle state and updating the client of the lighting controller according to the lighting control program needing to be upgraded in the idle state.
10. A client update system for a lighting controller, comprising a server and the lighting controller; the server establishes a communication connection with the lighting controller; the lighting controller is used for controlling the tail end lighting equipment;
the server is used for acquiring the lighting control program needing to be upgraded;
the lighting controller is used for detecting whether lighting control loops of the lighting controller to tail-end lighting equipment are all in a closed state, if the lighting control loops are all in the closed state and the time of the closed state is within a daytime period range, the lighting controller is judged to be in an idle state, the lighting control program needing to be upgraded is downloaded from a server in the idle state, and a client of the lighting controller is updated according to the lighting control program needing to be upgraded in the idle state; wherein:
the illumination controller is used for judging that the illumination controller is in an idle state if the illumination control loops are detected to be in an off state for the first time after the illumination control loops are detected to be in the on state for the last time, the interval between the time when the illumination control loops are detected to be in the off state for the first time and the time when the illumination control loops are detected to be in the on state for the last time is larger than a preset interval threshold value, and the time when the illumination control loops are detected to be in the off state for the first time is in a daytime period range.
CN201811542286.0A 2018-12-17 2018-12-17 Client updating method, device and system of lighting controller Active CN109766109B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811542286.0A CN109766109B (en) 2018-12-17 2018-12-17 Client updating method, device and system of lighting controller

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811542286.0A CN109766109B (en) 2018-12-17 2018-12-17 Client updating method, device and system of lighting controller

Publications (2)

Publication Number Publication Date
CN109766109A CN109766109A (en) 2019-05-17
CN109766109B true CN109766109B (en) 2022-04-15

Family

ID=66450916

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811542286.0A Active CN109766109B (en) 2018-12-17 2018-12-17 Client updating method, device and system of lighting controller

Country Status (1)

Country Link
CN (1) CN109766109B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112579114A (en) * 2019-09-27 2021-03-30 阿里巴巴集团控股有限公司 Program upgrading method and device for Internet of things equipment and Internet of things equipment
CN112015103A (en) * 2020-08-14 2020-12-01 深圳市欧瑞博科技股份有限公司 Upgrading method and device of intelligent control switch, intelligent control switch and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103248669A (en) * 2012-12-13 2013-08-14 武汉东为科技有限公司 Distributed software upgrade system and method
KR20140064359A (en) * 2012-11-20 2014-05-28 주식회사 포스코아이씨티 System and method for remote control of lighting device
CN105848190A (en) * 2016-05-24 2016-08-10 北京小米移动软件有限公司 OTA upgrading method and apparatus
CN106716270A (en) * 2014-09-29 2017-05-24 飞利浦灯具控股公司 Automatic and decentralized commissioning of replacement lighting units

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20140064359A (en) * 2012-11-20 2014-05-28 주식회사 포스코아이씨티 System and method for remote control of lighting device
CN103248669A (en) * 2012-12-13 2013-08-14 武汉东为科技有限公司 Distributed software upgrade system and method
CN106716270A (en) * 2014-09-29 2017-05-24 飞利浦灯具控股公司 Automatic and decentralized commissioning of replacement lighting units
CN105848190A (en) * 2016-05-24 2016-08-10 北京小米移动软件有限公司 OTA upgrading method and apparatus

Also Published As

Publication number Publication date
CN109766109A (en) 2019-05-17

Similar Documents

Publication Publication Date Title
CN108388431B (en) Control method and device for hot update of application program, storage medium and mobile terminal
CN110896404B (en) Data processing method and device and computing node
CN109766109B (en) Client updating method, device and system of lighting controller
US20140135105A1 (en) Video game application state synchronization across multiple devices
US20130254527A1 (en) Bios firmware updating method and electronic device
CN103324507A (en) Method and apparatus for updating terminal preset application program
CN110474977B (en) Firmware upgrading method and system for intelligent door lock and intelligent door lock
KR20130094208A (en) Method and system for proximity-based, peer-initiated device configuration
WO2014201770A1 (en) Application migration method, device and system for mobile terminal
CN110765394A (en) So file loading method and device, storage medium and terminal equipment
US20210132932A1 (en) Smart equipment, method used by smart equipment, and smart lamp
CN110865819B (en) OS installation method, server and system
KR101986695B1 (en) Network service continuity management
CN110888658A (en) Dynamic method and device for functional module in application program and storage medium
CN110139326B (en) Method, device and terminal equipment for automatically switching network modes in private network system
CN106293814B (en) Upgrading method and device
CN105530323A (en) File upgrading method, related equipment and system
CN114895940A (en) Upgrading method, device, equipment and storage medium
CN111176671B (en) Method for automatically and continuously updating system, mobile terminal and storage medium
KR20180050001A (en) Firmware upgrade system and method for IoT
CN109462666B (en) Remote automatic transmission method and device of file and storage medium
US20160295480A1 (en) Download method and wireless communication device
CN109799997B (en) Management method for presetting third party application, intelligent terminal and storage medium
WO2020069309A1 (en) Systems and methods for providing staged updates in embedded devices
KR20150029916A (en) Apparatus and method for setting up computting environments

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant