CN112188699B - Control method and device of desk lamp and electronic equipment - Google Patents

Control method and device of desk lamp and electronic equipment Download PDF

Info

Publication number
CN112188699B
CN112188699B CN201910603256.4A CN201910603256A CN112188699B CN 112188699 B CN112188699 B CN 112188699B CN 201910603256 A CN201910603256 A CN 201910603256A CN 112188699 B CN112188699 B CN 112188699B
Authority
CN
China
Prior art keywords
desk lamp
reservation
instruction
terminal equipment
desk
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
CN201910603256.4A
Other languages
Chinese (zh)
Other versions
CN112188699A (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.)
Leeleds Lighting Xiamen Co Ltd
Original Assignee
Leeleds Lighting Xiamen 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 Leeleds Lighting Xiamen Co Ltd filed Critical Leeleds Lighting Xiamen Co Ltd
Priority to CN201910603256.4A priority Critical patent/CN112188699B/en
Publication of CN112188699A publication Critical patent/CN112188699A/en
Application granted granted Critical
Publication of CN112188699B publication Critical patent/CN112188699B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • FMECHANICAL ENGINEERING; LIGHTING; HEATING; WEAPONS; BLASTING
    • F21LIGHTING
    • F21VFUNCTIONAL FEATURES OR DETAILS OF LIGHTING DEVICES OR SYSTEMS THEREOF; STRUCTURAL COMBINATIONS OF LIGHTING DEVICES WITH OTHER ARTICLES, NOT OTHERWISE PROVIDED FOR
    • F21V23/00Arrangement of electric circuit elements in or on lighting devices
    • F21V23/003Arrangement of electric circuit elements in or on lighting devices the elements being electronics drivers or controllers for operating the light source, e.g. for a LED array
    • 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

Landscapes

  • Engineering & Computer Science (AREA)
  • Microelectronics & Electronic Packaging (AREA)
  • General Engineering & Computer Science (AREA)
  • Circuit Arrangement For Electric Light Sources In General (AREA)

Abstract

The invention is applicable to the technical field of desk lamp control, and provides a control method and device of a desk lamp and electronic equipment, wherein the method comprises the following steps: under the condition that the terminal equipment and the desk lamp are connected through Bluetooth, if a desk lamp starting instruction sent by the terminal equipment is received, a rotary driving piece of the desk lamp is controlled to drive a bracket of the desk lamp to rotate relative to a base of the desk lamp according to the desk lamp starting instruction, so that the bracket is far away from a desk top; the base of the desk lamp is connected with the desktop; if a desk lamp closing instruction sent by the terminal equipment is received, the rotary driving piece is controlled to drive the support to rotate relative to the base according to the desk lamp closing instruction, so that the support is close to the desktop. According to the invention, the Bluetooth connection between the terminal equipment and the desk lamp is established, so that the terminal equipment can control the desk lamp, the bracket of the desk lamp is enabled to rotate close to or far away from the desk top, articles such as books and the like are prevented from occupying public positions for a long time by others, public resources are saved, and users are facilitated.

Description

