CN115079554A - A smart watch and its time display method, device and readable storage medium - Google Patents
A smart watch and its time display method, device and readable storage medium Download PDFInfo
- Publication number
- CN115079554A CN115079554A CN202210761049.3A CN202210761049A CN115079554A CN 115079554 A CN115079554 A CN 115079554A CN 202210761049 A CN202210761049 A CN 202210761049A CN 115079554 A CN115079554 A CN 115079554A
- Authority
- CN
- China
- Prior art keywords
- time
- smart watch
- watch
- information
- display
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Images
Classifications
-
- G—PHYSICS
- G04—HOROLOGY
- G04G—ELECTRONIC TIME-PIECES
- G04G9/00—Visual time or date indication means
-
- G—PHYSICS
- G04—HOROLOGY
- G04G—ELECTRONIC TIME-PIECES
- G04G9/00—Visual time or date indication means
- G04G9/0005—Transmission of control signals
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/44—Arrangements for executing specific programs
- G06F9/4401—Bootstrapping
- G06F9/4406—Loading of operating system
Landscapes
- Engineering & Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Software Systems (AREA)
- Theoretical Computer Science (AREA)
- Computer Security & Cryptography (AREA)
- General Engineering & Computer Science (AREA)
- User Interface Of Digital Computer (AREA)
Abstract
Description
技术领域technical field
本发明涉及智能手表技术领域,特别涉及一种智能手表的时间显示方法、装置、智能手表和计算机可读存储介质。The present invention relates to the technical field of smart watches, in particular to a time display method, device, smart watch and computer-readable storage medium of a smart watch.
背景技术Background technique
目前市面上的智能手表,其开机时间均在10秒至几十秒不等,其用户体验并不好。对于用户来讲,手表的最主要功能在于时间显示,固然有部分智能手表具备电话、视频和娱乐等功能,但是无一例外,所有智能手表都具备时间显示的功能。The current smart watches on the market have a boot time ranging from 10 seconds to tens of seconds, and their user experience is not good. For users, the most important function of a watch is time display. Although some smart watches have functions such as phone calls, videos and entertainment, all smart watches without exception have the function of time display.
现有技术中,以安卓(Android)系统的智能手表为例,其开机时间约为20秒-30秒,甚至更长,开机期间手表会显示开机Logo(图案)、开机动画等内容;在此期间只能等待智能手表开机完成后,才可以正常显示时间,使得用户难以快速及时地查看当前时间,不利于用户体验。In the prior art, taking an Android smart watch as an example, its boot time is about 20 seconds to 30 seconds, or even longer. During booting, the watch will display the boot logo (pattern), boot animation, etc.; here During the period, the time can only be displayed normally after the smart watch is turned on, which makes it difficult for users to check the current time quickly and in a timely manner, which is not conducive to user experience.
因此,如何能够在智能手表的开机过程中提高当前时间的显示速度,提升用户体验,是现今急需解决的问题。Therefore, how to increase the display speed of the current time and improve the user experience during the booting process of the smart watch is an urgent problem to be solved today.
发明内容SUMMARY OF THE INVENTION
本发明的目的是提供一种智能手表的时间显示方法、装置、智能手表和计算机可读存储介质,以在智能手表的开机过程中提前显示当前时间,提升用户体验。The purpose of the present invention is to provide a time display method, device, smart watch and computer-readable storage medium of a smart watch, so as to display the current time in advance during the booting process of the smart watch and improve user experience.
为解决上述技术问题,本发明提供一种智能手表的时间显示方法,包括:In order to solve the above technical problems, the present invention provides a time display method for a smart watch, including:
智能手表在开机过程中的系统初始化完成后,从实时时钟单元获取时间信息;The smart watch obtains time information from the real-time clock unit after the system initialization during the booting process is completed;
根据所述时间信息,在所述智能手表的显示屏上显示当前时间;Displaying the current time on the display screen of the smart watch according to the time information;
加载并跳转至内核阶段,完成所述智能手表的开机。Load and jump to the kernel stage to complete the booting of the smart watch.
可选的,所述根据所述时间信息,在所述智能手表的显示屏上显示当前时间,包括:Optionally, the displaying the current time on the display screen of the smart watch according to the time information includes:
获取所述智能手表的表盘信息;obtain the dial information of the smart watch;
根据所述表盘信息和所述时间信息,在所述显示屏绘制表盘,并在所述表盘上显示当前时间。According to the dial information and the time information, a dial is drawn on the display screen, and the current time is displayed on the dial.
可选的,所述表盘信息包括所述智能手表在上一次关机前存储的表盘自定义信息。Optionally, the dial information includes dial customization information stored by the smart watch before the last shutdown.
可选的,所述智能手表在开机过程中的系统初始化完成后,从实时时钟单元获取时间信息,包括:Optionally, the smart watch obtains time information from the real-time clock unit after the system initialization during the booting process is completed, including:
所述智能手表在开机过程中的引导加载程序阶段,完成系统初始化并显示开机图案;The smart watch completes the system initialization and displays the boot pattern in the boot loader stage during the boot process;
从所述实时时钟单元获取所述时间信息。The time information is obtained from the real time clock unit.
可选的,所述加载并跳转至内核阶段,完成所述智能手表的开机,包括:Optionally, the loading and jumping to the kernel stage to complete the startup of the smart watch, including:
加载并跳转至所述内核阶段,完成内核初始化并启动用户级进程;Load and jump to the kernel stage, complete the kernel initialization and start the user-level process;
创建目标线程,利用所述目标线程按预设时间间隔从所述实时时钟单元获取所述时间信息,并更新所述显示屏上显示的当前时间;Create a target thread, use the target thread to obtain the time information from the real-time clock unit at preset time intervals, and update the current time displayed on the display screen;
利用守护进程继续完成所述智能手表的开机。Continue to complete the booting of the smart watch by using the daemon process.
可选的,所述利用守护进程继续完成所述智能手表的开机,包括:Optionally, the use of the daemon process to continue to complete the startup of the smart watch includes:
利用所述守护进程加载各种资源并启动系统服务进程;Utilize the daemon process to load various resources and start the system service process;
利用所述系统服务进程,启动手表自定义应用;Using the system service process, start the watch custom application;
利用所述手表自定义应用在所述显示屏上更新显示当前时间。The current time is updated and displayed on the display screen using the watch customization application.
本发明还提供了一种智能手表的时间显示装置,包括:The present invention also provides a time display device for a smart watch, comprising:
时间获取模块,用于在智能手表的开机过程中的系统初始化完成后,从实时时钟单元获取时间信息;The time acquisition module is used to acquire time information from the real-time clock unit after the system initialization is completed during the booting process of the smart watch;
时间显示模块,用于根据所述时间信息,在所述智能手表的显示屏上显示当前时间;a time display module, configured to display the current time on the display screen of the smart watch according to the time information;
开机内核模块,用于加载并跳转至内核阶段,完成所述智能手表的开机。The booting kernel module is used to load and jump to the kernel stage to complete the booting of the smart watch.
可选的,所述开机内核模块,包括:Optionally, the booting kernel module includes:
初始化子模块,用于加载并跳转至所述内核阶段,完成内核初始化并启动用户级进程;The initialization submodule is used to load and jump to the kernel stage, complete the kernel initialization and start the user-level process;
时间更新子模块,用于创建目标线程,利用所述目标线程按预设时间间隔从所述实时时钟单元获取所述时间信息,并更新所述显示屏上显示的当前时间;A time update submodule, used for creating a target thread, using the target thread to obtain the time information from the real-time clock unit at preset time intervals, and updating the current time displayed on the display screen;
开机进程子模块,用于利用守护进程继续完成所述智能手表的开机。The boot process sub-module is used to continue to complete the boot of the smart watch by using the daemon process.
本发明还提供了一种智能手表,包括:The present invention also provides a smart watch, comprising:
存储器,用于存储计算机程序;memory for storing computer programs;
处理器,用于执行所述计算机程序时实现如上述所述的智能手表的时间显示方法的步骤。The processor is configured to implement the steps of the above-mentioned time display method of the smart watch when executing the computer program.
此外,本发明还提供了一种计算机可读存储介质,所述计算机可读存储介质上存储有计算机程序,所述计算机程序被处理器执行时实现如上述所述的智能手表的时间显示方法的步骤。In addition, the present invention also provides a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the time display method of the smart watch as described above is realized. step.
本发明所提供的一种智能手表的时间显示方法,包括:智能手表在开机过程中的系统初始化完成后,从实时时钟单元获取时间信息;根据时间信息,在智能手表的显示屏上显示当前时间;加载并跳转至内核阶段,完成智能手表的开机;A time display method for a smart watch provided by the present invention includes: after the system initialization of the smart watch during the booting process is completed, time information is obtained from a real-time clock unit; and the current time is displayed on the display screen of the smart watch according to the time information. ; Load and jump to the kernel stage to complete the boot of the smart watch;
可见,由于智能手表内部的实时时钟单元在关机情况下依然在进行计时,本发明利用智能手表从实时时钟单元获取的时间信息,在开机过程中提前显示当前时间,以尽早将时间呈现给用户,使用户能够更快地查看时间,提升了用户体验。此外,本发明还提供了一种智能手表的时间显示装置、智能手表和计算机可读存储介质,同样具有上述有益效果。It can be seen that since the real-time clock unit inside the smart watch is still timing when it is turned off, the present invention uses the time information obtained by the smart watch from the real-time clock unit to display the current time in advance during the boot process, so as to present the time to the user as soon as possible. Enables users to check the time faster, improving the user experience. In addition, the present invention also provides a time display device for a smart watch, a smart watch and a computer-readable storage medium, which also have the above beneficial effects.
附图说明Description of drawings
为了更清楚地说明本发明实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据提供的附图获得其他的附图。In order to explain the embodiments of the present invention or the technical solutions in the prior art more clearly, the following briefly introduces the accompanying drawings that need to be used in the description of the embodiments or the prior art. Obviously, the accompanying drawings in the following description are only It is an embodiment of the present invention. For those of ordinary skill in the art, other drawings can also be obtained according to the provided drawings without creative work.
图1为本发明实施例所提供的一种智能手表的时间显示方法的流程图;1 is a flowchart of a time display method for a smart watch provided by an embodiment of the present invention;
图2为本发明实施例所提供的另一种智能手表的时间显示方法的流程示意图;2 is a schematic flowchart of another time display method for a smart watch provided by an embodiment of the present invention;
图3为现有技术中智能手表的时间显示方法的流程示意图;3 is a schematic flowchart of a time display method for a smart watch in the prior art;
图4为本发明实施例所提供的一种智能手表的时间显示装置的结构框图。FIG. 4 is a structural block diagram of a time display device for a smart watch according to an embodiment of the present invention.
具体实施方式Detailed ways
为使本发明实施例的目的、技术方案和优点更加清楚,下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。In order to make the purposes, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments These are some embodiments of the present invention, but not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those of ordinary skill in the art without creative efforts shall fall within the protection scope of the present invention.
请参考图1,图1为本发明实施例所提供的一种智能手表的时间显示方法的流程图。该方法可以包括:Please refer to FIG. 1 , which is a flowchart of a method for displaying time of a smart watch according to an embodiment of the present invention. The method can include:
步骤101:智能手表在开机过程中的系统初始化完成后,从实时时钟单元获取时间信息。Step 101: After the system initialization during the booting process of the smart watch is completed, time information is obtained from the real-time clock unit.
其中,本步骤中的实时时钟(Real-TimeClock,RTC)单元可以为智能手表内部设置的用于进行计时的单元;实时时钟单元在智能手表关机情况下依然能够进行计时,如智能手表的关机闹钟功能便是基于此原理实现的。Wherein, the real-time clock (Real-TimeClock, RTC) unit in this step may be a unit set inside the smart watch for timing; the real-time clock unit can still perform timing when the smart watch is turned off, such as the shutdown alarm clock of the smart watch The function is realized based on this principle.
可以理解的是,本步骤中智能手表可以在开机过程中的系统初始化完成后,从实时时钟单元获取时间信息,从而利用该时间信息在开机过程中显示当前时间,尽早将时间呈现给用户,提升用户体验。It can be understood that in this step, the smart watch can obtain time information from the real-time clock unit after the system initialization during the booting process is completed, so as to use the time information to display the current time during the booting process, present the time to the user as soon as possible, and improve the performance of the smart watch. user experience.
具体的,对于本步骤中智能手表从实时时钟单元获取时间信息的具体时间点,可以由设计人员根据实用场景和用户需求自行设置,如智能手表可以在开机过程中的系统初始化完成后,直接从实时时钟单元获取时间信息;例如,智能手表可以在开机过程中的引导加载程序(如bootloader)阶段,完成系统初始化后,从实时时钟单元获取时间信息。智能手表也可以在开机过程中的系统初始化完成且显示开机图案后,从实时时钟单元获取时间信息;例如,智能手表可以在开机过程中的引导加载程序阶段,完成系统初始化并显示开机图案后,从实时时钟单元获取时间信息。只要智能手表可以在开机过程中的系统初始化完成后且在内核阶段之前,从实时时钟单元获取时间信息,本实施例对此不做任何限制。Specifically, the specific time point at which the smart watch obtains time information from the real-time clock unit in this step can be set by the designer according to practical scenarios and user needs. The real-time clock unit obtains time information; for example, the smart watch can obtain time information from the real-time clock unit after completing the system initialization in the boot loader (eg, bootloader) stage during the booting process. The smart watch can also obtain time information from the real-time clock unit after the system initialization during the boot process is completed and the boot pattern is displayed; for example, the smart watch can complete the system initialization and display the boot pattern during the boot loader stage of the boot process. Get time information from the real-time clock unit. As long as the smart watch can obtain time information from the real-time clock unit after the system initialization in the booting process is completed and before the kernel stage, this embodiment does not impose any restrictions on this.
对应的,本步骤可以包括智能手表在开机过程中的引导加载程序阶段,完成系统初始化并显示开机图案;从实时时钟单元获取时间信息。如图3所示,智能手表为安卓手表时,用户按电源键开机后,智能手表可以进入开机过程中的bootloader(引导加载程序)阶段,完成系统初始化,随后显示开机图案,从RTC单元获取时间信息,从而绘制表盘并显示当前时间,之后加载并跳转至内核(Kernel)阶段,继续完成智能手表的开机。Correspondingly, this step may include the boot loader stage during the booting process of the smart watch, completing the system initialization and displaying the booting pattern; and acquiring time information from the real-time clock unit. As shown in Figure 3, when the smart watch is an Android watch, after the user presses the power button to turn on the smart watch, the smart watch can enter the bootloader (bootloader) stage of the boot process, complete the system initialization, and then display the boot pattern to obtain the time from the RTC unit. information, so as to draw the dial and display the current time, then load and jump to the kernel (Kernel) stage, and continue to complete the boot of the smart watch.
步骤102:根据时间信息,在智能手表的显示屏上显示当前时间。Step 102: Display the current time on the display screen of the smart watch according to the time information.
可以理解的是,本步骤中智能手表可以在开机过程中利用从实时时钟单元获取的时间信息,在显示屏上显示当前时间,以尽早将时间呈现给用户,提升用户体验。It can be understood that in this step, the smart watch can use the time information obtained from the real-time clock unit during the booting process to display the current time on the display screen, so as to present the time to the user as soon as possible and improve the user experience.
具体的,对于本步骤中智能手表根据时间信息,在智能手表的显示屏上显示当前时间的具体方式,可以由设计人员根据实用场景和用户需求自行设置,如智能手表可以根据时间信息和智能手表的表盘信息,在显示屏绘制表盘,并在表盘上显示当前时间;例如,本步骤中智能手表可以获取智能手表的表盘信息;根据表盘信息和时间信息,在显示屏绘制表盘,并在表盘上显示当前时间;也就是说,智能手表可以在在显示屏绘制表盘信息对应的表盘,并利用该表盘显示时间信息对应的当前时间。Specifically, in this step, the specific method for the smart watch to display the current time on the display screen of the smart watch according to the time information can be set by the designer according to practical scenarios and user needs. The dial information of the smart watch is drawn, the dial is drawn on the display screen, and the current time is displayed on the dial; for example, in this step, the smart watch can obtain the dial information of the smart watch; according to the dial information and time information, the dial is drawn on the display screen, and the dial Display the current time; that is, the smart watch can draw the dial corresponding to the dial information on the display screen, and use the dial to display the current time corresponding to the time information.
对应的,对于上述智能手表的表盘信息的具体内容,可以由设计人员根据实用场景和用户需求自行设置,如表盘信息可以为预先存储的固定的表盘绘制信息;表盘信息也可以为预先存储的用户自定义的表盘绘制信息,如表盘信息可以包括智能手表在上一次关机前存储的表盘自定义信息,即智能手表在开机过程中绘制显示的表盘可以为上一次关机前显示的表盘,例如,表盘信息可以包括智能手表在上一次关机前手表自定义应用(如WatchFace应用)显示的表盘对应的表盘自定义信息。本实施例对此不做任何限制。Correspondingly, the specific content of the dial information of the smart watch can be set by the designer according to practical scenarios and user needs. For example, the dial information can be pre-stored fixed dial drawing information; the dial information can also be pre-stored user information. Customized dial drawing information. For example, the dial information can include the dial customization information stored by the smart watch before the last shutdown, that is, the dial displayed by the smart watch during the boot process can be the one displayed before the last shutdown. For example, the dial The information may include the dial customization information corresponding to the dial displayed by the watch customization application (such as the WatchFace application) before the smart watch was powered off last time. This embodiment does not impose any limitation on this.
步骤103:加载并跳转至内核阶段,完成智能手表的开机。Step 103: Load and jump to the kernel stage to complete the booting of the smart watch.
可以理解的是,本步骤中智能手表可以在系统初始化完成并显示当前时间后,继续加载并跳转至内核(Kernel)阶段,继续完成智能手表的开机过程。It can be understood that, in this step, after the system initialization is completed and the current time is displayed, the smart watch can continue to load and jump to the kernel (Kernel) stage, and continue to complete the startup process of the smart watch.
具体的,对于本步骤中智能手表加载并跳转至内核阶段,完成智能手表的开机的具体过程,可以由设计人员根据实用场景和用户需求自行设置,如可以采用与图3所示的现有技术中智能手表的开机过程中的内核阶段及之后的开机过程相同或相似的方式实现,例如智能手表可以加载并跳转至内核阶段,在内核阶段完成内核初始化并启动用户级进程(如Init进程,内核启动的第一个用户级进程);利用守护进程(如Zygote进程)继续完成智能手表的开机,如智能手表为安卓手表时,利用Zygote进程加载各种资源,并启动系统服务进程(如SystemServer进程),利用系统服务进程启动手表自定义应用(如WatchFace应用),利用手表自定义应用在显示屏上更新显示当前时间,从而继续利用安卓系统的表盘显示功能显示当前时间。也就是说,相较于现有技术中的内核阶段及之后的开机过程,本实施例中智能手表可以不再利用用户级进程(如图3中的Init进程)启动开机动画文件(如图3中的BootAnimation),避免开机动画的显示对当前时间显示的干扰;对应的,智能手表也可以在利用守护进程(如Zygote进程)继续完成智能手表的开机之前,利用用户级进程(如Init进程)启动开机动画文件(如BootAnimation),以在显示屏显示当前时间的同时显示开机动画,本实施例对此不做任何限制。Specifically, in this step, the smart watch is loaded and jumped to the kernel stage to complete the specific process of booting the smart watch, which can be set by the designer according to practical scenarios and user needs. In the technology, the kernel stage and the subsequent boot process of the smart watch are implemented in the same or similar way. For example, the smart watch can load and jump to the kernel stage, complete the kernel initialization in the kernel stage and start the user-level process (such as the Init process). , the first user-level process started by the kernel); use the daemon process (such as the Zygote process) to continue to complete the boot of the smart watch, such as when the smart watch is an Android watch, use the Zygote process to load various resources and start the system service process (such as SystemServer process), use the system service process to start the watch custom application (such as the WatchFace application), and use the watch custom application to update and display the current time on the display screen, so as to continue to use the dial display function of the Android system to display the current time. That is to say, compared with the kernel stage and the subsequent boot process in the prior art, in this embodiment, the smart watch can no longer use the user-level process (the Init process in FIG. 3 ) to start the boot animation file (as shown in FIG. 3 ). BootAnimation) in the boot animation) to avoid the interference of the display of the boot animation on the current time display; correspondingly, the smart watch can also use the user-level process (such as the Init process) before using the daemon process (such as the Zygote process) to continue to complete the boot of the smart watch. A boot animation file (such as BootAnimation) is activated to display the boot animation while the current time is displayed on the display screen, which is not limited in this embodiment.
具体的,本实施例中智能手表可以在内核阶段创建目标线程,利用目标线程按预设时间间隔从实时时钟单元获取时间信息,并更新显示屏上显示的当前时间,以保证显示屏上显示的当前时间的实时性;例如本步骤中智能手表可以加载并跳转至内核阶段,完成内核初始化并启动用户级进程;创建目标线程,利用目标线程按预设时间间隔从实时时钟单元获取时间信息,并更新显示屏上显示的当前时间;利用守护进程继续完成智能手表的开机。如图2所示,智能手表可以在加载并跳转至Kernel阶段,在Kernel阶段完成内核初始化并启动Init进程;创建线程(即目标线程),定时获取RTC单元的时间信息并同步显示到表盘;之后利用Zygote进程加载各种资源并启动SystemServer进程,利用SystemServer进程启动WatchFace应用,继续利用安卓系统的表盘显示功能显示在表盘中显示当前时间。Specifically, in this embodiment, the smart watch can create a target thread in the kernel stage, use the target thread to obtain time information from the real-time clock unit at preset time intervals, and update the current time displayed on the display to ensure that the displayed time on the display is guaranteed. The real-time nature of the current time; for example, in this step, the smart watch can load and jump to the kernel stage, complete the kernel initialization and start the user-level process; create a target thread, and use the target thread to obtain time information from the real-time clock unit at preset time intervals, And update the current time shown on the display; use the daemon to continue to complete the power-on of the smartwatch. As shown in Figure 2, the smart watch can load and jump to the Kernel stage, complete the kernel initialization and start the Init process in the Kernel stage; create a thread (that is, the target thread), regularly obtain the time information of the RTC unit and display it on the dial synchronously; Then use the Zygote process to load various resources and start the SystemServer process, use the SystemServer process to start the WatchFace application, and continue to use the dial display function of the Android system to display the current time on the dial.
本实施例中,本发明实施例利用从实时时钟单元获取的时间信息,在智能手表的开机过程中提前显示当前时间,以尽早将时间呈现给用户,使用户能够更快地查看时间,提升了用户体验。In this embodiment, the embodiment of the present invention uses the time information obtained from the real-time clock unit to display the current time in advance during the booting process of the smart watch, so as to present the time to the user as soon as possible, so that the user can check the time faster, and improves the performance of the smart watch. user experience.
相应于上面的方法实施例,本发明实施例还提供了一种智能手表的时间显示装置,下文描述的一种智能手表的时间显示装置与上文描述的一种智能手表的时间显示方法可相互对应参照。Corresponding to the above method embodiments, the embodiments of the present invention also provide a time display device for a smart watch. The time display device for a smart watch described below and the time display method for a smart watch described above can interact with each other. corresponding reference.
请参考图4,图4为本发明实施例所提供的一种智能手表的时间显示装置的结构框图。该装置可以包括:Please refer to FIG. 4 , which is a structural block diagram of a time display device for a smart watch according to an embodiment of the present invention. The apparatus may include:
时间获取模块10,用于在智能手表的开机过程中的系统初始化完成后,从实时时钟单元获取时间信息;The
时间显示模块20,用于根据时间信息,在智能手表的显示屏上显示当前时间;The
开机内核模块30,用于加载并跳转至内核阶段,完成智能手表的开机。The booting
可选的,时间显示模块20可以包括:Optionally, the
表盘获取子模块,用于获取智能手表的表盘信息;The dial acquisition sub-module is used to obtain the dial information of the smart watch;
绘制显示子模块,用于根据表盘信息和时间信息,在显示屏绘制表盘,并在表盘上显示当前时间。The drawing and display sub-module is used to draw the dial on the display screen according to the dial information and time information, and display the current time on the dial.
可选的,表盘信息包括智能手表在上一次关机前存储的表盘自定义信息。Optionally, the dial information includes dial customization information stored by the smart watch before the last shutdown.
可选的,时间获取模块10可以包括:Optionally, the
初始化子模块,用于在智能手表的开机过程中的引导加载程序阶段,完成系统初始化并显示开机图案;The initialization sub-module is used to complete the system initialization and display the boot pattern in the boot loader stage during the boot process of the smart watch;
时间获取子模块,用于从实时时钟单元获取时间信息。The time acquisition sub-module is used to acquire time information from the real-time clock unit.
可选的,开机内核模块30可以包括:Optionally, the
初始化子模块,用于加载并跳转至内核阶段,完成内核初始化并启动用户级进程;The initialization submodule is used to load and jump to the kernel stage, complete the kernel initialization and start the user-level process;
时间更新子模块,用于创建目标线程,利用目标线程按预设时间间隔从实时时钟单元获取时间信息,并更新显示屏上显示的当前时间;The time update submodule is used to create a target thread, use the target thread to obtain time information from the real-time clock unit at preset time intervals, and update the current time displayed on the display screen;
开机进程子模块,用于利用守护进程继续完成智能手表的开机。The boot process sub-module is used to continue to complete the boot of the smart watch by using the daemon process.
可选的,开机进程子模块可以具体用于利用守护进程加载各种资源并启动系统服务进程;利用系统服务进程,启动手表自定义应用;利用手表自定义应用在显示屏上更新显示当前时间。Optionally, the boot process submodule can be specifically used to load various resources and start the system service process by using the daemon process; use the system service process to start the watch custom application; use the watch custom application to update and display the current time on the display screen.
本实施例中,本发明实施例利用时间获取模块10从实时时钟单元获取的时间信息,在智能手表的开机过程中提前显示当前时间,以尽早将时间呈现给用户,使用户能够更快地查看时间,提升了用户体验。In this embodiment, the embodiment of the present invention uses the time information obtained by the
相应于上面的方法实施例,本发明实施例还提供了一种智能手表,下文描述的一种智能手表与上文描述的一种智能手表的时间显示方法可相互对应参照。Corresponding to the above method embodiments, the embodiments of the present invention further provide a smart watch, and a smart watch described below and a time display method of a smart watch described above can refer to each other correspondingly.
一种智能手表,包括:A smart watch comprising:
存储器,用于存储计算机程序;memory for storing computer programs;
处理器,用于执行计算机程序时实现如上述方法实施例所提供的智能手表的时间显示方法的步骤。The processor is configured to implement the steps of the time display method of the smart watch provided by the above method embodiments when executing the computer program.
相应于上面的方法实施例,本发明实施例还提供了一种计算机可读存储介质,下文描述的一种计算机可读存储介质与上文描述的一种智能手表的时间显示方法可相互对应参照。Corresponding to the above method embodiments, the embodiments of the present invention further provide a computer-readable storage medium, and a computer-readable storage medium described below and a time display method of a smart watch described above may refer to each other correspondingly. .
一种计算机可读存储介质,该计算机可读存储介质上存储有计算机程序,计算机程序被处理器执行时实现上述方法实施例所提供的智能手表的时间显示方法的步骤。A computer-readable storage medium stores a computer program on the computer-readable storage medium, and when the computer program is executed by a processor, implements the steps of the time display method for a smart watch provided by the above method embodiments.
该计算机可读存储介质具体可以为U盘、移动硬盘、只读存储器(Read-OnlyMemory,ROM)、随机存取存储器(Random Access Memory,RAM)、磁碟或者光盘等各种可存储程序代码的可读存储介质。The computer-readable storage medium may specifically be a USB flash drive, a mobile hard disk, a read-only memory (Read-Only Memory, ROM), a random access memory (Random Access Memory, RAM), a magnetic disk or an optical disk, etc. Readable storage medium.
说明书中各个实施例采用递进的方式描述,每个实施例重点说明的都是与其他实施例的不同之处,各个实施例之间相同相似部分互相参见即可。对于实施例公开的装置、智能手表及计算机可读存储介质而言,由于其与实施例公开的方法相对应,所以描述的比较简单,相关之处参见方法部分说明即可。The various embodiments in the specification are described in a progressive manner, and each embodiment focuses on the differences from other embodiments, and the same and similar parts between the various embodiments can be referred to each other. For the device, smart watch, and computer-readable storage medium disclosed in the embodiments, since they correspond to the methods disclosed in the embodiments, the descriptions are relatively simple, and for related parts, please refer to the description in the method section.
以上对本发明所提供的一种智能手表的时间显示方法、装置、智能手表和计算机可读存储介质进行了详细介绍。本文中应用了具体个例对本发明的原理及实施方式进行了阐述,以上实施例的说明只是用于帮助理解本发明的方法及其核心思想。应当指出,对于本技术领域的普通技术人员来说,在不脱离本发明原理的前提下,还可以对本发明进行若干改进和修饰,这些改进和修饰也落入本发明权利要求的保护范围内。The time display method, device, smart watch and computer-readable storage medium of a smart watch provided by the present invention have been described in detail above. The principles and implementations of the present invention are described herein by using specific examples, and the descriptions of the above embodiments are only used to help understand the method and the core idea of the present invention. It should be pointed out that for those skilled in the art, without departing from the principle of the present invention, several improvements and modifications can also be made to the present invention, and these improvements and modifications also fall within the protection scope of the claims of the present invention.
Claims (10)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210761049.3A CN115079554A (en) | 2022-06-30 | 2022-06-30 | A smart watch and its time display method, device and readable storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210761049.3A CN115079554A (en) | 2022-06-30 | 2022-06-30 | A smart watch and its time display method, device and readable storage medium |
Publications (1)
Publication Number | Publication Date |
---|---|
CN115079554A true CN115079554A (en) | 2022-09-20 |
Family
ID=83256211
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202210761049.3A Pending CN115079554A (en) | 2022-06-30 | 2022-06-30 | A smart watch and its time display method, device and readable storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN115079554A (en) |
Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1780431A (en) * | 2004-11-24 | 2006-05-31 | 中兴通讯股份有限公司 | A method for displaying time in a mobile phone |
CN101937342A (en) * | 2010-09-16 | 2011-01-05 | 广东欧珀移动通信有限公司 | Time display method for handheld mobile terminal |
CN102243506A (en) * | 2010-05-14 | 2011-11-16 | 杭州华三通信技术有限公司 | Method and device for acquiring system time |
CN106341545A (en) * | 2016-09-28 | 2017-01-18 | 上海斐讯数据通信技术有限公司 | Method for displaying time of mobile terminal under power-off state and system using method |
CN106873968A (en) * | 2016-12-28 | 2017-06-20 | 深圳天珑无线科技有限公司 | A kind of terminal shows the method and system of time |
CN207236289U (en) * | 2017-05-12 | 2018-04-17 | 浙江枫云景生态环境科技有限公司 | A kind of multifunctional intellectual bracelet |
WO2021175194A1 (en) * | 2020-03-04 | 2021-09-10 | 京东方科技集团股份有限公司 | Method for timed startup of terminal, and terminal |
-
2022
- 2022-06-30 CN CN202210761049.3A patent/CN115079554A/en active Pending
Patent Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1780431A (en) * | 2004-11-24 | 2006-05-31 | 中兴通讯股份有限公司 | A method for displaying time in a mobile phone |
CN102243506A (en) * | 2010-05-14 | 2011-11-16 | 杭州华三通信技术有限公司 | Method and device for acquiring system time |
CN101937342A (en) * | 2010-09-16 | 2011-01-05 | 广东欧珀移动通信有限公司 | Time display method for handheld mobile terminal |
CN106341545A (en) * | 2016-09-28 | 2017-01-18 | 上海斐讯数据通信技术有限公司 | Method for displaying time of mobile terminal under power-off state and system using method |
CN106873968A (en) * | 2016-12-28 | 2017-06-20 | 深圳天珑无线科技有限公司 | A kind of terminal shows the method and system of time |
CN207236289U (en) * | 2017-05-12 | 2018-04-17 | 浙江枫云景生态环境科技有限公司 | A kind of multifunctional intellectual bracelet |
WO2021175194A1 (en) * | 2020-03-04 | 2021-09-10 | 京东方科技集团股份有限公司 | Method for timed startup of terminal, and terminal |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109034115B (en) | Video image recognition method, device, terminal and storage medium | |
US9942484B2 (en) | Electronic device and method for displaying image therein | |
WO2022001452A1 (en) | Information display method and apparatus, wearable device, and storage medium | |
EP4345611A1 (en) | Bootloader loading method, apparatus and system, electronic device and medium | |
EP3309676A1 (en) | Method and apparatus for providing screenshot service on terminal device and storage medium and device | |
WO2019072258A1 (en) | Method for controlling startup display picture of smart device, and smart device | |
WO2016037553A1 (en) | Method and apparatus for closing application program | |
CN109445994A (en) | Starting processing method, device, terminal device and storage medium | |
CN107450838B (en) | Response method and device of black screen gesture, storage medium and mobile terminal | |
CN107015626B (en) | Terminal control method and terminal control device | |
CN110702346B (en) | Vibration testing method and device, storage medium and terminal | |
CN110825467A (en) | Rendering method, rendering apparatus, hardware apparatus, and computer-readable storage medium | |
CN110781080A (en) | Program debugging method and device, and storage medium | |
CN108289237B (en) | Method, device and terminal for playing dynamic picture and computer readable storage medium | |
CN106941621A (en) | A kind of control method of mobile terminal, device and mobile terminal | |
CN115292642B (en) | Page display method and device, storage medium and computer equipment | |
WO2019019899A1 (en) | Method and device for improving response to black screen gesture, storage medium, and mobile terminal | |
CN104468980A (en) | A method and device for controlling the playback of terminal startup animation and ringtones | |
CN115079554A (en) | A smart watch and its time display method, device and readable storage medium | |
CN110377140B (en) | Method, device, terminal and storage medium for waking up operating system | |
US20220035591A1 (en) | Method and apparatus for displaying message box, terminal device and non-transitory computer-readable storage medium | |
TW201416979A (en) | Method for accelerating boot and computer system device | |
CN116743908B (en) | Wallpaper display method and related device | |
CN117149336A (en) | Startup guide page display method and device and electronic equipment | |
CN113825022B (en) | Method and device for detecting play control state, storage medium and electronic equipment |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20220920 |