Motion monitoring systems and wearable electronic devices

By using the thread communication mechanism of the FreeRTOS operating system in wearable electronic devices, the functions of motion data acquisition, monitoring and recording are automatically correlated, and the problems of long development time and inaccurate monitoring caused by functional fragmentation in the prior art are solved, and higher functional reliability and monitoring accuracy are achieved.

CN119732675APending Publication Date: 2025-04-01SHENZHEN YANXIANG STEALTH SOFTWARE CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

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

AI Technical Summary

Technical Problem

The functions of motion data acquisition, monitoring and recording in existing wearable electronic devices are usually split, and developers need to manually correlate these functions, resulting in long development time, high error rate, and reducing the accuracy of motion time monitoring.

Method used

The thread communication mechanism of the FreeRTOS operating system is adopted to obtain motion sensor data through the first thread, and when the RTC module sends an interrupt signal, the total motion time is determined and the motion record is generated without the need for the developer's manual correlation function.

Benefits of technology

Improves the reliability of the motion monitoring function, enhances the accuracy of monitoring exercise time, and reduces the time and error rate required by developers to develop, maintain or transplant functions.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119732675A_ABST
    Figure CN119732675A_ABST
Patent Text Reader

Abstract

The present application relates to a motion monitoring system and a wearable electronic device, the motion monitoring system includes a FreeRTOS operating system and an RTC module; the FreeRTOS operating system includes a first thread, the first thread is used to obtain motion data collected by the motion sensor when the motion sensor of the wearable electronic device sends a first interrupt signal; and when the RTC module sends a second interrupt signal, the total motion time is determined, and the motion data generated within the total motion time is packaged to generate a motion record; the RTC module is coupled to the wearable electronic device, and is used to send the second interrupt signal to the wearable electronic device at a preset time interval. Through this application, the collection, monitoring and recording of motion data are realized based on the thread communication mechanism of the open source FreeRTOS operating system, which can improve the reliability of motion monitoring, and thus improve the accuracy of monitoring the motion time of the wearable electronic device.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application belongs to the technical field of wearable electronic devices, and in particular, relates to a motion monitoring system and a wearable electronic device. Background Art

[0002] With the continuous advancement of technology, wearable electronic devices such as smart watches are increasingly favored by consumers due to their portability and versatility. These wearable electronic devices integrate various sensors, functional modules and various algorithms to achieve multiple functions such as health monitoring, sports tracking, communication and interconnection.

[0003] However, the various functions of such wearable electronic devices (for example, the collection, monitoring, and recording of motion data) are often separated at the beginning of development, and developers need to manually associate the various functions. When developers develop, maintain, or transplant such associated functions, it takes a lot of time and the error rate is high. In addition, the reliability of manually associating the various functions is also low, which will further reduce the accuracy of wearable electronic devices in monitoring exercise time. Summary of the invention

[0004] The embodiments of the present application provide a motion monitoring system and a wearable electronic device, which can collect, monitor and record motion data based on the thread communication mechanism of the open source FreeRTOS operating system, without the need for developers to manually associate various motion monitoring functions in the wearable electronic device, thereby improving the reliability of various motion monitoring functions and further improving the accuracy of the wearable electronic device in monitoring exercise time.

[0005] In a first aspect, an embodiment of the present application provides a motion monitoring system, which is applied to a wearable electronic device, and the motion monitoring system includes a FreeRTOS operating system and an RTC module; wherein the FreeRTOS operating system includes a first thread, and the first thread is used to obtain motion data collected by the motion sensor when the motion sensor of the wearable electronic device sends a first interrupt signal; and when the RTC module sends a second interrupt signal, determine the total motion time, and package the motion data generated within the total motion time to generate a motion record; and the RTC module is coupled to the wearable electronic device, and is used to send the second interrupt signal to the wearable electronic device at a preset time interval.

[0006] In some embodiments, the FreeRTOS operating system also includes a second thread, which is used to display the motion data collected by the motion sensor in a preset first interface of the display screen of the wearable electronic device when the RTC module sends a second interrupt signal.

[0007] In some embodiments, the first thread is also used to determine whether an abnormal motion event occurs based on the motion data collected by the motion sensor; the second thread is also used to wake up the display screen when an abnormal motion event occurs, and display the abnormal motion event in a preset second interface of the display screen.