Control method and device of desk lamp and electronic equipment
Technical Field
The invention belongs to the technical field of desk lamp control, and particularly relates to a control method and device of a desk lamp and electronic equipment.
Background
In a college library or a municipal library, a seat for reading or learning is usually provided, and in order to meet personal demands, some students or citizens use articles such as books and schoolbags to occupy the seat for a long time, and under the condition that the students or citizens do not use the seat, other people cannot use the seat normally, so that great waste of public resources is caused.
Disclosure of Invention
In view of the above, the embodiments of the present invention provide a method and an apparatus for controlling a desk lamp, and an electronic device, so as to solve the technical problem of public resource waste caused by the seat occupation phenomenon in the related art.
A first aspect of an embodiment of the present invention provides a method for controlling a desk lamp, applied to a desk lamp, where the method includes:
under the condition that the terminal equipment and the desk lamp are connected through Bluetooth, if a desk lamp starting instruction sent by the terminal equipment is received, a rotary driving piece of the desk lamp is controlled to drive a bracket of the desk lamp to rotate relative to a base of the desk lamp according to the desk lamp starting instruction, so that the bracket is far away from a desk top; the base of the desk lamp is connected with the desktop;
if a desk lamp closing instruction sent by the terminal equipment is received, the rotary driving piece is controlled to drive the support to rotate relative to the base according to the desk lamp closing instruction, so that the support is close to the desktop.
A second aspect of an embodiment of the present invention provides a method for controlling a desk lamp, which is applied to a terminal device, where the method includes:
under the condition that the terminal equipment and the desk lamp are connected through Bluetooth, if a user triggering a desk lamp starting instruction is detected, the desk lamp starting instruction is sent to the desk lamp so as to instruct the desk lamp to control a rotary driving piece of the desk lamp to drive a bracket of the desk lamp to rotate relative to a base of the desk lamp according to the desk lamp starting instruction, and therefore the bracket is far away from the desk top; the base is connected with the desktop;
under the condition that the terminal equipment and the desk lamp are connected in a Bluetooth mode, if a user triggering a desk lamp closing instruction is detected, the desk lamp closing instruction is sent to the desk lamp, the desk lamp is instructed to control the rotary driving piece to drive the support to rotate relative to the base according to the desk lamp closing instruction, and the support is made to be close to the desktop.
A third aspect of the embodiments of the present invention provides a control device for a desk lamp, configured to a desk lamp, including:
the desk lamp starting execution module is used for controlling the rotary driving piece of the desk lamp to drive the bracket of the desk lamp to rotate relative to the base of the desk lamp according to the desk lamp starting instruction if the desk lamp starting instruction sent by the terminal equipment is received under the condition that the terminal equipment and the desk lamp are connected through Bluetooth, so that the bracket is far away from the desk top; the base of the desk lamp is connected with the desktop;
and the table lamp closing execution module is used for controlling the rotary driving piece to drive the bracket to rotate relative to the base according to the table lamp closing instruction if the table lamp closing instruction sent by the terminal equipment is received, so that the bracket is close to the table top.
A fourth aspect of the embodiment of the present invention provides a control device for a desk lamp, configured in a terminal device, including:
the desk lamp starting instruction sending module is used for sending a desk lamp starting instruction to the desk lamp if the user is detected to trigger the desk lamp starting instruction under the condition that the terminal equipment and the desk lamp are connected in a Bluetooth mode, so that the desk lamp is instructed to control a rotary driving piece of the desk lamp to drive a bracket of the desk lamp to rotate relative to a base of the desk lamp according to the desk lamp starting instruction, and the bracket is far away from the desk lamp; the base is connected with the desktop;
the desk lamp closing instruction sending module is used for sending a desk lamp closing instruction to the desk lamp if a user is detected to trigger the desk lamp closing instruction under the condition that the Bluetooth connection is established between the terminal equipment and the desk lamp, so that the desk lamp is instructed to control the rotary driving piece to drive the support to rotate relative to the base according to the desk lamp closing instruction, and the support is enabled to be close to the desktop.
A fifth aspect of an embodiment of the present invention provides an electronic device comprising a memory and a processor, the memory storing a computer program executable on the processor, the processor implementing the steps of the method according to the first and/or second aspect when the computer program is executed.
A sixth aspect of the embodiments of the present invention provides a computer readable storage medium storing a computer program which, when executed by a processor, implements the steps of the method according to the first and/or second aspects.
In the embodiment of the invention, the Bluetooth connection between the terminal equipment and the desk lamp is established, so that the terminal equipment can control the desk lamp, the bracket of the desk lamp is enabled to rotate close to or far away from the desk lamp, articles such as books and the like are prevented from occupying public positions for a long time, public resources are saved, and users are facilitated.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings that are needed in the embodiments or the description of the prior art will be briefly described below, it being obvious that the drawings in the following description are only some embodiments of the present invention, and that other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
Fig. 1 is a schematic structural diagram of a desk lamp control system according to an embodiment of the present invention;
fig. 2 is a schematic circuit diagram of a desk lamp according to an embodiment of the present invention;
fig. 3 is a schematic mechanical structure of a desk lamp according to an embodiment of the present invention;
fig. 4 is a flowchart of an implementation of a method for controlling a desk lamp according to an embodiment of the present invention;
fig. 5 is a flowchart of another method for controlling a desk lamp according to an embodiment of the present invention;
fig. 6 is a flowchart of another method for controlling a desk lamp according to an embodiment of the present invention;
fig. 7 is a block diagram of a control device of a desk lamp according to an embodiment of the present invention;
fig. 8 is a block diagram of another control device for a desk lamp according to an embodiment of the present invention;
fig. 9 is a schematic diagram of an electronic device according to an embodiment of the present invention.
Detailed Description
In order to describe the technical solution according to the invention, reference will be made to the accompanying drawings and examples.
In order that those skilled in the art will better understand the present invention, a detailed description of embodiments of the present invention will be provided below, together with accompanying drawings, wherein it is apparent that the described embodiments are only some, but not all embodiments of the present invention. All other embodiments obtained, based on the embodiments of the invention, without inventive faculty, shall fall within the scope of protection of the invention, for a person skilled in the art. It should be noted that, in the case of no conflict, the embodiments and features in the embodiments may be combined with each other.
In the following description, for purposes of explanation and not limitation, specific details are set forth such as the particular system architecture, techniques, etc., in order to provide a thorough understanding of the embodiments of the present invention. It will be apparent, however, to one skilled in the art that the present invention may be practiced in other embodiments that depart from these specific details. In other instances, detailed descriptions of well-known systems, devices, circuits, and methods are omitted so as not to obscure the description of the present invention with unnecessary detail.
It should be noted that the description of the terms "first" or "second" and the like in the description of the invention, the claims and the drawings are used for distinguishing between similar objects only and are not to be construed as indicating or implying a relative importance or implicitly indicating the number of technical features indicated, i.e. the description is not necessarily for describing a particular order or sequence. Furthermore, it is to be understood that these descriptions may be interchanged where appropriate to describe embodiments of the invention.
Fig. 1 shows a schematic structural diagram of a desk lamp control system according to an embodiment of the present invention. As shown in fig. 1, the desk lamp control system includes a desk lamp 11, a mobile phone 12 and a server 13. The desk lamp 11 and the mobile phone 12 comprise Bluetooth modules, data interaction is carried out between the desk lamp 11 and the mobile phone 12 through Bluetooth connection, and data interaction is carried out between the mobile phone 12 and the server 13 through wireless communication.
The desk lamp 11 can be applied to places with seat resources such as Gao Jiaotu bookhouses, municipal libraries, learning centers, education centers and the like, and the desk lamp 11 is fixedly connected to a desk top. After the several desk lamps 11 are deployed at the application site, engineers use near field communication modules of the terminal devices, such as a video identification (Radio Frequency Identification, RFID) module or a near field communication (Near Field Communication, NFC) module, to read bluetooth information of each desk lamp 11 to obtain a bluetooth device unique identifier, such as a universal unique identification code (Universally Unique Identifier, UUID) or a medium access control address (Media Access Control Address, MAC address), and upload the bluetooth device unique identifier to the server 13 as background data for storage, so as to facilitate subsequent user terminal devices to make seat (or desk lamp) reservations at the server. In addition, engineers acquire positioning information and unique equipment numbers of each desk lamp by using terminal equipment, and send the positioning information and unique equipment numbers to the server 13 for associated storage with the unique Bluetooth equipment identifiers of the desk lamps.
The wireless communication between the handset 12 and the server 13 may use any communication standard or protocol including, but not limited to, global system for mobile communications (Global System of Mobile communication, GSM), general packet radio service (General Packet Radio Service, GPRS), code division multiple access (Code Division Multiple Access, CDMA), wideband code division multiple access (Wideband Code Division Multiple Access, WCDMA), long term evolution (Long Term Evolution, LTE)), email, short message service (Short Messaging Service, SMS), and the like.
Fig. 2 is a schematic diagram of a part of a circuit structure of a desk lamp according to an embodiment of the present invention. Referring to fig. 2, the desk lamp includes: processor 111, bluetooth module 112, rotary drive 113, near field communication module 114, power supply 115, and the like. It will be appreciated by those skilled in the art that the table lamp configuration shown in fig. 2 is not limiting and may include more or fewer components than shown, or may be combined with certain components, or may be arranged with different components. It should be noted that the desk lamp may further include a memory, an electrical switch, and the like, and the processor 111 controls the rotation driving member 113 to be turned on and off through the electrical switch, and controls the near field communication module 114 to be powered on through the electrical switch. The rotary drive 113 may comprise a steering engine. The near field communication module 114 may include an RFID or NFC module.
Fig. 3 shows a mechanical structure of a desk lamp according to an embodiment of the present invention. Referring to fig. 3, the desk lamp includes a base 1, a bracket 2, a light source assembly 3, and a rotation driving member (not shown in the drawing) provided in an inner space of the base 1. The base 1 is fixedly connected to a desktop, the support 2 is rotatably connected to the base 1, the light source assembly 3 includes a light bar 32 and a light bar driving member (not shown in the figure), and the light bar 32 is disposed on the support 2. The rotation driving member 113 is used to drive the stand 2 to rotate relative to the base 1 so as to bring the stand 2 close to or away from the table top. When the desktop is not used by a person, the rotary driving piece 113 can drive the bracket 2 to drive the lamp strip 32 to rotate to the desktop together, so that the space of the desktop is occupied, and articles such as books and schoolbags used by other people are prevented from being placed on the desktop to occupy seats, thereby preventing the occurrence of seat occupying behaviors.
The bracket 2 comprises a vertical plate 21 and a lamp holder 22 which is connected with the vertical plate 21 in a bending way, one end of the vertical plate 21 far away from the lamp holder 22 is connected with a rotary driving piece, and a lamp strip 32 is fixed on the lamp holder 22. Because riser 21 and lamp support 22 are connected by bending, when support 2 rotates to the desktop, riser 21 and lamp support 22 are protruding in the desktop, occupy partial altitude space, make the user unable place article on the desktop. The angle between the vertical plate 21 and the lamp holder 22 may be a right angle, an acute angle, an obtuse angle, or the like, and the bending connection angle of the vertical plate 21 and the lamp holder 22 is not limited herein. Alternatively, the bracket 2 has an L-shape in which the standing plate 21 is rotatable to a vertical position with the rotation driving member 113, and the lamp mount 22 is extended toward a direction in which the user sits.
In the embodiment shown in fig. 1, the terminal device is exemplified by a mobile phone. In other embodiments of the present invention, the mobile phone 12 may also be replaced by other terminal devices, including, but not limited to, tablet computers, wearable devices, vehicle-mounted devices, augmented reality (augmented reality, AR)/Virtual Reality (VR) devices, notebook computers, ultra-mobile personal computer (UMPC), netbooks, personal digital assistants (personal digital assistant, PDA), etc., provided that the terminal devices include bluetooth modules to enable bluetooth connection to be established with the desk lamp.
Fig. 4 shows an implementation flow of a method for controlling a desk lamp according to an embodiment of the present invention, where the method flow includes steps S401 to S402. The method is suitable for the situation that the desk lamp control is needed. The method is applied to the table lamp shown in fig. 1-3. The specific implementation principle of each step is as follows.
S401, under the condition that Bluetooth connection is established between terminal equipment and the desk lamp, if a desk lamp starting instruction sent by the terminal equipment is received, a rotary driving piece of the desk lamp is controlled to drive a bracket of the desk lamp to rotate relative to a base of the desk lamp according to the desk lamp starting instruction, so that the bracket is far away from a desk top; the base of the desk lamp is connected with the desktop.
S402, if a desk lamp closing instruction sent by the terminal equipment is received, the rotating driving piece is controlled to drive the support to rotate relative to the base according to the desk lamp closing instruction, so that the support is close to the desktop.
In an embodiment of the present invention, the terminal device is provided with a desk lamp reservation application, and the application may be a terminal application, a web page application, an applet, or the like. In another embodiment of the present invention, the desk lamp may also be reserved through a reservation website. In the following embodiments, an applet on a mobile phone will be described as an example.
Each deployed desk lamp is provided with a corresponding two-dimensional code label, and the reading result of the two-dimensional code label is the unique equipment number of the desk lamp. The unique device number may be a pure number, a pure letter, or a combination of a number and a letter, and the length is not limited, for example, 001 or a 001.
Under the condition that a user uses a mobile phone to reserve the use of the desk lamp in advance in a server, the user arrives at a seat in a reserved period, if the user scans a two-dimension code label of the reserved desk lamp through a mobile phone applet, the unique equipment number of the desk lamp can be automatically input, the unique Bluetooth equipment identification of the reserved desk lamp corresponding to the unique equipment number is obtained from the server, bluetooth connection between the mobile phone and the desk lamp is established, and the desk lamp can realize data interaction with the server through the mobile phone.
When a user does not use a mobile phone to reserve the use of the desk lamp in advance on a server, the user reaches a seat which is not used, when the user scans a two-dimensional code label of the desk lamp through a mobile phone applet, the unique equipment number of the desk lamp can be automatically input, the reservation state of the desk lamp corresponding to the unique equipment number is obtained from the server, if the desk lamp is in a reserved state, the reservation of the use of the desk lamp can be continuously completed, after the reservation is finished, the server gives a unique identification of Bluetooth equipment of the desk lamp to the mobile phone, bluetooth connection between the mobile phone and the desk lamp is established, and the desk lamp can realize data interaction with the server through the mobile phone.
When the mobile phone sends a desk lamp starting instruction to the desk lamp, the desk lamp controls the rotary driving piece of the desk lamp to drive the support to rotate relative to the base of the desk lamp according to the desk lamp starting instruction, so that the support is far away from the desk top.
When the mobile phone sends a desk lamp closing instruction to the desk lamp, the desk lamp controls the rotary driving piece to drive the support to rotate relative to the base according to the desk lamp closing instruction, so that the support is close to the desktop.
Further, when the desk lamp receives a desk lamp starting instruction, the light source component of the desk lamp can be controlled to be lightened; or after the control bracket is far away from the desktop, the light source component of the desk lamp is controlled to be lightened.
When the desk lamp receives the desk lamp closing instruction, the light source component of the desk lamp can be controlled to be turned off; or after the control bracket is close to the desktop, the light source component of the desk lamp is controlled to be extinguished.
If the user uses the desk lamp reservation applet for the first time, the user needs to complete the registration, the desk lamp reservation can be performed after the registration is completed, and the reserved desk lamp can be controlled to be turned on or off after the reservation is completed.
In the embodiment of the invention, under the condition that the mobile phone reserves the use time period of the desk lamp in advance, the mobile phone sends the instruction of closing the desk lamp or the instruction of opening the desk lamp to the desk lamp based on the Bluetooth connection between the mobile phone and the desk lamp, so that the desk lamp is controlled to be close to or far from the desk lamp, the desk lamp-based seat occupation prevention control process is realized, the user is facilitated, and the resource is saved.
Optionally, after the user finishes the reservation of the use of a certain desk lamp through interaction between the mobile phone and the server, the mobile phone loads a control interface of the reserved desk lamp, wherein the control interface comprises an opening control and a closing control, and a desk lamp starting instruction is generated when the opening control is triggered; and when the closing control is triggered, a desk lamp closing instruction is generated. Further, in other embodiments of the present invention, the control interface further includes a temporary separation control and a control for turning on the light source assembly, where the temporary separation control generates a desk lamp light source assembly turning-off instruction when triggered, so that the desk lamp light source assembly is turned off. When the user returns after leaving temporarily, the control for starting the light source assembly can be triggered to enable the desk lamp light source assembly to be lighted.
On the basis of the embodiment shown in fig. 4, fig. 5 shows a flowchart of another implementation of the desk lamp control method. As shown in fig. 5, steps 501 to 502 are added to the embodiment shown in fig. 4. It should be noted that the same steps as those in the embodiment of fig. 4 are not repeated here, please refer to the foregoing.
S501, receiving a reservation period writing instruction from a server, wherein the reservation period writing instruction carries reservation period information, and the reservation period information comprises reservation starting time, reservation ending time and reservation user information, which are sent by a terminal device under the condition that the terminal device and the desk lamp are connected through Bluetooth;
s502, writing the reservation period information into a near field communication module of the desk lamp according to the reservation period writing instruction.
In the embodiment of the invention, when the desk lamp and the terminal equipment are connected through Bluetooth, the desk lamp performs data interaction with the server through the mobile phone, the server sends the reservation period writing instruction to the desk lamp through the terminal equipment, and the desk lamp writes reservation period information into the near field communication module of the desk lamp after receiving the reservation period writing instruction. The reservation period information comprises reservation starting time, reservation ending time and reservation user information. The reservation user information includes, but is not limited to, campus cards, borrowing or borrowing cards, and the like.
Based on this setting, the user who has reserved the use period of the desk lamp, in addition to controlling the desk lamp by using the mobile phone, can also use the identity card including the near field communication module, such as the campus card, borrow the book card or borrow the card etc. to light up or go out the light source subassembly of desk lamp. As a non-limiting example, when a student who has reserved a desk lamp uses a near field communication module of the desk lamp, which the student card is near in the reserved period, the light source assembly can be turned on if the light source assembly of the desk lamp is in an off state at this time, and the light source assembly can be turned off if the light source assembly of the desk lamp is in an on state at this time. It should be noted that, the student card cannot control the rotation of the stand of the desk lamp so that the stand is far away from or near the desk top, and only the light source component can be turned on or off. The device can avoid the damage to the body of the user caused by the false touch, and improves the overall safety of the device.
Optionally, on the basis of the embodiment shown in fig. 5, the method further includes:
if the timer of the desk lamp detects that the current moment is a first preset duration from the reserved ending time, the Bluetooth module of the desk lamp sends a reserved time expiration prompt to the terminal equipment, and the light source assembly is dimmed, blinked or turned off, and the light source assembly is enabled to restore normal brightness after the dimming is maintained, and the second preset duration is blinked or turned off.
If the instruction of refreshing the reservation ending time sent by the terminal equipment is not received, the light source component is turned off when the timer of the desk lamp detects that the current moment reaches the reservation ending time.
In the embodiment of the invention, when the desk lamp timer detects that the current time is a first preset time length from the reservation ending time, the desk lamp Bluetooth module sends a reservation time expiration prompt to the mobile phone, and the brightness of the light source assembly is changed for a second preset time length to prompt a user to apply for delay. Obviously, the second preset duration is less than or equal to the first preset duration. The present invention is not particularly limited to two durations.
If the user applies for delay through interaction between the mobile phone and the server and succeeds in delay, the seat can be used continuously, the server writes updated reservation period information comprising reservation ending time into the desk lamp through the mobile phone, the reservation period information before the desk lamp is updated, and the step of detecting the current moment is repeated.
If the user does not apply for delay, when the timer of the desk lamp detects that the current moment reaches the reserved ending time, the light source assembly is turned off. It should be noted that, when the desk lamp reaches the reserved end time by detecting the current time, only the light source assembly is turned off, and the rotary driving piece is not actively controlled to drive the bracket to rotate relative to the base, so that the bracket is close to the desktop. Through the setting, the user can be actively reminded of applying for delay, and the physical injury caused by the fact that the user fails to leave the seat in time can be avoided, so that the overall intelligence and safety are further improved.
Fig. 6 shows a flow of another method for controlling a desk lamp according to an embodiment of the present invention, where the flow of the method includes steps S601 to S602. The method is suitable for the situation that the desk lamp control is needed. The method is applied to the terminal equipment. Where not described in detail in this embodiment, reference is made to the foregoing. The specific implementation principle of each step is as follows.
S601, under the condition that Bluetooth connection is established between terminal equipment and a desk lamp, if a user triggering a desk lamp starting instruction is detected, sending the desk lamp starting instruction to the desk lamp so as to instruct the desk lamp to control a rotary driving piece of the desk lamp to drive a bracket of the desk lamp to rotate relative to a base of the desk lamp according to the desk lamp starting instruction, so that the bracket is far away from a desk top; the base is connected with the desktop;
s602, under the condition that Bluetooth connection is established between terminal equipment and a desk lamp, if a user triggering a desk lamp closing instruction is detected, sending the desk lamp closing instruction to the desk lamp so as to instruct the desk lamp to control the rotary driving piece to drive the support to rotate relative to the base according to the desk lamp closing instruction, so that the support is close to the desk top.
As described above, on the one hand, in the case that the user makes an advance reservation for the desk lamp through the mobile phone, the unique device number of the desk lamp can be obtained by scanning the preset two-dimensional code on the desk lamp, the unique bluetooth device identifier of the desk lamp can be obtained by accessing the server, and bluetooth connection is established with the desk lamp through the unique bluetooth device identifier. Specifically, at the desk lamp reservation interface of the applet, a user obtains a unique equipment number of the desk lamp by scanning a preset two-dimensional code on the desk lamp and uploads the unique equipment number to the server, and when the server judges that the unique equipment number is a target desk lamp reserved by the user, a Bluetooth equipment unique identifier of a reserved desk lamp stand corresponding to the unique equipment number is fed back to the mobile phone, and the mobile phone establishes Bluetooth connection between the mobile phone and the desk lamp through the Bluetooth equipment identifier. The user can trigger a desk lamp starting instruction or a desk lamp closing instruction through triggering a control on a mobile phone control interface, and the instruction sent by the mobile phone is sent to the target desk lamp through Bluetooth connection.
On the other hand, under the condition that a user does not reserve the desk lamp in advance through the mobile phone, the unique equipment number of the desk lamp can be obtained through scanning the preset two-dimensional code on the desk lamp, so that the reservation of the desk lamp can be realized through interaction with a server, and after the reservation is finished, the unique Bluetooth equipment identification of the desk lamp can be obtained to establish Bluetooth connection with the desk lamp. Specifically, in the desk lamp reservation interface of the applet, a user inputs reservation time period information, when a user trigger reservation request is detected, the reservation request carrying the reservation time period information and a unique equipment number is generated to a server, the server feeds back a feedback message comprising a reservation state according to the reservation request, and if the user determines reservation, the reservation is successful.
In addition, after the reservation of the user is successful, the mobile phone loads the target desk lamp, namely the control interface of the reserved desk lamp.
Alternatively, in another embodiment of the present invention, the applet reservation interface may simultaneously display the current status of each seat (or desk lamp), including in-use, available reservations within 30 minutes, etc., to facilitate the user's selection of a target desk lamp on the phone. In another embodiment of the present invention, when the user is in the application location, the applet reservation interface displays the current status of each seat within a preset range of distance from the mobile phone, facilitating the user to select the target desk lamp on the mobile phone. In another embodiment of the present invention, when the user enters the reservation interface, the reservation interface recommends a seat (table lamp) that has been used by the user in history and has not been reserved for a preset period of time, for example, 2 hours, so that the user selection operation is saved, and the reservation process is optimized.
After the Bluetooth connection is established between the mobile phone and the desk lamp, a user utilizes the mobile phone and the desk lamp to carry out Bluetooth communication to control the bracket of the desk lamp to be far away from or close to the desktop, so that the desk lamp control scheme of preventing occupying seats is realized, the utilization of resources is optimized, and the user is facilitated.
It should be understood that the sequence number of each step in the foregoing embodiment does not mean that the execution sequence of each process should be determined by the function and the internal logic, and should not limit the implementation process of the embodiment of the present invention.
Fig. 7 is a block diagram showing a control device of a desk lamp according to an embodiment of the present invention, which is configured on the desk lamp, and only the relevant parts of the embodiment of the present invention are shown for convenience of explanation.
Referring to fig. 7, the control device of the desk lamp includes:
the desk lamp starting execution module 71 is configured to, when a bluetooth connection is established between a terminal device and the desk lamp, control a rotation driving part of the desk lamp to drive a bracket of the desk lamp to rotate relative to a base of the desk lamp according to a desk lamp starting instruction sent by the terminal device if the desk lamp starting instruction is received, so that the bracket is far away from a desktop; the base of the desk lamp is connected with the desktop;
and the table lamp closing execution module 72 is configured to control the rotation driving member to drive the support to rotate relative to the base according to the table lamp closing instruction if the table lamp closing instruction sent by the terminal device is received, so that the support is close to the table top.
Fig. 8 shows a block diagram of a control device for a desk lamp according to an embodiment of the present invention, where the control device for a desk lamp is configured in a terminal device, and for convenience of explanation, only the relevant parts of the embodiment of the present invention are shown.
Referring to fig. 8, the control device of the desk lamp includes:
the desk lamp starting instruction sending module 81 is configured to send a desk lamp starting instruction to the desk lamp if a user triggering the desk lamp starting instruction is detected under the condition that the terminal device and the desk lamp are connected by bluetooth, so as to instruct the desk lamp to control a rotary driving piece of the desk lamp to drive a bracket of the desk lamp to rotate relative to a base of the desk lamp according to the desk lamp starting instruction, so that the bracket is far away from the desk top; the base is connected with the desktop;
the desk lamp closing instruction sending module 82 is configured to send a desk lamp closing instruction to the desk lamp if it is detected that a user triggers the desk lamp closing instruction under the condition that the terminal device and the desk lamp are connected by bluetooth, so as to instruct the desk lamp to control the rotary driving piece to drive the bracket to rotate relative to the base according to the desk lamp closing instruction, so that the bracket is close to the desktop.
Fig. 9 is a schematic diagram of an electronic device according to an embodiment of the present invention. As shown in fig. 9, the electronic apparatus 9 of this embodiment includes: a processor 90, a memory 91 and a computer program 92, such as a control program for a desk lamp, stored in said memory 91 and being executable on said processor 90. The steps in the method embodiment of signing an electronic file described above, such as steps S401 to S402 shown in fig. 4, and steps S601 to S602 shown in fig. 6, are implemented when the processor 90 executes the computer program 92. Alternatively, the processor 90 may perform the functions of the modules/units of the apparatus embodiments described above, such as the functions of the modules 71-72 of fig. 7 and the functions of the modules 81-82 of fig. 8, when executing the computer program 92.
Illustratively, the computer program 92 may be partitioned into one or more modules/units that are stored in the memory 91 and executed by the processor 90 to complete the present invention. The one or more modules/units may be a series of computer program instruction segments capable of performing the specified functions, which instruction segments are used to describe the execution of the computer program 92 in the electronic device 9.
The electronic device 9 may be a mobile phone, a desk lamp, etc. The electronic device 9 may include, but is not limited to, a processor 90, a memory 91. It will be appreciated by those skilled in the art that fig. 9 is merely an example of the electronic device 9 and is not meant to be limiting as the electronic device 9 may include more or fewer components than shown, or may combine certain components, or different components, e.g., the electronic device may further include an input-output device, a network access device, a bus, etc.
The processor 90 may be a central processing unit (Central Processing Unit, CPU), other general purpose processors, digital signal processors (Digital Signal Processor, DSP), application specific integrated circuits (Application Specific Integrated Circuit, ASIC), field-programmable gate arrays (Field-Programmable Gate Array, FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, or the like. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
The memory 91 may be an internal storage unit of the electronic device 9, such as a hard disk or a memory of the electronic device 9. The memory 91 may also be an external storage device of the electronic device 9, such as a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card) or the like, which are provided on the electronic device 9. Further, the memory 91 may also include both an internal storage unit and an external storage device of the electronic device 9. The memory 91 is used for storing the computer program and other programs and data required by the electronic device. The memory 91 may also be used for temporarily storing data that has been output or is to be output.
It will be apparent to those skilled in the art that, for convenience and brevity of description, only the above-described division of the functional units and modules is illustrated, and in practical application, the above-described functional distribution may be performed by different functional units and modules according to needs, i.e. the internal structure of the apparatus is divided into different functional units or modules to perform all or part of the above-described functions. The functional units and modules in the embodiment may be integrated in one processing unit, or each unit may exist alone physically, or two or more units may be integrated in one unit, where the integrated units may be implemented in a form of hardware or a form of a software functional unit. In addition, specific names of the functional units and modules are only for convenience of distinguishing from each other, and are not used for limiting the protection scope of the present application. The specific working process of the units and modules in the above system may refer to the corresponding process in the foregoing method embodiment, which is not described herein again.
In the foregoing embodiments, the descriptions of the embodiments are emphasized, and in part, not described or illustrated in any particular embodiment, reference is made to the related descriptions of other embodiments.
The units described as separate units may or may not be physically separate, and units shown as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
In addition, each functional unit in the embodiments of the present invention may be integrated in one processing unit, or each unit may exist alone physically, or two or more units may be integrated in one unit. The integrated units may be implemented in hardware or in software functional units.
The integrated modules/units, if implemented in the form of software functional units and sold or used as stand-alone products, may be stored in a computer readable storage medium. Based on such understanding, the present invention may implement all or part of the flow of the method of the above embodiment, or may be implemented by a computer program to instruct related hardware, where the computer program may be stored in a computer readable storage medium, and when the computer program is executed by a processor, the computer program may implement the steps of each of the method embodiments described above.
The above embodiments are only for illustrating the technical solution of the present invention, and not for limiting the same; although the invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical scheme described in the foregoing embodiments can be modified or some technical features thereof can be replaced by equivalents; such modifications and substitutions do not depart from the spirit and scope of the technical solutions of the embodiments of the present invention, and are intended to be included in the scope of the present invention.

