Data storage method, wearable device and computer readable storage medium

By acquiring motion trajectory data in the wearable device and storing binary code in the preset matrix, the problem of large amount of GPS data storage in the wearable device is solved, and the data transmission speed is improved.

CN110059203BActive Publication Date: 2025-04-08NUBIA TECHNOLOGY CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN201910307504.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2019-04-16
Publication Date
2025-04-08
Estimated Expiration
2039-04-16

AI Technical Summary

Technical Problem

In the prior art, the GPS data storage volume of wearable devices is large, resulting in slow picture storage and transmission speed.

Method used

By obtaining the trajectory data of the motion trajectory of the wearable device, determining the offset value of the position stored in the preset matrix of the trajectory data, calculating the position information of the trajectory data in the preset matrix, and storing a single byte preset binary code in the preset matrix based on this position information.

Benefits of technology

The storage amount of GPS data is reduced and the transmission speed of GPS data storage pictures is improved.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN110059203B_ABST
    Figure CN110059203B_ABST
Patent Text Reader

Abstract

The present invention discloses a data storage method, a wearable device and a computer-readable storage medium. The method comprises: obtaining trajectory data of a motion trajectory of a wearable device, determining an offset value of a storage position of the trajectory data in a preset matrix, calculating the position information of the trajectory data in the preset matrix based on the determined offset value, storing a preset binary code in a corresponding matrix position in the preset matrix based on the position information, thereby realizing the conversion of GPS coordinate data into a single byte of binary code. The present invention reduces the storage amount of GPS data and improves the transmission speed of GPS data storage pictures.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of data processing technology, and in particular to a data storage method, a wearable device, and a computer-readable storage medium. Background Art

[0002] With the continuous development and application of science and technology, GPS (Global Positioning System) is more and more widely used in life, especially in devices with positioning and tracking functions. GPS data is generally displayed on related devices in the form of pictures or images.

[0003] At present, the image storage method of GPS data is generally composed of the longitude and latitude data of the coordinates of each positioning point in the GPS data, which often results in a large image storage volume and a slow image transmission speed. Summary of the invention

[0004] The main purpose of the present invention is to provide a data storage method, a wearable device and a readable storage medium, aiming to solve the technical problem of large data storage capacity of wearable devices in the prior art.

[0005] To achieve the above object, the present invention provides a data storage method, which comprises the following steps:

[0006] Acquiring trajectory data of the motion trajectory of the wearable device;

[0007] Determining an offset value of a storage position of the trajectory data in the preset matrix;

[0008] Based on the determined offset value, calculating and obtaining position information of the trajectory data in the preset matrix;

[0009] Based on the position information, a single-byte preset binary code is stored at a corresponding position in the preset matrix.

[0010] Optionally, the offset value includes: a longitudinal offset value, and the step of determining the offset value of the storage position of the trajectory data in the preset matrix includes:

[0011] Calculating the latitude span of the motion trajectory according to the maximum latitude value corresponding to the trajectory data and the minimum latitude value corresponding to the trajectory data;

[0012] Calculating the longitude span of the motion trajectory according to the maximum longitude value corresponding to the trajectory data and the minimum longitude value corresponding to the trajectory data;

[0013] If the latitude span of the motion trajectory is greater than the longitude span of the motion trajectory, the longitudinal offset value is calculated based on the latitude span, the longitude span and the preset matrix.

[0014] Optionally, the step of calculating the longitudinal offset value based on the latitude span, the longitude span and the preset matrix includes:

[0015] Calculating a first size scale of the preset matrix and the motion trajectory according to the longitude span of the motion trajectory and the preset width of the preset matrix;

[0016] According to the first size scale and the latitude span of the motion trajectory, calculate the height corresponding to the latitude span of the motion trajectory on the preset matrix;

[0017] The preset height of the preset matrix is ​​subtracted from the height corresponding to the latitude span of the motion trajectory on the preset matrix to obtain a longitudinal offset value.

[0018] Optionally, the step of calculating the position information of the trajectory data in the preset matrix based on the determined offset value includes:

[0019] Obtaining column position information of the trajectory data in the preset matrix according to the first size scale and the trajectory data;

[0020] The row position information of the trajectory data in the preset matrix is ​​calculated according to the trajectory data, the maximum latitude value corresponding to the trajectory data, the minimum latitude value corresponding to the trajectory data, the preset height of the preset matrix and the longitudinal offset value.

[0021] Optionally, the offset value includes: a lateral offset value, and after the step of calculating the longitude span of the motion trajectory, the step further includes:

[0022] If the latitude span of the motion trajectory is smaller than the longitude span of the motion trajectory, a lateral offset value is calculated based on the latitude span, the longitude span and the preset matrix.

[0023] Optionally, the step of calculating the lateral offset value based on the latitude span, the longitude span and the preset matrix includes:

[0024] Calculating a second size scale of the preset matrix and the motion trajectory according to the latitude span of the motion trajectory and the preset height of the preset matrix;

[0025] Calculate, according to the second size scale and the longitude span of the motion trajectory, a width corresponding to the longitude span of the motion trajectory on the preset matrix;

[0026] The lateral offset value is obtained by subtracting the preset width of the preset matrix from the width corresponding to the longitude span of the motion trajectory on the preset matrix.

[0027] Optionally, the determined offset value is a lateral offset value, and the step of calculating the position information of the trajectory data in the preset matrix based on the determined offset value includes:

[0028] According to the second size scale and the trajectory data, obtaining row position information of the trajectory data in the preset matrix;

[0029] The column position information of the trajectory data in the preset matrix is ​​calculated according to the trajectory data, the maximum longitude value corresponding to the trajectory data, the minimum longitude value corresponding to the trajectory data, the preset width of the preset matrix and the lateral offset value.

[0030] Optionally, the step of calculating the position information of the trajectory data in the preset matrix based on the determined offset value includes:

[0031] If the latitude span of the motion trajectory is equal to the longitude span of the motion trajectory, then based on the longitude span of the motion trajectory and the preset width of the preset matrix, a third size scale of the preset matrix and the motion trajectory is calculated;

[0032] According to the third size scale and the trajectory data, position information of the trajectory data in the preset matrix is ​​obtained.

[0033] In addition, to achieve the above-mentioned purpose, the present invention also provides a wearable device, which includes: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the computer program implements the steps of any one of the above-mentioned data storage methods when executed by the processor.

[0034] In addition, to achieve the above-mentioned purpose, the present invention also provides a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, the steps of any of the above-mentioned data storage methods are implemented.

[0035] The present invention obtains the trajectory data of the motion trajectory of the wearable device, determines the offset value of the storage position of the trajectory data in the preset matrix, calculates the position information of the trajectory data in the preset matrix based on the determined offset value, and stores the preset binary code in the corresponding matrix position in the preset matrix based on the position information, thereby realizing the conversion of GPS coordinate data into a single byte of binary code. The present invention reduces the storage amount of GPS data and improves the transmission speed of GPS data storage pictures. BRIEF DESCRIPTION OF THE DRAWINGS

