Programming animation display method, wearable device and storage medium

By setting up the file mapping generated by the programming operation module and the graphical programming platform in the wearable device, the problem that graphical programming cannot be displayed on the wearable device is solved, and animation display is realized, improving programming experience and device adaptability are improved. .

CN119179479APending Publication Date: 2024-12-24GUANGDONG XIAOTIANCAI TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202310747710.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-06-21
Publication Date
2024-12-24

AI Technical Summary

Technical Problem

Existing graphical programming technologies cannot display programming animations on wearable devices, increasing development difficulty and limiting developers' programming experience.

Method used

Set up a programming operation module in a wearable device, and use the mapping of files and modules generated by the graphical programming platform to realize animation display, support the parsing of hypertext markup language (HTML) files and graphical programming stage, collect target parameters to trigger animation show.

Benefits of technology

It realizes displaying programming animations generated by the graphical programming platform on wearable devices, reducing development difficulty and improving programming experience and device adaptability.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119179479A_ABST
    Figure CN119179479A_ABST
Patent Text Reader

Abstract

The invention discloses a programming animation display method, wearable equipment and a storage medium, and in the programming animation display method, a programming operation module is arranged in the wearable equipment, so that when the wearable equipment obtains a first file obtained by programming on a graphical programming platform, the first file is written into the graphical programming platform; and displaying an animation corresponding to the first file according to the programming operation module and the first file so as to solve the problem that the programming animation cannot be displayed in the wearable device.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The embodiments of the present application relate to programming animation display technology, and relate to but are not limited to a programming animation display method, a wearable device and a storage medium. Background Art

[0002] At present, most embedded development relies on the programming method of text code lines. The above method can accurately and efficiently realize complex program functions and ensure the reliability and rigor of program development. However, the above method requires developers to have high programming knowledge requirements, which increases the difficulty of embedded development. For most developers, they do not need to develop complex programs in daily development, but only need to develop simple programs. For this reason, graphical programming came into being. Graphical programming uses graphical language instead of text code lines. Developers only need to directly operate graphical controls to complete the program development process. However, the existing graphical programming can only run on tablets, computers and mobile phone platforms. For wearable devices, the programming effect of running graphical programming cannot be displayed. Summary of the invention

[0003] In view of this, the programming animation display method, wearable device and storage medium provided in the embodiments of the present application can run the programming file obtained by programming on the graphical programming platform in the wearable device to obtain the display effect of the programming file in the wearable device.

[0004] In a first aspect, an embodiment of the present application provides a programming animation display method, which is applied to a wearable device, wherein the wearable device includes a programming and running module, and the method includes: obtaining a first file, wherein the first file is obtained by programming on a graphical programming platform, and the first file has a mapping relationship with the programming and running module; according to the programming and running module and the first file, displaying an animation corresponding to the first file.

[0005] In the above-mentioned programming animation display method, a programming running module is set in the wearable device, so that when the wearable device obtains a first file obtained by programming on a graphical programming platform, an animation corresponding to the first file is displayed according to the programming running module and the first file, so as to solve the problem that the programming animation cannot be displayed in the wearable device.

[0006] In some embodiments, the first file is a programming file, the programming execution module is a graphical programming stage, and displaying an animation corresponding to the first file based on the programming execution module and the first file includes: running the first file through the graphical programming stage to display an animation corresponding to the first file.

[0007] In some embodiments, the first file is a hypertext markup language HTML file, the programming execution module is a browser, and displaying an animation corresponding to the first file based on the programming execution module and the first file includes: parsing the first file through the browser and displaying an animation corresponding to the first file.

[0008] In some embodiments, the first file is obtained by programming the target parameters of the target components included in the wearable device on the graphical programming platform, and displaying the animation corresponding to the first file according to the first file includes: collecting the target parameters when parsing the first file through the programming operation module; when the target parameters meet the trigger conditions corresponding to the target parameters in the first file, displaying the target animation corresponding to the trigger conditions.

[0009] In some embodiments, before displaying the animation corresponding to the first file according to the programming execution module and the first file, the method further includes: obtaining a start instruction, wherein the start instruction is obtained according to the operation of the user on the wearable device, or the start instruction is sent by the graphical programming platform, and the start instruction is used to execute the step of displaying the animation corresponding to the first file.

[0010] In a second aspect, an embodiment of the present application provides a programming animation display method, which is applied to a graphical programming platform. The method includes: programming according to the programming operation on the graphical programming platform to obtain a first file; sending the first file to a wearable device so that after obtaining the first file, the wearable device displays an animation corresponding to the first file according to a programming operation module and the first file.

[0011] In some embodiments, the graphical programming platform includes at least one parameter corresponding to at least one component of the wearable device, and programming is performed according to the programming operation on the graphical programming platform to obtain a first file, including: determining target parameters of the target component for programming, the target component is any one or more of the at least one component, and the target parameter is one or more of the at least one parameter; programming the target parameters of the target component to obtain the first file.

[0012] In some embodiments, programming the target parameters of the target component to obtain the first file includes: determining a target programming module corresponding to the target parameters of the target component from a building block area of ​​the graphical programming platform, the building block area including at least one programming module, each programming module corresponding to a parameter of one component of the at least one component; moving the target programming module to a script area of ​​the graphical programming platform, the script area including all programming modules to be programmed; and programming all programming modules in the script area to obtain the first file.

[0013] In some embodiments, the building block area includes at least one programming module which is a programming module corresponding to a component that is located before a preset ranking after the graphical programming platform sorts the at least two components in descending order according to the number of historical programming usages.