[0008] In some embodiments, the first thread includes a first monitoring module, a second monitoring module, a data acquisition module, a storage module, an abnormality detection module and a motion monitoring module; wherein the first monitoring module is used to monitor whether the motion sensor sends a first interrupt signal; the second monitoring module is used to monitor whether the RTC module sends a second interrupt signal; the data acquisition module is used to acquire the motion data collected by the motion sensor when the first monitoring module determines that the motion sensor sends a first interrupt signal; the storage module is used to store the motion data in a preset buffer; the abnormality detection module is used to determine whether a motion abnormality event occurs based on the motion data collected by the motion sensor; and the motion monitoring module is used to determine the total motion time when the second monitoring module determines that the RTC module sends a second interrupt signal, and package the motion data generated within the total motion time to generate a motion record.

[0009] In some embodiments, the second thread includes a third monitoring module, a fourth monitoring module, a screen wake-up module, a screen status determination module, a motion data display module and an abnormal event display module; wherein the third monitoring module is used to monitor whether the first thread detects a motion abnormality event; the fourth monitoring module is used to monitor whether the RTC module sends a second interrupt signal; the screen wake-up module is used to wake up the display screen of the wearable electronic device when the third monitoring module determines that the first thread detects a motion abnormality event; the screen status determination module is used to determine whether the display screen is in a bright screen state when the fourth monitoring module determines that the RTC module sends a second interrupt signal; the motion data display module is used to display the motion data collected by the motion sensor in a preset first interface of the display screen when the display screen is in a bright screen state; and the abnormal event display module is used to display the motion abnormality event in a preset second interface of the display screen after the screen wake-up module wakes up the display screen.

[0010] In some embodiments, the FreeRTOS operating system is used to allocate memory space, and the memory space is used to store motion data collected by the motion sensor and motion records acquired by the first thread.

[0011] In some embodiments, the FreeRTOS operating system is also used to initialize the memory space before storing the motion data in the memory space.

[0012] In some embodiments, the FreeRTOS operating system is also used to detect whether there is a pre-stored motion record in the memory space before storing the motion record obtained by the first thread in the memory space, and when there is a pre-stored motion record in the memory space, update the pre-stored motion record based on the motion record obtained by the first thread.

[0013] In some embodiments, the RTC module includes a second interrupt pin, which is coupled to a processor of the wearable electronic device and is used to send a second interrupt signal to the processor at a preset time interval to wake up the processor.

[0014] In a second aspect, an embodiment of the present application provides a wearable electronic device, which includes a motion monitoring system as described in any one of the first aspects above.

[0015] Compared with the related art, the motion monitoring system provided in the embodiment of the present application includes a FreeRTOS operating system and an RTC module. The FreeRTOS operating system includes a first thread, which is used to obtain motion data collected by the motion sensor when the motion sensor of the wearable electronic device sends a first interrupt signal; and when the RTC module sends a second interrupt signal, determine the total motion time, and package the motion data generated within the total motion time to generate a motion record; and the RTC module is coupled to the wearable electronic device, and is used to send a second interrupt signal to the wearable electronic device at a preset time interval. Through the present application, a wearable electronic device with a built-in motion monitoring system can collect, monitor and record motion data through the thread communication mechanism of the FreeRTOS operating system, without the need for developers to manually associate the various motion monitoring functions in the wearable electronic device. This can not only save the time required for developers to develop, maintain or transplant associated functions, but also reduce the error rate during development, thereby improving the reliability of the motion monitoring function of the wearable electronic device, and then improving the accuracy of the wearable electronic device in monitoring the exercise time; in addition, the motion monitoring system provided in the embodiment of the present application does not require the use of a system timer, and can record the user's exercise time with high precision through the RTC module, which further improves the accuracy of the wearable electronic device in monitoring the exercise time while reducing the overall power consumption of the wearable electronic device.

[0016] Details of one or more embodiments of the present application are set forth in the following drawings and description to make other features, objects, and advantages of the present application more readily apparent. BRIEF DESCRIPTION OF THE DRAWINGS

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

[0018] Figure 1 is a structural schematic diagram of a motion monitoring system according to an embodiment of the present application;

[0019] Figure 2 is a workflow diagram of a first thread according to an embodiment of the present application;

[0020] Figure 3 is a workflow diagram of the second thread according to an embodiment of the present application;

[0021] Figure 4 It is a schematic diagram of the structure of a wearable electronic device according to an embodiment of the present application.

[0022] Among them, the reference numerals in the figures are:

[0023] 10-motion monitoring system; 40-wearable electronic device; 41-processor; 42-memory; 43-computer program; 100-FreeRTOS operating system; 110-first thread; 111-first monitoring module; 112-second monitoring module; 113-data acquisition module; 114-storage module; 115-abnormal detection module; 116-motion monitoring module; 120-second thread; 121-third monitoring module; 122-fourth monitoring module; 123-screen wake-up module; 124-screen status determination module; 125-motion data display module; 126-abnormal event display module; 130-RTC module; 131-second interrupt pin; 140-cache; 150-memory space. DETAILED DESCRIPTION

[0024] In the following description, specific details such as specific system structures, technologies, etc. are provided for the purpose of illustration rather than limitation, so as to provide a thorough understanding of the embodiments of the present application. However, it should be clear to those skilled in the art that the present application may also be implemented in other embodiments without these specific details. In other cases, detailed descriptions of well-known systems, devices, circuits, and methods are omitted to prevent unnecessary details from obstructing the description of the present application.

[0025] It should be understood that when used in the present specification and the appended claims, the term "comprising" indicates the presence of described features, wholes, steps, operations, elements and / or components, but does not exclude the presence or addition of one or more other features, wholes, steps, operations, elements, components and / or combinations thereof.

[0026] It should also be understood that the term “and / or” used in the specification and appended claims refers to any and all possible combinations of one or more of the associated listed items, and includes these combinations.

[0027] As used in the specification and appended claims of this application, the term "if" can be interpreted as "when" or "uponce" or "in response to determining" or "in response to detecting", depending on the context. Similarly, the phrase "if it is determined" or "if [described condition or event] is detected" can be interpreted as meaning "uponce it is determined" or "in response to determining" or "uponce [described condition or event] is detected" or "in response to detecting [described condition or event]", depending on the context.

[0028] In addition, in the description of the present application specification and the appended claims, the terms "first", "second", "third", etc. are only used to distinguish the descriptions and cannot be understood as indicating or implying relative importance.

[0029] References to "one embodiment" or "some embodiments" etc. described in the specification of this application mean that one or more embodiments of the present application include specific features, structures or characteristics described in conjunction with the embodiment. Therefore, the statements "in one embodiment", "in some embodiments", "in some other embodiments", "in some other embodiments", etc. that appear in different places in this specification do not necessarily refer to the same embodiment, but mean "one or more but not all embodiments", unless otherwise specifically emphasized in other ways. The terms "including", "comprising", "having" and their variations all mean "including but not limited to", unless otherwise specifically emphasized in other ways.

[0030] With the continuous advancement of technology, wearable electronic devices such as smart watches are increasingly favored by consumers due to their portability and versatility. These wearable electronic devices integrate various sensors, functional modules and various algorithms to achieve multiple functions such as health monitoring, sports tracking, communication and interconnection.

[0031] However, the various functions of such wearable electronic devices (for example, the collection, monitoring, and recording of motion data) are often separated at the beginning of development, and developers need to manually associate the various functions. When developers develop, maintain, or transplant such associated functions, it takes a lot of time and the error rate is high. In addition, the reliability of manually associating the various functions is also low, which will further reduce the accuracy of wearable electronic devices in monitoring exercise time.

[0032] In view of this, the motion monitoring system provided in an embodiment of the present application includes a FreeRTOS operating system and an RTC module. The FreeRTOS operating system includes a first thread, which is used to obtain motion data collected by the motion sensor when the motion sensor of the wearable electronic device sends a first interrupt signal; and when the RTC module sends a second interrupt signal, determine the total motion time, and package the motion data generated within the total motion time to generate a motion record; and the RTC module is coupled to the wearable electronic device, and is used to send a second interrupt signal to the wearable electronic device at a preset time interval. Through the present application, a wearable electronic device with a built-in motion monitoring system can collect, monitor and record motion data through the thread communication mechanism of the FreeRTOS operating system, without the need for developers to manually associate the various motion monitoring functions in the wearable electronic device. This can not only save the time required for developers to develop, maintain or transplant associated functions, but also reduce the error rate during development, thereby improving the reliability of the motion monitoring function of the wearable electronic device, and then improving the accuracy of the wearable electronic device in monitoring the exercise time; in addition, the motion monitoring system provided in the embodiment of the present application does not require the use of a system timer, and can record the user's exercise time with high precision through the RTC module, which further improves the accuracy of the wearable electronic device in monitoring the exercise time while reducing the overall power consumption of the wearable electronic device.