[0036] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the invention and, together with the description, serve to explain the principles of the invention.

[0037] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, for ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.

[0038] Figure 1 A schematic diagram of the hardware structure of an implementation of a wearable device provided in an embodiment of the present invention;

[0039] Figure 2 A hardware schematic diagram of an implementation of a wearable device provided in an embodiment of the present application;

[0040] Figure 3 A hardware schematic diagram of an implementation of a wearable device provided in an embodiment of the present application;

[0041] Figure 4 A hardware schematic diagram of an implementation of a wearable device provided in an embodiment of the present application;

[0042] Figure 5 A hardware schematic diagram of an implementation of a wearable device provided in an embodiment of the present application;

[0043] Figure 6 This is a flow chart of the first embodiment of the data storage method of the present application;

[0044] Figure 7 This is a flow chart of the second embodiment of the data storage method of the present application;

[0045] Figure 8 This is a flow chart of the third embodiment of the data storage method of the present application;

[0046] Fig. 9 This is a flow chart of a fourth embodiment of the data storage method of the present application;

[0047] Fig.10 This is a flowchart of a fifth embodiment of the data storage method of the present application;

[0048] Fig.11 This is a flow chart of a sixth embodiment of the data storage method of the present application. DETAILED DESCRIPTION

[0049] It should be understood that the specific embodiments described herein are only used to explain the present invention, and are not used to limit the present invention.

[0050] In the subsequent description, the suffixes such as "module", "component" or "unit" used to represent elements are only used to facilitate the description of the present invention, and have no specific meanings. Therefore, "module", "component" or "unit" can be used in a mixed manner.

[0051] The wearable device provided in the embodiment of the present invention includes a smart bracelet, a smart watch, and a mobile terminal such as a smart phone. With the continuous development of screen technology and the emergence of screen forms such as flexible screens and folding screens, mobile terminals such as smart phones can also be used as wearable devices. The wearable device provided in the embodiment of the present invention may include: RF (Radio Frequency) unit, WiFi module, audio output unit, A / V (audio / video) input unit, sensor, display unit, user input unit, interface unit, memory, processor, power supply and other components.

[0052] The following description will take wearable devices as an example. Figure 1 , which is a schematic diagram of the hardware structure of a wearable device for implementing various embodiments of the present invention, the wearable device 100 may include: RF (Radio Frequency) unit 101, WiFi module 102, audio output unit 103, A / V (audio / video) input unit 104, sensor 105, display unit 106, user input unit 107, interface unit 108, memory 109, processor 110, and power supply 111 and other components. Those skilled in the art can understand that Figure 1 The wearable device structure shown in the figure does not constitute a limitation on the wearable device. The wearable device may include more or fewer components than shown in the figure, or combine certain components, or arrange the components differently.

[0053] Combine the following Figure 1 A detailed introduction to the various components of wearable devices:

[0054] The RF unit 101 can be used for sending and receiving information or receiving and sending signals during a call. Specifically, the RF unit 101 can send uplink information to the base station. In addition, it can also receive downlink information sent by the base station and send it to the processor 110 of the wearable device for processing. The downlink information sent by the base station to the RF unit 101 can be generated based on the uplink information sent by the RF unit 101, or it can be actively pushed to the RF unit 101 after detecting that the information of the wearable device is updated. For example, after detecting that the geographical location of the wearable device has changed, the base station can send a message notification of the geographical location change to the RF unit 101 of the wearable device. After receiving the message notification, the RF unit 101 can send the message notification to the processor 110 of the wearable device for processing. The processor 110 of the wearable device can control the message notification to be displayed on the display panel 1061 of the wearable device; usually, the RF unit 101 includes but is not limited to an antenna, at least one amplifier, a transceiver, a coupler, a low noise amplifier, a duplexer, etc. In addition, the radio frequency unit 101 can also communicate with the network and other devices through wireless communication, which can specifically include: communicating with a server in the network system through wireless communication. For example, the wearable device can download file resources from the server through wireless communication, such as downloading applications from the server. After the wearable device completes downloading an application, if the file resources corresponding to the application in the server are updated, the server can push a resource update message notification to the wearable device through wireless communication to remind the user to update the application. The above-mentioned wireless communication can use any communication standard or protocol, including but not limited to GSM (Global System of Mobile communication), GPRS (General Packet Radio Service), CDMA2000 (Code Division Multiple Access 2000), WCDMA (Wideband Code Division Multiple Access), TD-SCDMA (Time Division-Synchronous Code Division Multiple Access), FDD-LTE (Frequency Division Duplexing-Long Term Evolution) and TDD-LTE (Time Division Duplexing-Long Term Evolution), etc.

[0055] In one implementation, the wearable device 100 can access an existing communication network by inserting a SIM card.

[0056] In another embodiment, the wearable device 100 can access the existing communication network by setting an eSIM card (Embedded-SIM). The use of the eSIM card can save the internal space of the wearable device and reduce the thickness.

[0057] It is understandable that although Figure 1 The RF unit 101 is shown, but it is understandable that the RF unit 101 is not a necessary component of the wearable device and can be omitted as needed without changing the essence of the invention. The wearable device 100 can achieve communication connection with other devices or communication networks through the wifi module 102 alone, and the embodiment of the present invention is not limited to this.

[0058] WiFi is a short-range wireless transmission technology. Wearable devices can help users send and receive emails, browse web pages, and access streaming media through WiFi module 102. It provides users with wireless broadband Internet access. Figure 1 The WiFi module 102 is shown, but it is understandable that it is not a necessary component of the wearable device and can be omitted as needed without changing the essence of the invention.

[0059] The audio output unit 103 can convert the audio data received by the RF unit 101 or the WiFi module 102 or stored in the memory 109 into an audio signal and output it as sound when the wearable device 100 is in a call signal receiving mode, a call mode, a recording mode, a voice recognition mode, a broadcast receiving mode, etc. Moreover, the audio output unit 103 can also provide audio output related to a specific function performed by the wearable device 100 (for example, a call signal receiving sound, a message receiving sound, etc.). The audio output unit 103 may include a speaker, a buzzer, etc.

[0060] The A / V input unit 104 is used to receive audio or video signals. The A / V input unit 104 may include a graphics processor (GPU) 1041 and a microphone 1042, and the graphics processor 1041 processes the image data of a static picture or video obtained by an image capture device (such as a camera) in a video capture mode or an image capture mode. The processed image frame can be displayed on the display unit 106. The image frame processed by the graphics processor 1041 can be stored in the memory 109 (or other storage medium) or sent via the radio frequency unit 101 or the WiFi module 102. The microphone 1042 can receive sound (audio data) via the microphone 1042 in a telephone call mode, a recording mode, a voice recognition mode, and other operating modes, and can process such sound into audio data. The processed audio (voice) data can be converted into a format output that can be sent to a mobile communication base station via the radio frequency unit 101 in the case of a telephone call mode. The microphone 1042 can implement various types of noise elimination (or suppression) algorithms to eliminate (or suppress) noise or interference generated in the process of receiving and sending audio signals.