[0014] In some embodiments, the first file is a programming file or a Hypertext Markup Language HTML file.

[0015] In a third aspect, an embodiment of the present application provides a wearable device, the wearable device includes a programming and running module, wherein the wearable device also includes: a file acquisition module, used to obtain a first file, the first file is obtained by programming on a graphical programming platform, and the first file has a mapping relationship with the programming and running module; an animation display module, used to display an animation corresponding to the first file according to the programming and running module and the first file.

[0016] In a fourth aspect, an embodiment of the present application provides a programming animation display system, wherein the programming animation display system comprises: a graphical programming platform, for performing programming according to programming operations on the graphical programming platform to obtain a first file; sending the first file to a wearable device; a wearable device, for obtaining the first file; and displaying an animation corresponding to the first file according to a programming execution module and the first file included in the wearable device, wherein the first file has a mapping relationship with the programming execution module.

[0017] In a fifth aspect, a computer device provided in an embodiment of the present application includes a memory and a processor, wherein the memory stores a computer program that can be executed on the processor, and when the processor executes the program, the method described in the embodiment of the present application is implemented.

[0018] In a sixth aspect, the computer-readable storage medium provided in the embodiments of the present application has a computer program stored thereon, and when the computer program is executed by a processor, the method provided in the embodiments of the present application is implemented.

[0019] It should be understood that the second to sixth aspects of the embodiments of the present application are consistent with the technical solutions of the first aspect of the embodiments of the present application, and the beneficial effects achieved by each aspect and the corresponding feasible implementation methods are similar and will not be repeated here. BRIEF DESCRIPTION OF THE DRAWINGS

[0020] The drawings herein are incorporated into the specification and constitute a part of the specification. These drawings illustrate embodiments consistent with the present application and are used together with the specification to illustrate the technical solution of the present application.

[0021] Figure 1 A schematic diagram of the structure of a programming animation display system provided in an embodiment of the present application;

[0022] Figure 2 A schematic diagram of a flow chart of a programming animation display method provided in an embodiment of the present application;

[0023] Figure 3 A schematic diagram of the structure of the graphical programming platform provided in the embodiment of the present application;

[0024] Figure 4 A schematic diagram of a flow chart of a programming animation display method provided in an embodiment of the present application;

[0025] Figure 5 A schematic diagram of the interface of the graphical programming platform provided in the embodiment of the present application;

[0026] Figure 6 A schematic diagram of a flow chart of a programming animation display method provided in an embodiment of the present application;

[0027] Fig. 7A One of the implementation interface diagrams of the graphical programming platform provided in the embodiment of the present application;

[0028] Figure 7B The second schematic diagram of the implementation interface of the graphical programming platform provided in the embodiment of the present application;

[0029] Figure 7C The third schematic diagram of the implementation interface of the graphical programming platform provided in the embodiment of the present application;

[0030] Fig.7D A fourth schematic diagram of the implementation interface of the graphical programming platform provided in the embodiment of the present application;

[0031] Figure 8 A schematic diagram of a flow chart of a programming animation display method provided in an embodiment of the present application;

[0032] Fig. 9 A schematic diagram of the structure of a wearable device provided in an embodiment of the present application;

[0033] Fig.10A schematic diagram of the structure of a computer device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0034] In order to make the purpose, technical solution and advantages of the embodiments of the present application clearer, the specific technical solution of the present application will be further described in detail below in conjunction with the drawings in the embodiments of the present application. The following embodiments are used to illustrate the present application, but are not used to limit the scope of the present application.

[0035] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as those commonly understood by those skilled in the art to which this application belongs. The terms used herein are only for the purpose of describing the embodiments of this application and are not intended to limit this application.

[0036] In the following description, reference is made to “some embodiments”, which describe a subset of all possible embodiments, but it will be understood that “some embodiments” may be the same subset or different subsets of all possible embodiments and may be combined with each other without conflict.

[0037] It should be pointed out that the terms "first\second\third" involved in the embodiments of the present application are used to distinguish similar or different objects, and do not represent a specific ordering of the objects. It can be understood that "first\second\third" can be interchanged in a specific order or sequence where permitted, so that the embodiments of the present application described here can be implemented in an order other than that illustrated or described here.

[0038] Figure 1 This is a schematic diagram of the structure of a programming animation display system provided in an embodiment of the present application. Figure 1 As shown, the programming animation display system includes a graphical programming platform 10 and a wearable device 20, and the graphical programming platform 10 is connected to the wearable device 20. The graphical programming platform 10 is used to output programming files, and a programming running module corresponding to the programming file is installed on the wearable device 20 to run the programming file through the programming running module and display the animation corresponding to the programming file.

[0039] Optionally, the graphical programming platform 10 and the wearable device 20 may be connected wirelessly or by wire. The wireless connection may be Bluetooth, wireless LAN, etc., and the wired connection may be a serial port connection, etc.

[0040] Optionally, a server may be connected between the graphical programming platform 10 and the wearable device 20. The graphical programming platform 10 sends the programming file to the server for storage, and the wearable device 20 obtains the programming file in the server by sending a download instruction.

[0041] Optionally, the graphical programming platform 10 can be run in an electronic device, which can be various types of devices with information processing capabilities during implementation. For example, the electronic device can include a personal computer, a laptop, a PDA or a server, etc.; the electronic device can also be a mobile terminal, such as a mobile phone, a car computer, a tablet computer or a projector, etc. The function implemented by the method can be implemented by calling the program code by the processor in the electronic device, and of course the program code can be stored in a computer storage medium. It can be seen that the electronic device at least includes a processor and a storage medium.