[0033] The following will be combined Figure 1 For an explanation of a motion monitoring system 10 provided in one embodiment of the present application, see Figure 1 , Figure 1 is a schematic diagram of the structure of a motion monitoring system 10 according to an embodiment of the present application. The motion monitoring system 10 can be applied to wearable electronic devices, such as Figure 1As shown, the motion monitoring system 10 may include a FreeRTOS operating system 100 and an RTC module 130; wherein the FreeRTOS operating system 100 includes a first thread 110, and the first thread 110 is used to obtain motion data collected by the motion sensor when the motion sensor of the wearable electronic device sends a first interrupt signal; and when the RTC module 130 sends a second interrupt signal, determine the total motion time, and package the motion data generated within the total motion time to generate a motion record; and the RTC module 130 is coupled to the wearable electronic device, and is used to send a second interrupt signal to the wearable electronic device at a preset time interval.

[0034] In this embodiment, the wearable electronic device to be applied by the motion monitoring system 10 provided in the embodiment of the present application can be a smart watch, a mobile phone, a tablet computer, a desktop, a laptop, a handheld computer, a notebook computer, an ultra-mobile personal computer (UMPC), a netbook, and a cellular phone, a personal digital assistant (PDA), an augmented reality (AR)\virtual reality (VR) device, a media player, a television and other devices. The embodiment of the present application does not impose any special restrictions on the specific form of the wearable electronic device. In the embodiment of the present application, the structure of the wearable electronic device can be a smart watch with a motion monitoring function that can be worn on the user's wrist.

[0035] In this embodiment, the FreeRTOS operating system 100 is an open source real-time operating system (RTOS) developed by Richard Barry, originally as an open source alternative to the VxWorks operating system, and is intended to provide scalability and reliability for resource-constrained embedded systems (e.g., microcontroller units and smart watches). The multi-tasking thread feature of the FreeRTOS operating system 100 can be used to create multiple threads to perform different functional tasks. For example, a first thread 110 (which can be named sport_thread) can be created in the FreeRTOS operating system 100 to perform a motion monitoring task.

[0036] In addition, the RTC (Real-Time Clock) module can be used as a task scheduler, which allows the user to define a time interval (ie, a preset time interval) and execute a task after the time interval ends.

[0037] In one embodiment, the RTC module 130 includes a second interrupt pin 131, which is coupled to a processor of the wearable electronic device and is used to send a second interrupt signal to the processor at a preset time interval to wake up the processor.

[0038] In this embodiment, the preset time interval can be defined as 20 seconds, and the task to be completed by the RTC module 130 is defined as waking up the processor of the wearable electronic device, then the RTC module 130 can send a second interrupt signal to the processor of the wearable electronic device every 20 seconds to wake up the processor. The time interval can be set according to actual needs, and this application is not limited here.

[0039] In one embodiment, the FreeRTOS operating system 100 also includes a second thread 120 (which can be named ui_thread), and the second thread 120 is used to display the motion data collected by the motion sensor in a preset first interface of the display screen of the wearable electronic device when the RTC module 130 sends a second interrupt signal.

[0040] In this embodiment, the first thread 110 is a thread for performing motion monitoring in the FreeRTOS operating system 100. The first thread 110 can be activated in an event-based manner, and the first thread 110 can record the exercise duration of the user wearing the wearable electronic device, and call the algorithm of each motion sensor in the wearable electronic device to calculate the reading of each motion sensor to obtain motion data and motion records.

[0041] In addition, the second thread 120 is a thread for executing display tasks in the FreeRTOS operating system 100. The second thread 120 is responsible for regularly updating the graphical user interface (GUI), including redrawing graphic elements, processing animation effects, etc., to maintain the real-time and smoothness of the interface; the second thread 120 is also used to respond to user interactions such as touch events and button clicks, and perform corresponding operations, such as navigating menus, switching views, etc.; the second thread 120 is also used to manage GUI-related resources, such as images, fonts, and animations, to ensure that they can be quickly loaded and rendered when needed.

[0042] Among them, GUI is a computer user interface that uses graphical elements (such as windows, icons, buttons and menus) to replace the traditional text command interface. The graphical interface allows the user to interact with the computer system through visual elements and user interaction, rather than relying on keyboard input commands. The GUI can be made through an embedded graphics library. In this embodiment, LVGL can be used to make multiple GUIs, wherein LVGL (Light and Versatile Graphical Library) is an open source GUI library designed specifically for embedded systems. It is designed to provide high performance, low memory consumption and easy-to-use graphical interfaces, which are very suitable for resource-constrained devices such as microcontroller units and smart watches.