Claims (10)

1. The control method of the desk lamp is applied to the desk lamp and is characterized by comprising the following steps:
under the condition that the terminal equipment and the desk lamp are connected through Bluetooth, if a desk lamp starting instruction sent by the terminal equipment is received, the rotary driving piece of the desk lamp is controlled to drive the bracket of the desk lamp to rotate relative to the base of the desk lamp according to the desk lamp starting instruction, so that the bracket is far away from the desk top, and meanwhile, the light source assembly of the desk lamp is controlled to be lightened; the base of the desk lamp is connected with the desktop;
if a desk lamp closing instruction sent by a terminal device is received, controlling the rotary driving piece to drive the bracket to rotate relative to the base according to the desk lamp closing instruction, so that the bracket is close to the desktop, and simultaneously controlling a light source assembly of the desk lamp to be turned off;
receiving a reservation period writing instruction from a server, wherein the reservation period writing instruction carries reservation period information, and the reservation period information comprises reservation starting time, reservation ending time and reservation user information, which are sent by the terminal equipment under the condition that the terminal equipment and the desk lamp are connected through Bluetooth;
writing the reservation period information into a near field communication module of the desk lamp according to the reservation period writing instruction;
the terminal equipment comprises wearable equipment and vehicle-mounted equipment.
2. The method of claim 1, wherein after the writing of the reservation period information to the memory of the desk lamp according to the reservation period writing instruction, further comprising:
if the timer of the desk lamp detects that the current moment is a first preset duration from the reserved ending time, the Bluetooth module of the desk lamp sends a reserved time expiration prompt to the terminal equipment, and the light source assembly is dimmed, blinked or turned off, and the light source assembly is enabled to restore normal brightness after the dimming is maintained, and the second preset duration is blinked or turned off.
3. The method of claim 2, wherein after maintaining the dimming, blinking, or turning off the light source module for a second predetermined period of time to restore the normal brightness, further comprising:
if the instruction of refreshing the reservation ending time sent by the terminal equipment is not received, the light source component is turned off when the timer of the desk lamp detects that the current moment reaches the reservation ending time.
4. A control method of a desk lamp, applied to a terminal device, the method comprising:
under the condition that the terminal equipment and the desk lamp are connected through Bluetooth, if a user triggering a desk lamp starting instruction is detected, the desk lamp starting instruction is sent to the desk lamp so as to instruct the desk lamp to control a rotary driving piece of the desk lamp to drive a bracket of the desk lamp to rotate relative to a base of the desk lamp according to the desk lamp starting instruction, so that the bracket is far away from the desk lamp and a light source component of the desk lamp is controlled to be lightened; the base is connected with the desktop;
under the condition that the terminal equipment and the desk lamp are connected through Bluetooth, if a user triggering a desk lamp closing instruction is detected, the desk lamp closing instruction is sent to the desk lamp so as to instruct the desk lamp to control the rotary driving piece to drive the support to rotate relative to the base according to the desk lamp closing instruction, so that the support is close to the desk lamp and meanwhile the light source component of the desk lamp is controlled to be turned off;
under the condition that the terminal equipment and the desk lamp are connected through Bluetooth, a reservation period writing instruction from a server is sent to the desk lamp, the reservation period writing instruction carries reservation period information, and the reservation period information comprises reservation starting time, reservation ending time and reservation user information;
the terminal equipment comprises wearable equipment and vehicle-mounted equipment.
5. The method of claim 4, wherein the method further comprises:
the Bluetooth device unique identification of the desk lamp is obtained by scanning a preset two-dimensional code on the desk lamp, and Bluetooth connection is established between the Bluetooth device unique identification and the desk lamp.
6. The method of claim 4, wherein the method further comprises:
when a user is detected to trigger a reservation instruction generation event on a reservation interface, generating a reservation instruction carrying reservation period information and identification information of a target desk lamp to a server, so as to instruct the server to determine a reservation state of the target desk lamp according to the reservation instruction and generate a feedback message comprising the reservation state; the reservation state comprises a reserved state and a non-reserved state;
if the received reservation state is a reserved state, loading a control interface of the target desk lamp, wherein the control interface comprises an opening control and a closing control, and generating a desk lamp starting instruction when the opening control is triggered; and when the closing control is triggered, a desk lamp closing instruction is generated.
7. A control device for a desk lamp, configured on the desk lamp, comprising:
the desk lamp starting execution module is used for controlling the rotary driving piece of the desk lamp to drive the bracket of the desk lamp to rotate relative to the base of the desk lamp according to the desk lamp starting instruction if the desk lamp starting instruction sent by the terminal equipment is received under the condition that the terminal equipment and the desk lamp are connected through Bluetooth, so that the bracket is far away from the desk top, and meanwhile, the light source assembly of the desk lamp is controlled to be lightened; the base of the desk lamp is connected with the desktop;
the desk lamp closing execution module is used for controlling the rotary driving piece to drive the bracket to rotate relative to the base according to the desk lamp closing instruction if the desk lamp closing instruction sent by the terminal equipment is received, so that the bracket is close to the desktop and simultaneously controls the light source component of the desk lamp to be turned off;
the terminal equipment comprises wearable equipment and vehicle-mounted equipment.
8. A control device for a desk lamp, configured in a terminal device, comprising:
the desk lamp starting instruction sending module is used for sending a desk lamp starting instruction to the desk lamp if the user is detected to trigger the desk lamp starting instruction under the condition that the terminal equipment and the desk lamp are connected in a Bluetooth mode, so that the desk lamp is instructed to control a rotary driving piece of the desk lamp to drive a bracket of the desk lamp to rotate relative to a base of the desk lamp according to the desk lamp starting instruction, and the bracket is far away from the desk lamp, and meanwhile, a light source assembly of the desk lamp is controlled to be lightened; the base is connected with the desktop;
the desk lamp closing instruction sending module is used for sending a desk lamp closing instruction to the desk lamp if the user is detected to trigger the desk lamp closing instruction under the condition that the Bluetooth connection is established between the terminal equipment and the desk lamp, so as to instruct the desk lamp to control the rotary driving piece to drive the bracket to rotate relative to the base according to the desk lamp closing instruction, and the bracket is close to the desk top and simultaneously controls the light source component of the desk lamp to be turned off;
the terminal equipment comprises wearable equipment and vehicle-mounted equipment.
9. An electronic device comprising a bluetooth module, a memory and a processor, said memory having stored thereon a computer program executable on said processor, characterized in that the processor, when executing said computer program, realizes the steps of the method according to any of claims 1 to 6.
10. A computer readable storage medium storing a computer program, characterized in that the computer program when executed by a processor implements the steps of the method according to any one of claims 1 to 6.
CN201910603256.4A 2019-07-05 2019-07-05 Control method and device of desk lamp and electronic equipment Active CN112188699B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910603256.4A CN112188699B (en) 2019-07-05 2019-07-05 Control method and device of desk lamp and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910603256.4A CN112188699B (en) 2019-07-05 2019-07-05 Control method and device of desk lamp and electronic equipment