[0042] Figure 2 A flowchart of a programming animation display method provided in an embodiment of the present application, which is applied to Figure 1 The programming animation display system shown in FIG. Figure 2 As shown, the method may include the following steps:

[0043] Step S101: The graphical programming platform performs programming according to programming operations on the graphical programming platform to obtain a first file.

[0044] Step S102: The graphical programming platform sends a first file to the wearable device, so that after obtaining the first file, the wearable device displays an animation corresponding to the first file according to the programming operation module and the first file.

[0045] Step S103: the wearable device obtains a first file, and the first file has a mapping relationship with a programming and running module of the wearable device.

[0046] Step S104: the wearable device displays an animation corresponding to the first file according to the programming operation module and the first file.

[0047] Among them, the graphical programming platform in the prior art includes a basic function storage module, a basic algorithm function module, an operation module and an integrated development module. The basic function storage module is connected to the basic algorithm function module, and the integrated development module is connected to the basic function storage module, the basic algorithm storage module and the operation module respectively. Among them, the basic function storage module is used to store basic graphical function blocks; the basic algorithm function module is used to store basic algorithm function blocks; the operation module is used to compile and run the graphical programming platform under a compilation environment; the integrated development module is used to generate instructions according to files and make programming files. However, the basic graphical function blocks in the basic function storage module in the prior art do not include the function of setting the component parameters for wearable devices, that is, it is impossible to encapsulate the basic functions for the hardware functions of wearable devices, so the graphical programming platform in the prior art cannot be programmed for wearable devices.

[0048] In the present application, the basic algorithm function module of the graphical programming platform includes a function submodule for encapsulating the basic functions of the hardware functions of the wearable device, so as to encapsulate the basic functions of the hardware functions of the wearable device and form a programming file that can display the corresponding animation on the wearable device. For example, the basic algorithm function module includes one or more of the display function submodule, the sensor function submodule, the camera function submodule and the motor function submodule, such as Figure 3 As shown. The display function submodule is used to store display parameters such as display size and resolution of the wearable device; the sensor function submodule is used to store the setting parameters of at least one sensor component of the wearable device, and the at least one sensor component includes a gyroscope, a gravity sensor, etc., and the setting parameters of at least one sensor component are such as the sensing parameters of the gravity meter of the wearable device in the X, Y and Z axis directions, or the sensing parameters of the accelerometer of the wearable device in the X, Y and Z axis directions; the camera function submodule is used to store the setting parameters of at least one camera component of the wearable device, such as the functions of the wearable device such as taking pictures, starting recording, and stopping recording; the motor function submodule is used to store the setting parameters of at least one motor component of the wearable device, such as vibration amplitude, vibration time, etc. Then, the graphical programming platform can call one or more of the display function submodule, sensor function submodule, camera function submodule and motor function setting submodule of the basic algorithm function module to encapsulate the basic functions for the hardware functions of the wearable device, and form a programming file that can display the corresponding animation on the wearable device.

[0049] For example, taking the Scratch platform as a graphical programming platform, the display function sub-module, sensor function sub-module, camera function sub-module and motor function setting sub-module of the wearable device are encapsulated in a data package, such as the TensorFlow.js library. By adding the TensorFlow.js library to the Scratch platform and importing the TensorFlow.js library in the basic algorithm function module of the Scratch platform, all APIs of TensorFlow.js can be called in the basic algorithm function module for encapsulation operations.

[0050] Optionally, the integrated development module may include a device connection module and a simulation module, wherein the device connection module is used to realize the connection state with the wearable device, and the simulation module is used to perform simulation according to the generated programming file. The simulation module stores the component parameters of the wearable device, so as to realize the simulation of the wearable device by changing the parameter values ​​of the hardware parameters.

[0051] Optionally, the device connection module may include a serial port submodule, a WiFi submodule, and a Bluetooth submodule. The serial port submodule provides a serial port connection function, and the wearable device can be connected to the serial port to programmatically control the wearable device; the WiFi submodule provides a WiFi connection function, and communicates with some wearable devices with WiFi connection function by connecting to the same WiFi network to realize programmatic control of the wearable device; the Bluetooth submodule provides a Bluetooth connection function, and controls the wearable device by connecting to a wearable device with Bluetooth function.

[0052] Optionally, the above-mentioned graphical programming platform may also include an extended function module and an extended function storage module, which are respectively connected to the integrated development module. The extended function module is used to encapsulate the function blocks in the basic algorithm function module into extended function blocks to realize the extended function application of wearable devices, such as splicing the function blocks in multiple basic algorithm function modules together to form an extended function that realizes additional functions; the extended function storage module is used to store the extended function blocks for the graphical programming platform to call.

[0053] In some embodiments, the basic algorithm module may include a neural network and a reinforcement learning algorithm, the neural network includes at least one of a feedforward neural network, a recurrent neural network, and a convolutional neural network; the reinforcement learning algorithm includes at least one of a PPO algorithm, a SAC algorithm, and a RARL algorithm. Correspondingly, the extended function module includes a TensorFlow unit, an OpenAI Gym unit, and an assembly unit. Among them, the TensorFlow unit is used to encapsulate the above-mentioned neural network module and the first variable parameter obtained into a neural network function block, and the first variable parameter includes the network type, the number of input layer nodes, the number of hidden layer layers, the number of hidden layer nodes, the number of output layer nodes, the learning rate, the activation function, the loss function, etc., wherein the first variable parameter specifically includes which items, depending on the type of neural network function block to be encapsulated. The OpenAI Gym unit is used to encapsulate the above-mentioned reinforcement learning algorithm and the second variable parameter obtained into a reinforcement learning function block, and the second variable parameter includes the algorithm type, the reward function, and the value function, and the second variable parameter specifically includes which items, also depending on the type of reinforcement learning function block to be encapsulated. The assembly unit is used to assemble the reinforcement learning function block and the neural network function block into the extended function block, and the extended function block is used to realize the corresponding functions, including the tracking and positioning of wearable devices, environmental perception, multi-device linkage, etc., and it can be understood that for different functions, their implementation is realized by combining different reinforcement learning function blocks and neural network function blocks.