[0043] In this embodiment, the motion monitoring system provided in the embodiment of the present application realizes the collection, monitoring, recording and display of motion data through the thread communication mechanism of the open source FreeRTOS operating system, without the need for developers to manually associate these functions. This not only saves developers the time required to develop, maintain or transplant associated functions, but also reduces the error rate during development, thereby improving the reliability of the motion monitoring function of wearable electronic devices, and further improving the accuracy of wearable electronic devices in monitoring exercise time.

[0044] Specifically, Figure 2 FIG. 1 shows a workflow diagram of the first thread 110 according to an embodiment of the present application. Figure 2 As shown, the first thread 110 may perform the following steps:

[0045] Step S201, monitor whether the motion sensor sends a first interrupt signal. If yes, proceed to step S203.

[0046] Step S202, monitoring whether the RTC module 130 sends a second interrupt signal. If yes, proceed to step S206.

[0047] Step S203: acquiring motion data collected by the motion sensor.

[0048] Step S204 , storing the motion data in a preset buffer 140 .

[0049] Step S205: determining whether an abnormal motion event occurs based on the motion data collected by the motion sensor.

[0050] Step S206, determining the total exercise time, and packaging the exercise data generated during the total exercise time to generate an exercise record.

[0051] In this embodiment, in addition to executing the motion monitoring function, the first thread 110 can also be used to determine whether an abnormal motion event occurs based on the motion data collected by the motion sensor.

[0052] Specifically, the first thread 110 may include multiple modules to perform the above steps. In one embodiment, the first thread 110 includes a first monitoring module 111, a second monitoring module 112, a data acquisition module 113, a storage module 114, an anomaly detection module 115 and a motion monitoring module 116; wherein the first monitoring module 111 is used to monitor whether the motion sensor sends a first interrupt signal; the second monitoring module 112 is used to monitor whether the RTC module 130 sends a second interrupt signal; the data acquisition module 113 is used to obtain the motion data collected by the motion sensor when the first monitoring module 111 determines that the motion sensor sends a first interrupt signal; the storage module 114 is used to store the motion data in a preset buffer 140; the anomaly detection module 115 is used to determine whether a motion abnormality event occurs based on the motion data collected by the motion sensor; and the motion monitoring module 116 is used to determine the total motion time when the second monitoring module 112 determines that the RTC module 130 sends a second interrupt signal, and package the motion data generated within the total motion time to generate a motion record.

[0053] In this embodiment, when the first monitoring module 111 monitors that the motion sensor is interrupted (sends a first interrupt signal), the data acquisition module 113 can use the driver to read the sensor reading from the built-in motion sensor of the wearable electronic device, and use the algorithm to calculate the sensor reading to obtain motion data. The motion data may include the number of steps, exercise duration, exercise mileage, offset, number of running laps, etc.

[0054] The storage module 114 can temporarily store the motion data in the buffer 140 built into the motion monitoring system 10, and the abnormality detection module 115 can perform abnormality detection based on the motion data to determine whether an abnormal motion event occurs. For example, when the motion duration is greater than a preset threshold, the abnormality detection module 115 can determine that an excessive motion event occurs. The abnormality detection module 115 can send the detected abnormal motion event to the second thread 120, so that the second thread 120 displays the abnormal motion event in real time when executing the display task.

[0055] In addition, when the second monitoring module 112 monitors the second interrupt signal sent by the RTC module 130, the motion monitoring module 116 can accumulate the motion time to determine the total motion time, and read the motion data stored in the buffer 140 at the same time, and package the motion data in the total motion time according to the private protocol to generate a motion record. The motion monitoring module 116 can send the motion data and the motion record to the second thread 120, so that the second thread 120 displays the motion data and the motion record in real time when executing the display task.

[0056] The specific working process of the second thread 120 will be described below with reference to the accompanying drawings. Figure 3 is a workflow diagram of the second thread 120 according to an embodiment of the present application, such as Figure 3 As shown, the second thread 120 may perform the following steps:

[0057] Step S301, monitoring whether the first thread 110 detects an abnormal motion event. If yes, proceed to step S303.

[0058] Step S302, monitoring whether the RTC module 130 sends a second interrupt signal. If yes, proceed to step S304.

[0059] Step S303, waking up the display screen of the wearable electronic device.

[0060] Step S304, whether the display screen is in a bright screen state. If yes, proceed to step S305; if no, return to step S302.

[0061] Step S305: displaying the motion data collected by the motion sensor in a preset first interface of the display screen.

[0062] Step S306: displaying the abnormal motion event in a preset second interface of the display screen.

