CN114126170A - Cross-platform light control method, device, equipment and storage medium - Google Patents

Cross-platform light control method, device, equipment and storage medium Download PDF

Info

Publication number
CN114126170A
CN114126170A CN202111370580.XA CN202111370580A CN114126170A CN 114126170 A CN114126170 A CN 114126170A CN 202111370580 A CN202111370580 A CN 202111370580A CN 114126170 A CN114126170 A CN 114126170A
Authority
CN
China
Prior art keywords
light controller
control data
light
communication network
sending
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.)
Pending
Application number
CN202111370580.XA
Other languages
Chinese (zh)
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.)
Strongled Lighting Systems Suzhou Co ltd
Original Assignee
Strongled Lighting Systems Suzhou 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 Strongled Lighting Systems Suzhou Co ltd filed Critical Strongled Lighting Systems Suzhou Co ltd
Priority to CN202111370580.XA priority Critical patent/CN114126170A/en
Publication of CN114126170A publication Critical patent/CN114126170A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H05ELECTRIC TECHNIQUES NOT OTHERWISE PROVIDED FOR
    • H05BELECTRIC HEATING; ELECTRIC LIGHT SOURCES NOT OTHERWISE PROVIDED FOR; CIRCUIT ARRANGEMENTS FOR ELECTRIC LIGHT SOURCES, IN GENERAL
    • H05B47/00Circuit arrangements for operating light sources in general, i.e. where the type of light source is not relevant
    • H05B47/10Controlling the light source
    • H05B47/175Controlling the light source by remote control
    • HELECTRICITY
    • H05ELECTRIC TECHNIQUES NOT OTHERWISE PROVIDED FOR
    • H05BELECTRIC HEATING; ELECTRIC LIGHT SOURCES NOT OTHERWISE PROVIDED FOR; CIRCUIT ARRANGEMENTS FOR ELECTRIC LIGHT SOURCES, IN GENERAL
    • H05B47/00Circuit arrangements for operating light sources in general, i.e. where the type of light source is not relevant
    • H05B47/10Controlling the light source
    • H05B47/175Controlling the light source by remote control
    • H05B47/19Controlling the light source by remote control via wireless transmission
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02BCLIMATE CHANGE MITIGATION TECHNOLOGIES RELATED TO BUILDINGS, e.g. HOUSING, HOUSE APPLIANCES OR RELATED END-USER APPLICATIONS
    • Y02B20/00Energy efficient lighting technologies, e.g. halogen lamps or gas discharge lamps
    • Y02B20/40Control techniques providing energy savings, e.g. smart controller or presence detection

Abstract

The present disclosure relates to a cross-platform light control method, apparatus, device and storage medium, the method comprising: matching a current operating system based on an open source cross-platform user interface framework; establishing a communication network with a light controller; the light controller is connected with a lamp and used for controlling and driving the lamp; responding to a user operation instruction, and generating control data according to the user operation instruction, wherein the control data is used for indicating the light controller to control light; sending the control data to the light controller through the communication network; receiving feedback data of the light controller through the communication network; adjusting the control data according to the feedback data; and sending the adjusted control data to the light controller through the communication network. The system can support cross-platform communication, so that the communication with the light controller is more stable; meanwhile, the command interactivity and the operation stability in communication are effectively guaranteed.

Description