[0061] In one embodiment, the wearable device 100 includes one or more cameras. By turning on the camera, it is possible to capture images, take photos, record videos, etc. The position of the camera can be set as needed.

[0062] The wearable device 100 also includes at least one sensor 105, such as a light sensor, a motion sensor, and other sensors. Specifically, the light sensor includes an ambient light sensor and a proximity sensor, wherein the ambient light sensor can adjust the brightness of the display panel 1061 according to the brightness of the ambient light, and the proximity sensor can turn off the display panel 1061 and / or the backlight when the wearable device 100 is moved to the ear. As a type of motion sensor, the accelerometer sensor can detect the magnitude of acceleration in all directions (generally three axes), and can detect the magnitude and direction of gravity when stationary. It can be used for applications that recognize the posture of the mobile phone (such as horizontal and vertical screen switching, related games, magnetometer posture calibration), vibration recognition related functions (such as pedometer, tapping), etc.

[0063] In one embodiment, the wearable device 100 further includes a proximity sensor. By using the proximity sensor, the wearable device can achieve contactless control and provide more operation modes.

[0064] In one embodiment, the wearable device 100 further includes a heart rate sensor, which can detect the heart rate by being close to the user when worn.

[0065] In one embodiment, the wearable device 100 may further include a fingerprint sensor, which can realize functions such as security verification by reading fingerprints.

[0066] The display unit 106 is used to display information input by the user or information provided to the user. The display unit 106 may include a display panel 1061, which may be configured in the form of a liquid crystal display (LCD), an organic light-emitting diode (OLED), or the like.

[0067] In one embodiment, the display panel 1061 uses a flexible display screen. When the wearable device using the flexible display screen is worn, the screen can be bent so as to fit better. Optionally, the flexible display screen can use an OLED screen body and a graphene screen body. In other embodiments, the flexible display screen can also be other display materials, and this embodiment is not limited thereto.

[0068] In one embodiment, the display panel 1061 of the wearable device can be in a rectangular shape, which is convenient for wrapping around when worn. In other embodiments, other forms can also be adopted.

[0069] The user input unit 107 can be used to receive input digital or character information, and to generate key signal input related to user settings and function control of the wearable device. Specifically, the user input unit 107 may include a touch panel 1071 and other input devices 1072. The touch panel 1071, also known as a touch screen, can collect the user's touch operation on or near it (such as the user's operation on the touch panel 1071 or near the touch panel 1071 using any suitable object or accessory such as a finger, stylus, etc.), and drive the corresponding connection device according to a pre-set program. The touch panel 1071 may include two parts: a touch detection device and a touch controller. Among them, the touch detection device detects the user's touch orientation, detects the signal brought by the touch operation, and transmits the signal to the touch controller; the touch controller receives the touch information from the touch detection device, converts it into contact coordinates, and then sends it to the processor 110, and can receive and execute commands sent by the processor 110. In addition, the touch panel 1071 can be implemented in various types such as resistive, capacitive, infrared, and surface acoustic waves. In addition to the touch panel 1071, the user input unit 107 may also include other input devices 1072. Specifically, the other input devices 1072 may include, but are not limited to, one or more of a physical keyboard, a function key (such as a volume control key, a switch key, etc.), a trackball, a mouse, a joystick, etc., which are not specifically limited here.

[0070] In one embodiment, one or more buttons may be provided on the side of the wearable device 100. The buttons may be operated in various ways, such as short press, long press, rotation, etc., to achieve various operation effects. There may be multiple buttons, and different buttons may be used in combination to achieve various operation functions.

[0071] Furthermore, the touch panel 1071 may cover the display panel 1061. When the touch panel 1071 detects a touch operation on or near it, it transmits the information to the processor 110 to determine the type of the touch event. Then, the processor 110 provides a corresponding visual output on the display panel 1061 according to the type of the touch event. Figure 1 In the embodiment, the touch panel 1071 and the display panel 1061 are used as two independent components to realize the input and output functions of the wearable device. However, in some embodiments, the touch panel 1071 and the display panel 1061 can be integrated to realize the input and output functions of the wearable device, which is not limited here. For example, when a message notification of an application is received through the radio frequency unit 101, the processor 110 can control the message notification to be displayed in a preset area of ​​the display panel 1061, and the preset area corresponds to a certain area of ​​the touch panel 1071. By performing a touch operation on a certain area of ​​the touch panel 1071, the message notification displayed in the corresponding area on the display panel 1061 can be controlled.

[0072] The interface unit 108 serves as an interface through which at least one external device can be connected to the wearable device 100. For example, the external device may include a wired or wireless headset port, an external power supply (or battery charger) port, a wired or wireless data port, a memory card port, a port for connecting a device with an identification module, an audio input / output (I / O) port, a video I / O port, a headphone port, etc. The interface unit 108 may be used to receive input (e.g., data information, power, etc.) from an external device and transmit the received input to one or more elements within the wearable device 100 or may be used to transmit data between the wearable device 100 and an external device.

[0073] In one embodiment, the interface unit 108 of the wearable device 100 adopts a contact structure, and is connected to other corresponding devices through the contacts to achieve functions such as charging and connection. The use of contacts can also be waterproof.

[0074] The memory 109 can be used to store software programs and various data. The memory 109 can mainly include a program storage area and a data storage area, wherein the program storage area can store an operating system, an application required for at least one function (such as a sound playback function, an image playback function, etc.), etc.; the data storage area can store data created according to the use of the mobile phone (such as audio data, a phone book, etc.), etc. In addition, the memory 109 can include a line-rate random access memory, and can also include a non-volatile memory, such as at least one disk storage device, a flash memory device, or other volatile solid-state storage devices.

[0075] The processor 110 is the control center of the wearable device. It uses various interfaces and lines to connect the various parts of the entire wearable device. By running or executing the software programs and / or modules stored in the memory 109 and calling the data stored in the memory 109, it performs various functions of the wearable device and processes data, thereby monitoring the wearable device as a whole. The processor 110 may include one or more processing units; preferably, the processor 110 may integrate an application processor and a modem processor, wherein the application processor mainly processes the operating system, user interface, and application programs, and the modem processor mainly processes wireless communications. It is understandable that the above-mentioned modem processor may not be integrated into the processor 110.

[0076] In the present invention, the processor 110 executes the computer program stored in the memory 109 to perform the following operations:

[0077] Acquiring trajectory data of the motion trajectory of the wearable device;

[0078] Determining an offset value of a storage position of the trajectory data in the preset matrix;