[0063] In this embodiment, the wearable electronic device may include a display screen, which may have a sleep function and can automatically turn off the screen when not used for a long time.

[0064] Specifically, the second thread 120 may include multiple modules to perform the above steps. In one embodiment, the second thread 120 includes a third monitoring module 121, a fourth monitoring module 122, a screen wake-up module 123, a screen state determination module 124, a motion data display module 125, and an abnormal event display module 126; wherein the third monitoring module 121 is used to monitor whether the first thread 110 detects an abnormal motion event; the fourth monitoring module 122 is used to monitor whether the RTC module 130 sends a second interrupt signal; the screen wake-up module 123 is used to wake up the display screen of the wearable electronic device when the third monitoring module 121 determines that the first thread 110 detects an abnormal motion event; the screen state determination module 124 is used to determine whether the display screen is in a bright screen state when the fourth monitoring module 122 determines that the RTC module 130 sends a second interrupt signal; the motion data display module 125 is used to display the motion data collected by the motion sensor in the preset first interface of the display screen when the display screen is in the bright screen state; and the abnormal event display module 126 is used to display the abnormal motion event in the preset second interface of the display screen after the screen wake-up module 123 wakes up the display screen.

[0065] In this embodiment, the screen status determination module 124 can determine whether the display screen is in the screen-on state when the fourth monitoring module 122 determines that the RTC module 130 sends a second interrupt signal; and enter the sleep state when the display screen is in the screen-off state, and the second thread 120 only has the third monitoring module 121 and the fourth monitoring module 122 continue to monitor external events at this time, thereby reducing overall power consumption; when the display screen is in the screen-on state, motion data is read from the cache 140, and the motion data is transmitted to the first interface of the display screen for refresh display.

[0066] In addition, when the third monitoring module 121 monitors that the first thread 110 detects an abnormal motion event, the screen wake-up module 123 activates the display screen regardless of whether the display screen is in a bright screen state, and transmits the abnormal motion event to the second interface of the display screen for refreshing the display.

[0067] Through the motion monitoring system 10 provided in the embodiment of the present application, the open source code FreeRTOS operating system 100 and LVGL are used to monitor and display motion data, and the threads of the FreeRTOS operating system 100 and the secure communication between threads are fully utilized. The processing, monitoring, and display of motion data all use independent threads to ensure the real-time data collection and the security of display. Specifically, the processing and monitoring of motion data include real-time collection, data monitoring, and data preservation, and the display of motion data includes real-time GUI display of motion data, which satisfies the real-time data collection and the timeliness of display; at the same time, the high-precision RTC module 130 is used to record the motion time with high precision, which solves the problem of inaccurate motion time caused by data collection or display delay, and the RTC module 130 can trigger the GUI outside the thread to achieve accurate refresh display, save the use of system timers, and reduce overall power consumption.

[0068] In addition, the various functions of the existing motion monitoring method based on wearable electronic devices (for example, the collection, display, storage, etc. of motion data) are often split and not effectively associated. When developing, maintaining and transplanting corresponding functions, the workload is often large, and the error rate is also high, and a large amount of manpower and time are required to develop the implementation method of the whole set of functions; and when using the motion monitoring system 10 provided by the embodiment of the present application, by utilizing the multi-tasking and thread communication mechanism of the FreeRTOS operating system 100, the real-time collection, monitoring, recording, display and preservation of motion data are realized, and there is no need for the developer to manually associate these functions, which can not only save the developer the time required for developing, maintaining or transplanting the associated functions, but also reduce the error rate during development, thereby improving the reliability of the motion monitoring function of the wearable electronic device, and then improving the accuracy of the monitoring of the motion time of the wearable electronic device. It should be understood that although the motion monitoring system 10 is based on the FreeRTOS system and the LVGL graphics library, the motion monitoring system 10 may not be limited to the FreeRTOS system and the LVGL graphics library, as long as the operating system has a multi-tasking and thread communication mechanism, it can be transplanted.

[0069] In one embodiment, the FreeRTOS operating system 100 is used to allocate a memory space 150 , and the memory space 150 is used to store motion data collected by the motion sensor and motion records acquired by the first thread 110 .

[0070] In this embodiment, when the first thread 110 of the FreeRTOS operating system 100 monitors the first interrupt signal, it can be determined that the user wearing the wearable electronic device starts to exercise. At this time, the FreeRTOS operating system 100 can dynamically apply for memory to allocate memory space 150.