Cross-platform light control method, device, equipment and storage medium
Technical Field
The present disclosure relates to the field of lighting control technologies, and in particular, to a method, an apparatus, a device, and a storage medium for controlling cross-platform lighting.
Background
In a stage or other occasions with requirements on lighting effects, lighting control puts higher requirements on convenience and universality. The light controller is used as a device for directly controlling the lamp, and the communication with the control terminal becomes one of research hotspots. In the traditional light control, when a terminal device is used for issuing a control instruction to a light controller, different communication methods are often required to be designed according to different terminals, so that the flexibility of the light control is limited. In addition, in the light control process, it is difficult to receive the feedback information of the lamp in time, and bidirectional communication cannot be realized.
Disclosure of Invention
In view of the foregoing, the present disclosure provides a cross-platform light control method, apparatus, computer device, computer program product, and computer readable storage medium capable of realizing cross-platform communication and bidirectional communication.
In a first aspect, the present application provides a cross-platform light control method. The method comprises the following steps:
matching a current operating system based on an open source cross-platform user interface framework;
establishing a communication network with a light controller; the light controller is connected with a lamp and used for controlling and driving the lamp;
responding to a user operation instruction, and generating control data according to the user operation instruction, wherein the control data is used for indicating the light controller to control light;
sending the control data to the light controller through the communication network;
receiving feedback data of the light controller through the communication network; adjusting the control data according to the feedback data; and sending the adjusted control data to the light controller through the communication network.
In one embodiment, the establishing a communication network with a light controller includes:
scanning to obtain two-dimension code information, wherein the two-dimension code information corresponds to the light controllers one by one;
and establishing a communication network with the light controller based on the two-dimension code information.
In one embodiment, said sending said control data to said light controller via said communication network comprises:
creating a socket and binding a communication port of the light controller;
and writing the control data into the socket and sending the control data to the communication port.
In one embodiment, the feedback data of the light controller is received through the communication network; adjusting the control data according to the feedback data; sending the adjusted control data to the light controller via the communication network comprises:
monitoring the communication port, and receiving the feedback data through the socket;
acquiring the running state of the lamp according to the feedback data, and adjusting the control data based on the running state of the lamp;
and writing the adjusted control data into the socket and sending the control data to the communication port.
In one embodiment, control data or adjusted control data is sent to the light controller through the communication network according to a set frequency;
and receiving feedback data of the light controller at the interval of sending the control data or the adjusted control data according to the set frequency.
In a second aspect, the present application further provides a cross-platform light control device. The device comprises:
the cross-platform module is used for matching the current operating system based on the open source cross-platform user interface framework;
the network module is used for establishing a communication network with the light controller; the light controller is connected with a lamp and used for controlling and driving the lamp;
the interaction module is used for responding to a user operation instruction and generating control data according to the user operation instruction, wherein the control data is used for indicating the light controller to control light;
the receiving and sending module is used for sending the control data to the light controller through the communication network; the light controller is also used for receiving feedback data of the light controller through the communication network;
the adjusting module is used for adjusting the control data according to the feedback data;
the receiving and sending module is also used for sending the adjusted control data to the light controller through the communication network.
In a third aspect, the present application also provides a computer device. The computer device comprises a memory and a processor, wherein the memory stores a computer program, and the processor realizes the steps of the cross-platform light control method when executing the computer program.
In a fourth aspect, the present application further provides a computer program product. The computer program product includes instructions that, when executed, are capable of performing the steps of the cross-platform light control method described above.
In a fifth aspect, the present disclosure also provides a computer-readable storage medium. Stored thereon, is a computer program which, when being executed by a processor, carries out the steps of the cross-platform light control method described above.
The cross-platform light control method, the cross-platform light control device, the computer equipment, the computer program product and the computer readable storage medium at least comprise the following steps:
the system can support cross-platform communication, so that the communication with the light controller is more stable, and the redundancy of codes is effectively reduced; meanwhile, two-way communication is realized through the lamp light controller, the command interactivity and the operation stability in communication are effectively guaranteed, the running condition of the lamp can be monitored, the control strategy can be adjusted according to real-time running data, and the lamp light control effect is optimized.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments or the conventional technologies of the present disclosure, the drawings used in the descriptions of the embodiments or the conventional technologies will be briefly introduced below, it is obvious that the drawings in the following descriptions are only some embodiments of the present disclosure, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
FIG. 1 is a diagram of an application environment of a cross-platform light control method provided in an embodiment;
FIG. 2 is a flow diagram illustrating the establishment of a communication network according to one embodiment;
FIG. 3 is a flow diagram illustrating a cross-platform light control method according to an embodiment;
fig. 4 is a schematic flow chart of sending the control data to the light controller according to an embodiment;
FIG. 5 is a flow diagram illustrating the reception of feedback data in one embodiment;
FIG. 6 is a block diagram of a cross-platform light control device provided in one embodiment;
FIG. 7 is a schematic data transmission diagram of a cross-platform light control device provided in one embodiment;
FIG. 8 is a block diagram of a cross-platform light control device provided in an embodiment.
Detailed Description
To facilitate an understanding of the present disclosure, the present disclosure will now be described more fully with reference to the accompanying drawings. Embodiments of the present disclosure are presented in the drawings. This disclosure may, however, be embodied in many different forms and should not be construed as limited to the embodiments set forth herein. Rather, these embodiments are provided so that this disclosure will be thorough and complete.
Unless defined otherwise, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this disclosure belongs. The terminology used herein in the description of the disclosure is for the purpose of describing particular embodiments only and is not intended to be limiting of the disclosure.
The implementations described in the exemplary embodiments below are not intended to represent all implementations consistent with the present disclosure. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the present disclosure, as detailed in the appended claims. The terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, the presence of additional identical or equivalent elements in a process, method, article, or apparatus that comprises the recited elements is not excluded.
As used herein, the singular forms "a", "an" and "the" may include the plural forms as well, unless the context clearly indicates otherwise. It will be further understood that the terms "comprises/comprising," "includes" or "including," etc., specify the presence of stated features, integers, steps, operations, components, parts, or combinations thereof, but do not preclude the presence or addition of one or more other features, integers, steps, operations, components, parts, or combinations thereof. Also, in this specification, the term "and/or" includes any and all combinations of the associated listed items.
The cross-platform light control method provided by the embodiment of the application can be applied to the application environment shown in fig. 1. Wherein the terminal 102 communicates with the light controller 104 via a network. The data storage system may store data that the terminal 102 needs to process. The data storage system may be integrated on the light controller 104, or may be located on the cloud or other network server. The terminal 102 may be, but not limited to, various personal computers, notebook computers, smart phones, tablet computers, internet of things devices and portable wearable devices, and the internet of things devices may be smart speakers, smart televisions, smart air conditioners, smart car-mounted devices, and the like. The portable wearable device can be a smart watch, a smart bracelet, a head-mounted device, and the like.
In one embodiment, as shown in fig. 2, a cross-platform light control method is provided, which is described by taking the method as an example applied to the terminal in fig. 1, and includes the following steps:
step S100: and matching the current operating system based on the open source cross-platform user interface framework.
Specifically, the method can realize the control of the light through the interaction of the terminal and the light controller, and the terminal can be a mobile phone, an intelligent computer or other intelligent terminals. Taking a mobile phone as an example, the operating system of the mobile phone has various models, such as Android (Android) and apple (iOS) systems, on the market. The present embodiment embeds and matches the current operating system through the open source cross-platform user interface framework (Flutter).
Step S200: establishing a communication network with a light controller; the light controller is connected with the lamp and used for controlling and driving the lamp.
Specifically, the communication network may be a 4G network or a WIFI network, and the communication network between the terminal and the lighting controller is established, so that subsequent remote control and signal return are facilitated. The light controller can be remotely controlled based on a 4G network by using http communication or remotely controlled based on a WIFI network. The light controller can be a multi-serial port device based on a DMX512 protocol, and can be directly connected with a plurality of lamps of different models so as to control the on-off and operation of the lamps.
Step S300: responding to a user operation instruction, and generating control data according to the user operation instruction, wherein the control data is used for indicating the light controller to control light.
Specifically, the user operation instruction may include that the user issues a control instruction for operation of the lamp through operations such as a touch screen, a key, and voice performed by the terminal. The control data may include on-off control of the light fixture and settings for light color, light intensity, etc. of the light fixture. The generated control data is used for indicating the light controller to control the light.
Step S400: and sending the control data to the light controller through the communication network.
Specifically, the communication network established in step S200 is used as a carrier, and the generated control data is sent to the light controller, and the light controller executes control of the lamp according to the control data.
Step S500: receiving feedback data of the light controller through the communication network; adjusting the control data according to the feedback data; and sending the adjusted control data to the light controller through the communication network.
Specifically, the light controller may transmit the feedback data back to the terminal by using the communication network established in step S200 as a carrier. The feedback data may comprise real-time operating data of the luminaire, which may be one or more of voltage, current, temperature. And adjusting the control data according to the received feedback data to optimize the running state of the lamp.
And after the control data are adjusted, the adjusted control data are sent to the light controller through the communication network, so that the light controller controls the lamp according to the adjusted control data.
It should be noted that step S500 may be executed only once, or may be executed repeatedly in a loop. When the step S500 is repeatedly executed, the operation may be executed according to a set time period, that is, the operation data of the lamp may be obtained in real time, and the control data may be dynamically adjusted.
The cross-platform light control method provided by the embodiment can support cross-platform communication, so that the communication with the light controller is more stable, and the redundancy of codes is effectively reduced; meanwhile, two-way communication is realized through the lamp light controller, the command interactivity and the operation stability in communication are effectively guaranteed, the running condition of the lamp can be monitored, the control strategy can be adjusted according to real-time running data, and the lamp light control effect is optimized.
In some embodiments of the present disclosure, referring to fig. 3, the step S200 includes:
step S202: and scanning to obtain two-dimension code information, wherein the two-dimension code information corresponds to the light controllers one to one.
Specifically, the two-dimensional code corresponding to the light controller one to one can be generated according to the characteristic parameters and signals of the light controller, and the two-dimensional code can be arranged on the machine body of the light controller. The terminal scans the two-dimensional code and is matched with the unique light controller.
Step S204: and establishing a communication network with the light controller based on the two-dimension code information.
Specifically, the connection information of the light controller is obtained according to the two-dimensional code information obtained by scanning, a communication network, such as a WIFI network, of the light controller can be established, and the terminal can join the network connected with the light controller or the light controller can join the network connected with the terminal.
According to the embodiment, the communication network is automatically established by scanning the two-dimension code through the two-dimension code technology, the networking convenience of the light controller is improved, and the terminal is facilitated to realize remote control on the light controller.
In some embodiments of the present disclosure, referring to fig. 4, the step S400 includes:
step S402: and creating a socket and binding a communication port of the light controller.
Specifically, a Socket may be created based on Socket communication technology, and a communication port of the light controller may be bound. A socket may refer to an abstraction of an endpoint for two-way communication between a terminal and a light controller. A socket is the end of a process's communication over a network and provides a mechanism for application layer processes to exchange data using a network protocol. The light controller provides a matching socket that matches the socket, and the communication port may be the matching socket.
Step S404: and writing the control data into the socket and sending the control data to the communication port.
After the socket is established in the terminal, the control data is written in the established socket, and the control information can be sent to the communication port of the light controller.
In some embodiments of the present disclosure, referring to fig. 5, the step S500 includes:
step S502: and monitoring the communication port, and receiving the feedback data through the socket.
Specifically, the communication port of the light controller is monitored, and the feedback data of the light controller is actively read through the socket. The active reading of the terminal can be read according to a set period.
Step S504: and acquiring the running state of the lamp according to the feedback data, and adjusting the control data based on the running state of the lamp.
The feedback data may include one or more of voltage, current, and temperature, and may represent the current operating state of the lamp. The operation state of the lamp can be obtained according to the feedback data, for example, the conditions of a certain controlled lamp such as fault, overload or low working voltage can be known, and the terminal adjusts the control data according to different conditions, so that the lamp can work normally and the light effect is optimized.
Step S506: and writing the adjusted control data into the socket and sending the control data to the communication port.
Specifically, the adjusted control data is written into the socket, and the adjusted control data can be transmitted to the communication port of the light controller through the socket.
According to the embodiment, the two-way communication between the terminal and the light controller is realized through the socket technology, and the socket two-way communication technology can be independent of an operating system of the terminal by combining the cross-platform communication technology, so that the decoupling between the terminal and the socket communication is realized, and the time cost of developers is reduced.
In some embodiments of the present disclosure, in step S500, the control data or the adjusted control data is sent to the light controller through the communication network according to a set frequency.
And receiving feedback data of the light controller at the interval of sending the control data or the adjusted control data according to the set frequency.
Specifically, when the control data or the adjusted control data is transmitted to the light controller, the control data or the adjusted control data may be transmitted at a set frequency. Receiving a feedback signal at a gap in transmitting the control data or the adjusted control data. When the feedback data of the light controller is read, the control data or the adjusted control data is synchronously transmitted to the light controller, so that the acquired feedback data is inserted into the transmission frame gap of the control data or the adjusted control data, the control and the reading can be synchronously realized, the extra port layout is reduced, and the processing efficiency is improved.
It should be understood that although the various steps in the flowcharts of fig. 2-5 are shown in order as indicated by the arrows, the steps are not necessarily performed in order as indicated by the arrows. The steps are not performed in the exact order shown and described, and may be performed in other orders, unless explicitly stated otherwise. Moreover, at least some of the steps in fig. 2-5 may include multiple steps or multiple stages, which are not necessarily performed at the same time, but may be performed at different times, which are not necessarily performed in sequence, but may be performed in turn or alternately with other steps or at least some of the other steps or stages.
Based on the same inventive concept, the embodiment of the present application further provides a cross-platform light control device for implementing the above-mentioned cross-platform light control method. The apparatus may include systems (including distributed systems), software (applications), modules, components, servers, clients, etc. that use the methods described in embodiments of the present specification in conjunction with any necessary apparatus to implement the hardware. As used hereinafter, the term "unit" or "module" may be a combination of software and/or hardware that implements a predetermined function. Although the means described in the embodiments below are preferably implemented in software, an implementation in hardware, or a combination of software and hardware is also possible and contemplated. The implementation scheme for solving the problem provided by the device is similar to the implementation scheme described in the above method, so specific limitations in one or more embodiments of the cross-platform light control device provided below can be referred to the limitations in the above cross-platform light control method, and are not described herein again.
In one embodiment, as shown in fig. 6, a cross-platform light control device is provided. The device Z00 comprises: a cross-platform module Z10, a network module Z20, an interaction module Z30, a transceiver module Z40, a regulation module Z50, wherein,
a cross-platform module Z10, which is used for matching the current operating system based on the open source cross-platform user interface framework;
a network module Z20 for establishing a communication network with the light controller; the light controller is connected with a lamp and used for controlling and driving the lamp;
the interaction module Z30 is used for responding to a user operation instruction and generating control data according to the user operation instruction, wherein the control data is used for indicating the light controller to control light;
a transceiver module Z40, configured to send the control data to the light controller through the communication network; the light controller is also used for receiving feedback data of the light controller through the communication network;
an adjustment module Z50 for adjusting the control data in accordance with the feedback data;
the transceiver module Z40 is further configured to send the adjusted control data to the light controller via the communication network.
In an exemplary embodiment, the network module Z20 includes: the two-dimension code unit is used for scanning to obtain two-dimension code information, and the two-dimension code information corresponds to the light controllers one by one; and the connecting unit is used for establishing a communication network with the light controller based on the two-dimension code information.
In an exemplary embodiment, the transceiver module Z40 includes: the socket unit is used for creating a socket and binding a communication port of the light controller; and the sending unit is used for writing the control data into the socket and sending the control data to the communication port.
In an exemplary embodiment, the transceiver module Z40 further includes: a receiving unit, configured to monitor the communication port and receive the feedback data through the socket; the adjusting unit is used for acquiring the running state of the lamp according to the feedback data and adjusting the control data based on the running state of the lamp; the sending unit is further configured to write the adjusted control data into the socket, and send the adjusted control data to the communication port.
In this embodiment, the control data or the adjusted control data is sent to the light controller through the communication network according to the set frequency. And receiving feedback data of the light controller at the interval of sending the control data or the adjusted control data according to the set frequency.
In an exemplary embodiment, referring to fig. 7, a cross-platform light control device is provided wherein the device Z00 is in two-way communication with the light controller 104. An interaction module Z30 in the device Z00 is used for responding to a user operation instruction and generating control data according to the user operation instruction, wherein the control data is used for indicating the light controller to control light. A transceiver module Z40, configured to send the control data to the light controller 104 through the communication network; and for receiving feedback data of the light controller 104 via the communication network. The transceiver module Z40 includes a socket unit Z42, a sending unit Z44, a receiving unit Z46, and a tuning unit Z48, where the socket unit Z42 is used to create a socket and bind the communication port of the light controller. The interaction module Z30 may transmit the generated control data to the sending unit Z44, the sending unit Z44 being configured to send the control data to the light controller 104 via the socket. The receiving unit Z46 is used to receive the feedback data of the light controller 104 via the socket, and the receiving unit Z46 can transmit the feedback data to the adjusting unit Z48. And the adjusting unit Z48 is used for acquiring the running state of the lamp according to the feedback data and adjusting the control data based on the running state of the lamp. The sending unit Z44 is also used to send the adjusted control data to the light controller 104 via the socket.
It should be noted that all or part of the modules of the cross-platform light control device may be implemented by software, hardware and their combination. 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 division of the modules in the embodiment of the present disclosure is illustrative, and is only a logical function division of the cross-platform light control method, and there may be another division manner in actual implementation.
Based on the foregoing description of the method embodiments, in another embodiment of the apparatus provided in the present disclosure, a computer device for a cross-platform light control method is provided, which includes a memory and a processor, where the memory stores a computer program, and the processor implements the steps of the cross-platform light control method in the foregoing embodiments when executing the computer program.
In one embodiment, a computer device is provided, which may be a terminal, and its internal structure diagram may be as shown in fig. 8. The computer device includes a processor, a memory, a communication interface, a display screen, and an input device connected by a system bus. Wherein the processor of the computer device is configured to provide computing and control capabilities. The memory of the computer device comprises a nonvolatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of an operating system and computer programs in the non-volatile storage medium. The communication interface of the computer device is used for carrying out wired or wireless communication with an external light controller, and the wireless communication can be realized through WIFI, a mobile cellular network, NFC (near field communication) or other technologies. The computer program is executed by a processor to implement a cross-platform light control method. The display screen of the computer equipment can be a liquid crystal display screen or an electronic ink display screen, and the input device of the computer equipment can be a touch layer covered on the display screen, a key, a track ball or a touch pad arranged on the shell of the computer equipment, an external keyboard, a touch pad or a mouse and the like.
Those skilled in the art will appreciate that the architecture shown in fig. 8 is merely a block diagram of some of the structures associated with the disclosed aspects and is not intended to limit the computing devices to which the disclosed aspects apply, as particular computing devices may include more or less components than those shown, or may combine certain components, or have a different arrangement of components.
In one embodiment, a computer device is provided, comprising a memory and a processor, the memory having stored therein a computer program, the processor implementing the steps of the cross-platform light control method in the above embodiments when executing the computer program.
In one embodiment, a computer program product is provided, comprising a computer program which, when executed by a processor, further implements the steps of the cross-platform light control method of the above embodiments.
In one embodiment, a computer readable storage medium is provided, having stored thereon a computer program which, when executed by a processor, implements the steps of the cross-platform light control method in the above-described embodiments.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by hardware instructions of a computer program, which can be stored in a non-volatile computer-readable storage medium, and when executed, can include the processes of the embodiments of the methods described above. Any reference to memory, database, or other medium used in the embodiments provided herein may include at least one of non-volatile and volatile memory. The nonvolatile Memory may include Read-Only Memory (ROM), magnetic tape, floppy disk, flash Memory, optical Memory, high-density embedded nonvolatile Memory, resistive Random Access Memory (ReRAM), Magnetic Random Access Memory (MRAM), Ferroelectric Random Access Memory (FRAM), Phase Change Memory (PCM), graphene Memory, and the like. Volatile Memory can include Random Access Memory (RAM), external cache Memory, and the like. By way of illustration and not limitation, RAM can take many forms, such as Static Random Access Memory (SRAM) or Dynamic Random Access Memory (DRAM), among others. The databases referred to in various embodiments provided herein may include at least one of relational and non-relational databases. The non-relational database may include, but is not limited to, a block chain based distributed database, and the like. The processors referred to in the embodiments provided herein may be general purpose processors, central processing units, graphics processors, digital signal processors, programmable logic devices, quantum computing based data processing logic devices, etc., without limitation.
The technical features of the above embodiments can be arbitrarily combined, and for the sake of brevity, all possible combinations of the technical features in the above embodiments are not described, but should be considered as the scope of the present specification as long as there is no contradiction between the combinations of the technical features.
It is understood that the embodiments of the method described above are described in a progressive manner, and the same/similar parts of the embodiments are referred to each other, and each embodiment focuses on differences from the other embodiments. Reference may be made to the description of other method embodiments for relevant points.
The above-mentioned embodiments only express several embodiments of the present application, and the description thereof is more specific and detailed, but not construed as limiting the scope of the present application. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the concept of the present application, which falls within the scope of protection of the present application. Therefore, the protection scope of the present application shall be subject to the appended claims.