[0079] Based on the determined offset value, calculating and obtaining position information of the trajectory data in the preset matrix;

[0080] Based on the position information, a single-byte preset binary code is stored at a corresponding position in the preset matrix.

[0081] Furthermore, the processor 110 executes the computer program stored in the memory 109 and also performs the following operations:

[0082] Calculating the latitude span of the motion trajectory according to the maximum latitude value corresponding to the trajectory data and the minimum latitude value corresponding to the trajectory data;

[0083] Calculating the longitude span of the motion trajectory according to the maximum longitude value corresponding to the trajectory data and the minimum longitude value corresponding to the trajectory data;

[0084] If the latitude span of the motion trajectory is greater than the longitude span of the motion trajectory, the longitudinal offset value is calculated based on the latitude span, the longitude span and the preset matrix.

[0085] Furthermore, the processor 110 executes the computer program stored in the memory 109 and also performs the following operations:

[0086] Calculating a first size scale of the preset matrix and the motion trajectory according to the longitude span of the motion trajectory and the preset width of the preset matrix;

[0087] According to the first size scale and the latitude span of the motion trajectory, calculate the height corresponding to the latitude span of the motion trajectory on the preset matrix;

[0088] The preset height of the preset matrix is ​​subtracted from the height corresponding to the latitude span of the motion trajectory on the preset matrix to obtain a longitudinal offset value.

[0089] Furthermore, the processor 110 executes the computer program stored in the memory 109 and also performs the following operations:

[0090] Obtaining column position information of the trajectory data in the preset matrix according to the first size scale and the trajectory data;

[0091] The row position information of the trajectory data in the preset matrix is ​​calculated according to the trajectory data, the maximum latitude value corresponding to the trajectory data, the minimum latitude value corresponding to the trajectory data, the preset height of the preset matrix and the longitudinal offset value.

[0092] Furthermore, the processor 110 executes the computer program stored in the memory 109 and also performs the following operations:

[0093] If the latitude span of the motion trajectory is smaller than the longitude span of the motion trajectory, a lateral offset value is calculated based on the latitude span, the longitude span and the preset matrix.

[0094] Furthermore, the processor 110 executes the computer program stored in the memory 109 and also performs the following operations:

[0095] Calculating a second size scale of the preset matrix and the motion trajectory according to the latitude span of the motion trajectory and the preset height of the preset matrix;

[0096] Calculate, according to the second size scale and the longitude span of the motion trajectory, a width corresponding to the longitude span of the motion trajectory on the preset matrix;

[0097] The lateral offset value is obtained by subtracting the width of the preset matrix from the width corresponding to the longitude span of the motion trajectory on the preset matrix.

[0098] Furthermore, the processor 110 executes the computer program stored in the memory 109 and also performs the following operations:

[0099] According to the second size scale and the trajectory data, obtaining row position information of the trajectory data in the preset matrix;

[0100] The column position information of the trajectory data in the preset matrix is ​​calculated according to the trajectory data, the maximum longitude value corresponding to the trajectory data, the minimum longitude value corresponding to the trajectory data, the preset width of the preset matrix and the lateral offset value.

[0101] Furthermore, the processor 110 executes the computer program stored in the memory 109 and also performs the following operations:

[0102] If the latitude span of the motion trajectory is equal to the longitude span of the motion trajectory, then based on the longitude span of the motion trajectory and the preset width of the preset matrix, a third size scale of the preset matrix and the motion trajectory is calculated;

[0103] According to the third size scale and the trajectory data, position information of the trajectory data in the preset matrix is ​​obtained.

[0104] The wearable device 100 may also include a power supply 111 (such as a battery) for supplying power to each component. Preferably, the power supply 111 may be logically connected to the processor 110 through a power management system, thereby managing functions such as charging, discharging, and power consumption management through the power management system.

[0105] although Figure 1 Not shown, the wearable device 100 may also include a Bluetooth module, etc., which will not be described in detail herein. The wearable device 100 may be connected to other terminal devices via Bluetooth to achieve communication and information exchange.

[0106] Please refer to Figure 2-Figure 4 , is a schematic diagram of a structure of a wearable device provided in an embodiment of the present invention. The wearable device in the embodiment of the present invention includes a flexible screen. When the wearable device is unfolded, the flexible screen is in a long strip shape; when the wearable device is in a wearing state, the flexible screen is bent into a ring shape. Figure 2 and Figure 3 shows a schematic diagram of the structure of the wearable device when the screen is unfolded. Figure 4 A schematic diagram of the structure when the screen of a wearable device is bent is shown.

[0107] Based on the above embodiments, it can be seen that if the device is a watch, a bracelet or a wearable device, the screen of the device may not cover the strap area of ​​the device, or may cover the strap area of ​​the device. Here, the present invention proposes an optional embodiment. In this embodiment, the device may be a watch, a bracelet or a wearable device, and the device includes a screen and a connecting part. The screen may be a flexible screen, and the connecting part may be a strap. Optionally, the screen of the device or the display area of ​​the screen may be partially or completely covered on the strap of the device. Figure 5 As shown, Fig. 9 A hardware schematic diagram of an implementation of a wearable device provided in an embodiment of the present application, wherein the screen of the device extends to both sides and partially covers the strap of the device. In other implementations, the screen of the device may also be completely covered on the strap of the device.

[0108] The invention further provides a data storage method.

[0109] Reference Figure 6 , Figure 6 It is a method schematic diagram of the first embodiment of the data storage method of the present invention.

[0110] In this embodiment, the data storage method includes:

[0111] Step S10, obtaining the trajectory data of the motion trajectory of the wearable device;

[0112] In this embodiment, trajectory data of the motion trajectory of the wearable device is obtained.

[0113] In one embodiment, the data storage method is applied to a wearable device, which has a GPS positioning function and is equipped with a camera or other image data acquisition device. The trajectory data of the motion trajectory is generated when the user wears the wearable device for exercise.

[0114] Furthermore, in one embodiment, GPS (Global Positioning System) coordinate data of each trajectory data on the motion trajectory and data of a preset matrix are obtained, wherein the GPS coordinate data of the trajectory data includes a horizontal coordinate and a vertical coordinate of the trajectory data, the horizontal coordinate is longitude, and the vertical coordinate is latitude, and the data of the preset matrix includes rows of the preset matrix and columns of the preset matrix.

[0115] Specifically, it should be noted that the motion trajectory data is generally formed into a picture by storing longitude and latitude. Therefore, the GPS coordinate longitude and latitude of a trajectory data consists of 2 bytes, i.e. 32 characters. Therefore, the storage volume is large, and the picture composed of GPS coordinate longitude and latitude has a slow transmission speed.

[0116] Furthermore, in one embodiment, the data of the preset matrix needs to be set in advance in the wearable device by the developer of the wearable device. It should be noted that the shape of the preset matrix in this embodiment is a square, but the present invention is not limited to the specific shape of the preset matrix in this embodiment.