[0054] Optionally, the wearable device may receive the first file through an existing connection device, such as a serial port, WiFi, Bluetooth, etc., or may add an additional communication connection device at the same time as the graphical programming platform to realize connection with the graphical programming platform.

[0055] Optionally, the wearable device can parse the first file through the above-mentioned programming and running module. The above-mentioned programming and running module can be an original application module of the wearable device, or it can be a special application module for the wearable device to perform stage operation on a graphical programming platform. The specific design can be based on demand and this application does not impose any restrictions.

[0056] The above-mentioned dedicated application module includes a parsing module and a running module corresponding to the integrated development module of the graphical programming platform, the parsing module is used to parse and obtain the animation content of the first file, and the running module is used to display the animation content of the first file according to the system parameters of the wearable device. The above-mentioned original application module includes a parsing module to parse and obtain the animation content of the first file, and feed back the system parameters of the wearable device to a third-party server, the third-party server includes a running module to display the animation content of the first file on the third-party server, and synchronize the animation content of the first file to the original application module, so as to achieve the display effect of displaying the animation content of the first file on the wearable device.

[0057] In some embodiments, the first file may be a programming file, and accordingly, the programming and running module may be a graphical programming stage, and the animation corresponding to the first file may be displayed by parsing and running the first file through the graphical programming stage, and displaying the animation corresponding to the first file. The graphical programming stage includes the parsing module and the running module, and after the wearable device obtains the first file, the graphical programming stage may be clicked to activate the parsing module and the running module, and the animation content of the first file may be displayed on the display screen of the wearable device.

[0058] Exemplarily, after the wearable device obtains the first file, a prompt box may pop up to prompt the user to receive the first file. After detecting that the user clicks on the application icon of the graphical programming stage, the graphical programming stage is run. After receiving the identifier of the first file to be run, the first file is parsed to obtain the animation content of the first file, and the animation content of the first file is displayed at the display size of the wearable device through the running module of the graphical programming stage.

[0059] In some embodiments, the first file may be a hypertext markup language HTML file, and accordingly, the programming and running module is a browser, and the animation corresponding to the first file is displayed by parsing the first file through the browser and displaying the animation corresponding to the first file. Wherein, the graphical programming stage includes the parsing module, and after the wearable device obtains the first file, the webpage link contained in the HTML file can be opened through the built-in browser of the wearable device to send a running request to the third-party server, so that the third-party server displays the animation content of the first file in the display size of the wearable device, and synchronizes the displayed content to the wearable device.

[0060] Exemplarily, after the wearable device obtains the first file, the user clicks on the first file and can run the first file through the browser to obtain the destination address of the animation corresponding to the first file, and send a display request including the display parameters of the wearable device to the destination address. After receiving the feedback request result from the destination address, the animation content received from the destination address is displayed, wherein the destination address corresponds to a third-party server. After receiving the display request, the third-party server obtains the display parameters of the wearable device, displays the animation content of the first file according to the display parameters of the wearable device, and synchronizes the displayed animation content to the wearable device.

[0061] In the above-mentioned programming animation display method, a programming running module is set in the wearable device, so that when the wearable device obtains a first file obtained by programming on a graphical programming platform, an animation corresponding to the first file is displayed according to the programming running module and the first file, so as to solve the problem that the programming animation cannot be displayed in the wearable device.

[0062] Figure 4 A flowchart of a programming animation display method provided in an embodiment of the present application. Figure 4 As shown, the method may include the following steps:

[0063] Step S201: The graphical programming platform performs programming according to programming operations on the graphical programming platform to obtain a first file.

[0064] Step S202: The graphical programming platform sends a first file to the wearable device, so that after obtaining the first file, the wearable device displays an animation corresponding to the first file according to the programming operation module and the first file.

[0065] Step S203: The wearable device obtains a first file, and the first file has a mapping relationship with a programming and running module of the wearable device.

[0066] It should be noted that the execution method of the above steps S201 to S203 may be consistent with the execution method of the above steps S101 to S103, which will not be repeated here.

[0067] Step S204: The wearable device obtains a startup instruction, where the startup instruction is used to execute a step of displaying an animation corresponding to the first file.

[0068] Optionally, the above-mentioned start instruction may be generated by a preset trigger operation of the user on the wearable device and / or a target wearing state of the wearable device.

[0069] Exemplarily, the above-mentioned start instruction can be generated in response to a trigger operation on a start trigger control, wherein the start trigger control is a control on the display interface of the wearable device for triggering the generation of the start instruction. After the user at the wearable device triggers the start trigger control, the wearable device can generate a start instruction accordingly.