Publications (2)

Publication Number Publication Date
CN112188699A CN112188699A (en) 2021-01-05
CN112188699B true CN112188699B (en) 2023-04-21

Family

ID=73915195

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910603256.4A Active CN112188699B (en) 2019-07-05 2019-07-05 Control method and device of desk lamp and electronic equipment

Country Status (1)

Country Link
CN (1) CN112188699B (en)

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6467936B1 (en) * 2001-10-03 2002-10-22 Andrew J. Golemba Adjustable desk lamp
CN103049807A (en) * 2011-10-14 2013-04-17 艾迪讯科技股份有限公司 Seat management system
CN103398320A (en) * 2013-07-30 2013-11-20 长兴恒动照明电器有限公司 Table lamp
CN204494270U (en) * 2015-04-01 2015-07-22 江西科技学院 A kind of desk lamp of Bluetooth control
CN205457287U (en) * 2016-03-12 2016-08-17 薛岩 Novel library's timing accounts for seat and reads table
CN106991486A (en) * 2017-03-21 2017-07-28 武汉理工大学 A kind of intelligent seat management system and control method based on APP
CN108488666A (en) * 2018-03-24 2018-09-04 佛山市聚成知识产权服务有限公司 A kind of multifunctional intellectual LED desk lamp
CN109700214A (en) * 2019-01-04 2019-05-03 华北理工大学 A kind of intelligent library tables and chairs

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6467936B1 (en) * 2001-10-03 2002-10-22 Andrew J. Golemba Adjustable desk lamp
CN103049807A (en) * 2011-10-14 2013-04-17 艾迪讯科技股份有限公司 Seat management system
CN103398320A (en) * 2013-07-30 2013-11-20 长兴恒动照明电器有限公司 Table lamp
CN204494270U (en) * 2015-04-01 2015-07-22 江西科技学院 A kind of desk lamp of Bluetooth control
CN205457287U (en) * 2016-03-12 2016-08-17 薛岩 Novel library's timing accounts for seat and reads table
CN106991486A (en) * 2017-03-21 2017-07-28 武汉理工大学 A kind of intelligent seat management system and control method based on APP
CN108488666A (en) * 2018-03-24 2018-09-04 佛山市聚成知识产权服务有限公司 A kind of multifunctional intellectual LED desk lamp
CN109700214A (en) * 2019-01-04 2019-05-03 华北理工大学 A kind of intelligent library tables and chairs

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
基于蓝牙控制的智能台灯系统设计;徐全林;《科技创新与应用》;20170328(第09期);第57页-第58页 *