[0117] Furthermore, in one embodiment, the data of the preset matrix is ​​preset by a user of the wearable device, and the user pre-sets it in the wearable device before storing the motion trajectory.

[0118] Furthermore, in one embodiment, by obtaining GPS coordinate data of trajectory data corresponding to the motion trajectory, the corresponding maximum latitude value in the trajectory data, the corresponding minimum latitude value in the trajectory data, the corresponding maximum longitude value in the trajectory data, the corresponding minimum longitude value in the trajectory data, the rows of a preset matrix, and the columns of a preset matrix.

[0119] Furthermore, it should be noted that the GPS coordinate data of the trajectory data is the motion trajectory that needs to be converted into the location information of a preset matrix, wherein the corresponding maximum latitude value in the trajectory data, the corresponding minimum latitude value in the trajectory data, the corresponding maximum longitude value in the trajectory data, and the corresponding minimum longitude value in the trajectory data are used to determine the range of the motion trajectory. It should be noted that the corresponding maximum latitude value in the trajectory data and the corresponding maximum longitude value in the trajectory data can be the longitude and latitude values ​​of the same trajectory data, or can be the longitude and latitude values ​​of two different trajectory data.

[0120] Step S20, determining an offset value of a storage position of the trajectory data in the preset matrix;

[0121] In this embodiment, the offset value of the storage position of the trajectory data in the preset matrix is ​​determined according to the trajectory data and the preset matrix.

[0122] Specifically, in one embodiment, a corresponding offset value is determined according to the size range of the motion trajectory and the range data of the preset matrix, wherein the offset value refers to the column of the preset matrix that the motion trajectory does not cover, under the premise that the motion trajectory is fully displayed in the preset matrix with the maximum size.

[0123] Furthermore, it should be noted that the corresponding offset value is determined to ensure that the motion trajectory is displayed in the preset matrix with a maximum size, and further, to assist in determining the specific position of the motion trajectory in the preset matrix.

[0124] Optionally, step S20 further includes: if the latitude span of the motion trajectory is smaller than the longitude span of the motion trajectory, calculating a lateral offset value based on the latitude span, the longitude span and the preset matrix.

[0125] In this embodiment, the latitude span of the motion trajectory is calculated according to the corresponding maximum latitude value in the trajectory data and the corresponding minimum latitude value in the trajectory data, and the longitude span of the motion trajectory is calculated according to the corresponding maximum longitude value in the trajectory data and the corresponding minimum longitude value in the trajectory data. If the latitude span of the motion trajectory is smaller than the longitude span of the motion trajectory, the offset value is determined to be the lateral offset value based on the latitude span, the longitude span and the preset matrix, and the corresponding lateral offset value is calculated.

[0126] Furthermore, in one embodiment, the latitude span of the motion trajectory and the longitude span of the motion trajectory are obtained and compared in length. If the latitude span of the motion trajectory is smaller than the longitude span of the motion trajectory, it is determined that the size of the latitude longitudinal trajectory of the motion trajectory displayed in the preset matrix is ​​consistent with the row of the preset matrix, the offset value of the motion trajectory in the preset trajectory is the lateral offset value, and the longitudinal offset value of the motion trajectory in the preset trajectory does not exist.

[0127] Further, in one embodiment, if the latitude span of the motion trajectory is smaller than the longitude span of the motion trajectory, the offset direction is determined to be a lateral offset, and the corresponding lateral offset value is calculated, wherein it should be noted that when the offset direction is determined to be a lateral offset, the distribution of the motion trajectory in the preset matrix is ​​determined to be in the middle area of ​​the column of the preset matrix.

[0128] Optionally, step S20 further includes:

[0129] Step a, calculating a second size scale of the preset matrix and the motion trajectory according to the latitude span of the motion trajectory and the preset height of the preset matrix;

[0130] Step b, calculating the width of the longitude span of the motion trajectory on the preset matrix according to the second size scale and the longitude span of the motion trajectory;

[0131] Step c: subtract the width of the preset matrix from the width corresponding to the longitude span of the motion trajectory on the preset matrix to obtain the lateral offset value.

[0132] In this embodiment, based on the latitude span of the motion trajectory and the preset height of the preset matrix, a second size scale of the preset matrix and the motion trajectory is calculated, and based on the second size scale and the longitude span of the motion trajectory, the width corresponding to the longitude span of the motion trajectory on the preset matrix is ​​calculated. The width of the preset matrix is ​​subtracted from the width corresponding to the longitude span of the motion trajectory on the preset matrix to obtain the lateral offset value.

[0133] Specifically, in one embodiment, the second preset ratio calculation formula needs to be set in the wearable device in advance. According to the latitude span of the motion trajectory and the preset height of the preset matrix, a second size scale of the preset matrix and the motion trajectory can be obtained. According to the second size scale and the longitude span of the motion trajectory, the width corresponding to the longitude span of the motion trajectory on the preset matrix is ​​calculated, and the preset width of the preset matrix is ​​subtracted from the width corresponding to the motion trajectory to obtain the lateral offset value.

[0134] Step S30, calculating and obtaining position information of the motion trajectory in the preset matrix based on the determined offset value;

[0135] In this embodiment, based on the determined offset value, the position information of the motion trajectory in the preset matrix is ​​calculated.

[0136] Specifically, in one implementation, based on the determined offset value, the position information of the motion trajectory in the preset matrix is ​​calculated.

[0137] Furthermore, in one embodiment, if the determined offset value is a lateral offset value, the preset transformation formula transforms the GPS coordinate data of the trajectory data based on the lateral offset value; if the determined offset value is a lateral offset value, the GPS coordinate data of the trajectory data is transformed based on the lateral offset value through a preset transformation formula, thereby maximizing the display of the motion trajectory in a preset matrix and improving the accuracy of transforming the GPS coordinate data of the trajectory data into the position information of the preset matrix, wherein the preset transformation formula needs to be preset in the wearable device in advance.

[0138] Step S40: based on the position information, store a single-byte preset binary code at a corresponding position in a preset matrix.

[0139] In this embodiment, when the position information of the preset matrix corresponding to the motion trajectory is received, a single-byte preset binary code is stored at the corresponding position in the preset matrix based on the position information.

[0140] Further, it should be noted that a single-byte preset binary code is stored in the corresponding matrix position in the preset matrix, wherein the single-byte preset binary code includes 1 and 0. It should be noted that the prior art stores GPS coordinate data as two bytes, and in this embodiment, the GPS coordinate data is converted into a single byte of binary code, thereby reducing the storage amount and improving the transmission speed. The preset binary code of the preset matrix of the present invention is not limited by this embodiment.