[0070] Exemplarily, the above-mentioned start instruction can also be generated in response to an operation instruction for a start trigger button, wherein the start trigger button is any one or more physical buttons of the wearable device. In some embodiments, the above-mentioned operation instruction for the start trigger button may include the key pressing duration. For example, the start instruction will be generated only after the user presses the start trigger button for a specific time to avoid accidental touch; the above-mentioned start instruction can also be generated by triggering sliding, such as swiping up, down, left or right in any interface in the bright screen state; the above-mentioned start instruction can also be a start trigger action triggered by the user, wherein the start trigger action is an operation in which the user carries the wearable device to change the motion state of the wearable device to trigger the start. For example, when the user wants to generate the start information, the wearable device originally worn on the wrist is taken off to make the wearable device separate from the user's body part, thereby triggering the wearable device to generate a start instruction.

[0071] Optionally, the above-mentioned start instruction can also be sent by a graphical programming platform. For example, after obtaining and parsing the first file, the wearable device sends a parsing instruction to the graphical programming platform to prompt the graphical programming platform that the first file at the wearable device has been parsed, thereby displaying a prompt message to prompt the user to click the start control at the graphical programming platform to generate a start instruction, and feedback the start instruction to the wearable device so that the wearable device starts to display the animation content of the first file in response to the start instruction.

[0072] Step S205: The wearable device displays an animation corresponding to the first file according to the programming operation module and the first file.

[0073] It should be noted that the execution method of the above step S205 can be consistent with the execution method of the above step S104, which will not be repeated here.

[0074] In the above-mentioned programming animation display method, a start instruction is set to start the display step of the programming animation, so as to realize the interactive experience of the user when the wearable device runs the programming animation, thereby improving the device adaptability of the programming animation.

[0075] Figure 5 The following is a schematic diagram of an interface of a graphical programming platform provided in an embodiment of the present application. Figure 5 As shown, the graphical programming platform includes a stage area, a building block area and a script area. The stage area includes an animation preview window A, a programming object selection window B and a programming object display parameter setting window C. The animation preview window A is used to preview the animation content of the programming file, the programming object selection window B is used to select one of the multiple programming objects as the target object of the animation content, such as a windmill blade and a windmill body, and the programming object display parameter setting window C is used to set display parameters for the target object, such as the size of the target object, the coordinates and direction of placement, etc. The building block area is used to display all programming contents of the graphical programming platform, and the programming content is used to add motion parameters and trigger conditions to the programming object to form an animation content in which the programming object moves according to the motion parameters. The script area is used to determine the target programming content from the building block area to add programming content to the target object, thereby forming a first file.

[0076] Figure 6 A flowchart of a programming animation display method provided in an embodiment of the present application. Figure 6 As shown, the method may include the following steps:

[0077] In step S301, the graphical programming platform determines target parameters of a target component for programming, where the target component is any one or more of at least one component, and the target parameter is any one or more of at least one parameter.

[0078] Step S302: The graphical programming platform programs the target parameters of the target component to obtain a first file.

[0079] Step S303: the graphical programming platform sends the first file to the wearable device, so that after obtaining the first file, the wearable device displays an animation corresponding to the first file according to the programming operation module and the first file.

[0080] Step S304: the wearable device obtains a first file, and the first file has a mapping relationship with a programming and running module of the wearable device.

[0081] Step S305, the wearable device collects target parameters when parsing the first file through the programming operation module, and the first file is obtained by programming the target parameters of the target components included in the wearable device on the graphical programming platform.

[0082] Step S306: When the target parameter satisfies the trigger condition corresponding to the target parameter in the first file, the wearable device displays the target animation corresponding to the trigger condition.

[0083] It should be understood that the above-mentioned target parameters are parameters set by the wearable device for the target component. For example, for the gravimeter component of the wearable device, the target parameter can be the parameter value of the gravimeter in the X-axis direction, or the parameter value of the gravimeter in the Y-axis direction, etc., to distinguish the different output values ​​of the target component. The specific settings can be made as needed, and this application does not impose any restrictions.

[0084] When the wearable device parses and obtains the animation content of the first file, it can also obtain the trigger condition of the animation content. The trigger condition is a specific parameter value of the target parameter of the target component. When the wearable device detects that the parameter value of the target component of the target component is the specific parameter value corresponding to the trigger condition, it is determined that the animation content of the first file can be triggered to display at this time to display the animation content of the first file.

[0085] Exemplarily, after the wearable device obtains the first file, the first file is parsed and run through the graphical programming stage to obtain the animation content of the first file and the corresponding trigger condition. In this embodiment, the trigger condition is that the acceleration generates the parameter value of the X vector in the X-axis direction. When the wearable device detects that the acceleration generates the parameter value of the X vector in the X-axis direction, it is determined that the display of the animation content is triggered at this time to display the animation content on the display screen.

[0086] Optionally, the target parameter in the above step S301 may be determined by detecting a selection operation of the user and determining a parameter corresponding to the selection operation as the target parameter.

[0087] Exemplarily, the building block area includes parameters of all components of the wearable device, such as the X-axis direction parameter of the gravimeter, the Y-axis direction parameter of the gravimeter, the X-axis direction parameter of the acceleration, the Y-axis direction parameter of the acceleration, etc. When it is detected that the user drags and drops a building block corresponding to a certain parameter, the parameter corresponding to the building block can be determined as the target parameter.

[0088] Optionally, the above step S302 may include:

[0089] Step S3021, determining a target programming module corresponding to a target parameter of a target component from a building block area of ​​a graphical programming platform, wherein the building block area includes at least one programming module, and each programming module corresponds to a parameter of one component of at least one component;

[0090] Step S3022, moving the target programming module to the script area of ​​the graphical programming platform, the script area including all programming modules to be programmed;