Claims (10)

1. A cross-platform light control method, comprising the steps of:
matching a current operating system based on an open source cross-platform user interface framework;
establishing a communication network with a light controller; the light controller is connected with a lamp and used for controlling and driving the lamp;
responding to a user operation instruction, and generating control data according to the user operation instruction, wherein the control data is used for indicating the light controller to control light;
sending the control data to the light controller through the communication network;
receiving feedback data of the light controller through the communication network; adjusting the control data according to the feedback data; and sending the adjusted control data to the light controller through the communication network.
2. The method of claim 1, wherein establishing a communication network with a light controller comprises:
scanning to obtain two-dimension code information, wherein the two-dimension code information corresponds to the light controllers one by one;
and establishing a communication network with the light controller based on the two-dimension code information.
3. The method of claim 1, wherein said sending said control data to said light controller over said communication network comprises:
creating a socket and binding a communication port of the light controller;
and writing the control data into the socket and sending the control data to the communication port.
4. A method according to claim 3, wherein said receiving feedback data from said light controller over said communications network; adjusting the control data according to the feedback data; sending the adjusted control data to the light controller via the communication network comprises:
monitoring the communication port, and receiving the feedback data through the socket;
acquiring the running state of the lamp according to the feedback data, and adjusting the control data based on the running state of the lamp;
and writing the adjusted control data into the socket and sending the control data to the communication port.
5. The method of claim 1,
sending control data or adjusted control data to the light controller through the communication network according to a set frequency;
and receiving feedback data of the light controller at the interval of sending the control data or the adjusted control data according to the set frequency.
6. A cross-platform light control device, comprising:
the cross-platform module is used for matching the current operating system based on the open source cross-platform user interface framework;
the network module is used for establishing a communication network with the light controller; the light controller is connected with a lamp and used for controlling and driving the lamp;
the interaction module is used for responding to a user operation instruction and generating control data according to the user operation instruction, wherein the control data is used for indicating the light controller to control light;
the receiving and sending module is used for sending the control data to the light controller through the communication network; the light controller is also used for receiving feedback data of the light controller through the communication network;
the adjusting module is used for adjusting the control data according to the feedback data;
the receiving and sending module is also used for sending the adjusted control data to the light controller through the communication network.
7. The apparatus of claim 6, wherein the network module comprises:
the two-dimension code unit is used for scanning to obtain two-dimension code information, and the two-dimension code information corresponds to the light controllers one by one;
and the connecting unit is used for establishing a communication network with the light controller based on the two-dimension code information.
8. A computer device comprising a memory and a processor, the memory storing a computer program, characterized in that the processor, when executing the computer program, implements the steps of the method of any of claims 1 to 5.
9. A computer program product comprising instructions, characterized in that said instructions, when executed, are capable of performing the steps of the method of any one of claims 1 to 5.
10. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the steps of the method of any one of claims 1 to 5.
CN202111370580.XA 2021-11-18 2021-11-18 Cross-platform light control method, device, equipment and storage medium Pending CN114126170A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111370580.XA CN114126170A (en) 2021-11-18 2021-11-18 Cross-platform light control method, device, equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111370580.XA CN114126170A (en) 2021-11-18 2021-11-18 Cross-platform light control method, device, equipment and storage medium

