CN112188700B - Desk lamp control method, device and electronic equipment - Google Patents
Desk lamp control method, device and electronic equipment Download PDFInfo
- Publication number
- CN112188700B CN112188700B CN201910603532.7A CN201910603532A CN112188700B CN 112188700 B CN112188700 B CN 112188700B CN 201910603532 A CN201910603532 A CN 201910603532A CN 112188700 B CN112188700 B CN 112188700B
- Authority
- CN
- China
- Prior art keywords
- desk lamp
- reservation
- command
- bracket
- time
- 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
Links
- 238000000034 method Methods 0.000 title claims abstract description 47
- 238000004891 communication Methods 0.000 claims abstract description 19
- 238000004590 computer program Methods 0.000 claims description 17
- 230000001960 triggered effect Effects 0.000 claims description 5
- 238000010586 diagram Methods 0.000 description 12
- 230000006870 function Effects 0.000 description 9
- 230000008569 process Effects 0.000 description 9
- 230000003993 interaction Effects 0.000 description 4
- 238000012545 processing Methods 0.000 description 4
- 238000013459 approach Methods 0.000 description 3
- 208000027418 Wounds and injury Diseases 0.000 description 2
- 230000003190 augmentative effect Effects 0.000 description 2
- 230000008859 change Effects 0.000 description 2
- 230000006378 damage Effects 0.000 description 2
- 208000014674 injury Diseases 0.000 description 2
- 238000010295 mobile communication Methods 0.000 description 2
- 238000012986 modification Methods 0.000 description 2
- 230000004048 modification Effects 0.000 description 2
- 239000002699 waste material Substances 0.000 description 2
- 230000001154 acute effect Effects 0.000 description 1
- 230000006399 behavior Effects 0.000 description 1
- 238000005452 bending Methods 0.000 description 1
- 230000005540 biological transmission Effects 0.000 description 1
- 230000004397 blinking Effects 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 238000007689 inspection Methods 0.000 description 1
- 230000007774 longterm Effects 0.000 description 1
Images
Classifications
-
- F—MECHANICAL ENGINEERING; LIGHTING; HEATING; WEAPONS; BLASTING
- F21—LIGHTING
- F21V—FUNCTIONAL FEATURES OR DETAILS OF LIGHTING DEVICES OR SYSTEMS THEREOF; STRUCTURAL COMBINATIONS OF LIGHTING DEVICES WITH OTHER ARTICLES, NOT OTHERWISE PROVIDED FOR
- F21V23/00—Arrangement of electric circuit elements in or on lighting devices
- F21V23/003—Arrangement 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
-
- Y—GENERAL 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
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02B—CLIMATE CHANGE MITIGATION TECHNOLOGIES RELATED TO BUILDINGS, e.g. HOUSING, HOUSE APPLIANCES OR RELATED END-USER APPLICATIONS
- Y02B20/00—Energy efficient lighting technologies, e.g. halogen lamps or gas discharge lamps
- Y02B20/40—Control 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
本发明适用于台灯控制技术领域,提供了一种台灯的控制方法、装置及电子设备,包括:若接收到POE交换机发送的台灯启动指令,控制台灯的旋转驱动件驱动台灯的支架相对台灯的底座旋转,使支架远离桌面;若接收到POE交换机发送的台灯关闭指令,控制旋转驱动件驱动支架相对底座旋转,使支架靠近桌面;接收POE交换机发送的预约时段写入指令;将预约时段信息写入台灯的近场通信模块;若通过台灯的计时器检测到当前时刻距离预约结束时间为第一预设时长,通过台灯的POE接口发送预约时间到期提醒至POE交换机以使POE交换机转发预约时间到期提醒至终端设备,并改变光源组件的亮度且维持第二预设时长后使光源组件恢复正常亮度。本方案可以节约公共资源。
The present invention is applicable to the technical field of desk lamp control, and provides a desk lamp control method, device and electronic equipment, including: if a desk lamp starting command sent by a POE switch is received, the rotary driving part of the console lamp drives the bracket of the desk lamp relative to the base of the desk lamp Rotate to keep the bracket away from the desktop; if the desk lamp off command sent by the POE switch is received, control the rotating drive to drive the bracket to rotate relative to the base, so that the bracket is close to the desktop; receive the reservation time writing command sent by the POE switch; write the reservation time information into The near-field communication module of the desk lamp; if the timer of the desk lamp detects that the time between the current moment and the end of the appointment is the first preset duration, the POE interface of the desk lamp sends a reminder of the expiration of the appointment time to the POE switch so that the POE switch forwards the appointment time to A reminder is sent to the terminal device periodically, and the brightness of the light source component is changed and maintained for a second preset time to restore the normal brightness of the light source component. This scheme can save public resources.
Description
技术领域technical field
本发明属于台灯控制技术领域,尤其涉及一种台灯的控制方法、装置及电子设备。The invention belongs to the technical field of desk lamp control, and in particular relates to a desk lamp control method, device and electronic equipment.
背景技术Background technique
高校图书馆或市政图书馆通常设有阅览室和/或自习室等,阅览室是为读者提供馆内阅读的专门场所,自习室是为读者提供馆内学习的专门场所。阅览室和自习室因其特有的功能和良好的环境备受读者们的喜欢。通常情况下,阅览室和自习室能提供的座位非常有限,读者需按照先到先使用的方式获得座位的暂用权。University libraries or municipal libraries usually have reading rooms and/or self-study rooms, etc. The reading room is a special place for readers to read in the library, and the self-study room is a special place for readers to study in the library. The reading room and self-study room are very popular among readers because of their unique functions and good environment. Usually, reading rooms and self-study rooms can provide very limited seats, and readers need to obtain the temporary right to use the seats on a first-come, first-served basis.
但是部分读者为了满足个人需求,使用书本和书包等物品进行占座,一方面,在占座后若占座者本人未及时入场使用座位,其他人也无法正常使用座位,造成了公共资源的极大浪费;另一方面,占座者的物品容易丢失,造成损失。However, in order to meet personal needs, some readers use books and schoolbags to occupy seats. On the one hand, if the occupants do not enter the venue in time to use the seats after occupying the seats, other people will not be able to use the seats normally, resulting in the loss of public resources. Great waste; on the other hand, the items of the occupants are easily lost, causing losses.
发明内容Contents of the invention
有鉴于此,本发明实施例提供了一种台灯的控制方法、装置及电子设备,以解决相关技术中存在的占座现象导致的浪费公共资源的技术问题。In view of this, the embodiments of the present invention provide a control method, device and electronic equipment for desk lamps, so as to solve the technical problem of wasting public resources caused by seat occupation in the related art.
本发明实施例的第一方面提供了一种台灯的控制方法,应用于台灯,所述方法包括:The first aspect of the embodiments of the present invention provides a control method for a desk lamp, which is applied to a desk lamp, and the method includes:
若接收到POE交换机发送的台灯启动指令,根据所述台灯启动指令控制所述台灯的旋转驱动件驱动所述台灯的支架相对所述台灯的底座旋转,以使所述支架远离桌面;所述台灯的底座连接所述桌面;所述台灯启动指令来自终端设备;If the desk lamp starting instruction sent by the POE switch is received, the rotating driver of the desk lamp is controlled according to the desk lamp starting instruction to drive the bracket of the desk lamp to rotate relative to the base of the desk lamp, so that the bracket is away from the desktop; The base of the lamp is connected to the desktop; the start instruction of the desk lamp comes from the terminal device;
若接收到POE交换机发送的台灯关闭指令,则根据所述台灯关闭指令控制所述旋转驱动件驱动所述支架相对所述底座旋转,以使所述支架靠近所述桌面;所述台灯关闭指令来自终端设备。If the desk lamp closing command sent by the POE switch is received, the rotary drive member is controlled to drive the bracket to rotate relative to the base according to the desk lamp closing command, so that the bracket is close to the desktop; the desk lamp closing command comes from Terminal Equipment.
本发明实施例的第二方面提供了一种台灯的控制方法,应用于终端设备,所述方法包括:The second aspect of the embodiments of the present invention provides a method for controlling a desk lamp, which is applied to a terminal device, and the method includes:
若检测到用户触发台灯启动指令,则发送所述台灯启动指令至服务器,以使得所述服务器通过POE交换机转发所述台灯启动指令至台灯,指示所述台灯根据所述台灯启动指令控制所述台灯的旋转驱动件驱动所述台灯的支架相对所述台灯的底座旋转,以使所述支架远离桌面;所述底座连接所述桌面;If it is detected that the user triggers the desk lamp startup command, the desk lamp startup command is sent to the server, so that the server forwards the desk lamp startup command to the desk lamp through the POE switch, and instructs the desk lamp to control the desk lamp according to the desk lamp startup command The rotating drive member drives the bracket of the desk lamp to rotate relative to the base of the desk lamp, so that the bracket is away from the desktop; the base is connected to the desktop;
若检测到用户触发台灯关闭指令,则发送所述台灯关闭指令至服务器,以使得所述服务器通过POE交换机转发所述台灯关闭指令至台灯,指示所述台灯根据所述台灯关闭指令控制所述旋转驱动件驱动所述支架相对所述底座旋转,以使所述支架靠近所述桌面。If it is detected that the user triggers the desk lamp off command, the desk lamp close command is sent to the server, so that the server forwards the desk lamp close command to the desk lamp through the POE switch, instructing the desk lamp to control the rotation according to the desk lamp close command The driving part drives the support to rotate relative to the base, so that the support is close to the desktop.
本发明实施例的第三方面提供了一种台灯的控制装置,配置于台灯,包括:The third aspect of the embodiment of the present invention provides a control device for a desk lamp, configured on a desk lamp, including:
台灯启动执行模块,用于若接收到POE交换机发送的台灯启动指令,根据所述台灯启动指令控制所述台灯的旋转驱动件驱动所述台灯的支架相对所述台灯的底座旋转,以使所述支架远离桌面;所述台灯的底座连接所述桌面;所述台灯启动指令来自终端设备;The desk lamp start execution module is used to control the rotary driving part 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 startup command if the desk lamp startup command sent by the POE switch is received, so that the desk lamp The bracket is away from the desktop; the base of the desk lamp is connected to the desktop; the startup command of the desk lamp comes from the terminal device;
台灯关闭执行模块,用于若接收到POE交换机发送的台灯关闭指令,则根据所述台灯关闭指令控制所述旋转驱动件驱动所述支架相对所述底座旋转,以使所述支架靠近所述桌面;所述台灯关闭指令来自终端设备。The desk lamp closing execution module is used to control the rotary drive to drive the bracket to rotate relative to the base according to the desk lamp shutdown command sent by the POE switch, so that the bracket is close to the desktop ; The instruction to turn off the desk lamp comes from the terminal device.
本发明实施例的第四方面提供了一种台灯的控制装置,配置于终端设备,包括:The fourth aspect of the embodiments of the present invention provides a desk lamp control device, which is configured in a terminal device, including:
台灯启动指令发送模块,用于若检测到用户触发台灯启动指令,则发送所述台灯启动指令至服务器,以使得所述服务器通过POE交换机转发所述台灯启动指令至台灯,指示所述台灯根据所述台灯启动指令控制所述台灯的旋转驱动件驱动所述台灯的支架相对所述台灯的底座旋转,以使所述支架远离桌面;所述底座连接所述桌面;The desk lamp start command sending module is used to send the desk lamp start command to the server if it is detected that the user triggers the desk lamp start command, so that the server forwards the desk lamp start command to the desk lamp through the POE switch, and instructs the desk lamp according to the The desk lamp starting command controls the rotary drive of the desk lamp to drive the bracket of the desk lamp to rotate relative to the base of the desk lamp, so that the bracket is away from the desktop; the base is connected to the desktop;
台灯关闭指令发送模块,用于若检测到用户触发台灯关闭指令,则发送所述台灯关闭指令至服务器,以使得所述服务器通过POE交换机转发所述台灯关闭指令至台灯,指示所述台灯根据所述台灯关闭指令控制所述旋转驱动件驱动所述支架相对所述底座旋转,以使所述支架靠近所述桌面。The desk lamp off command sending module is used to send the desk lamp off command to the server if it is detected that the user triggers the desk lamp off command, so that the server forwards the desk lamp close command to the desk lamp through the POE switch, and instructs the desk lamp The desk lamp closing command controls the rotary driving member to drive the support to rotate relative to the base, so that the support is close to the desktop.
本发明实施例的第五方面提供了一种电子设备,包括存储器以及处理器,所述存储器中存储有可在所述处理器上运行的计算机程序,所述处理器执行所述计算机程序时,实现如第一方面和/或第二方面所述方法的步骤。A fifth aspect of the embodiments of the present invention provides an electronic device, including a memory and a processor, the memory stores a computer program that can run on the processor, and when the processor executes the computer program, The steps of the method described in the first aspect and/or the second aspect are implemented.
本发明实施例的第六方面提供了一种计算机可读存储介质,所述计算机可读存储介质存储有计算机程序,所述计算机程序被处理器执行时实现如第一方面和/或第二方面所述方法的步骤。A sixth aspect of the embodiments of the present invention provides a computer-readable storage medium, the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the first aspect and/or the second aspect are implemented The steps of the method.
本发明实施例中,通过POE交换机建立终端设备与台灯的通信连接,实现终端设备通过POE交换机对台灯进行控制,使台灯的支架旋转靠近或远离桌面,防止他人使用书本等物品长期占用公共位置,节约了公共资源,并且方便了用户。In the embodiment of the present invention, the communication connection between the terminal device and the desk lamp is established through the POE switch, and the terminal device controls the desk lamp through the POE switch, so that the bracket of the desk lamp rotates close to or away from the desktop, preventing others from using books and other items to occupy public places for a long time. It saves public resources and facilitates users.
附图说明Description of drawings
为了更清楚地说明本发明实施例中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动性的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the following will briefly introduce the accompanying drawings that need to be used in the descriptions of the embodiments or the prior art. Obviously, the accompanying drawings in the following description are only of the present invention. For some embodiments, those of ordinary skill in the art can also obtain other drawings based on these drawings without paying creative efforts.
图1是本发明实施例提供的一种台灯控制系统的结构示意图;Fig. 1 is a schematic structural diagram of a desk lamp control system provided by an embodiment of the present invention;
图2是本发明实施例提供的一种台灯的电路结构示意图;2 is a schematic diagram of a circuit structure of a desk lamp provided by an embodiment of the present invention;
图3是本发明实施例提供的一种台灯的机械结构示意图;Fig. 3 is a schematic diagram of the mechanical structure of a desk lamp provided by an embodiment of the present invention;
图4是本发明实施例提供的一种台灯的控制方法的实现流程图;Fig. 4 is an implementation flow chart of a desk lamp control method provided by an embodiment of the present invention;
图5是本发明实施例提供的另一种台灯的控制方法的实现流程图;Fig. 5 is an implementation flowchart of another desk lamp control method provided by an embodiment of the present invention;
图6是本发明实施例提供的另一种台灯的控制方法的实现流程图;Fig. 6 is an implementation flowchart of another desk lamp control method provided by an embodiment of the present invention;
图7是本发明实施例提供的一种台灯的控制装置的结构框图;Fig. 7 is a structural block diagram of a desk lamp control device provided by an embodiment of the present invention;
图8是本发明实施例提供的另一种台灯的控制装置的结构框图;Fig. 8 is a structural block diagram of another desk lamp control device provided by an embodiment of the present invention;
图9是本发明实施例提供的电子设备的示意图。Fig. 9 is a schematic diagram of an electronic device provided by an embodiment of the present invention.
具体实施方式detailed description
为了说明本发明所述的技术方案,下面将参考附图并结合实施例来进行说明。In order to illustrate the technical solutions of the present invention, the following will be described with reference to the accompanying drawings and in combination with embodiments.
为了使本技术领域的人员更好地理解本发明方案,下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚,完整地描述,显然,所描述的实施例仅仅是本发明一部分的实施例,而不是全部的实施例。基于本发明中的实施例,对于本领域普通技术人员来讲,在不付出创造性劳动性的前提下,所获得的所有其他实施例,都应当属于本发明保护的范围。需要说明的是,在不冲突的情况下,本申请中的实施例及实施例中的特征可以相互组合。In order to enable those skilled in the art to better understand the solutions of the present invention, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only It is an embodiment of a part of the present invention, but not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without any creative effort shall fall within the protection scope of the present invention. It should be noted that, in the case of no conflict, the embodiments in the present application and the features in the embodiments can be combined with each other.
以下描述中,为了说明而不是为了限定,提出了诸如特定系统结构、技术之类的具体细节,以便透彻理解本发明实施例。然而,本领域的技术人员应当清楚,在没有这些具体细节的其它实施例中也可以实现本发明。在其它情况中,省略对众所周知的系统、装置、电路以及方法的详细说明,以免不必要的细节妨碍本发明的描述。In the following description, specific details such as specific system structures and technologies are presented for the purpose of illustration rather than limitation, so as to thoroughly understand the embodiments of the present invention. It will be apparent, however, to one skilled in the art that the invention may be practiced in other embodiments without 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 descriptions involving "first" or "second" in terms of terms in the specification, claims and drawings of the present invention are only used to distinguish similar objects, and should not be interpreted as indicating or implying their Relative importance or numbers of technical features indicated are implied, that is, the descriptions are not necessarily intended to describe a specific order or sequence. Furthermore, it should be understood that these descriptions may be interchanged under appropriate circumstances in order to describe embodiments of the invention.
图1示出了本发明实施例提供的一种台灯控制系统的结构示意图。如图1所示,台灯控制系统包括台灯11,终端设备12(如手机或笔记本电脑),服务器13,POE交换机14和路由器15。POE交换机14通过POE供电线连接台灯的POE接口,以实现对台灯进行供电和双方的数据传输;终端设备12和服务器13通过无线通信进行数据交互。服务器13与POE交换机14通过路由器进行数据交互。在本发明其他实施例中,服务器还可以为云服务器。Fig. 1 shows a schematic structural diagram of a table lamp control system provided by an embodiment of the present invention. As shown in FIG. 1 , the desk lamp control system includes a desk lamp 11 , a terminal device 12 (such as a mobile phone or a notebook computer), a
台灯11可应用于高校图书馆、市政图书馆、学习中心和教育中心等具有座位资源的场所,台灯11固定连接于桌面。当若干个台灯11在应用场所部署好之后,与一个POE交换机14连接的各个台灯中的每个台灯11具有POE唯一标识,POE唯一标识例如媒体访问控制地址(Media Access Control Address,MAC地址)等,并上传至服务器13作为后台数据进行存储,以方便后续用户终端设备在服务器进行座位(或台灯)预约。此外,每个台灯的定位信息和唯一设备编号等也一并上传至服务器13与台灯的POE唯一标识进行关联存储。The desk lamp 11 can be applied to places with seat resources such as university libraries, municipal libraries, learning centers and education centers, and the desk lamp 11 is fixedly connected to the desktop. When several desk lamps 11 are deployed in the application site, each desk lamp 11 in each desk lamp connected to a
手机12和服务器13之间的无线通信可以使用任一通信标准或协议,包括但不限于全球移动通讯系统(Global System of Mobile communication,GSM)、通用分组无线服务(General Packet Radio Service,GPRS)、码分多址(Code Division Multiple Access,CDMA)、宽带码分多址(Wideband Code Division Multiple Access,WCDMA)、长期演进(Long Term Evolution,LTE))、电子邮件、短消息服务(Short Messaging Service,SMS)等。The wireless communication between the
图2示出的是本发明实施例提供的台灯的部分电路结构示意图。参考图2所示,台灯包括:处理器21、POE接口22、旋转驱动件23和近场通信模块24等部件。POE接口22、旋转驱动件23和近场通信模块24均连接处理器21。当台灯通过POE交换机接收到台灯开启指令,POE接口22一方面给旋转驱动件23提供例如12V电压使得旋转驱动件23带动支架转动,从而使得支架远离桌面一个预设角度,例如90度,释放座位后结束对旋转驱动件的供电;另一方面,给光源组件的电开关,即后续提及的灯条驱动件发送12至24V的电压,从而点亮光源组件。本领域技术人员可以理解,图2中示出的台灯结构并不构成对台灯的限定,可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置。需要说明的是,台灯还可以包括存储器和更多的电开关等,例如,POE接口给电开关供电来控制近场通信模块24的上电。旋转驱动件23可以包括舵机。近场通信模块24可以包括RFID或NFC模块。Fig. 2 shows a schematic diagram of a partial circuit structure of the desk lamp provided by the embodiment of the present invention. As shown in FIG. 2 , the desk lamp includes: a
图3示出的是本发明实施例提供的台灯的机械结构图。参考图3所示,台灯包括底座1、支架2、光源组件3和旋转驱动件(图中未示出,旋转驱动件设置于底座1的内部空间中)。底座1固定连接于桌面,支架2与底座1转动连接,光源组件3包括灯条32和灯条驱动件(图中未示出),灯条32设置于支架2上。旋转驱动件4用于驱动支架2相对底座1旋转,以使支架2靠近或者远离桌面。在桌面无人使用时,旋转驱动件4可驱动支架2带动灯条32一同旋转至桌面,占据桌面的空间,防止他人使用书本和书包等物品摆放在桌面上占座,从而防止占座行为的发生。Fig. 3 shows the mechanical structure diagram of the desk lamp provided by the embodiment of the present invention. As shown in FIG. 3 , the desk lamp includes a
支架2包括立板21以及与立板21折弯连接的灯托22,立板21远离灯托22一端与旋转驱动件连接,灯条32固定于灯托22。由于立板21和灯托22折弯连接,这样,支架2在旋转至桌面时,立板21和灯托22凸起于桌面,占用部分高度空间,使用户无法在桌面上放置物品。立板21和灯托22之间的夹角可为直角、锐角、或钝角等,立板21和灯托22的折弯连接角度此处不作限定。可选地,支架2呈L形,其中,立板21可随旋转驱动件4旋转至竖直设置,此时灯托22朝向用户落座的方向延伸设置。The
需要说明的是,在图1所示的实施例中,终端设备以手机和笔记本电脑为例。在本发明其他实施例中,手机12还可以用其他终端设备替代,包括但不限于平板电脑、可穿戴设备、车载设备、增强现实(augmented reality,AR)/虚拟现实(virtual reality,VR)设备、超级移动个人计算机(ultra-mobile personal computer,UMPC)、上网本、个人数字助理(personal digital assistant,PDA)等终端设备,本申请实施例对终端设备的具体类型不作任何限制。It should be noted that, in the embodiment shown in FIG. 1 , the terminal devices are mobile phones and notebook computers as examples. In other embodiments of the present invention, the
图4示出了本发明实施例提供的一种台灯控制的方法的实现流程,该方法流程包括步骤S401至S402。该方法适用于需要进行台灯控制以防止占座的情形。该方法应用于图1-图3所示的台灯。各步骤的具体实现原理如下。Fig. 4 shows an implementation flow of a method for controlling a desk lamp provided by an embodiment of the present invention, and the method flow includes steps S401 to S402. This method is applicable to the situation where desk lamp control is required to prevent seat occupation. This method is applied to the desk lamp shown in Figs. 1-3. The specific implementation principle of each step is as follows.
S401,若接收到POE交换机发送的台灯启动指令,根据所述台灯启动指令控制所述台灯的旋转驱动件驱动所述台灯的支架相对所述台灯的底座旋转,以使所述支架远离桌面;所述台灯的底座连接所述桌面;所述台灯启动指令来自终端设备;S401, if a desk lamp starting instruction sent by the POE switch is received, control the rotary driving member 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 startup command, so that the bracket is away from the desktop; The base of the desk lamp is connected to the desktop; the start command of the desk lamp comes from the terminal device;
S402,若接收到POE交换机发送的台灯关闭指令,则根据所述台灯关闭指令控制所述旋转驱动件驱动所述支架相对所述底座旋转,以使所述支架靠近所述桌面;所述台灯关闭指令来自终端设备。S402, if receiving the desk lamp off command sent by the POE switch, then controlling the rotary driving member to drive the bracket to rotate relative to the base according to the desk lamp off command, so that the bracket is close to the desktop; the desk lamp is turned off Commands come from end devices.
在本发明一实施例中,终端设备安装有台灯预约应用,应用可以为终端应用,也可以为网页应用,还可以为小程序等。在本发明另一实施例中,还可以通过预约网站对座位或台灯进行预约。在下面的实施例中将以手机上的小程序为例进行说明。In an embodiment of the present invention, the terminal device is installed with a desk lamp reservation application, and the application may be a terminal application, a webpage application, or a small program. In another embodiment of the present invention, seats or lamps can also be reserved through the reservation website. In the following embodiments, an applet on a mobile phone will be used as an example for illustration.
每个部署好的台灯,其上都有对应的二维码标签,二维码标签的读取结果为台灯的唯一设备编号。唯一设备编号可以为纯数字,也可以为纯字母,也可以是数字与字母的组合,长度不限,例如001或A001等。Each deployed desk lamp has a corresponding two-dimensional code label on it, and the reading result of the two-dimensional code label is the unique equipment number of the desk lamp. The unique device number can be pure numbers, pure letters, or a combination of numbers and letters, and the length is not limited, such as 001 or A001.
在用户用手机在服务器对台灯使用进行了提前预约的情况下,在预约时段内到达座位处,通过手机小程序扫描台灯的二维码标签时,则会自动输入台灯的唯一设备编号并发送至服务器,当服务器判断该唯一设备编号为用户预约的目标台灯时,则反馈扫描台灯为目标台灯的结果信息给手机,用户可以通过触发手机控制界面上的控件触发台灯启动指令或台灯关闭指令,手机发出的指令通过服务器,再经过POE交换机发送到目标台灯。需要说明的是,在本发明实施例中所提及的目标台灯为用户选择预约的台灯。When the user has made an advance reservation for the use of the table lamp on the server with the mobile phone, and arrives at the seat within the reserved time period, when scanning the QR code label of the table lamp through the mobile phone applet, the unique device number of the table lamp will be automatically entered and sent to Server, when the server judges that the unique device number is the target desk lamp reserved by the user, it will feed back the result information of scanning the desk lamp as the target desk lamp to the mobile phone. The command sent is sent to the target lamp through the server and then through the POE switch. It should be noted that the target desk lamp mentioned in the embodiment of the present invention is the desk lamp selected and reserved by the user.
在用户没有提前用手机在服务器对台灯使用进行预约的情况下,到达某个未使用的座位处,用户通过手机小程序扫描台灯的二维码标签时,则会自动输入台灯的唯一设备编号,并且用户输入预约时间信息,手机获取用户输入的预约时间信息,将唯一设备编号和预约时间信息发送至服务器,所述服务器判断能否对目标台灯进行预约,在预约成功后,服务器将预约时段信息通过POE交换机写入台灯的近场通信模块,所述预约时段信息包括预约时间信息和预约用户信息;所述预约时间信息包括预约开始时间和预约结束时间。需要说明的是,若预约不成功,则服务器反馈预约不成功的消息给手机,提醒用户更改预约。When the user arrives at an unused seat without using the mobile phone to reserve the use of the desk lamp on the server in advance, when the user scans the QR code label of the desk lamp through the mobile phone applet, the unique device number of the desk lamp will be automatically entered. And the user inputs the reservation time information, the mobile phone obtains the reservation time information input by the user, and sends the unique device number and the reservation time information to the server, and the server judges whether the target desk lamp can be reserved, and after the reservation is successful, the server sends the reservation period information Writing into the near field communication module of the lamp through the POE switch, the reservation period information includes reservation time information and reservation user information; the reservation time information includes reservation start time and reservation end time. It should be noted that, if the reservation is unsuccessful, the server feeds back a message that the reservation is unsuccessful to the mobile phone, reminding the user to change the reservation.
当手机通过POE交换机发送给台灯的是台灯启动指令,台灯根据台灯启动指令控制所述台灯的旋转驱动件驱动支架相对所述台灯的底座旋转,以使支架远离桌面。具体的,POE交换机发送台灯启动指令的同时,POE交换机给台灯供电,给台灯的旋转驱动件提供例如12V的电压,以实现支架远离桌面转动,例如转动与桌面呈90度,结束供电。此外,在本发明其他实施例中,还同时给台灯的灯条驱动件提供例如12V至24V的电压,以实现光源组件的点亮。When the mobile phone sends to the desk lamp through the POE switch a desk lamp startup command, the desk lamp controls the rotary drive part of the desk lamp to drive the bracket to rotate relative to the base of the desk lamp according to the desk lamp startup command, so that the bracket is away from the desktop. Specifically, when the POE switch sends the start command of the desk lamp, the POE switch supplies power to the desk lamp, and provides a voltage of, for example, 12V to the rotary drive of the desk lamp, so as to realize the rotation of the stand away from the desktop, for example, the rotation is 90 degrees to the desktop, and the power supply is terminated. In addition, in other embodiments of the present invention, a voltage such as 12V to 24V is also provided to the lamp bar driving part of the desk lamp at the same time, so as to realize the lighting of the light source assembly.
当手机通过POE交换机发送给台灯的是台灯关闭指令,台灯根据台灯关闭指令控制旋转驱动件驱动支架相对底座旋转,以使支架靠近桌面。具体的,POE交换机发送台灯关闭指令的同时,POE交换机给台灯供电,给台灯的旋转驱动件提供例如12V的电压,以实现支架靠近桌面转动,例如转动成与桌面基本平行,结束供电。此外,在本发明其他实施例中,还同时结束对台灯的灯条驱动件的供电电压,以实现光源组件的关闭,即熄灭。When the mobile phone sends to the desk lamp through the POE switch a desk lamp closing command, the desk lamp controls the rotating drive part to drive the bracket to rotate relative to the base according to the desk lamp closing command, so that the bracket is close to the desktop. Specifically, when the POE switch sends the desk lamp shutdown command, the POE switch supplies power to the desk lamp, and provides a voltage of, for example, 12V to the rotary drive part of the desk lamp, so as to realize the rotation of the bracket close to the desktop, for example, to rotate substantially parallel to the desktop, and end the power supply. In addition, in other embodiments of the present invention, the power supply voltage to the light bar driving part of the desk lamp is also terminated at the same time, so as to realize the closing of the light source assembly, that is, extinguishing.
需要说明的是,若用户第一次使用台灯预约小程序,则需要首先完成用户注册,在注册完成后可以进行台灯的使用预约,预约完成后则可针对已预约台灯进行开启或关闭控制。It should be noted that if the user uses the table lamp reservation applet for the first time, he needs to complete the user registration first. After the registration is completed, he can make a reservation for the use of the table lamp. After the reservation is completed, he can turn on or off the reserved table lamp.
在本发明实施例中,当手机提前预约台灯使用时段的情况下,手机发送关闭台灯指令或开启台灯指令至服务器,再由服务器通过POE交换机转发至台灯,从而实现了手机控制台灯靠近或远离桌面,实现基于台灯的防占座控制过程,方便了用户,同时也节省了资源。In the embodiment of the present invention, when the mobile phone pre-books the use period of the desk lamp, the mobile phone sends the command to turn off the desk lamp or the command to turn on the desk lamp to the server, and then the server forwards it to the desk lamp through the POE switch, thereby realizing that the mobile phone console lamp is close to or far away from the desktop , to realize the anti-occupancy control process based on the desk lamp, which is convenient for users and saves resources at the same time.
可选地,在用户通过手机与服务器交互完成对某个台灯的使用预约后,手机加载已预约台灯的控制界面,所述控制界面包括开启控件和关闭控件,所述开启控件被触发时生成台灯启动指令;所述关闭控件被触发时生成台灯关闭指令。进一步地,在本发明其他实施例中,所述控制界面还包括暂离控件和开启光源组件的控件,所述暂离控件被触发时生成台灯光源组件关闭指令,以使得台灯光源组件熄灭。当用户暂离后返回时,则可以通过触发开启光源组件的控件,以使得台灯光源组件点亮。Optionally, after the user completes the use reservation for a certain desk lamp through the interaction between the mobile phone and the server, the mobile phone loads the control interface of the reserved desk lamp, the control interface includes a start control and a close control, and the desk lamp is generated when the start control is triggered. A startup instruction; when the shutdown control is triggered, a desk lamp shutdown instruction is generated. Further, in other embodiments of the present invention, the control interface further includes a temporary departure control and a control for turning on the light source assembly, and when the temporary departure control is triggered, an instruction to turn off the desk lamp light source assembly is generated, so that the desk lamp light source assembly is turned off. When the user returns after temporarily leaving, the light source component of the table lamp can be turned on by triggering the control of turning on the light source component.
在上述图4所示实施例的基础上,图5示出了另一种台灯控制方法的实现流程图。如图5所示,在图4所示实施例的基础上,还增加了步骤501至502。需要说明的是,与图4实施例相同的步骤此处不再赘述,请参见前述。On the basis of the above embodiment shown in FIG. 4 , FIG. 5 shows an implementation flow chart of another desk lamp control method. As shown in FIG. 5 , on the basis of the embodiment shown in FIG. 4 , steps 501 to 502 are added. It should be noted that the same steps as those in the embodiment in FIG. 4 will not be repeated here, and please refer to the foregoing.
S501,接收POE交换机发送的来自服务器的预约时段写入指令,所述预约时段写入指令携带有预约时段信息,所述预约时段信息包括预约开始时间、预约结束时间和预约用户信息;S501. Receive a reservation time writing instruction from a server sent by a POE switch, where the reservation time writing instruction carries reservation time information, and the reservation time information includes reservation start time, reservation end time and reservation user information;
S502,根据所述预约时段写入指令将所述预设时段信息写入所述台灯的近场通信模块。S502. Write the preset time period information into the near field communication module of the desk lamp according to the predetermined time period writing instruction.
在本发明实施例中,台灯通过POE交换机与服务器进行数据交互,服务器将预约时段写入指令通过POE交换机发送至台灯,台灯接收该预约时段写入指令后将预约时段信息写入台灯的近场通信模块。其中,所述预约时段信息包括预约开始时间,预约结束时间,预约用户信息。预约用户信息包括但不限于校园卡,借书卡或借阅卡等。In the embodiment of the present invention, the desk lamp performs data interaction with the server through the POE switch, and the server sends the reservation time writing command to the desk lamp through the POE switch, and the desk lamp writes the reservation time information into the near field of the desk lamp after receiving the reservation time writing command communication module. Wherein, the reservation period information includes reservation start time, reservation end time, and reservation user information. Reservation user information includes but not limited to campus card, library card or borrowing card, etc.
基于这种设置,已预约台灯使用时段的用户,除了利用手机对台灯进行控制外,还可以使用包括近场通信模块的身份卡,如校园卡,借书卡或借阅卡等对台灯的光源组件进行点亮或熄灭。作为非限制性示例,当已预约台灯的学生,使用学生卡在预约时段内靠近台灯的近场通信模块时,若此时台灯的光源组件为熄灭状态,则可点亮光源组件,若此时台灯的光源组件为点亮状态,则可熄灭光源组件。需要说明的是,使用学生卡不能控制台灯的支架旋转以使得支架远离或靠近桌面,仅能对光源组件进行点亮或熄灭控制。这样设置可避免误触导致用户身体伤害,提高了装置整体的安全性。Based on this setting, the user who has reserved the use period of the desk lamp can not only use the mobile phone to control the desk lamp, but also use an identity card including a near-field communication module, such as a campus card, a library card or a borrowing card, to control the light source components of the desk lamp. to turn on or off. As a non-limiting example, when a student who has reserved a desk lamp uses a student card to approach the near-field communication module of the desk lamp during the reserved period, if the light source component of the desk lamp is off at this time, the light source component can be turned on. When the light source component of the desk lamp is on, the light source component can be extinguished. It should be noted that the student card cannot be used to rotate the bracket of the console light so that the bracket is away from or close to the desktop, and only the light source component can be turned on or off. This setting can avoid the user's bodily injury caused by false touch, and improves the overall safety of the device.
可选地,在图5所示实施例的基础上,还包括:Optionally, on the basis of the embodiment shown in Figure 5, it also includes:
若通过所述台灯的计时器检测到当前时刻距离所述预约结束时间为第一预设时长,则通过所述台灯的POE接口发送预约时间到期提醒至POE交换机以使得所述POE交换机转发所述预约时间到期提醒至终端设备,并改变所述光源组件的亮度且维持第二预设时长后使所述光源组件恢复正常亮度。If the timer of the desk lamp detects that the current moment is the first preset duration from the appointment end time, the POE interface of the desk lamp sends a reminder of the expiration of the appointment time to the POE switch so that the POE switch forwards the A reminder is sent to the terminal device when the preset time expires, and the brightness of the light source assembly is changed and maintained for a second preset time period so that the light source assembly returns to normal brightness.
若未接收到POE交换机发送的来自所述终端设备的刷新预约结束时间的指令,则在通过台灯的计时器检测到当前时刻到达所述预约结束时间时,关闭所述光源组件If the command to refresh the scheduled end time from the terminal device sent by the POE switch is not received, when the timer of the desk lamp detects that the current time reaches the scheduled end time, turn off the light source assembly
在本发明实施例中,若通过台灯的计时器检测到当前时刻距离预约结束时间为第一预设时长,则通过所述台灯POE接口发送预约时间到期提醒至POE交换机,从而通过POE交换机将到期提醒转发至终端设备,并调暗,闪烁或关闭光源组件,在维持调暗,闪烁或关闭第二预设时长后使所述光源组件恢复正常亮度。In the embodiment of the present invention, if the timer of the desk lamp detects that the time from the current time to the end of the appointment is the first preset duration, the POE interface of the desk lamp will send a reminder of the expiration of the appointment time to the POE switch, so that the POE switch will The expiration reminder is forwarded to the terminal device, and the light source assembly is dimmed, blinked or turned off, and the light source assembly is restored to normal brightness after maintaining the dimming, blinking or turning off for a second preset time period.
若台灯未通过POE交换机接收到来自服务器发送的刷新预约结束时间的指令,则在通过台灯的计时器检测到当前时刻到达所述预约结束时间时,关闭所述光源组件。If the desk lamp does not receive an instruction to refresh the scheduled end time from the server through the POE switch, when the timer of the desk lamp detects that the current time reaches the scheduled end time, the light source assembly is turned off.
在本发明实施例中,台灯计时器检测到当前时刻距离预约结束时间为第一预设时长,则通过POE接口发送预约时间到期提醒至POE交换机,以转发至手机,并改变光源组件的亮度第二预设时长以提醒用户申请延时。显然的,第二预设时长小于或等于第一预设时长。本发明对两个时长不作具体限定。In the embodiment of the present invention, the desk lamp timer detects that the current time is the first preset time from the end of the reservation, and then sends a reminder of the expiration of the reservation time to the POE switch through the POE interface, so as to forward it to the mobile phone, and change the brightness of the light source component The second preset duration is used to remind the user to apply for a delay. Apparently, the second preset duration is less than or equal to the first preset duration. The present invention does not specifically limit the two durations.
若用户通过手机与服务器交互申请了延时并成功延时,则可继续使用该座位,并且,服务器通过POE交换机将更新后的预约时段信息写入台灯,更新台灯之前的预约时段信息,并且重复检测当前时刻的步骤。If the user interacts with the server through the mobile phone to apply for a delay and the delay is successful, the seat can continue to be used, and the server writes the updated reservation period information into the desk lamp through the POE switch, updates the reservation period information before the desk lamp, and repeats Detect the step at the current moment.
若用户未申请延时,当台灯的计时器检测到当前时刻到达预约结束时间时,关闭光源组件。需要说明的是,当台灯通过检测当前时刻达到预约结束时间时,仅关闭光源组件,即熄灭光源组件,而不主动控制旋转驱动件驱动支架相对底座旋转,以使支架靠近所述桌面。通过这种设置,能主动提醒用户申请延时,并能避免用户未能及时离座造成身体伤害,进一步提高了整体的智能性和安全性。If the user does not apply for a delay, when the timer of the desk lamp detects that the current time reaches the end time of the reservation, the light source assembly is turned off. It should be noted that when the desk lamp reaches the scheduled end time by detecting the current time, only the light source assembly is turned off, that is, the light source assembly is extinguished, and the rotating drive member is not actively controlled to drive the bracket to rotate relative to the base so that the bracket is close to the desktop. Through this setting, the user can be actively reminded to apply for a delay, and the user can be prevented from leaving the seat in time to cause bodily injury, further improving the overall intelligence and safety.
需要说明的是,在本发明其他实施例中,当台灯的计时器检测到当前时刻到达预约结束时间时,除了关闭光源组件之外,还同时发送触发释放座位的提醒给POE交换机,以转发至手机,提醒用户释放座位,即提醒用户触发台灯关闭指令从而释放座位,避免忘记释放座位的情况,进一步减少资源浪费。It should be noted that, in other embodiments of the present invention, when the timer of the table lamp detects that the current time reaches the end time of the appointment, in addition to turning off the light source component, it also sends a reminder to trigger the release of the seat to the POE switch for forwarding to The mobile phone reminds the user to release the seat, that is, reminds the user to trigger the lamp off command to release the seat, avoiding the situation of forgetting to release the seat, and further reducing the waste of resources.
此外,若用户忘记触发台灯关闭指令的情形下,管理员在巡视的过程中若发现有未使用且未预约的座位未释放,可以通过管理员终端对台灯发起台灯关闭指令,从而释放座位。需要说明的是,此时管理员终端的为具有管理员权限的终端小程序,普通用户的小程序不具备管理权限。In addition, if the user forgets to trigger the desk lamp off command, if the administrator finds that there are unused and unreserved seats that have not been released during the inspection process, the administrator terminal can issue a desk lamp off command to the desk lamp to release the seat. It should be noted that at this time, the administrator terminal is a terminal applet with administrator rights, and the applets of ordinary users do not have management rights.
图6示出了本发明实施例提供的另一种台灯控制的方法的实现流程,该方法流程包括步骤S601至S602。该方法适用于需要进行台灯控制的情形。该方法应用于终端设备。在该实施例中未详细描述之处,请参见前述。各步骤的具体实现原理如下。Fig. 6 shows the implementation flow of another method for controlling a desk lamp provided by an embodiment of the present invention, and the flow of the method includes steps S601 to S602. This method is suitable for the situation where desk lamp control is required. This method is applied to terminal equipment. For details not described in this embodiment, please refer to the foregoing. The specific implementation principle of each step is as follows.
S601,若检测到用户触发台灯启动指令,则发送所述台灯启动指令至服务器,以使得所述服务器通过POE交换机转发所述台灯启动指令至台灯,指示所述台灯根据所述台灯启动指令控制所述台灯的旋转驱动件驱动所述台灯的支架相对所述台灯的底座旋转,以使所述支架远离桌面;所述底座连接所述桌面;S601. If it is detected that the user triggers the desk lamp startup command, send the desk lamp startup command to the server, so that the server forwards the desk lamp startup command to the desk lamp through the POE switch, and instructs the desk lamp to control the desk lamp according to the desk lamp startup command. The rotary driver of the desk lamp drives the bracket of the desk lamp to rotate relative to the base of the desk lamp, so that the bracket is away from the desktop; the base is connected to the desktop;
S602,若检测到用户触发台灯关闭指令,则发送所述台灯关闭指令至服务器,以使得所述服务器通过POE交换机转发所述台灯关闭指令至台灯,指示所述台灯根据所述台灯关闭指令控制所述旋转驱动件驱动所述支架相对所述底座旋转,以使所述支架靠近所述桌面。S602. If it is detected that the user triggers the instruction to turn off the desk lamp, send the instruction to turn off the desk lamp to the server, so that the server forwards the instruction to turn off the desk lamp to the desk lamp through the POE switch, and instructs the desk lamp to control the The rotation driver drives the support to rotate relative to the base, so that the support is close to the desktop.
如前所述,一方面,在用户通过手机对台灯进行了提前预约的情况下,可以通过扫描台灯上预设的二维码获取台灯的唯一设备编号,通过访问服务器获得台灯的POE唯一标识,通过所述POE唯一标识将手机的指令通过POE交换机发送至台灯。具体的,在小程序的台灯预约界面,用户通过扫描台灯上预设的二维码获取台灯的唯一设备编号上传至服务器,服务器判断该唯一设备编号为用户已预约的目标台灯时,则反馈扫描台灯为目标台灯的结果信息给手机,用户可以通过触发手机控制界面上的控件触发台灯启动指令或台灯关闭指令,手机发出的指令通过服务器,服务器确定唯一设备编号对应的POE唯一标识,经过POE交换机发送到目标台灯。As mentioned above, on the one hand, when 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 QR code preset on the desk lamp, and the unique POE identification of the desk lamp can be obtained by accessing the server. The instructions of the mobile phone are sent to the desk lamp through the POE switch through the POE unique identifier. Specifically, in the desk lamp reservation interface of the applet, the user obtains the unique device number of the desk lamp by scanning the QR code preset on the desk lamp and uploads it to the server. Desk lamp is the result information of the target desk lamp to the mobile phone. The user can trigger the desk lamp startup command or the desk lamp shutdown command by triggering the control on the mobile phone control interface. The command sent by the mobile phone passes through the server, and the server determines the unique POE identifier corresponding to the unique device number, and passes through the POE switch Send to target desk lamp.
另一方面,在用户未通过手机对台灯进行提前预约的情况下,可以通过扫描台灯上的预设二维码获取台灯的唯一设备编号,从而跟服务器交互以实现对该台灯的预约,在预约完成后,则可获取台灯的POE唯一标识,从而基于POE交换机与所述台灯建立连接。具体的,在小程序的台灯预约界面,用户输入预约时段信息,在检测到用户触发预约请求时,生成携带有预约时段信息和唯一设备编号的预约请求至服务器,服务器根据所述预约请求反馈包括预约状态的反馈消息,若用户确定预约,则预约成功。On the other hand, if the user has not reserved the table lamp in advance through the mobile phone, the unique device number of the table lamp can be obtained by scanning the preset QR code on the table lamp, so as to interact with the server to realize the reservation of the table lamp. After completion, the POE unique identifier of the desk lamp can be obtained, so as to establish a connection with the desk lamp based on the POE switch. Specifically, on the table lamp reservation interface of the applet, the user inputs the reservation time information, and when it is detected that the user triggers the reservation request, a reservation request carrying the reservation time information and the unique device number is generated to the server, and the server responds according to the reservation request including The feedback message of the reservation status, if the user confirms the reservation, the reservation is successful.
此外,当用户预约成功后,手机加载目标台灯,即已预约台灯的控制界面。In addition, after the user makes a successful reservation, the mobile phone loads the target desk lamp, that is, the control interface of the reserved desk lamp.
可选地,在本发明一其他实施例中,小程序预约界面可以同时显示各个座位(或台灯)的当前状态,包括正在使用,30分钟内已有预约等等,方便用户在手机上选定目标台灯。在本发明另一其他实施例中,当用户处于应用场所中,小程序预约界面显示的是离手机距离预设范围内的各个座位的当前状态,方便用户在手机上选定目标台灯。在本发明另一其他实施例中,当用户进入预约界面时,预约界面先推荐用户历史使用过的且在预设时长,例如2小时内未被预约的座位(台灯),节省了用户选择操作,优化了预约流程。Optionally, in another embodiment of the present invention, the applet reservation interface can display the current status of each seat (or desk lamp) at the same time, including being in use, having a reservation within 30 minutes, etc., which is convenient for users to select on the mobile phone. Target desk lamp. In another embodiment of the present invention, when the user is in the application place, the applet reservation interface displays the current status of each seat within a preset distance from the mobile phone, which is convenient for the user to select a target desk lamp on the mobile phone. In another embodiment of the present invention, when the user enters the reservation interface, the reservation interface first recommends the seat (desk lamp) that the user has used in history and has not been reserved within a preset period of time, such as 2 hours, saving the user's selection operation , optimized the booking process.
在手机通过POE交换机与台灯建立通信连接后,用户利用手机控制台灯的支架远离或靠近桌面,实现防占座的台灯控制方案,优化了资源的利用,方便了用户。After the mobile phone establishes a communication connection with the table lamp through the POE switch, the user uses the bracket of the mobile phone console light to move away from or approach the table to realize a table lamp control scheme that prevents seat occupation, optimizes the utilization of resources, and is convenient for users.
应理解,上述实施例中各步骤的序号的大小并不意味着执行顺序的先后,各过程的执行顺序应以其功能和内在逻辑确定,而不应对本发明实施例的实施过程构成任何限定。It should be understood that the sequence numbers of the steps in the above embodiments do not mean the order of execution, and the execution order of each process should be determined by its functions and internal logic, and should not constitute any limitation to the implementation process of the embodiment of the present invention.
对应于上文图4所示实施例的台灯的控制方法,图7示出了本发明实施例提供的一种台灯的控制装置的结构框图,该台灯的控制装置配置于台灯,为了便于说明,仅示出了与本发明实施例相关的部分。Corresponding to the control method of the desk lamp in the embodiment shown in FIG. 4 above, FIG. 7 shows a structural block diagram of a control device for a desk lamp provided in an embodiment of the present invention. The control device for the desk lamp is configured on the desk lamp. For the convenience of description, Only the parts relevant to the embodiment of the present invention are shown.
参照图7,该台灯的控制装置包括:Referring to Figure 7, the control device of the desk lamp includes:
台灯启动执行模块71,用于若接收到POE交换机发送的台灯启动指令,根据所述台灯启动指令控制所述台灯的旋转驱动件驱动所述台灯的支架相对所述台灯的底座旋转,以使所述支架远离桌面;所述台灯的底座连接所述桌面;所述台灯启动指令来自终端设备;The desk lamp
台灯关闭执行模块72,用于若接收到POE交换机发送的台灯关闭指令,则根据所述台灯关闭指令控制所述旋转驱动件驱动所述支架相对所述底座旋转,以使所述支架靠近所述桌面;所述台灯关闭指令来自终端设备。The desk lamp
对应于上文图6所示实施例的台灯的控制方法,图8示出了本发明实施例提供的一种台灯的控制装置的结构框图,该台灯的控制装置配置于终端设备,为了便于说明,仅示出了与本发明实施例相关的部分。Corresponding to the control method of the desk lamp in the embodiment shown in FIG. 6 above, FIG. 8 shows a structural block diagram of a control device for a desk lamp provided in an embodiment of the present invention. The control device for the desk lamp is configured in a terminal device. For the convenience of description , only shows the part related to the embodiment of the present invention.
参照图8,该台灯的控制装置包括:Referring to Figure 8, the control device of the desk lamp includes:
台灯启动指令发送模块81,用于若检测到用户触发台灯启动指令,则发送所述台灯启动指令至服务器,以使得所述服务器通过POE交换机转发所述台灯启动指令至台灯,指示所述台灯根据所述台灯启动指令控制所述台灯的旋转驱动件驱动所述台灯的支架相对所述台灯的底座旋转,以使所述支架远离桌面;所述底座连接所述桌面;The desk lamp start
台灯关闭指令发送模块82,用于若检测到用户触发台灯关闭指令,则发送所述台灯关闭指令至服务器,以使得所述服务器通过POE交换机转发所述台灯关闭指令至台灯,指示所述台灯根据所述台灯关闭指令控制所述旋转驱动件驱动所述支架相对所述底座旋转,以使所述支架靠近所述桌面。The desk lamp turn-off
图9是本发明一实施例提供的电子设备的示意图。如图9所示,该实施例的电子设备9包括:处理器90、存储器91以及存储在所述存储器91中并可在所述处理器90上运行的计算机程序92,例如台灯的控制程序。所述处理器90执行所述计算机程序92时实现上述电子文件签名的方法实施例中的步骤,例如图4所示的步骤S401至S402,图6所示的步骤S601至S602。或者,所述处理器90执行所述计算机程序92时实现上述各装置实施例中各模块/单元的功能,例如图7所示模块71至72的功能,图8所示模块81至82的功能。Fig. 9 is a schematic diagram of an electronic device provided by an embodiment of the present invention. As shown in FIG. 9 , the electronic device 9 of this embodiment includes: a
示例性的,所述计算机程序92可以被分割成一个或多个模块/单元,所述一个或者多个模块/单元被存储在所述存储器91中,并由所述处理器90执行,以完成本发明。所述一个或多个模块/单元可以是能够完成特定功能的一系列计算机程序指令段,该指令段用于描述所述计算机程序92在所述电子设备9中的执行过程。Exemplarily, the
所述电子设备9可以是手机、台灯等。所述电子设备9可包括,但不仅限于,处理器90、存储器91。本领域技术人员可以理解,图9仅仅是电子设备9的示例,并不构成对电子设备9的限定,可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件,例如所述电子设备还可以包括输入输出设备、网络接入设备、总线等。The electronic device 9 may be a mobile phone, a desk lamp, and the like. The electronic device 9 may include, but not limited to, a
所称处理器90可以是中央处理单元(Central Processing Unit,CPU),还可以是其他通用处理器、数字信号处理器(Digital Signal Processor,DSP)、专用集成电路(Application Specific Integrated Circuit,ASIC)、现场可编程门阵列(Field-Programmable Gate Array,FPGA)或者其他可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件等。通用处理器可以是微处理器或者该处理器也可以是任何常规的处理器等。The so-called
所述存储器91可以是所述电子设备9的内部存储单元,例如电子设备9的硬盘或内存。所述存储器91也可以是所述电子设备9的外部存储设备,例如所述电子设备9上配备的插接式硬盘,智能存储卡(Smart Media Card,SMC),安全数字(Secure Digital,SD)卡,闪存卡(Flash Card)等。进一步地,所述存储器91还可以既包括所述电子设备9的内部存储单元也包括外部存储设备。所述存储器91用于存储所述计算机程序以及所述电子设备所需的其他程序和数据。所述存储器91还可以用于暂时地存储已经输出或者将要输出的数据。The
所属领域的技术人员可以清楚地了解到,为了描述的方便和简洁,仅以上述各功能单元、模块的划分进行举例说明,实际应用中,可以根据需要而将上述功能分配由不同的功能单元、模块完成,即将所述装置的内部结构划分成不同的功能单元或模块,以完成以上描述的全部或者部分功能。实施例中的各功能单元、模块可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中,上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。另外,各功能单元、模块的具体名称也只是为了便于相互区分,并不用于限制本申请的保护范围。上述系统中单元、模块的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。Those skilled in the art can clearly understand that for the convenience and brevity of description, only the division of the above-mentioned functional units and modules is used for illustration. In practical applications, the above-mentioned functions can be assigned to different functional units, Completion of modules means that the internal structure of the device is divided into different functional units or modules to complete all or part of the functions described above. Each functional unit and module in the embodiment can be integrated into one processing unit, or each unit can exist separately physically, or two or more units can be integrated into one unit, and the above-mentioned integrated units can either adopt hardware It can also be implemented in the form of software functional units. In addition, the specific names of the functional units and modules are only for the convenience of distinguishing each other, and are not used to limit the protection scope of the present application. For the specific working process of the units and modules in the above system, reference may be made to the corresponding process in the foregoing method embodiments, and details will not be repeated here.
在上述实施例中,对各个实施例的描述都各有侧重,某个实施例中没有详述或记载的部分,可以参见其它实施例的相关描述。In the above-mentioned embodiments, the descriptions of each embodiment have their own emphases, and for parts that are not detailed or recorded in a certain embodiment, refer to the relevant descriptions of other embodiments.
所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place, or may be distributed to multiple network units. Part or all of the units can be selected according to actual needs to achieve the purpose of the solution of this embodiment.
另外,在本发明各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, each unit may exist separately physically, or two or more units may be integrated into one unit. The above-mentioned integrated units can be implemented in the form of hardware or in the form of software functional units.
所述集成的模块/单元如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本发明实现上述实施例方法中的全部或部分流程,也可以通过计算机程序来指令相关的硬件来完成,所述的计算机程序可存储于一计算机可读存储介质中,该计算机程序在被处理器执行时,可实现上述各个方法实施例的步骤。If the integrated module/unit is realized in the form of a software function unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the present invention realizes all or part of the processes in the methods of the above embodiments, and can also be completed by instructing related hardware through a computer program. The computer program can be stored in a computer-readable storage medium, and the computer When the program is executed by the processor, the steps in the above-mentioned various method embodiments can be realized.
以上所述实施例仅用以说明本发明的技术方案,而非对其限制;尽管参照前述实施例对本发明进行了详细的说明,本领域的普通技术人员应当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分技术特征进行等同替换;而这些修改或者替换,并不使相应技术方案的本质脱离本发明各实施例技术方案的精神和范围,均应包含在本发明的保护范围之内。The above-described embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit them; although the present invention has been described in detail with reference to the foregoing embodiments, those of ordinary skill in the art should understand that: it can still carry out the foregoing embodiments Modifications to the technical solutions recorded in the examples, or equivalent replacement of some of the technical features; and these modifications or replacements do not make the essence of the corresponding technical solutions deviate from the spirit and scope of the technical solutions of the various embodiments of the present invention, and should be included in within the protection scope of the present invention.
Claims (8)
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201910603532.7A CN112188700B (en) | 2019-07-05 | 2019-07-05 | Desk lamp control method, device and electronic equipment |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201910603532.7A CN112188700B (en) | 2019-07-05 | 2019-07-05 | Desk lamp control method, device and electronic equipment |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| CN112188700A CN112188700A (en) | 2021-01-05 |
| CN112188700B true CN112188700B (en) | 2023-01-06 |
Family
ID=73914719
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN201910603532.7A Active CN112188700B (en) | 2019-07-05 | 2019-07-05 | Desk lamp control method, device and electronic equipment |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN112188700B (en) |
Families Citing this family (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP2022139981A (en) * | 2021-03-12 | 2022-09-26 | 富士フイルムビジネスイノベーション株式会社 | Information processing system and program |
| WO2023041038A1 (en) * | 2021-09-16 | 2023-03-23 | 上海钧正网络科技有限公司 | Control method, information tag, and system |
Family Cites Families (23)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN2269520Y (en) * | 1995-10-18 | 1997-12-03 | 李健 | Electronic induction type myopia-preventing desk lamp |
| US6467936B1 (en) * | 2001-10-03 | 2002-10-22 | Andrew J. Golemba | Adjustable desk lamp |
| US9033569B2 (en) * | 2010-11-22 | 2015-05-19 | Tseng-Lu Chien | Lamp holder has built-in night light |
| CN101561108B (en) * | 2008-04-14 | 2013-05-01 | 浙江大学 | LED lamp with controllable illumination direction and patterns |
| CN201407545Y (en) * | 2009-04-23 | 2010-02-17 | 毕宇龙 | Multimedia table lamp |
| 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 |
| CN104824974A (en) * | 2015-06-08 | 2015-08-12 | 张运 | Integrated desk with desk lamp |
| CN105135265B (en) * | 2015-08-07 | 2017-08-08 | 天津茄丁科技有限公司 | A kind of intelligent desk lamp and its control method |
| CN205430701U (en) * | 2016-03-26 | 2016-08-03 | 王晗宇 | Speech control's LED table lamp |
| WO2018000158A1 (en) * | 2016-06-27 | 2018-01-04 | 康丰生 | Intelligently-controlled desk lamp |
| CN106122878A (en) * | 2016-06-27 | 2016-11-16 | 康丰生 | A kind of Based Intelligent Control desk lamp |
| CN105953136A (en) * | 2016-07-18 | 2016-09-21 | 安徽状元郎电子科技有限公司 | Learning table lamp with reminding function |
| CN207519844U (en) * | 2017-05-27 | 2018-06-22 | 深圳市松堡王国家居有限公司 | Intelligent desk |
| CN207718423U (en) * | 2017-12-12 | 2018-08-10 | 河南星云慧通信技术有限公司 | A kind of library seats reservation system |
| CN208295615U (en) * | 2017-12-15 | 2018-12-28 | 曹馨哲 | A kind of desk lamp with prompting function |
| CN207880525U (en) * | 2017-12-21 | 2018-09-18 | 深圳信息职业技术学院 | A kind of mother and baby's intelligent desk lamp |
| CN108224147A (en) * | 2017-12-27 | 2018-06-29 | 宁波兆隆光电科技有限公司 | Novel intelligent LED desk lamp control system |
| CN208058526U (en) * | 2018-04-13 | 2018-11-06 | 郭三婷 | A kind of intelligent desk lamp |
| CN108799899A (en) * | 2018-06-29 | 2018-11-13 | 池州智栋信息技术有限公司 | A kind of multi-function desk lamp |
| CN109640466A (en) * | 2018-11-19 | 2019-04-16 | 合肥龙多电子科技有限公司 | A kind of intelligent desk lamp control device |
| CN109519830A (en) * | 2018-11-21 | 2019-03-26 | 广州市华蓝佳声计算机科技有限公司 | A kind of myopia prevention lamp |
| CN109708020A (en) * | 2018-12-29 | 2019-05-03 | 唐劲松 | A kind of LED projection computer AI intelligent eyeshield desk lamp |
-
2019
- 2019-07-05 CN CN201910603532.7A patent/CN112188700B/en active Active
Also Published As
| Publication number | Publication date |
|---|---|
| CN112188700A (en) | 2021-01-05 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US10951470B2 (en) | Bluetooth mesh network provisioning | |
| US10528434B2 (en) | Method, device and terminal for restoring firmware program | |
| CN103391535B (en) | Method for allowing multiple terminals to share virtual SIM (subscriber identity module) card, as well as terminals, server and system | |
| CN112188700B (en) | Desk lamp control method, device and electronic equipment | |
| EP3142304B1 (en) | Synchronization method for notification message of electronic device, server and electronic device | |
| EP3611627A1 (en) | Device resource management based on contextual planning | |
| CN105190555A (en) | Centralized task scheduling | |
| CN104883434A (en) | Method and terminal for reminding breathing light | |
| EP2696540A1 (en) | Communication alerts management | |
| KR102184305B1 (en) | Method for processing authorization, electronic device and server for supporting the same | |
| US9042868B2 (en) | Instant messaging through secondary wireless communication device | |
| CN112188699B (en) | Control method and device of desk lamp and electronic equipment | |
| CN102970208B (en) | Application message processing method and terminal unit | |
| US20240214437A1 (en) | Computer-implemented method, smart conference room system, and computer-program product | |
| US20180352368A1 (en) | Context-driven local network services | |
| KR20160071260A (en) | Method for managing state of ECU in vehicle based on automotive open system architecture | |
| CN102739408B (en) | Method for remotely starting mobile terminal and system thereof, and mobile terminal capable of being started remotely | |
| EP3989215B1 (en) | Synchronous display blinking | |
| JP2020135178A (en) | Facility management server and program | |
| EP3376420A1 (en) | Interface processing method, electronic device and graphic user interface | |
| US9467821B1 (en) | Application data syncing across multiple cellular mobile communication devices | |
| CN115361472A (en) | A recording method, system, mobile terminal and storage medium | |
| CN104766103B (en) | Smart card issuing method and system | |
| US8897792B1 (en) | Notification routing system for multiple cellular mobile communication devices | |
| CN116233056B (en) | Social state management device, communication method, system and electronic device |
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 | ||
| CP03 | Change of name, title or address |
Address after: No. 1511, North Fanghu 2nd Road, Huli District, Xiamen City, Fujian Province 361000 Patentee after: Xiamen Lidaxin Digital Education Technology Co.,Ltd. Country or region after: China Address before: 5th Floor, 1511 Fanghu North 2nd Road, Huli District, Xiamen City, Fujian Province Patentee before: LEELEDS LIGHTING (XIAMEN) Co.,Ltd. Country or region before: China |
|
| CP03 | Change of name, title or address |