[0091] Step S3023, programming all programming modules in the script area to obtain a first file.

[0092] It should be understood that the programming modules in the building block area include parameters of all programmable components of the wearable device, for example, the X-axis direction parameters of the force meter, the Y-axis direction parameters of the gravimeter, the X-axis direction parameters of the acceleration, the Y-axis direction parameters of the acceleration, etc.

[0093] Optionally, the script area has a fixed size, and the user can view the programming module by sliding the script area up and down. In some embodiments, if the drag and drop position of the programming module exceeds the script area, it is prompted that the programming module fails to be added.

[0094] Optionally, at least one programming module included in the above-mentioned building block area is a programming module corresponding to a component located before a preset ranking after the graphical programming platform sorts the at least two components from large to small according to the number of historical programming usages.

[0095] After programming the components of the wearable device each time, the number of times the components are used in the programming can be recorded in the historical programming usage times. When programming the wearable device next time, some components with a large number of programming usage times in the historical programming usage times can be displayed in the building block area to avoid displaying the parameters of all components every time programming, reduce the user's component parameter review steps, and improve the user's programming efficiency.

[0096] In the above-mentioned programming animation display method, the parameters of the target components of the wearable device are programmed by setting the graphical programming platform to obtain a first file, so that the graphical programming platform can specifically add animation trigger conditions to improve the programming adaptability to the wearable device.

[0097] Figures 7A to 7D This is a schematic diagram of an interface of a graphical programming platform provided in an embodiment of the present application. Taking a watch as an example, in the building block area of ​​the graphical programming platform, you can click the add button, such as Fig. 7A As shown, find and click the "Genius Watch" hardware in the additional extended hardware, such as Figure 7B As shown, you can now directly find the hardware label of "Genius Watch" in the building block area, such as Figure 7C As shown, in the hardware tab of the "Genius Watch", you can see the setting blocks for the gravimeter, acceleration, angular velocity, volume intensity, vibration, and shooting. Select the volume intensity block and drag it to the script area, so as to program the volume intensity block in the script area to form the first file.

[0098] Taking a wearable device as a watch as an example, the following will illustrate an exemplary application of an embodiment of the present application in an actual application scenario.

[0099] Figure 8 A flowchart of a programming animation display method provided in an embodiment of the present application. Figure 8 As shown, the method comprises the following steps:

[0100] 1. In the graphical programming platform, when programming a watch for the first time, add the target module of the watch in the building block area;

[0101] 2. Click the Watch target module in the block area, and select the target block named Gravity Meter in the Watch target module;

[0102] 3. Drag the target block named Gravity Meter to the script area;

[0103] 4. Select the animation execution object in the stage area of ​​the graphical programming platform, such as a windmill;

[0104] 5. Edit the target block of the gravimeter in the script area and set the target parameters of the target block. For example, the gravimeter recognizes that the X-axis runs for 2 seconds;

[0105] 6. Set the windmill's motion parameters in the script area, such as turning left for 2 seconds, turning right for 2 seconds, etc.;

[0106] 7. Complete the editing of the target blocks and windmill motion parameters in the script area and generate programming files;

[0107] 8. Send the programming file to the server for storage;

[0108] 9. The watch sends a download command to the server to download the programming file from the server;

[0109] 10. The watch runs the programming file through the built-in programming stage of the watch;

[0110] 11. When the watch detects that the X-axis movement continues for 2 seconds through the gravimeter, the windmill movement is executed according to the movement parameters of the windmill.

[0111] It should be understood that although Figure 1-Figure 8 The steps in the flowchart are shown in sequence as indicated by the arrows, but these steps are not necessarily executed in the order indicated by the arrows. Unless otherwise specified in this document, there is no strict order restriction for the execution of these steps, and these steps can be executed in other orders. Moreover, Figure 1-Figure 8At least part of the steps may include multiple sub-steps or multiple stages. These sub-steps or stages are not necessarily executed at the same time, but can be executed at different times. The execution order of these sub-steps or stages is not necessarily sequential, but can be executed in turn or alternately with other steps or at least part of the sub-steps or stages of other steps.

[0112] Based on the foregoing embodiments, the embodiments of the present application provide a wearable device, which includes the modules included and the units included in the modules, which can be implemented by a processor; of course, it can also be implemented by a specific logic circuit; in the implementation process, the processor can be a central processing unit (CPU), a microprocessor (MPU), a digital signal processor (DSP) or a field programmable gate array (FPGA), etc.

[0113] Fig. 9 A structural diagram of a wearable device provided in an embodiment of the present application is shown in FIG. Fig. 9 As shown, the wearable device 20 includes a programming and running module 203, a file obtaining module 201 and an animation display module 202, wherein:

[0114] A file acquisition module 201 is used to acquire a first file, the first file is acquired by programming on a graphical programming platform, and the first file has a mapping relationship with the programming and running module 203;

[0115] The animation display module 202 is used to display the animation corresponding to the first file according to the programming operation module 203 and the first file.

[0116] In one implementation manner, the first file is a programming file, and the programming execution module 203 is a graphical programming stage. Accordingly, the animation display module 202 may include:

[0117] The first running submodule is used to run the first file through the graphical programming stage and display the animation corresponding to the first file.

[0118] In one implementation manner, the hypertext markup language HTML file, the programming and running module 203 is a browser, and accordingly, the animation display module 202 may include:

[0119] The second running submodule is used to parse the first file through a browser and display the animation corresponding to the first file.

