Method, device, electronic device and medium for automatically generating downloadable watch faces

By automatically generating downloadable dials, users can select pictures, font styles and FTL templates by themselves, and automatically compile and generate downloadable dial packages through the dial designer, solving the problems of complex and high thresholds in traditional dial design, and achieving the effect of simplifying the compilation process and improving design efficiency.

CN119759348APending Publication Date: 2025-04-04SHENZHEN DO INTELLIGENT TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411829359.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-12-12
Publication Date
2025-04-04

AI Technical Summary

Technical Problem

Traditional dial design requires professional firmware engineers to write code and tedious compilation processes, setting technical barriers and increasing time costs.

Method used

It provides a method to automatically generate downloadable watch faces. By responding to the user's operation of the watch face designer, it obtains the user's selected pictures, font styles and FTL templates, generates the corresponding watch face json file, and compiles it with the FTL template to generate a downloadable watch face package.

Benefits of technology

It simplifies the compilation process, lowers the technical threshold, and designs personalized dials without professional knowledge, improving the efficiency of dial design.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119759348A_ABST
    Figure CN119759348A_ABST
Patent Text Reader

Abstract

The present invention provides a method, device, electronic device and medium for automatically generating a downloadable watch face, including: in response to a user's operation on a watch face designer, obtaining a picture, font style and FTL template selected by the user for generating a watch face; generating a corresponding watch face json file based on the picture and font style; and compiling the watch face json file and the FTL template to generate a downloadable watch face package. The present invention can simplify the compilation process and improve the efficiency of watch face design.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of smart wearable devices, and in particular to a method, device, electronic device and medium for automatically generating a downloadable watch face. Background Art

[0002] With the popularity of smart watches and wearable devices, the demand for personalized watch faces from engineers, UI designers and customers is growing. Traditional watch face design requires professional firmware engineers to write code and a tedious compilation process, which not only sets a technical threshold for making watch faces, but also increases the time cost. Summary of the invention

[0003] In view of this, an object of the present invention is to provide a method, device, electronic device and medium for automatically generating a downloadable watch face, which can simplify the compilation process and improve the efficiency of watch face design.

[0004] In order to achieve the above object, the technical solution adopted by the present invention is as follows:

[0005] In a first aspect, the present invention provides a method for automatically generating a downloadable watch face, comprising: in response to a user's operation on a watch face designer, obtaining a picture, font style, and FTL template selected by the user for generating a watch face; generating a corresponding watch face json file based on the picture and font style; and compiling the watch face json file and the FTL template to generate a downloadable watch face package.

[0006] Optionally, before obtaining the picture, font style and FTL template selected by the user for generating the watch face, it also includes: obtaining the FTL version, firmware version and compiler version selected by the user, and generating a watch face designer based on the FTL version, firmware version and compiler version.

[0007] Optionally, a corresponding watch face json file is generated based on the image and the font style, including: generating a json package corresponding to the image and the font style through a watch face designer, and packaging the json package to obtain the watch face json file.

[0008] Optionally, compiling the dial json file and the FTL template to generate a downloadable dial package, including: inputting the dial json file and the FTL template into the FTL language server; compiling the dial json file and the FTL template to generate the dial source code and resource files through the FTL language server, and storing the dial source code and resource files in the dial package format; compiling the dial package to generate a downloadable dial package in a target format through the FTL language server; wherein the target formats include: watch format and zip format.

[0009] Optionally, the watch face package is compiled through the FTL language server to generate a downloadable watch face package in a target format, including: automatically batch compiling the watch face package based on a firmware device platform batch processing compilation tool to obtain a downloadable watch face package in a target format.

[0010] Optionally, compiling the dial package through the FTL language server to generate a downloadable dial package in the target format also includes: based on the firmware device-side windows batch processing compilation tool, responding to the user's compilation operation on the dial package, obtaining a downloadable dial package in the target format.

[0011] Optionally, it also includes: previewing the watch face corresponding to the downloadable watch face package; in response to the user's download operation, downloading the downloadable watch face package to the firmware device end, and applying the watch face corresponding to the downloadable watch face package to the wearable device.

[0012] In a second aspect, the present invention provides a device for automatically generating a downloadable watch face, comprising: a watch face acquisition module, for responding to the user's operation on the watch face designer, and obtaining the user-selected picture, font style and FTL template for generating the watch face; a json file generation module, for generating a corresponding watch face json file based on the picture and font style; and a compilation module, for compiling the watch face json file and the FTL template to generate a downloadable watch face package.