[0071] In addition, the FreeRTOS operating system 100 can also be used to initialize the memory space 150 before storing motion data in the memory space 150 .

[0072] In this embodiment, the FreeRTOS operating system 100 can formulate data structures of various motion types, and grid the applied memory according to the data structure for normalizing data storage and subsequent calculation of the file offset of the current record.

[0073] In one embodiment, the FreeRTOS operating system 100 is also used to detect whether there is a pre-stored motion record in the memory space 150 before storing the motion record obtained by the first thread 110 in the memory space 150, and when there is a pre-stored motion record in the memory space 150, update the pre-stored motion record based on the motion record obtained by the first thread 110.

[0074] In this embodiment, the FreeRTOS operating system 100 may continuously read the motion data stored in the buffer 140 at a preset time interval, and store the motion data in the memory space 150 .

[0075] In addition, when the user exits exercise, the FreeRTOS operating system 100 can detect whether there is a pre-stored exercise record in the memory space 150 (for example, whether an exercise record for the day has been created). If there is no pre-stored exercise record, the FreeRTOS operating system 100 can create an exercise record based on the exercise data in the memory space 150; if there is a pre-stored exercise record in the memory space 150, the pre-stored exercise record can be updated based on the exercise record obtained by the first thread 110.

[0076] Specifically, the sports records can be spliced ​​according to the date and the type of sports. For example, the running lap information in the sports record obtained by the first thread 110 can be spliced ​​at the end of the created sports record, and the data header content of the sports record can be updated. The data header content can record the sports data such as the sports duration, sports mileage, offset, running laps, etc.; or, the sports records corresponding to the same type of sports (running, cycling, yoga, etc.) can be spliced ​​together, and the same type of sports can include only one sports record file in one day.

[0077] In addition, you can also upload exercise records to other apps or sports to further save storage resources.

[0078] In this way, motion records are stored by dynamically applying for memory, which solves the problem of excessive fixed memory usage and increased power consumption caused by frequent reading and writing of flash. At the same time, the splicing of motion records by date and type solves the problem of too many motion records, making the upload of motion records simpler and more efficient.

[0079] The technicians in the relevant field can clearly understand that for the convenience and simplicity of description, only the division of the above-mentioned functional units and modules is used as an example for illustration. In practical applications, the above-mentioned function allocation can be completed by different functional units and modules as needed, that is, the internal structure of the device can be divided into different functional units or modules to complete all or part of the functions described above. The functional units and modules in the embodiment can be integrated in a processing unit, or each unit can exist physically separately, or two or more units can be integrated in one unit. The above-mentioned integrated unit can be implemented in the form of hardware or in the form of software functional units. In addition, the specific names of the functional units and modules are only for the convenience of distinguishing each other, and are not used to limit the scope of protection of this application. The specific working process of the units and modules in the above-mentioned system can refer to the corresponding process in the aforementioned method embodiment, which will not be repeated here.

[0080] Figure 4 FIG. 4 is a schematic diagram of a wearable electronic device 40 according to an embodiment of the present application. Figure 4 As shown, the wearable electronic device 40 includes: at least one processor 41 ( Figure 4 Only one is shown), a memory 42 and a computer program 43 stored in the memory 42 and executable on at least one processor 41, the processor 41 is communicatively connected with the motion monitoring system 10, and when the processor 41 executes the computer program 43, various data interaction functions with the motion monitoring system 10 can be completed.

[0081] In one embodiment, the motion monitoring system 10 may also be built into the processor 41 .

[0082] The wearable electronic device 40 may also be a computing device such as a desktop computer, a notebook, a PDA, or a cloud server. The wearable electronic device may include but is not limited to a processor 41 and a memory 42. It is understood by those skilled in the art that Figure 4 These are merely examples of wearable electronic devices and do not constitute limitations on wearable electronic devices. Wearable electronic devices may include more or fewer components than those shown in the diagram, or a combination of certain components, or different components, and may also include input and output devices, network access devices, etc.