[0120] In one implementation manner, the first file is obtained by programming target parameters of a target component included in the wearable device on a graphical programming platform. Accordingly, the animation display module 202 may include:

[0121] A parameter collection submodule, used for collecting target parameters when the first file is run by the programming running module 203;

[0122] The animation display submodule is used to display the target animation corresponding to the trigger condition when the target parameter meets the trigger condition corresponding to the target parameter in the first file.

[0123] In one embodiment, the wearable device may further include:

[0124] A start instruction is obtained, where the start instruction is obtained according to an operation performed by a user on the wearable device, or the start instruction is sent by a graphical programming platform, and the start instruction is used to execute a step of displaying an animation corresponding to the first file.

[0125] The description of the above device embodiment is similar to the description of the above method embodiment, and has similar beneficial effects as the method embodiment. For technical details not disclosed in the device embodiment of the present application, please refer to the description of the method embodiment of the present application for understanding.

[0126] It should be noted that in the embodiments of this application Fig. 9 The division of modules in the wearable device shown is schematic and is only a logical functional division. There may be other division methods in actual implementation. In addition, each functional unit in each embodiment of the present application can be integrated into a processing unit, or it can exist physically separately, or two or more units can be integrated into one unit. The above-mentioned integrated unit can be implemented in the form of hardware or in the form of software functional units. It can also be implemented in the form of a combination of software and hardware.

[0127] It should be noted that in the embodiment of the present application, if the above method is implemented in the form of a software function module and sold or used as an independent product, it can also be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the embodiment of the present application can be essentially or partly reflected in the form of a software product, which is stored in a storage medium and includes several instructions to enable the wearable device to execute all or part of the methods described in each embodiment of the present application. The aforementioned storage medium includes: various media that can store program codes, such as a U disk, a mobile hard disk, a read-only memory (ROM), a disk or an optical disk. In this way, the embodiment of the present application is not limited to any specific combination of hardware and software.

[0128] The embodiment of the present application provides a computer device, which may be a server, and its internal structure diagram may be as follows: Fig.10As shown. The computer device includes a processor, a memory and a network interface connected through a system bus. Among them, the processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program and a database. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The database of the computer device is used to store data. The network interface of the computer device is used to communicate with an external terminal through a network connection. When the computer program is executed by the processor, a programming animation display method is implemented.

[0129] An embodiment of the present application provides a computer-readable storage medium on which a computer program is stored. When the computer program is executed by a processor, the steps in the method provided in the above embodiment are implemented.

[0130] An embodiment of the present application provides a computer program product including instructions, which, when executed on a computer, enables the computer to execute the steps of the method provided in the above method embodiment.

[0131] Those skilled in the art will understand that Fig.10 The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.

[0132] In one embodiment, the electronic device provided by the present application can be implemented in the form of a computer program, which can be used in Fig.10 The computer device shown in the figure can be run. The memory of the computer device can store various program modules constituting the sampling device. The computer program composed of various program modules enables the processor to execute the steps of the programming animation display method of various embodiments of the present application described in this specification.

[0133] In one embodiment, a computer device is provided, including a memory and a processor, wherein the memory stores a computer program, and the processor implements the above-mentioned programming animation display method when executing the computer program.

[0134] In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the above-mentioned programming animation display method is implemented.

[0135] It should be noted here that the description of the above storage medium and device embodiments is similar to the description of the above method embodiments, and has similar beneficial effects as the method embodiments. For technical details not disclosed in the storage medium, storage medium and device embodiments of this application, please refer to the description of the method embodiments of this application for understanding.

[0136] It should be understood that "one embodiment" or "an embodiment" or "some embodiments" mentioned throughout the specification means that specific features, structures or characteristics related to the embodiment are included in at least one embodiment of the present application. Therefore, "in one embodiment" or "in one embodiment" or "in some embodiments" appearing throughout the specification may not necessarily refer to the same embodiment. In addition, these specific features, structures or characteristics can be combined in one or more embodiments in any suitable manner. It should be understood that in various embodiments of the present application, the size of the sequence number of the above-mentioned processes does not mean the order of execution, and the execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiment of the present application. The above-mentioned sequence numbers of the embodiments of the present application are only for description and do not represent the advantages and disadvantages of the embodiments. The above description of each embodiment tends to emphasize the differences between the various embodiments, and the same or similar aspects can be referenced to each other. For the sake of brevity, this article will not repeat them.

[0137] The term "and / or" in this article is only a description of the association relationship of associated objects, indicating that there may be three relationships. For example, object A and / or object B can represent three situations: object A exists alone, object A and object B exist at the same time, and object B exists alone.

[0138] It should be noted that, in this article, the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, an element defined by the sentence "comprises a ..." does not exclude the existence of other identical elements in the process, method, article or device including the element.

[0139] In the several embodiments provided in the present application, it should be understood that the disclosed devices and methods can be implemented in other ways. The embodiments described above are only schematic. For example, the division of the modules is only a logical function division. There may be other division methods in actual implementation, such as: multiple modules or components can be combined, or can be integrated into another system, or some features can be ignored, or not executed. In addition, the coupling, direct coupling, or communication connection between the components shown or discussed can be through some interfaces, and the indirect coupling or communication connection of devices or modules can be electrical, mechanical or other forms.

[0140] The modules described above as separate components may or may not be physically separated, and the components displayed as modules may or may not be physical modules; they may be located in one place or distributed on multiple network units; some or all of the modules may be selected according to actual needs to achieve the purpose of the present embodiment.