[0013] In a third aspect, the present invention provides an electronic device comprising a processor and a memory, wherein the memory stores computer-executable instructions that can be executed by the processor, and the processor executes the computer-executable instructions to implement the steps of any one of the methods provided in the first aspect above.

[0014] In a fourth aspect, the present invention provides a computer-readable storage medium having a computer program stored thereon, and when the computer program is executed by a processor, the steps of any one of the methods provided in the first aspect are executed.

[0015] The present invention brings the following beneficial effects:

[0016] The method, device, electronic device and medium for automatically generating a downloadable watch face provided by the present invention first respond to the user's operation on the watch face designer to obtain the user's selected picture, font style and FTL template for generating the watch face; then generate the corresponding watch face json file based on the picture and font style; finally compile the watch face json file and the FTL template to generate a downloadable watch face package. The compilation process can be simplified and the efficiency of watch face design can be improved. In the above method, the user can select the picture, font style and FTL template for generating the watch face, and then the watch face designer automatically compiles and generates a downloadable watch face package, which simplifies the compilation process. Users can design personalized watch faces without professional knowledge, which improves the efficiency of watch face design.

[0017] Other features and advantages of the present invention will be described in the following description, and partly become apparent from the description, or understood by practicing the present invention. The purpose and other advantages of the present invention are realized and obtained by the structures particularly pointed out in the description, claims and drawings.

[0018] In order to make the above-mentioned objects, features and advantages of the present invention more obvious and easy to understand, the preferred embodiments are specifically mentioned below and described in detail with reference to the accompanying drawings. BRIEF DESCRIPTION OF THE DRAWINGS

[0019] In order to more clearly illustrate the specific implementation methods of the present invention or the technical solutions in the prior art, the drawings required for use in the specific implementation methods or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are some implementation methods of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0020] Figure 1 A flowchart of a method for automatically generating a downloadable watch face provided by an embodiment of the present invention;

[0021] Figure 2 A flowchart of another method for automatically generating a downloadable watch face provided by an embodiment of the present invention;

[0022] Figure 3 A schematic diagram of the structure of a device for automatically generating a downloadable watch face provided by an embodiment of the present invention;

[0023] Figure 4 A schematic diagram of the structure of an electronic device provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0024] In order to make the purpose, technical solution and advantages of the embodiments of the present invention clearer, the technical solution of the present invention will be clearly and completely described below in conjunction with the accompanying drawings. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0025] At present, traditional watch dial design requires professional firmware engineers to write code and go through a tedious compilation process, which not only sets a technical threshold for watch dial production, but also increases the time cost.

[0026] Based on this, the embodiments of the present invention provide a method, device, electronic device and medium for automatically generating a downloadable watch face, which can simplify the compilation process and improve the efficiency of watch face design.

[0027] To facilitate understanding of this embodiment, a method for automatically generating a downloadable watch face disclosed in an embodiment of the present invention is first introduced in detail, and the method can be executed by an electronic device, such as a smart phone, a computer, a tablet computer, etc. In specific implementation, the method can realize the automation and personalization of the watch face design through the collaborative work of a web page, a web server, an APP, a firmware device, FreeMarker Template Language (FTL), and a template code generation server.

[0028] See also Figure 1 The flowchart of a method for automatically generating a downloadable watch face is shown, indicating that the method mainly includes the following steps S101 to S103:

[0029] Step S101: In response to the user's operation on the watch face designer, the picture, font style and FTL template selected by the user for generating the watch face are obtained.

[0030] In one embodiment, users (engineers, UI designers, and customers, etc.) can operate the watch face designer on the web page to select pictures, font styles, and FTL templates for generating watch faces. Specifically, pictures, font styles, and FTL templates for generating watch faces can be edited, set, and selected by dragging and dropping.

[0031] Step S102: Generate a corresponding watch face json file based on the image and font style.

[0032] In one implementation, after selecting an image and a font style, a corresponding watch face json file may be automatically generated.

[0033] Step S103: compile the watch face json file and the FTL template to generate a downloadable watch face package.

[0034] In one implementation, the watch face json file and the FTL template (which may be multiple templates in this embodiment) are combined to automatically compile and generate a downloadable watch face package for users to download.

[0035] The above-mentioned method of automatically generating a downloadable watch dial provided by an embodiment of the present invention allows users to select pictures, font styles and FTL templates for generating the watch dial, and then automatically compile and generate a downloadable watch dial package through the watch dial designer, which simplifies the compilation process. Users can design personalized watch dials without professional knowledge, thereby improving the efficiency of watch dial design.

[0036] In one embodiment, before obtaining the picture, font style and FTL template selected by the user for generating a watch dial, the above method also includes: obtaining the FTL version, firmware version and compiler version selected by the user, and generating a watch dial designer based on the FTL version, firmware version and compiler version.