[0083] The processor 41 may be a central processing unit (CPU), or other general-purpose processors 41, digital signal processors 41 (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. The general-purpose processor 41 may be a microprocessor 41, or the processor 41 may be any conventional processor 41, etc.

[0084] In some embodiments, the memory 42 may be an internal storage unit of the wearable electronic device, such as a hard disk or memory of the wearable electronic device. In other embodiments, the memory 42 may also be an external storage device of the wearable electronic device, such as a plug-in hard disk, a smart memory card (Smart Media Card, SMC), a secure digital (Secure Digital, SD) card, a flash card (Flash Card), etc. equipped on the wearable electronic device. In other embodiments, the memory 42 may also include both an internal storage unit and an external storage device of the wearable electronic device. The memory 42 is used to store an operating system, an application, a boot loader (BootLoader), data, and other programs, such as the program code of the computer program 43. The memory 42 may also be used to temporarily store data that has been output or is to be output.

[0085] In the above embodiments, the description of each embodiment has its own emphasis. For parts that are not described or recorded in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.

[0086] Those of ordinary skill in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.

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

[0088] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0089] The above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit them. Although the present application has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. These modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present application, and should all be included in the protection scope of the present application.

Claims

1. A motion monitoring system, characterized in that: Applied to wearable electronic devices, including FreeRTOS operating system and RTC module; among them, The FreeRTOS operating system includes a first thread, wherein the first thread is used to obtain motion data collected by the motion sensor when the motion sensor of the wearable electronic device sends a first interrupt signal; and when the RTC module sends a second interrupt signal, determine the total motion time, and package the motion data generated within the total motion time to generate a motion record; and The RTC module is coupled to the wearable electronic device and is used to send the second interrupt signal to the wearable electronic device at a preset time interval.

2. The motion monitoring system according to claim 1, characterized in that: The FreeRTOS operating system also includes a second thread, which is used to display the motion data collected by the motion sensor in a preset first interface of the display screen of the wearable electronic device when the RTC module sends the second interrupt signal.

3. The motion monitoring system according to claim 2, characterized in that: The first thread is also used to determine whether an abnormal motion event occurs based on the motion data collected by the motion sensor; the second thread is also used to wake up the display screen when the abnormal motion event occurs, and display the abnormal motion event in a preset second interface of the display screen.

4. The motion monitoring system according to any one of claims 1 to 3, characterized in that: The first thread includes a first monitoring module, a second monitoring module, a data acquisition module, a storage module, an abnormality detection module and a motion monitoring module; wherein, The first monitoring module is used to monitor whether the motion sensor sends the first interrupt signal; The second monitoring module is used to monitor whether the RTC module sends the second interrupt signal; The data acquisition module is used for acquiring the motion data collected by the motion sensor when the first monitoring module determines that the motion sensor sends the first interrupt signal; The storage module is used to store the motion data in a preset buffer; The abnormality detection module is used to determine whether an abnormal motion event occurs based on the motion data collected by the motion sensor; and The motion monitoring module is used to determine the total motion time when the second monitoring module determines that the RTC module sends the second interrupt signal, and to package the motion data generated within the total motion time to generate a motion record.

5. The motion monitoring system according to claim 2 or 3, characterized in that: The second thread includes a third monitoring module, a fourth monitoring module, a screen wake-up module, a screen state determination module, a motion data display module and an abnormal event display module; wherein, The third monitoring module is used to monitor whether the first thread detects the abnormal motion event; The fourth monitoring module is used to monitor whether the RTC module sends the second interrupt signal; The screen wake-up module is used to wake up the display screen of the wearable electronic device when the third monitoring module determines that the first thread detects the abnormal motion event; The screen state determination module is used to determine whether the display screen is in a bright screen state when the fourth monitoring module determines that the RTC module sends the second interrupt signal; The motion data display module is used to display the motion data collected by the motion sensor in a preset first interface of the display screen when the display screen is in a bright screen state; and The abnormal event display module is used to display the abnormal motion event in a preset second interface of the display screen after the screen wake-up module wakes up the display screen.

6. The motion monitoring system according to any one of claims 1 to 3, characterized in that: The FreeRTOS operating system is used to allocate memory space, and the memory space is used to store the motion data collected by the motion sensor and the motion record acquired by the first thread.

7. The motion monitoring system according to claim 6, characterized in that: The FreeRTOS operating system is also used to initialize the memory space before storing the motion data in the memory space.

8. The motion monitoring system according to claim 6, characterized in that: The FreeRTOS operating system is also used to detect whether there is a pre-stored motion record in the memory space before storing the motion record obtained by the first thread in the memory space, and when the pre-stored motion record exists in the memory space, update the pre-stored motion record based on the motion record obtained by the first thread.

9. The motion monitoring system according to any one of claims 1 to 3, characterized in that: The RTC module includes a second interrupt pin, which is coupled to the processor of the wearable electronic device and is used to send the second interrupt signal to the processor to wake up the processor.

10. A wearable electronic device, characterized in that: The wearable electronic device comprises the motion monitoring system according to any one of claims 1 to 9.