[0141] Furthermore, in one embodiment, when the wearable device receives a display instruction of the position information of the preset matrix corresponding to the motion trajectory, the wearable device displays a picture corresponding to the motion trajectory on the display interface of the wearable device. For example, the picture content displayed on the display interface includes a binary diagram composed of binary codes stored corresponding to the motion trajectory. For example, the position where the position information of the preset matrix exists in the preset matrix displays 1, and the position where the position information of the preset matrix does not exist displays 0, thereby reducing the storage amount of the motion trajectory and improving the transmission speed of the motion trajectory storage picture.

[0142] In this embodiment, by acquiring the trajectory data of the motion trajectory of the wearable device, the offset value of the storage position of the trajectory data in the preset matrix is ​​determined, and based on the determined offset value, the position information of the trajectory data in the preset matrix is ​​calculated, and based on the position information, a preset base code is stored in the corresponding matrix position in the preset matrix, thereby achieving the conversion of GPS coordinate data into a single byte of binary code, thereby reducing the storage amount of GPS data and improving the transmission speed of GPS data storage images.

[0143] Furthermore, if Figure 7 As shown, Figure 7 This is a flow chart of a second embodiment of the data storage method of the present invention. In this embodiment, step S20 includes:

[0144] Step S201, calculating the latitude span of the motion trajectory according to the maximum latitude value corresponding to the trajectory data and the minimum latitude value corresponding to the trajectory data;

[0145] Step S202, calculating the longitude span of the motion trajectory according to the maximum longitude value corresponding to the trajectory data and the minimum longitude value corresponding to the trajectory data;

[0146] Step S203: If the latitude span of the motion trajectory is greater than the longitude span of the motion trajectory, the longitudinal offset value is calculated based on the latitude span, the longitude span and the preset matrix.

[0147] In this embodiment, the latitude span of the motion trajectory is calculated according to the corresponding maximum latitude value in the trajectory data and the corresponding minimum latitude value in the trajectory data, and the longitude span of the motion trajectory is calculated according to the corresponding maximum longitude value in the trajectory data and the corresponding minimum longitude value in the trajectory data. If the latitude span of the motion trajectory is greater than the longitude span of the motion trajectory, the longitudinal offset value is calculated based on the latitude span, the longitude span and the preset matrix.

[0148] Specifically, in one embodiment, the latitude span of the motion trajectory is calculated according to the corresponding maximum latitude value in the trajectory data and the corresponding minimum latitude value in the trajectory data through a preset distance calculation formula, and the longitude span of the motion trajectory is calculated according to the corresponding maximum longitude value in the trajectory data and the corresponding minimum longitude value in the trajectory data through a preset distance calculation formula. Based on the latitude span of the motion trajectory and the longitude span of the motion trajectory, it is determined whether the latitude span of the motion trajectory is greater than the longitude span of the motion trajectory. If the latitude span of the motion trajectory is greater than the longitude span of the motion trajectory, the longitudinal offset value is calculated based on the latitude span, the longitude span and a preset matrix.

[0149] Among them, the preset distance calculation formula is the distance calculation formula for two coordinate points, and the preset distance calculation formula = longitude and latitude difference × motion trajectory scale, which needs to be preset in advance in the wearable device. For example, if the maximum longitude is 112.596 east longitude, the minimum longitude is 112.550 east longitude, the maximum latitude is 28.1140 north latitude, and the minimum latitude is 28.1130 north latitude, then the maximum longitude of 112.596 east longitude and the minimum longitude of 112.550 east longitude are subtracted, and multiplied by the motion trajectory scale to obtain the longitude span of the motion trajectory; then the maximum latitude of 28.1140 north latitude and the minimum latitude of 28.1130 north latitude are subtracted, and multiplied by the motion trajectory scale to obtain the latitude span of the motion trajectory, and then the latitude span of the motion trajectory and the longitude span of the motion trajectory are compared for distance.

[0150] Further, in one embodiment, if the latitude span of the motion trajectory is greater than the longitude span of the motion trajectory, the offset direction is determined to be a longitudinal offset, and the corresponding longitudinal offset value is calculated, wherein it should be noted that if the offset direction is determined to be a longitudinal offset, it is determined that the display distribution of the motion trajectory in the preset matrix is ​​located in the middle area of ​​the rows of the preset matrix.

[0151] It should be noted that the shape of the preset matrix in this embodiment is a square, but the present invention is not limited to the specific shape of the preset matrix in this embodiment.

[0152] In this embodiment, the latitude span and longitude span of the motion trajectory are calculated through a preset distance calculation formula, and the latitude span and longitude span of the motion trajectory are compared. If the latitude span of the motion trajectory is greater than the longitude span of the motion trajectory, it is determined that there is a longitudinal offset value, and the longitudinal offset value is calculated based on the latitude span, the longitude span and the preset matrix, thereby realizing the determination of the longitudinal offset value by calculating the position range of the motion trajectory, providing technical support for the subsequent calculation of the position information of the preset matrix corresponding to the motion trajectory.

[0153] Furthermore, if Figure 8As shown, a third embodiment of the data storage method of the present invention is proposed. In this embodiment, step S203 includes:

[0154] Step S2031, calculating a first size scale of the preset matrix and the motion trajectory according to the longitude span of the motion trajectory and the preset width of the preset matrix;

[0155] Step S2032, calculating the height corresponding to the latitude span of the motion trajectory on the preset matrix according to the first size scale and the latitude span of the motion trajectory;

[0156] Step S2033: Subtract the preset height of the preset matrix from the height corresponding to the latitude span of the motion trajectory on the preset matrix to obtain a longitudinal offset value.

[0157] In this embodiment, based on the longitude span of the motion trajectory and the preset width of the preset matrix, a first size scale of the preset matrix and the motion trajectory is calculated, and based on the first size scale and the latitude span of the motion trajectory, the height corresponding to the latitude span of the motion trajectory on the preset matrix is ​​calculated, and the preset height of the preset matrix and the height corresponding to the latitude span of the motion trajectory on the preset matrix are subtracted to obtain the longitudinal offset value.

[0158] Specifically, in one embodiment, based on the longitude span of the motion trajectory and the columns of the preset matrix, a preset ratio calculation formula is used to calculate the size scale of the preset matrix and the motion trajectory, and based on the size scale and the latitude span of the motion trajectory, the longitudinal display span corresponding to the latitude span of the motion trajectory on the preset matrix is ​​calculated. It should be noted that the first preset ratio calculation formula can be obtained by dividing the longitude span of the motion trajectory by the columns of the preset matrix, or by dividing the longitude span of the motion trajectory by the difference between the columns of the preset trajectory and the lateral offset value, and the first preset ratio calculation formula needs to be preset in the wearable device in advance.