[0037] In specific implementation, the user can select the FTL version, firmware version and compiler version on the web page to obtain the watch face designer for the user to design the watch face.

[0038] In one embodiment, for the aforementioned step S102, that is, when generating a corresponding dial json file based on the picture and font style, the following methods can be used, including but not limited to: generating a json package corresponding to the picture and font style through a dial designer, and packaging the json package to obtain a dial json file.

[0039] In specific implementation, after the user selects the configuration image and font style through the web page, the watch face designer can generate a json package in a preset json format, and package the json package to obtain a watch face json file.

[0040] In one implementation, for the aforementioned step S103, that is, when compiling the watch face json file and the FTL template to generate a downloadable watch face package, the following methods may be used, including but not limited to:

[0041] First, input the watch face json file and FTL template into the FTL language server.

[0042] Then, the dial json file and the FTL template are compiled through the FTL language server to generate the dial source code and resource files, and the dial source code and resource files are stored in the dial package format.

[0043] Finally, the watch face package is compiled through the FTL language server to generate a downloadable watch face package in the target format; the target formats include: watch format and zip format.

[0044] In the specific implementation, the user-designed watch face json file package and the FTL template are input into the FTL language server. The FTL language server combines multiple FTL templates and a watch face json file package, compiles and generates the watch face source code and resource files, and stores the compiled change package format; then the generated watch face package is compiled into watch format and zip format for users to download.

[0045] In one implementation, when compiling a watch face package, a fully automated method or a semi-automated method may be used. Specifically, when compiling the watch face package to generate a downloadable watch face package in a target format through an FTL language server, the following two methods are included:

[0046] (1) Based on the firmware device platform batch processing compilation tool, the dial package is automatically batch compiled to obtain a downloadable dial package in the target format.

[0047] In the specific implementation, the dial json file and FTL template are compiled through the FTL language server to generate the dial source code and resource files, and then the dial package is automatically batch compiled through the firmware device platform batch processing compilation tool to obtain a downloadable dial package in the target format.

[0048] (2) Based on the windows batch processing compilation tool on the firmware device side, in response to the user's compilation operation on the dial package, a downloadable dial package in the target format is obtained.

[0049] In the specific implementation, the dial json file and FTL template are compiled through the FTL language server to generate the dial source code and resource files, and then based on the windows batch processing compilation tool on the firmware device side, the dial package is compiled through manual operation by the user to obtain a downloadable dial package in the target format.

[0050] In one embodiment, the above method also includes: previewing the watch face corresponding to the downloadable watch face package; in response to the user's download operation, downloading the downloadable watch face package to the firmware device end, and applying the watch face corresponding to the downloadable watch face package to the wearable device.

[0051] In the specific implementation, the user can preview the watch face effect corresponding to the designed downloadable watch face package on the APP side, and choose to download the designed watch face package; the firmware device side can receive the downloadable watch face package downloaded from the APP side, and apply it to the smart watch or wearable device.

[0052] For ease of understanding, the present invention also provides a process for automatically generating a downloadable watch face. Figure 2 As shown, the user can operate through the web page, select the FTL version, firmware version and compiler version to obtain the web watch face designer (i.e., the watch face designer); then, the user can operate through the web watch face designer, select pictures, font styles, etc., generate the corresponding json package, and package it to generate a watch face compilable package (i.e., the watch face json file); and operate through the web watch face designer, select the corresponding version of the FTL template, and generate the corresponding FTL template code.

[0053] Further, the dial compilable package and the FTL template code are sent to the web and template server (i.e., the FTL language server), and the dial compilable package and the FTL template are compiled by the server to generate the dial source code and resource files. Specifically, the present embodiment includes a fully automatic dial package generation scheme and a semi-automatic dial package generation scheme. Among them, the fully automatic dial package generation scheme includes: compiling the dial compilable package and the FTL template to generate the dial source code and resource files, and automatically batch compiling through the firmware device-side platform batch processing compilation tool (i.e., the firmware-side platform batch processing compilation tool) to obtain a downloadable dial package; the semi-automatic dial package generation scheme includes: compiling the dial compilable package and the FTL template to generate the dial source code and resource files, and manually compiling through the firmware device-side windows batch processing compilation tool (i.e., the firmware-side windows batch processing compilation tool) to obtain a downloadable dial package.

[0054] The above method provided by the embodiment of the present invention provides engineers, UI designers and customers with a convenient dial design tool, which allows them to design personalized dials without professional knowledge, greatly improving design efficiency; at the same time, the compilation process is simplified through automated compilation process.