[0141] In addition, all functional modules in the embodiments of the present application may be integrated into one processing unit, or each module may be a separate unit, or two or more modules may be integrated into one unit; the above-mentioned integrated modules may be implemented in the form of hardware or in the form of hardware plus software functional units.

[0142] A person skilled in the art can understand that all or part of the steps of implementing the above method embodiment can be completed by hardware related to program instructions, and the aforementioned program can be stored in a computer-readable storage medium. When the program is executed, it executes the steps of the above method embodiment; and the aforementioned storage medium includes: mobile storage devices, read-only memories (ROM), magnetic disks or optical disks, etc., various media that can store program codes.

[0143] Alternatively, if the above-mentioned integrated unit of the present application is implemented in the form of a software function module and sold or used as an independent product, it can also be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the embodiment of the present application can essentially or in other words, the part that contributes to the relevant technology can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions for enabling an electronic device to execute all or part of the methods described in each embodiment of the present application. The aforementioned storage medium includes: various media that can store program codes, such as mobile storage devices, ROMs, magnetic disks, or optical disks.

[0144] The methods disclosed in several method embodiments provided in this application can be arbitrarily combined without conflict to obtain new method embodiments.

[0145] The features disclosed in several product embodiments provided in this application can be arbitrarily combined without conflict to obtain new product embodiments.

[0146] The features disclosed in several method or device embodiments provided in this application can be arbitrarily combined without conflict to obtain new method embodiments or device embodiments.

[0147] The above is only an implementation method of the present application, but the protection scope of the present application is not limited thereto. Any person skilled in the art who is familiar with the present technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.

Claims

1. A programming animation display method, characterized in that: Applied to a wearable device, the wearable device includes a programming and running module, and the method includes: Obtaining a first file, wherein the first file is obtained by programming on a graphical programming platform, and the first file has a mapping relationship with the programming and running module; According to the programming execution module and the first file, an animation corresponding to the first file is displayed.

2. The method according to claim 1, characterized in that The first file is a programming file, the programming execution module is a graphical programming stage, and the animation corresponding to the first file is displayed according to the programming execution module and the first file, including: The first file is parsed and executed through the graphical programming stage to display an animation corresponding to the first file.

3. The method according to claim 1, characterized in that The first file is a hypertext markup language HTML file, the programming and running module is a browser, and the displaying of an animation corresponding to the first file according to the programming and running module and the first file includes: The first file is parsed by the browser, and an animation corresponding to the first file is displayed.

4. The method according to any one of claims 1 to 3, characterized in that The first file is obtained by programming target parameters of a target component included in the wearable device on the graphical programming platform, and the animation corresponding to the first file is displayed according to the programming operation module and the first file, including: When parsing the first file through the programming operation module, collecting the target parameter; When the target parameter satisfies a trigger condition corresponding to the target parameter in the first file, a target animation corresponding to the trigger condition is displayed.

5. The method according to claim 1, characterized in that Before displaying the animation corresponding to the first file according to the programming operation module and the first file, the method further includes: Obtain a startup instruction, where the startup instruction is obtained according to an operation of a user on the wearable device, or the startup instruction is sent by the graphical programming platform, and the startup instruction is used to execute the step of displaying the animation corresponding to the first file.

6. A programming animation display method, characterized in that: Applied to a graphical programming platform, the method comprises: Perform programming according to the programming operation on the graphical programming platform to obtain a first file; The first file is sent to the wearable device, so that after obtaining the first file, the wearable device displays an animation corresponding to the first file according to the programming operation module and the first file.

7. The method according to claim 6, characterized in that The graphical programming platform includes at least one parameter corresponding to at least one component of the wearable device, and the programming is performed according to the programming operation on the graphical programming platform to obtain a first file, including: Determining target parameters of a target component for programming, wherein the target component is any one or more of the at least one component, and the target parameter is one or more of the at least one parameter; The target parameters of the target component are programmed to obtain the first file.

8. The method according to claim 7, characterized in that The step of programming the target parameters of the target component to obtain the first file comprises: Determining a target programming module corresponding to a target parameter of the target component from a building block area of ​​the graphical programming platform, wherein the building block area includes at least one programming module, and each programming module corresponds to a parameter of one component of the at least one component; Moving the target programming module to a script area of ​​the graphical programming platform, the script area including all programming modules to be programmed; Programming is performed on all programming modules in the script area to obtain the first file.

9. The method according to claim 8, characterized in that At least one programming module included in the building block area is a programming module corresponding to a component that is located before a preset ranking after the graphical programming platform sorts the at least two components from large to small according to the number of historical programming usages.

10. The method according to claims 6-9, characterized in that The first file is a programming file or a hypertext markup language HTML file.

11. A wearable device, characterized in that: The wearable device includes a programming and running module, wherein the wearable device further includes: A file acquisition module, used to acquire a first file, wherein the first file is acquired by programming on a graphical programming platform, and the first file has a mapping relationship with the programming and running module; The animation display module is used to display the animation corresponding to the first file according to the programming operation module and the first file.

12. A programming animation display system, characterized in that: The programming animation display system comprises: A graphical programming platform, used for performing programming according to programming operations on the graphical programming platform to obtain a first file; and sending the first file to the wearable device; A wearable device is used to obtain a first file; according to a programming and running module included in the wearable device and the first file, an animation corresponding to the first file is displayed, and the first file has a mapping relationship with the programming and running module.

13. A computer device comprising a memory and a processor, wherein the memory stores a computer program executable on the processor, wherein: When the processor executes the program, the steps of the method according to any one of claims 1 to 10 are implemented.

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