[0159] In this embodiment, the latitude span of the motion trajectory is calculated according to the maximum latitude value, the minimum latitude value and the preset distance calculation formula in the trajectory data, and the longitude span of the motion trajectory is calculated according to the corresponding maximum longitude value and the minimum longitude value in the trajectory data. Based on the latitude span of the motion trajectory and the longitude span of the motion trajectory, it is judged whether the latitude span of the motion trajectory is greater than the longitude span of the motion trajectory. If the latitude span of the motion trajectory is greater than the longitude span of the motion trajectory, the longitudinal offset value is calculated based on the latitude span, the longitude span and the preset matrix, and the calculation of the preset matrix and the size scale of the motion trajectory and the latitude span of the motion trajectory is realized, so as to obtain the longitudinal offset value, which provides technical support for the subsequent calculation of the position information of the preset matrix corresponding to the motion trajectory.

[0160] Furthermore, if Fig. 9 As shown, a fourth embodiment of the data storage method of the present invention is proposed. In this embodiment, step S30 includes:

[0161] Step S301, obtaining column position information of the trajectory data in the preset matrix according to the first size scale and the trajectory data;

[0162] Step S302, calculating the row position information of the trajectory data in the preset matrix according to the trajectory data, the maximum latitude value corresponding to the trajectory data, the minimum latitude value corresponding to the trajectory data, the preset height of the preset matrix and the longitudinal offset value.

[0163] In this embodiment, the column position information of the trajectory data in the preset matrix is ​​obtained according to the first size scale and the trajectory data, and the row position information of the trajectory data in the preset matrix is ​​calculated according to the trajectory data, the corresponding maximum latitude value in the trajectory data, the corresponding minimum latitude value in the trajectory data, the preset height of the preset matrix and the longitudinal offset value.

[0164] Specifically, in one embodiment, for example, the trajectory data is point P, the GPS coordinates of point P are (long, lat), where long is the longitude of point P, lat is the latitude of point P, the column position information of the preset matrix of point P is x, the column position information of the preset matrix of point P is y, the longitudinal offset value is offsety, the first size scale of the preset matrix and the motion trajectory is B, the corresponding maximum latitude value in the trajectory data is top, the corresponding minimum latitude value in the trajectory data is bottom, the row of the preset matrix is ​​height, and the calculation formula of the row position information of the preset matrix is:

[0165]

[0166] Among them, the specific values ​​of long, top, bottom, height and offsety can be known through the above embodiments. Through the calculation formula of the row position information of the preset matrix, the value of y can be deduced, and the value of x is long multiplied by B. By referring to the corresponding maximum and minimum longitude and latitude points in the trajectory data and using the preset transformation formula, the row position of the preset matrix can be located more accurately and conveniently.

[0167] In this embodiment, due to the existence of the longitudinal offset value, the column position information of the trajectory data in the preset matrix is ​​calculated according to the first size scale and the trajectory data through a preset ratio calculation formula, and the row position information of the trajectory data in the preset matrix is ​​calculated according to the trajectory data, the corresponding maximum latitude value in the trajectory data, the corresponding minimum latitude value in the trajectory data, the preset height of the preset matrix and the longitudinal offset value through the row position information calculation formula of the preset matrix, thereby achieving the column position and ordinate position information of the trajectory data in the preset matrix through the row position information calculation formula of the preset matrix, thereby providing technical support for storing the position information of the preset matrix in the preset matrix.

[0168] Furthermore, if Fig.10 As shown, a fifth embodiment of the data storage method of the present invention is proposed. In this embodiment, step S30 includes:

[0169] Step S303, obtaining row position information of the trajectory data in the preset matrix according to the second size scale and the trajectory data;

[0170] Step S304, calculating the column position information of the trajectory data in the preset matrix according to the trajectory data, the maximum longitude value corresponding to the trajectory data, the minimum longitude value corresponding to the trajectory data, the preset width of the preset matrix and the lateral offset value.

[0171] In this embodiment, the row position information of the trajectory data in the preset matrix is ​​obtained according to the second size scale and the trajectory data, and the column position information of the trajectory data in the preset matrix is ​​calculated according to the trajectory data, the corresponding maximum longitude value in the trajectory data, the corresponding minimum longitude value in the trajectory data, the preset width of the preset matrix and the lateral offset value.

[0172] Specifically, in one embodiment, for example, the trajectory data is point P, the GPS coordinates of point P are (long, lat), where long is the longitude of point P, lat is the latitude of point P, the column position information of the preset matrix of point P is x, the row position information of the preset matrix of point P is y, the lateral offset value is offsetx, the corresponding maximum longitude value in the trajectory data is left, the corresponding minimum longitude value in the trajectory data is right, the column of the preset matrix is ​​width, the second size scale of the preset matrix and the motion trajectory is A, then the calculation formula of the column position information of the preset matrix is:

[0173]

[0174] Among them, the specific values ​​of long, left, right, width and offsetx can be known through the above embodiments. The value of x can be deduced through the calculation formula of the column position information of the preset matrix. The value of y is lat multiplied by A. By referring to the corresponding maximum and minimum longitude and latitude points in the trajectory data, the preset transformation formula is used to more accurately and conveniently locate the horizontal coordinate position of the preset matrix.

[0175] In this embodiment, the second size scale and the latitude of the trajectory data are converted by proportionality to calculate the row position information of the trajectory data in the preset matrix, and then according to the column position information calculation formula of the preset matrix, the trajectory data, the corresponding maximum longitude value in the trajectory data, the corresponding minimum longitude value in the trajectory data, the preset width of the preset matrix and the lateral offset value are calculated to obtain the column position information of the trajectory data in the preset matrix. Therefore, the maximum longitude and latitude in the trajectory data are used as the minimum longitude and latitude as reference points, and the column position of the trajectory data in the preset matrix and the row position in the preset matrix are obtained through the column position information calculation formula of the preset matrix, thereby providing technical support for storing the position information of the preset matrix in the preset matrix.

[0176] Furthermore, if Fig.11 As shown, a sixth embodiment of the data storage method of the present invention is proposed. In this embodiment, step S30 includes:

[0177] Step S305, if the latitude span of the motion trajectory is equal to the longitude span of the motion trajectory, then based on the longitude span of the motion trajectory and the preset width of the preset matrix, a third size scale of the preset matrix and the motion trajectory is calculated;

[0178] Step S306: Obtain position information of the trajectory data in the preset matrix according to the third size scale and the trajectory data.

[0179] In this embodiment, if the latitude span of the motion trajectory is equal to the longitude span of the motion trajectory, a third size scale of the preset matrix and the motion trajectory is calculated based on the longitude span of the motion trajectory and the preset width of the preset matrix, and the position information of the trajectory data in the preset matrix is ​​obtained according to the third size scale and the trajectory data.

[0180] Furthermore, in one embodiment, a third preset ratio calculation formula needs to be set in the wearable device in advance. According to the ratio of the latitude span of the motion trajectory to the preset height of the preset matrix, or the ratio of the longitude span of the motion trajectory to the preset width of the preset matrix, a third size scale of the preset matrix and the motion trajectory can be obtained. According to the third size scale and the trajectory data, the position information of the trajectory data in the preset matrix is ​​obtained. Based on the position information, the preset base code is stored in the corresponding matrix position in the preset matrix. It should be noted that if the latitude span of the motion trajectory is equal to the longitude span of the motion trajectory, it is determined that there is no offset value, and the position of the trajectory data in the preset matrix is ​​distributed in the entire display screen area of ​​the preset matrix.