[0055] Regarding the method for automatically generating a downloadable watch face provided in the above embodiment, the embodiment of the present invention also provides a device for automatically generating a downloadable watch face, see Figure 3 The schematic diagram of the structure of a device for automatically generating a downloadable watch face is shown, indicating that the device mainly includes the following parts:

[0056] A watch face acquisition module 301, for obtaining a picture, a font style and an FTL template selected by a user for generating a watch face in response to a user's operation on the watch face designer;

[0057] A json file generation module 302, used to generate a corresponding watch face json file based on the image and font style;

[0058] The compiling module 303 is used to compile the watch face json file and the FTL template to generate a downloadable watch face package.

[0059] The above-mentioned device for automatically generating downloadable watch dials provided by the embodiment of the present invention allows users to select pictures, font styles and FTL templates for generating watch dials, and then automatically compile and generate downloadable watch dial packages through the watch dial designer, which simplifies the compilation process. Users can design personalized watch dials without professional knowledge, thereby improving the efficiency of watch dial design.

[0060] In one embodiment, the above-mentioned device also includes: a dial designer generation module, which is used to obtain the FTL version, firmware version and compiler version selected by the user, and generate a dial designer based on the FTL version, firmware version and compiler version.

[0061] In one implementation, the json file generation module 302 is specifically used to: generate a json package corresponding to the image and font style through a watch face designer, and package the json package to obtain a watch face json file.

[0062] In one embodiment, the compilation module 303 is specifically used to: input the dial json file and the FTL template into the FTL language server; compile the dial json file and the FTL template through the FTL language server to generate the dial source code and resource files, and store the dial source code and resource files in the dial package format; compile the dial package through the FTL language server to generate a downloadable dial package in the target format; wherein the target format includes: watch format and zip format.

[0063] In one implementation, the compilation module 303 is specifically used to: automatically batch compile the watch face package based on a firmware device platform batch processing compilation tool to obtain a downloadable watch face package in a target format.

[0064] In one embodiment, the compilation module 303 is specifically used to: based on the firmware device-side windows batch processing compilation tool, in response to the user's compilation operation on the watch face package, obtain a downloadable watch face package in a target format.

[0065] In one embodiment, the above-mentioned device also includes: a preview and download module, which is used to: preview the watch face corresponding to the downloadable watch face package; download the downloadable watch face package to the firmware device end in response to the user's download operation, and apply the watch face corresponding to the downloadable watch face package to the wearable device.

[0066] It should be noted that the implementation principle and technical effects of the device provided in the embodiment of the present invention are the same as those of the aforementioned method embodiment. For the sake of brief description, for matters not mentioned in the device embodiment, reference may be made to the corresponding contents in the aforementioned method embodiment.

[0067] An embodiment of the present invention further provides an electronic device. Specifically, the electronic device includes a processor and a storage device. The storage device stores a computer program, and when the computer program is executed by the processor, it executes the method described in any one of the above implementation methods.

[0068] Figure 4A structural diagram of an electronic device provided in an embodiment of the present invention, the electronic device 100 includes: a processor 40, a memory 41, a bus 42 and a communication interface 43, wherein the processor 40, the communication interface 43 and the memory 41 are connected via the bus 42; the processor 40 is used to execute an executable module stored in the memory 41, such as a computer program.

[0069] The memory 41 may include a high-speed random access memory (RAM), and may also include a non-volatile memory, such as at least one disk memory. The communication connection between the system network element and at least one other network element is realized through at least one communication interface 43 (which may be wired or wireless), and the Internet, wide area network, local area network, metropolitan area network, etc. may be used.

[0070] The bus 42 may be an ISA bus, a PCI bus, or an EISA bus, etc. The bus may be divided into an address bus, a data bus, a control bus, etc. For ease of representation, Figure 4 Only one bidirectional arrow is used in the diagram, but this does not mean that there is only one bus or only one type of bus.

[0071] Among them, the memory 41 is used to store programs, and the processor 40 executes the program after receiving the execution instruction. The method executed by the device for flow process definition disclosed in any embodiment of the above-mentioned embodiment of the present invention can be applied to the processor 40 or implemented by the processor 40.