Publications (1)

Publication Number Publication Date
CN114126170A true CN114126170A (en) 2022-03-01

Family

ID=80396564

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111370580.XA Pending CN114126170A (en) 2021-11-18 2021-11-18 Cross-platform light control method, device, equipment and storage medium

Country Status (1)

Country Link
CN (1) CN114126170A (en)

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106102223A (en) * 2016-06-16 2016-11-09 中山市欧日光电科技有限公司 A kind of Intelligent lamp control system based on Quick Response Code scanning technique
CN112165751A (en) * 2020-08-20 2021-01-01 安徽极光照明工程有限公司 WeChat applet-based light control system

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106102223A (en) * 2016-06-16 2016-11-09 中山市欧日光电科技有限公司 A kind of Intelligent lamp control system based on Quick Response Code scanning technique
CN112165751A (en) * 2020-08-20 2021-01-01 安徽极光照明工程有限公司 WeChat applet-based light control system

Similar Documents

Publication Publication Date Title
US9210778B2 (en) Integrated wireless and wired light control system
US20140148098A1 (en) Electronic device and operating method thereof
CN102640103A (en) Method and apparatus for providing access to social content
KR20110043756A (en) Updating scenes in remote controllers of a home control system
CN105721547B (en) The method and apparatus for cooperateing with processing business
CN110413673B (en) Database data unified acquisition and distribution method and system
JP2012181835A (en) Electronic device with function of supporting multiple cards
CN105472307A (en) Video conference control method and video conference control system
KR20120064883A (en) Communication control method for dual standby portable device and dual standby portable device supporting the same
CN103906032A (en) Method and module for communication between devices, and terminal devices
US20120278444A1 (en) Information Processing Apparatus
US20230161673A1 (en) Method for restoring backup data and electronic device therefor
CN105846865A (en) Methods, devices and systems for bluetooth audio transmission
CN110933170A (en) Multi-device linkage control method and device of ZigBee gateway and storage medium
US9385789B1 (en) Add-on NFC antenna architecture
CN108415785A (en) Self-aided terminal SP implementation methods, terminal device and readable storage medium storing program for executing
CN108966465A (en) A kind of lamp light control method and system with music
CN111338780A (en) Transmission method and device for concurrent files
CN114126170A (en) Cross-platform light control method, device, equipment and storage medium
CN112689012A (en) Cross-network proxy communication method and device
CN112597199A (en) Heterogeneous multi-data source adaptation method and device
CN108052521A (en) Coordination data display methods, application server and storage medium
CN114449113A (en) Data dialing method and device, computer equipment and computer readable storage medium
CN114500668A (en) Data transmission method and device, electronic equipment and storage medium
CN114637711A (en) Chip control method, control data transmission method and device and computer equipment

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