[0181] Specifically, in one embodiment, for example, the trajectory data is point P, and the GPS coordinates of point P are (long, lat), wherein long is the longitude of point P, lat is the latitude of point P, the column position information of the preset matrix of point P is x, the column position information of the preset matrix of point P is y, and the third size scale of the preset matrix and the motion trajectory is C, then the value of y is lat multiplied by C, and the value of x is long multiplied by C.

[0182] Furthermore, in one embodiment, when the wearable device receives a display instruction of the position information of the preset matrix corresponding to the motion trajectory, the wearable device displays a picture corresponding to the motion trajectory on the display interface of the wearable device. For example, the picture content displayed on the display interface includes a binary diagram composed of binary codes stored corresponding to the motion trajectory. For example, the position where the position information of the preset matrix exists in the preset matrix displays 1, and the position where the position information of the preset matrix does not exist displays 0, thereby reducing the storage amount of the motion trajectory and improving the transmission speed of the motion trajectory storage picture.

[0183] In this embodiment, by determining that there is no offset value, a third size scale is calculated based on the longitude span of the motion trajectory and the preset width of the preset matrix. According to the third size scale and the longitude and latitude coordinates of the trajectory data, the column position information and the corresponding row position information of the trajectory data in the preset matrix are obtained. Based on the position information, the GPS coordinate data is converted into a single byte of binary code, which provides technical support for subsequently reducing the storage amount of GPS data and improving the transmission speed of GPS data storage images.

[0184] In addition, an embodiment of the present invention further provides a computer-readable storage medium.

[0185] The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the data storage method in any of the above embodiments are implemented.

[0186] The specific implementation of the computer-readable storage medium of the present invention is basically the same as the various embodiments of the above-mentioned data storage method, and will not be repeated here.

[0187] 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 system including a series of elements includes not only those elements, but also includes other elements not explicitly listed, or also includes elements inherent to such process, method, article or system. In the absence of further restrictions, an element defined by the sentence "comprises a ..." does not exclude the presence of other identical elements in the process, method, article or system including the element.

[0188] The serial numbers of the above embodiments of the present invention are only for description and do not represent the advantages or disadvantages of the embodiments.

[0189] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present invention, or the part that contributes to the prior art, can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk) and executes the methods described in each embodiment of the present invention.

[0190] The above are only preferred embodiments of the present invention, and are not intended to limit the patent scope of the present invention. Any equivalent structure or equivalent process transformation made using the contents of the present invention specification and drawings, or directly or indirectly applied in other related technical fields, are also included in the patent protection scope of the present invention.

Claims

1. A data storage method, applied to a wearable device, characterized in that: The data storage method comprises the following steps: Acquiring trajectory data of the motion trajectory of the wearable device; Determining an offset value of a storage position of the trajectory data in a preset matrix; Based on the determined offset value, calculating and obtaining position information of the trajectory data in the preset matrix; Based on the position information, a single-byte preset binary code is stored at a corresponding position in a preset matrix; The offset value includes: a longitudinal offset value, and the step of determining the offset value of the storage position of the trajectory data in the preset matrix includes: Calculating the latitude span of the motion trajectory according to the maximum latitude value corresponding to the trajectory data and the minimum latitude value corresponding to the trajectory data; Calculating the longitude span of the motion trajectory according to the maximum longitude value corresponding to the trajectory data and the minimum longitude value corresponding to the trajectory data; If the latitude span of the motion trajectory is greater than the longitude span of the motion trajectory, calculating the longitudinal offset value based on the latitude span, the longitude span and the preset matrix; The step of calculating the longitudinal offset value based on the latitude span, the longitude span and the preset matrix comprises: Calculating a first size scale of the preset matrix and the motion trajectory according to the longitude span of the motion trajectory and the preset width of the preset matrix; According to the first size scale and the latitude span of the motion trajectory, calculate the height corresponding to the latitude span of the motion trajectory on the preset matrix; Subtract the preset height of the preset matrix from the height corresponding to the latitude span of the motion trajectory on the preset matrix to obtain a longitudinal offset value; The step of calculating the position information of the trajectory data in the preset matrix based on the determined offset value includes: Obtaining column position information of the trajectory data in the preset matrix according to the first size scale and the trajectory data; Calculate the row position information of the trajectory data in the preset matrix according to the trajectory data, the maximum latitude value corresponding to the trajectory data, the minimum latitude value corresponding to the trajectory data, the preset height of the preset matrix and the longitudinal offset value; The offset value includes: a lateral offset value. After the step of calculating the longitude span of the motion trajectory, the step further includes: If the latitude span of the motion trajectory is less than the longitude span of the motion trajectory, calculating a lateral offset value based on the latitude span, the longitude span and the preset matrix; The step of calculating the lateral offset value based on the latitude span, the longitude span and the preset matrix comprises: Calculating a second size scale of the preset matrix and the motion trajectory according to the latitude span of the motion trajectory and the preset height of the preset matrix; Calculate, according to the second size scale and the longitude span of the motion trajectory, a width corresponding to the longitude span of the motion trajectory on the preset matrix; Subtracting a preset width of the preset matrix from a width corresponding to the longitude span of the motion trajectory on the preset matrix to obtain the lateral offset value; The determined offset value is a lateral offset value, and the step of calculating the position information of the trajectory data in the preset matrix based on the determined offset value includes: According to the second size scale and the trajectory data, obtaining row position information of the trajectory data in the preset matrix; The column position information of the trajectory data in the preset matrix is ​​calculated according to the trajectory data, the maximum longitude value corresponding to the trajectory data, the minimum longitude value corresponding to the trajectory data, the preset width of the preset matrix and the lateral offset value.

2. The data storage method according to claim 1, characterized in that: The step of calculating the position information of the trajectory data in the preset matrix based on the determined offset value includes: If the latitude span of the motion trajectory is equal to the longitude span of the motion trajectory, then based on the longitude span of the motion trajectory and the preset width of the preset matrix, a third size scale of the preset matrix and the motion trajectory is calculated; According to the third size scale and the trajectory data, position information of the trajectory data in the preset matrix is ​​obtained.

3. A wearable device, characterized in that: The wearable device comprises: a memory, a processor, and a computer program stored in the memory and executable on the processor; When the computer program is executed by the processor, the steps of the data storage method according to claim 1 or 2 are implemented.

4. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the data storage method according to claim 1 or 2 are implemented.

Citation Information

Patent Citations

  • Location coding map-based motion track comparison method

    CN106980129A

  • Method and system for displaying motion track based on smart wearable device

    CN109085625A