[0072] The processor 40 may be an integrated circuit chip with signal processing capabilities. In the implementation process, each step of the above method can be completed by the hardware integrated logic circuit or software instructions in the processor 40. The above processor 40 can be a general-purpose processor, including a central processing unit (CPU), a network processor (NP), etc.; it can also be a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field-programmable gate array (FPGA), or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components. The methods, steps and logic block diagrams disclosed in the embodiments of the present invention can be implemented or executed. The general-purpose processor can be a microprocessor or the processor can also be any conventional processor. The steps of the method disclosed in the embodiments of the present invention can be directly embodied as a hardware decoding processor to execute, or can be executed by a combination of hardware and software modules in the decoding processor. The software module can be located in a mature storage medium in the field such as a random access memory, a flash memory, a read-only memory, a programmable read-only memory, or an electrically erasable programmable memory, a register, etc. The storage medium is located in the memory 41, and the processor 40 reads the information in the memory 41 and completes the steps of the above method in combination with its hardware.

[0073] The computer program product of the readable storage medium provided in the embodiment of the present invention includes a computer-readable storage medium storing program code, and the instructions included in the program code can be used to execute the methods described in the previous method embodiments. The specific implementation can be referred to the previous method embodiments, which will not be repeated here.

[0074] If the functions are implemented in the form of software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, or the part that contributes to the prior art or the part of the technical solution, can be embodied in the form of a software product. The computer software product is stored in a storage medium, including several instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the methods described in each embodiment of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk, etc., which can store program codes.

[0075] Finally, it should be noted that the above-described embodiments are only specific implementations of the present invention, which are used to illustrate the technical solutions of the present invention, rather than to limit them. The protection scope of the present invention is not limited thereto. Although the present invention is described in detail with reference to the above-mentioned embodiments, ordinary technicians in the field should understand that any technician familiar with the technical field can still modify the technical solutions recorded in the above-mentioned embodiments within the technical scope disclosed by the present invention, or can easily think of changes, or make equivalent replacements for some of the technical features therein; and these modifications, changes or replacements do not make the essence of the corresponding technical solutions deviate from the spirit and scope of the technical solutions of the embodiments of the present invention, and should be included in the protection scope of the present invention. Therefore, the protection scope of the present invention shall be based on the protection scope of the claims.

Claims

1. A method for automatically generating a downloadable watch face, characterized in that: include: In response to a user's operation on the watch face designer, obtaining a picture, a font style, and an FTL template selected by the user for generating a watch face; Generate a corresponding watch face json file based on the picture and the font style; Compile the watch face json file and the FTL template to generate a downloadable watch face package.

2. The method according to claim 1, characterized in that Before obtaining the picture, font style and FTL template selected by the user for generating the dial, the method further includes: The FTL version, firmware version and compiler version selected by the user are obtained, and the watch face designer is generated based on the FTL version, the firmware version and the compiler version.

3. The method according to claim 1, characterized in that Generate a corresponding watch face json file based on the picture and the font style, including: The watch face designer generates a json package corresponding to the image and the font style, and packages the json package to obtain a watch face json file.

4. The method according to claim 1, characterized in that Compile the watch face json file and the FTL template to generate a downloadable watch face package, including: Input the watch face json file and the FTL template into the FTL language server; Compiling the watch face json file and the FTL template to generate a watch face source code and a resource file through the FTL language server, and storing the watch face source code and the resource file in a watch face package format; The watch face package is compiled by the FTL language server to generate a downloadable watch face package in a target format; wherein the target format includes: watch format and zip format.

5. The method according to claim 4, characterized in that Compiling the watch face package through the FTL language server to generate a downloadable watch face package in a target format includes: The watch face package is automatically batch compiled based on a firmware device platform batch processing compilation tool to obtain a downloadable watch face package in a target format.

6. The method according to claim 4, characterized in that The method further comprises: compiling the watch face package through the FTL language server to generate a downloadable watch face package in a target format; Based on the windows batch processing compilation tool on the firmware device side, in response to the user's compilation operation on the watch face package, a downloadable watch face package in a target format is obtained.

7. The method according to claim 1, characterized in that Also includes: Previewing the watch face corresponding to the downloadable watch face package; In response to the download operation of the user, the downloadable watch face package is downloaded to the firmware device end, and the watch face corresponding to the downloadable watch face package is applied to the wearable device.

8. A device for automatically generating a downloadable watch face, characterized in that: include: A watch face acquisition module, configured to obtain, in response to a user's operation on the watch face designer, a picture, a font style and an FTL template selected by the user for generating a watch face; A json file generation module, used to generate a corresponding watch face json file based on the image and the font style; The compiling module is used to compile the watch face json file and the FTL template to generate a downloadable watch face package.

9. An electronic device, characterized in that: The method comprises a processor and a memory, wherein the memory stores computer executable instructions that can be executed by the processor, and the processor executes the computer executable instructions to implement the steps of the method according to any one of claims 1 to 7.

10. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 7 are performed.