Also Published As

Publication number Publication date
CN112188699A (en) 2021-01-05

Similar Documents

Publication Publication Date Title
US10735393B2 (en) Data communication method, user equipment, and server
EP3109762B1 (en) Electronic device having external memory and method for operating the same
EP3032418A1 (en) Permission control method and device
CN1498011A (en) Mobile terminal equipment, mobile terminal seting changing system and used method and program
CN112188700B (en) Control method and device of desk lamp and electronic equipment
CN103713808A (en) Method and equipment for using applications on mobile terminal by browser
CN113110815B (en) Method and system for realizing screen transmission function through touch and collision, electronic equipment and storage medium
CN101017439A (en) Computer and control method thereof
WO2020039048A1 (en) Passive near field communication (nfc) device, method and system
CN112188699B (en) Control method and device of desk lamp and electronic equipment
CN103716374A (en) Method for sharing files and server
CN105243339A (en) Refurbishment system mirror image signature method and refurbishment system mirror image signature device
CN108549557A (en) Using storing method, terminal and storage medium
US9641606B2 (en) Peer to peer secure synchronization between handheld devices
CN108182089B (en) Computer starting method and electronic equipment
CN102065579A (en) Communication method and communication system
CN113902483A (en) Advertisement putting method and device, electronic equipment and storage medium
EP4177101A1 (en) Charging control method and system, and vehicle
CN110109707B (en) Terminal starting method and device and terminal
CN112583694B (en) Message pushing method, device, storage medium and control terminal
WO2014004136A1 (en) Context-driven local network services
CN109644319A (en) Device and method convenient for giving back mobile device
CN114422236A (en) Intelligent device access method and device and electronic device
US20160277454A1 (en) Image sharing apparatus, image sharing system, and graphical user interface
US10320805B2 (en) Visitor authorization management method and apparatus, terminal, server, and storage medium

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