CN105496428A - Wearable device control implementation method and device - Google Patents
Wearable device control implementation method and device Download PDFInfo
- Publication number
- CN105496428A CN105496428A CN201510927717.5A CN201510927717A CN105496428A CN 105496428 A CN105496428 A CN 105496428A CN 201510927717 A CN201510927717 A CN 201510927717A CN 105496428 A CN105496428 A CN 105496428A
- Authority
- CN
- China
- Prior art keywords
- heart rate
- rate value
- user
- wearable device
- movement parameter
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
Classifications
-
- A—HUMAN NECESSITIES
- A61—MEDICAL OR VETERINARY SCIENCE; HYGIENE
- A61B—DIAGNOSIS; SURGERY; IDENTIFICATION
- A61B5/00—Measuring for diagnostic purposes; Identification of persons
- A61B5/16—Devices for psychotechnics; Testing reaction times ; Devices for evaluating the psychological state
- A61B5/165—Evaluating the state of mind, e.g. depression, anxiety
-
- A—HUMAN NECESSITIES
- A61—MEDICAL OR VETERINARY SCIENCE; HYGIENE
- A61B—DIAGNOSIS; SURGERY; IDENTIFICATION
- A61B5/00—Measuring for diagnostic purposes; Identification of persons
- A61B5/02—Detecting, measuring or recording for evaluating the cardiovascular system, e.g. pulse, heart rate, blood pressure or blood flow
- A61B5/024—Measuring pulse rate or heart rate
- A61B5/0245—Measuring pulse rate or heart rate by using sensing means generating electric signals, i.e. ECG signals
-
- A—HUMAN NECESSITIES
- A61—MEDICAL OR VETERINARY SCIENCE; HYGIENE
- A61B—DIAGNOSIS; SURGERY; IDENTIFICATION
- A61B5/00—Measuring for diagnostic purposes; Identification of persons
- A61B5/103—Measuring devices for testing the shape, pattern, colour, size or movement of the body or parts thereof, for diagnostic purposes
- A61B5/11—Measuring movement of the entire body or parts thereof, e.g. head or hand tremor or mobility of a limb
-
- A—HUMAN NECESSITIES
- A61—MEDICAL OR VETERINARY SCIENCE; HYGIENE
- A61B—DIAGNOSIS; SURGERY; IDENTIFICATION
- A61B5/00—Measuring for diagnostic purposes; Identification of persons
- A61B5/68—Arrangements of detecting, measuring or recording means, e.g. sensors, in relation to patient
- A61B5/6801—Arrangements of detecting, measuring or recording means, e.g. sensors, in relation to patient specially adapted to be attached to or worn on the body surface
- A61B5/6802—Sensor mounted on worn items
-
- A—HUMAN NECESSITIES
- A61—MEDICAL OR VETERINARY SCIENCE; HYGIENE
- A61B—DIAGNOSIS; SURGERY; IDENTIFICATION
- A61B5/00—Measuring for diagnostic purposes; Identification of persons
- A61B5/68—Arrangements of detecting, measuring or recording means, e.g. sensors, in relation to patient
- A61B5/6801—Arrangements of detecting, measuring or recording means, e.g. sensors, in relation to patient specially adapted to be attached to or worn on the body surface
- A61B5/6802—Sensor mounted on worn items
- A61B5/6803—Head-worn items, e.g. helmets, masks, headphones or goggles
-
- A—HUMAN NECESSITIES
- A61—MEDICAL OR VETERINARY SCIENCE; HYGIENE
- A61B—DIAGNOSIS; SURGERY; IDENTIFICATION
- A61B5/00—Measuring for diagnostic purposes; Identification of persons
- A61B5/68—Arrangements of detecting, measuring or recording means, e.g. sensors, in relation to patient
- A61B5/6801—Arrangements of detecting, measuring or recording means, e.g. sensors, in relation to patient specially adapted to be attached to or worn on the body surface
- A61B5/6802—Sensor mounted on worn items
- A61B5/681—Wristwatch-type devices
-
- A—HUMAN NECESSITIES
- A61—MEDICAL OR VETERINARY SCIENCE; HYGIENE
- A61B—DIAGNOSIS; SURGERY; IDENTIFICATION
- A61B5/00—Measuring for diagnostic purposes; Identification of persons
- A61B5/74—Details of notification to user or communication with user or patient; User input means
- A61B5/7465—Arrangements for interactive communication between patient and care services, e.g. by using a telephone network
Landscapes
- Health & Medical Sciences (AREA)
- Life Sciences & Earth Sciences (AREA)
- Engineering & Computer Science (AREA)
- Animal Behavior & Ethology (AREA)
- Public Health (AREA)
- Physics & Mathematics (AREA)
- Veterinary Medicine (AREA)
- Biophysics (AREA)
- Pathology (AREA)
- Biomedical Technology (AREA)
- Heart & Thoracic Surgery (AREA)
- Medical Informatics (AREA)
- Molecular Biology (AREA)
- Surgery (AREA)
- General Health & Medical Sciences (AREA)
- Psychiatry (AREA)
- Physiology (AREA)
- Cardiology (AREA)
- Child & Adolescent Psychology (AREA)
- Oral & Maxillofacial Surgery (AREA)
- Dentistry (AREA)
- Signal Processing (AREA)
- Developmental Disabilities (AREA)
- Educational Technology (AREA)
- Hospice & Palliative Care (AREA)
- Psychology (AREA)
- Social Psychology (AREA)
- Nursing (AREA)
- Telephone Function (AREA)
- User Interface Of Digital Computer (AREA)
Abstract
Description
技术领域technical field
本发明涉及智能设备技术领域,特别是涉及一种可佩戴设备控制的实现方法及装置。The present invention relates to the technical field of smart devices, in particular to a method and device for realizing wearable device control.
背景技术Background technique
目前,各大学校要求学生加强体育锻炼,但是学生的体质参差不齐,老师也很难了解学生的体质状态,以及在体育运动中的状态,而作为学生的家长更是难以了解孩子的情况。在运动中,经常会有些学生容易出现体力不支,勉强运动下来,却会发生晕倒、昏迷、猝死等情况。At present, various schools require students to strengthen physical exercise, but students' physiques are uneven, and it is difficult for teachers to understand the physical state of students and their status in sports, and it is even more difficult for parents of students to understand their children's situation. During exercise, some students are prone to physical exhaustion, and after barely exercising, fainting, coma, and sudden death may occur.
随着科技的发展,为了更好的跟踪监测人们的身体状况,提高人们的生活质量,智能手环应运而生。智能手环作为一种穿戴式智能设备,类似于手表。手表作为时间获取的基本工具,由于体积较小,便于携带,电池续航时间长,使用不受限制,而且,手表可以防水防震,无论游泳,还是打球,都可以随身携带,方便使用,但现有手表功能单一,随着手机、平板电脑的出现逐渐淡出人们的视线。通过智能手环,用户可以记录日常生活中的锻炼、睡眠、饮食等实时数据,智能手环内置传感器,并通过智能手环上配置的接口与其它智能设备进行传输及同步数据,起到通过数据指导健康生活的作用。由于智能手环方便携带且外观符合用户的审美需求,逐渐成为用户常用的智能设备之一。With the development of science and technology, in order to better track and monitor people's physical conditions and improve people's quality of life, smart bracelets have emerged as the times require. As a wearable smart device, a smart bracelet is similar to a watch. As a basic tool for time acquisition, the watch is easy to carry due to its small size, long battery life, and unlimited use. Moreover, the watch can be waterproof and shockproof. It can be carried with you whether you are swimming or playing ball, and it is convenient to use. Watches have a single function, and gradually fade out of people's sight along with the appearance of mobile phones and tablet computers. Through the smart bracelet, users can record real-time data such as exercise, sleep, and diet in daily life. The smart bracelet has built-in sensors, and transmits and synchronizes data with other smart devices through the interface configured on the smart bracelet. Guiding the role of healthy living. Since the smart bracelet is easy to carry and its appearance meets the aesthetic needs of users, it has gradually become one of the smart devices commonly used by users.
目前常见的智能手环有如下几种功能:计步、测量卡路里、测量距离等,还有老人、儿童的防走失功能。但是多数功能都集中在运动和睡眠监测。从功能角度来看,现有的智能手环虽然能够实现一些功能,但相对于专业智能设备来说比较单一,无法满足用户特定某一方面的更多要求;而从技术角度来看,智能手环一般采用超低功耗蓝牙技术,MEMS微电机技术,超小型震动马达,重力加速度和方向传感器,但是并不具有深入了解孩子心率变化的技术,因而不能根据孩子心率变化来确定孩子对所处环境的喜好,从而实现儿童身体状况监测以及判断儿童对所处环境喜好的功能。At present, common smart bracelets have the following functions: step counting, calorie measurement, distance measurement, etc., as well as anti-lost functions for the elderly and children. But most of the features are focused on exercise and sleep monitoring. From a functional point of view, although the existing smart bracelets can achieve some functions, they are relatively simple compared with professional smart devices, and cannot meet more requirements of users in a certain aspect; and from a technical point of view, smart wristbands The ring generally adopts ultra-low-power Bluetooth technology, MEMS micro-motor technology, ultra-small vibration motor, gravity acceleration and direction sensor, but it does not have the technology to deeply understand the child's heart rate change, so it cannot determine the child's location based on the child's heart rate change. Environmental preferences, so as to realize the function of monitoring children's physical condition and judging children's preferences for the environment.
发明内容Contents of the invention
本发明的目的旨在解决上述至少一个问题,提供一种可佩戴设备控制的实现方法及装置,以实现用户身体状况监测以及判断用户对所处环境喜好的功能。The purpose of the present invention is to solve at least one of the above problems, and provide a wearable device control implementation method and device, so as to realize the functions of monitoring the user's physical condition and judging the user's preference for the environment.
为了实现上述目的,本发明提供一种可佩戴设备控制的实现方法,包括以下步骤:In order to achieve the above purpose, the present invention provides a method for implementing wearable device control, including the following steps:
获取心电传感器检测到的数据以确定心率值,同时获取加速度传感器检测到的数据以确定活动参数;Obtain the data detected by the ECG sensor to determine the heart rate value, and at the same time obtain the data detected by the acceleration sensor to determine the activity parameters;
判定心率值、活动参数是否与预设条件匹配;Determine whether the heart rate value and activity parameters match the preset conditions;
当心率值与活动参数满足预设条件时,通过远程接口发送提醒信息。When the heart rate value and activity parameters meet the preset conditions, a reminder message is sent through the remote interface.
进一步的,在所述判定心率值、活动参数是否与预设条件匹配的步骤中:Further, in the step of determining whether the heart rate value and the activity parameters match the preset conditions:
当检测到心率值大于设定阈值,且活动参数小于或等于设定阈值时,视为与预设条件相匹配,由此判定用户处于设定的心理状态。When it is detected that the heart rate value is greater than the set threshold and the activity parameter is less than or equal to the set threshold, it is considered to match the preset condition, thereby determining that the user is in the set psychological state.
进一步的,在所述判定心率值、活动参数是否与预设条件匹配的步骤中:Further, in the step of determining whether the heart rate value and the activity parameters match the preset conditions:
当检测到心率值和活动参数均大于设定阈值时,视为与预设条件相匹配,由此判定用户处于设定的运动状态。When it is detected that the heart rate value and the activity parameter are both greater than the set threshold, it is considered to match the preset condition, and thus it is determined that the user is in the set exercise state.
进一步的,在所述判定心率值、活动参数是否与预设条件匹配的步骤中:Further, in the step of determining whether the heart rate value and the activity parameters match the preset conditions:
当检测到活动参数保持稳定,而心率值突变,视为与预设条件相匹配,由此判定用户处于设定的心理状态。When it is detected that the activity parameters remain stable, but the heart rate value changes suddenly, it is considered to match the preset condition, and thus it is determined that the user is in the set psychological state.
进一步的,在所述判定心率值、活动参数是否与预设条件匹配的步骤中:Further, in the step of determining whether the heart rate value and the activity parameters match the preset conditions:
当检测到心率值保持稳定,而活动参数突变,视为与预设条件相匹配,由此判定用户处于设定的运动状态。When it is detected that the heart rate value remains stable and the activity parameter changes suddenly, it is considered to match the preset condition, and thus it is determined that the user is in the set exercise state.
进一步的,方法还包括:Further, the method also includes:
在一定的时间间隔内,获取心率值和活动参数。In a certain time interval, get the heart rate value and activity parameters.
进一步的,所述当心率值与活动参数满足预设条件时,通过远程接口发送提醒信息的步骤,具体为:Further, when the heart rate value and the activity parameters meet the preset conditions, the step of sending reminder information through the remote interface is specifically:
当心率值与活动参数满足预设条件时,通过蓝牙信号发送提醒信息至移动终端。When the heart rate value and the activity parameters meet the preset conditions, the reminder information is sent to the mobile terminal through the bluetooth signal.
进一步的,所述当心率值与活动参数满足预设条件时,通过蓝牙信号发送提醒信息至移动终端的步骤中:Further, in the step of sending reminder information to the mobile terminal via Bluetooth signal when the heart rate value and activity parameters meet the preset conditions:
将提醒信息进行格式化处理后发送至与本佩戴设备绑定的关联用户。The reminder information is formatted and sent to the associated user bound to the wearable device.
进一步的,所述当心率值与活动参数满足预设条件时,通过远程接口发送提醒信息的步骤中:Further, in the step of sending reminder information through the remote interface when the heart rate value and activity parameters meet the preset conditions:
将处理后的提醒信息进行存储。Store the processed reminder information.
进一步的,方法还包括:Further, the method also includes:
所述提醒信息被存储于可佩戴设备本机。The reminder information is stored locally in the wearable device.
进一步的,方法还包括:Further, the method also includes:
所述提醒信息被存储于云端服务器。The reminder information is stored in the cloud server.
进一步的,本方法还包括后续步骤:Further, the method also includes subsequent steps:
响应远程用户针对特定提醒信息的删除指令,删除特定提醒信息。Deleting the specific reminder information in response to a deletion instruction of the remote user for the specific reminder information.
进一步的,方法还包括:Further, the method also includes:
所述活动参数的变化值达到设定阈值时,响应心电传感器的启动指令,获得心率值。When the change value of the activity parameter reaches the set threshold, the heart rate value is obtained in response to an activation instruction of the ECG sensor.
进一步的,方法还包括:Further, the method also includes:
所述心率值的变化值达到设定阈值时,响应加速度传感器的启动指令,获得活动参数。When the change value of the heart rate value reaches a set threshold, the activity parameter is obtained in response to an activation instruction of the acceleration sensor.
进一步的,方法还包括:Further, the method also includes:
所述可佩戴设备为智能手表、智能手环或智能眼镜。The wearable device is a smart watch, smart bracelet or smart glasses.
一种可佩戴设备控制的实现装置,其特征在于,包括:A device for implementing control of a wearable device, characterized in that it includes:
获取模块:获取心电传感器检测到的数据以确定心率值,同时获取加速度传感器检测到的数据以确定活动参数;Acquisition module: obtain the data detected by the ECG sensor to determine the heart rate value, and at the same time obtain the data detected by the acceleration sensor to determine the activity parameters;
判定模块:判定心率值、活动参数是否与预设条件匹配;Judgment module: determine whether the heart rate value and activity parameters match the preset conditions;
发送模块:当心率值与活动参数满足预设条件时,通过远程接口发送提醒信息。Sending module: when the heart rate value and activity parameters meet the preset conditions, send reminder information through the remote interface.
进一步的,所述判定模块包括:Further, the judgment module includes:
第一检测模块:当检测到心率值大于设定阈值,且活动参数小于或等于设定阈值时,视为与预设条件相匹配,由此判定用户处于设定的心理状态。The first detection module: when it is detected that the heart rate value is greater than the set threshold and the activity parameter is less than or equal to the set threshold, it is deemed to match the preset condition, thereby determining that the user is in the set psychological state.
进一步的,所述判定模块包括:Further, the judgment module includes:
第二检测模块:当检测到心率值和活动参数均大于设定阈值时,视为与预设条件相匹配,由此判定用户处于设定的运动状态。The second detection module: when it is detected that the heart rate value and the activity parameter are both greater than the set threshold, it is deemed to match the preset condition, thereby determining that the user is in the set exercise state.
进一步的,所述判定模块包括:Further, the judgment module includes:
第三检测模块:当检测到活动参数保持稳定,而心率值突变,视为与预设条件相匹配,由此判定用户处于设定的心理状态。The third detection module: when it is detected that the activity parameters remain stable, but the heart rate value changes suddenly, it is considered to match the preset condition, and thus it is determined that the user is in the set psychological state.
进一步的,所述判定模块包括:Further, the judgment module includes:
第四检测模块:当检测到心率值保持稳定,而活动参数突变,视为与预设条件相匹配,由此判定用户处于设定的运动状态。The fourth detection module: when it is detected that the heart rate value remains stable, but the activity parameter changes suddenly, it is considered to match the preset condition, and thus it is determined that the user is in the set exercise state.
进一步的,装置还包括:Further, the device also includes:
预设模块:在一定的时间间隔内,获取心率值和活动参数。Preset module: Obtain heart rate values and activity parameters within a certain time interval.
进一步的,所述发送模块还包括:Further, the sending module also includes:
移动终端接收模块:当心率值与活动参数满足预设条件时,通过蓝牙信号发送提醒信息至移动终端。Mobile terminal receiving module: when the heart rate value and activity parameters meet the preset conditions, send reminder information to the mobile terminal through bluetooth signal.
进一步的,所述移动终端接收模块还包括:Further, the mobile terminal receiving module also includes:
信息处理模块:将提醒信息进行格式化处理后发送至与本佩戴设备绑定的关联用户。Information processing module: format the reminder information and send it to the associated user bound to the wearable device.
进一步的,所述信息处理模块还包括:Further, the information processing module also includes:
信息存储模块:将处理后的提醒信息进行存储。Information storage module: store the processed reminder information.
进一步的,所述信息存储模块包括:Further, the information storage module includes:
第一存储模块:所述提醒信息被存储于可佩戴设备本机。The first storage module: the reminder information is stored in the wearable device itself.
进一步的,所述信息存储模块包括:Further, the information storage module includes:
第二存储模块:所述提醒信息被存储于云端服务器。Second storage module: the reminder information is stored in the cloud server.
进一步的,装置还包括:Further, the device also includes:
删除模块:响应远程用户针对特定提醒信息的删除指令,删除特定提醒信息。Deletion module: responding to a remote user's deletion instruction for specific reminder information, and deleting specific reminder information.
进一步的,装置还包括:Further, the device also includes:
第一启动模块:所述活动参数的变化值达到设定阈值时,响应心电传感器的启动指令,获得心率值。The first starting module: when the change value of the activity parameter reaches the set threshold, it responds to the starting instruction of the ECG sensor to obtain the heart rate value.
进一步的,装置还包括:Further, the device also includes:
第二启动模块:所述心率值的变化值达到设定阈值时,响应加速度传感器的启动指令,获得活动参数。The second starting module: when the change value of the heart rate value reaches a set threshold, it responds to the starting instruction of the acceleration sensor to obtain activity parameters.
本发明的方案具有以下优点:The solution of the present invention has the following advantages:
1、本发明通过获取心电传感器检测到的数据以确定心率值,同时获取加速度传感器检测到的数据以确定活动参数;判定心率值、活动参数是否与预设条件匹配;当心率值与活动参数满足预设条件时,通过远程接口发送提醒信息,实现用户身体状况监测以及判断用户对所处环境喜好的功能,区别于市面上存在的功能单一无法判定用户对所处环境喜好的可佩戴设备。1. The present invention determines the heart rate value by acquiring the data detected by the ECG sensor, and at the same time acquires the data detected by the acceleration sensor to determine the activity parameters; determines whether the heart rate value and the activity parameters match the preset conditions; when the heart rate value and the activity parameters When the preset conditions are met, a reminder message is sent through the remote interface to realize the function of monitoring the user's physical condition and judging the user's preference for the environment, which is different from the wearable devices on the market that have a single function and cannot judge the user's preference for the environment.
2、本发明通过设定以下几种情况:当检测到心率值大于设定阈值,且活动参数小于或等于设定阈值时,视为与预设条件相匹配,由此判定用户处于设定的心理状态;当检测到心率值和活动参数均大于设定阈值时,视为与预设条件相匹配,由此判定用户处于设定的运动状态;当检测到活动参数保持稳定,而心率值突变,视为与预设条件相匹配,由此判定用户处于设定的心理状态;当检测到心率值保持稳定,而活动参数突变,视为与预设条件相匹配,由此判定用户处于设定的运动状态;采用此种方式对用户的不同状态进行判定,设计新颖、独特,效果更好。2. The present invention sets the following situations: when the detected heart rate value is greater than the set threshold and the activity parameter is less than or equal to the set threshold, it is deemed to match the preset condition, thus judging that the user is in the set Mental state; when it is detected that the heart rate value and activity parameters are greater than the set threshold, it is considered to match the preset condition, thus judging that the user is in the set exercise state; when the detected activity parameters remain stable, but the heart rate value changes suddenly , it is deemed to match the preset condition, and thus it is determined that the user is in the set psychological state; when it is detected that the heart rate value remains stable, but the activity parameter changes suddenly, it is deemed to match the preset condition, and thus it is determined that the user is in the set psychological state. The motion state of the user; this method is used to judge the different states of the user, the design is novel and unique, and the effect is better.
本发明附加的方面和优点将在下面的描述中部分给出,这些将从下面的描述中变得明显,或通过本发明的实践了解到。Additional aspects and advantages of the invention will be set forth in part in the description which follows, and will become apparent from the description, or may be learned by practice of the invention.
附图说明Description of drawings
本发明上述的和/或附加的方面和优点从下面结合附图对实施例的描述中将变得明显和容易理解,其中:The above and/or additional aspects and advantages of the present invention will become apparent and easy to understand from the following description of the embodiments in conjunction with the accompanying drawings, wherein:
图1为本发明可佩戴设备控制的实现方法的流程示意图;FIG. 1 is a schematic flowchart of a method for implementing wearable device control in the present invention;
图2为本发明可佩戴设备控制的实现装置的结构示意图;FIG. 2 is a schematic structural diagram of an implementation device for wearable device control in the present invention;
图3为本发明可佩戴设备控制的实现装置实施例一判定模块的结构示意图;Fig. 3 is a schematic structural diagram of a determination module of an embodiment of a device for implementing control of a wearable device in the present invention;
图4为本发明可佩戴设备控制的实现装置实施例二判定模块的结构示意图;Fig. 4 is a schematic structural diagram of the determination module of Embodiment 2 of the apparatus for realizing wearable device control of the present invention;
图5为本发明可佩戴设备控制的实现装置实施例三判定模块的结构示意图;Fig. 5 is a schematic structural diagram of the determination module of Embodiment 3 of the implementation device for wearable device control of the present invention;
图6为本发明可佩戴设备控制的实现装置实施例四判定模块的结构示意图;FIG. 6 is a schematic structural diagram of a determination module of Embodiment 4 of the implementation device for wearable device control of the present invention;
图7为本发明可佩戴设备控制的实现装置实施例一信息存储模块的结构示意图;Fig. 7 is a schematic structural diagram of an information storage module of an embodiment of an implementation device for wearable device control in the present invention;
图8为本发明可佩戴设备控制的实现装置实施例二信息存储模块的结构示意图。FIG. 8 is a schematic structural diagram of an information storage module in Embodiment 2 of an apparatus for implementing control of a wearable device according to the present invention.
具体实施方式detailed description
下面详细描述本发明的实施例,所述实施例的示例在附图中示出,其中自始至终相同或类似的标号表示相同或类似的元件或具有相同或类似功能的元件。下面通过参考附图描述的实施例是示例性的,仅用于解释本发明,而不能解释为对本发明的限制。Embodiments of the present invention are described in detail below, examples of which are shown in the drawings, wherein the same or similar reference numerals designate the same or similar elements or elements having the same or similar functions throughout. The embodiments described below by referring to the figures are exemplary only for explaining the present invention and should not be construed as limiting the present invention.
本技术领域技术人员可以理解,除非特意声明,这里使用的单数形式“一”、“一个”、“所述”和“该”也可包括复数形式。应该进一步理解的是,本发明的说明书中使用的措辞“包括”是指存在所述特征、整数、步骤、操作、元件和/或组件,但是并不排除存在或添加一个或多个其他特征、整数、步骤、操作、元件、组件和/或它们的组。应该理解,当我们称元件被“连接”或“耦接”到另一元件时,它可以直接连接或耦接到其他元件,或者也可以存在中间元件。此外,这里使用的“连接”或“耦接”可以包括无线连接或无线耦接。这里使用的措辞“和/或”包括一个或更多个相关联的列出项的全部或任一单元和全部组合。Those skilled in the art will understand that unless otherwise stated, the singular forms "a", "an", "said" and "the" used herein may also include plural forms. It should be further understood that the word "comprising" used in the description of the present invention refers to the presence of said features, integers, steps, operations, elements and/or components, but does not exclude the presence or addition of one or more other features, Integers, steps, operations, elements, components, and/or groups thereof. It will be understood that when an element is referred to as being "connected" or "coupled" to another element, it can be directly connected or coupled to the other element or intervening elements may also be present. Additionally, "connected" or "coupled" as used herein may include wireless connection or wireless coupling. The expression "and/or" used herein includes all or any elements and all combinations of one or more associated listed items.
本技术领域技术人员可以理解,除非另外定义,这里使用的所有术语(包括技术术语和科学术语),具有与本发明所属领域中的普通技术人员的一般理解相同的意义。还应该理解的是,诸如通用字典中定义的那些术语,应该被理解为具有与现有技术的上下文中的意义一致的意义,并且除非像这里一样被特定定义,否则不会用理想化或过于正式的含义来解释。Those skilled in the art can understand that, unless otherwise defined, all terms (including technical terms and scientific terms) used herein have the same meaning as commonly understood by those of ordinary skill in the art to which this invention belongs. It should also be understood that terms, such as those defined in commonly used dictionaries, should be understood to have meanings consistent with their meaning in the context of the prior art, and unless specifically defined as herein, are not intended to be idealized or overly Formal meaning to explain.
本技术领域技术人员可以理解,这里所使用的“终端”、“终端设备”既包括无线信号接收器的设备,其仅具备无发射能力的无线信号接收器的设备,又包括接收和发射硬件的设备,其具有能够在双向通信链路上,执行双向通信的接收和发射硬件的设备。这种设备可以包括:蜂窝或其他通信设备,其具有单线路显示器或多线路显示器或没有多线路显示器的蜂窝或其他通信设备;PCS(PersonalCommunicationsService,个人通信系统),其可以组合语音、数据处理、传真和/或数据通信能力;PDA(PersonalDigitalAssistant,个人数字助理),其可以包括射频接收器、寻呼机、互联网/内联网访问、网络浏览器、记事本、日历和/或GPS(GlobalPositioningSystem,全球定位系统)接收器;常规膝上型和/或掌上型计算机或其他设备,其具有和/或包括射频接收器的常规膝上型和/或掌上型计算机或其他设备。这里所使用的“终端”、“终端设备”可以是便携式、可运输、安装在交通工具(航空、海运和/或陆地)中的,或者适合于和/或配置为在本地运行,和/或以分布形式,运行在地球和/或空间的任何其他位置运行。这里所使用的“终端”、“终端设备”还可以是通信终端、上网终端、音乐/视频播放终端,例如可以是PDA、MID(MobileInternetDevice,移动互联网设备)和/或具有音乐/视频播放功能的移动电话,也可以是智能电视、机顶盒等设备。Those skilled in the art can understand that the "terminal" and "terminal equipment" used here not only include wireless signal receiver equipment, which only has wireless signal receiver equipment without transmission capabilities, but also include receiving and transmitting hardware. A device having receiving and transmitting hardware capable of performing bi-directional communication over a bi-directional communication link. Such equipment may include: cellular or other communication equipment, which has a single-line display or a multi-line display or a cellular or other communication equipment without a multi-line display; PCS (Personal Communications Service, personal communication system), which can combine voice, data processing, Fax and/or data communication capability; PDA (Personal Digital Assistant, personal digital assistant), which may include radio frequency receiver, pager, Internet/Intranet access, web browser, notepad, calendar and/or GPS (Global Positioning System, Global Positioning System ) receiver; a conventional laptop and/or palmtop computer or other device having and/or including a radio frequency receiver. As used herein, a "terminal", "terminal device" may be portable, transportable, installed in a vehicle (air, sea, and/or land), or adapted and/or configured to operate locally, and/or In distributed form, the operation operates at any other location on Earth and/or in space. The "terminal" and "terminal equipment" used here can also be communication terminals, Internet terminals, music/video playback terminals, such as PDAs, MIDs (MobileInternetDevice, mobile Internet devices) and/or devices with music/video playback functions. Mobile phones, smart TVs, set-top boxes, and other devices.
本技术领域技术人员可以理解,这里所使用的远端网络设备,其包括但不限于计算机、网络主机、单个网络服务器、多个网络服务器集或多个服务器构成的云。在此,云由基于云计算(CloudComputing)的大量计算机或网络服务器构成,其中,云计算是分布式计算的一种,由一群松散耦合的计算机集组成的一个超级虚拟计算机。本发明的实施例中,远端网络设备、终端设备与WNS服务器之间可通过任何通信方式实现通信,包括但不限于,基于3GPP、LTE、WIMAX的移动通信、基于TCP/IP、UDP协议的计算机网络通信以及基于蓝牙、红外传输标准的近距无线传输方式。Those skilled in the art can understand that the remote network device used here includes, but is not limited to, a computer, a network host, a single network server, a set of multiple network servers, or a cloud formed by multiple servers. Here, the cloud is composed of a large number of computers or network servers based on cloud computing (Cloud Computing), wherein cloud computing is a kind of distributed computing, a super virtual computer composed of a group of loosely coupled computer sets. In the embodiment of the present invention, the communication between the remote network equipment, the terminal equipment and the WNS server can be realized through any communication method, including but not limited to, mobile communication based on 3GPP, LTE, WIMAX, based on TCP/IP, UDP protocol Computer network communication and short-distance wireless transmission methods based on Bluetooth and infrared transmission standards.
本发明所述方法主要适用于智能手机终端或者智能平板终端等,不限制于其操作系统的类型,可以是Android、IOS、塞班等操作系统。为了说明本发明的可佩戴设备控制的实现方法的详细实现过程,请参阅图1,该方法包括以下步骤:The method of the present invention is mainly applicable to smart phone terminals or smart tablet terminals, etc., and is not limited to the type of the operating system, which may be Android, IOS, Symbian and other operating systems. In order to illustrate the detailed implementation process of the implementation method of the wearable device control of the present invention, please refer to Figure 1, the method includes the following steps:
S11、获取心电传感器检测到的数据以确定心率值,同时获取加速度传感器检测到的数据以确定活动参数。S11. Obtain the data detected by the ECG sensor to determine the heart rate value, and at the same time obtain the data detected by the acceleration sensor to determine the activity parameters.
心电传感器至少包括电极、放大电路、通信模块和电源四个部分。传感电极用于获取用户电信号,由于该信号十分微弱(微伏数量级),因此需要后续的放大电路进行放大。当然,对这一放大电路的要求其实是多方面的,比如,低噪声、高输入阻抗、低功耗等。放大电路所得模拟信号为了跟计算机系统实现沟通,需要进行再处理。这一过程除了数字-模拟转换(ADC)之外,还要通过数据压缩、无线通信和射频等过程,而这一功能的实现部分统称为通信模块。当然,每一个功能模块都需要电源模块来支撑。通过心电传感器检测用户的心率,获取用户的心率值。The ECG sensor includes at least four parts: electrodes, amplifier circuit, communication module and power supply. The sensing electrodes are used to obtain the electrical signal of the user, and since the signal is very weak (on the order of microvolts), a subsequent amplifying circuit is required to amplify it. Of course, there are actually many requirements for this amplifier circuit, such as low noise, high input impedance, and low power consumption. The analog signal obtained by the amplifier circuit needs to be reprocessed in order to communicate with the computer system. In addition to digital-to-analog conversion (ADC), this process also needs to go through processes such as data compression, wireless communication, and radio frequency, and the realization of this function is collectively referred to as a communication module. Of course, each functional module needs a power module to support it. The user's heart rate is detected by the ECG sensor to obtain the user's heart rate value.
加速度传感器是一种能够测了加速力的电子设备,加速力可以是个常量,也可以是变量,即当物体在加速过程中作用在物体上的力。加速度传感器可以是三轴加速度传感器,加速度传感器的感应数据可以包括三个轴向的加速度数据,例如X轴、Y轴和Z轴三个轴向的加速度数据:X轴的方向是沿着水平方向从左向右,即横坐标;Y轴的方向是从原点开始沿着垂直方向指向顶端,即竖坐标;Z轴的方向是从前向后,即高坐标。加速度传感器的感应数据可能并不仅仅是某一时刻的感应数据,而可以是包括了在某一时长内的感应数据。通过加速度传感器检测用户的速度变化,获取用户的活动参数。The acceleration sensor is an electronic device that can measure the acceleration force. The acceleration force can be a constant or a variable, that is, the force acting on the object when the object is accelerating. The acceleration sensor can be a three-axis acceleration sensor, and the sensing data of the acceleration sensor can include acceleration data in three axes, such as acceleration data in the three axes of X-axis, Y-axis and Z-axis: the direction of the X-axis is along the horizontal direction From left to right, that is, the abscissa; the direction of the Y axis is from the origin to the top along the vertical direction, that is, the vertical coordinate; the direction of the Z axis is from front to back, that is, the high coordinate. The sensing data of the acceleration sensor may not only be sensing data at a certain moment, but may include sensing data within a certain period of time. The user's speed change is detected by the acceleration sensor, and the user's activity parameters are obtained.
常见的可佩戴设备能够用来测量人们消耗的卡路里、计算人们行走的距离,有些还具有检测人们睡眠质量等功能。从功能角度来看,现有的可佩戴设备虽然能够实现一些功能,但相对于专业智能设备来说比较单一,无法满足用户特定某一方面的更多要求;而从技术角度来看,可佩戴设备一般采用超低功耗蓝牙技术,MEMS微电机技术,超小型震动马达,重力加速度和方向传感器,但是并不具有深入了解用户心率变化的技术,因而不能根据用户心率变化来确定用户对所处环境的喜好,从而实现用户身体状况监测以及判断用户对所处环境喜好的功能。Common wearable devices can be used to measure the calories consumed by people, calculate the distance people walk, and some also have functions such as detecting people's sleep quality. From a functional point of view, although existing wearable devices can achieve some functions, they are relatively simple compared with professional smart devices and cannot meet more requirements of users in a specific aspect; and from a technical point of view, wearable devices The device generally adopts ultra-low-power Bluetooth technology, MEMS micro-motor technology, ultra-small vibration motor, gravity acceleration and direction sensor, but it does not have the technology to deeply understand the change of the user's heart rate, so it cannot determine the user's location based on the change of the user's heart rate. Environmental preferences, so as to realize the function of monitoring the user's physical condition and judging the user's preference for the environment.
S12、判定心率值、活动参数是否与预设条件匹配。S12. Determine whether the heart rate value and the activity parameters match the preset conditions.
预设条件可以包括预存于本地存储介质的情景配置数据,情景配置数据用于确定终端的运动情景。情景配置数据可以包括预先设置的三个轴向的加速度数据,例如预设的X轴、Y轴和Z轴三个轴向的加速度数据。当加速度传感器感应到的感应数据满足预设的情景配置数据(例如可以是处于一个范围),即判断为感应数据满足预设条件。The preset condition may include scene configuration data pre-stored in the local storage medium, and the scene configuration data is used to determine the motion scene of the terminal. The scene configuration data may include preset acceleration data of three axes, for example, preset acceleration data of three axes of X axis, Y axis and Z axis. When the sensing data sensed by the acceleration sensor satisfies the preset scenario configuration data (for example, it may be in a range), it is determined that the sensing data meets the preset condition.
情景配置数据用于确定终端的运动情景,例如用于确定终端用户在静止、行走、跑步、跳跃的运动情景。以情景配置数据包括预先设置的三个轴向的加速度数据为例,例如情景配置数据包括预设的X轴、Y轴和Z轴三个轴向的加速度数据。通常而言,用户在行走、跑步、跳跃等有一定规律的运动时,终端中的加速度传感器会相应检测到规律的感应数据。当然,这个规律的感应数据还需要结合终端的具体应用上,如果终端是可穿戴设备(例如智能手环、智能手表),会存在规律的感应数据去表征用户在行走、跑步、跳跃;如果终端是智能终端设备(例如智能手机),也会存在另外规律的感应数据去表征用户在行走、跑步、跳跃。The scene configuration data is used to determine the motion scene of the terminal, for example, to determine the motion scene of the terminal user standing still, walking, running, and jumping. Taking the scenario configuration data including preset acceleration data of three axes as an example, for example, the scenario configuration data includes preset acceleration data of X axis, Y axis and Z axis. Generally speaking, when the user moves regularly, such as walking, running, jumping, etc., the acceleration sensor in the terminal will detect the corresponding regular sensing data. Of course, this regular sensing data also needs to be combined with the specific application of the terminal. If the terminal is a wearable device (such as a smart bracelet, smart watch), there will be regular sensing data to indicate that the user is walking, running, and jumping; if the terminal It is a smart terminal device (such as a smart phone), and there will also be other regular sensing data to indicate that the user is walking, running, and jumping.
因此,可以设置多组情景配置数据用于确定终端的运动情景,例如多组情景配置数据分别确定终端用户在静止、行走、跑步、跳跃等等运动情景。当加速度传感器的感应数据满足情景配置数据中的其中一组情景配置数据,则可以判断终端用户在进行该组情景配置数据相对应的运动。Therefore, multiple sets of scenario configuration data can be set to determine the motion scenario of the terminal, for example, multiple sets of scenario configuration data respectively determine the motion scenarios of the terminal user such as stationary, walking, running, jumping, etc. When the sensing data of the acceleration sensor satisfies one set of scene configuration data in the scene configuration data, it can be determined that the terminal user is performing an exercise corresponding to the set of scene configuration data.
在本发明所述的可佩戴设备控制的实现方法中,预设条件可以包括但不限于以下几种情形:In the implementation method of wearable device control described in the present invention, the preset conditions may include but not limited to the following situations:
其中,在所述判定心率值、活动参数是否与预设条件匹配的步骤中:Wherein, in the step of determining whether the heart rate value and the activity parameters match the preset conditions:
当检测到心率值大于设定阈值,且活动参数小于或等于设定阈值时,视为与预设条件相匹配,由此判定用户处于设定的心理状态。When it is detected that the heart rate value is greater than the set threshold and the activity parameter is less than or equal to the set threshold, it is considered to match the preset condition, thereby determining that the user is in the set psychological state.
即当心电传感器检测到用户的心率值大于预先设定的阈值,并且,加速度传感器检测到的活动参数小于或者等于预先设定的阈值时,则将该种情况视为与预设条件相匹配,由此判定用户此时处于设定的心理状态。That is, when the ECG sensor detects that the user's heart rate value is greater than the preset threshold, and the activity parameter detected by the acceleration sensor is less than or equal to the preset threshold, the situation is considered to match the preset condition, Therefore, it is determined that the user is in the set psychological state at this time.
其中,在所述判定心率值、活动参数是否与预设条件匹配的步骤中:Wherein, in the step of determining whether the heart rate value and the activity parameters match the preset conditions:
当检测到心率值和活动参数均大于设定阈值时,视为与预设条件相匹配,由此判定用户处于设定的运动状态。When it is detected that the heart rate value and the activity parameter are both greater than the set threshold, it is considered to match the preset condition, and thus it is determined that the user is in the set exercise state.
即当心电传感器检测到用户的心率值以及加速度传感器检测到的活动参数均大于预先设定的阈值时,则将该种情况视为与预设条件相匹配,由此判定用户此时处于设定的运动状态。That is, when the ECG sensor detects the user's heart rate value and the activity parameters detected by the acceleration sensor are greater than the preset threshold, the situation is considered to match the preset condition, and thus it is determined that the user is in the preset state at this time. state of motion.
其中,在所述判定心率值、活动参数是否与预设条件匹配的步骤中:Wherein, in the step of determining whether the heart rate value and the activity parameters match the preset conditions:
当检测到活动参数保持稳定,而心率值突变,视为与预设条件相匹配,由此判定用户处于设定的心理状态。When it is detected that the activity parameters remain stable, but the heart rate value changes suddenly, it is considered to match the preset condition, and thus it is determined that the user is in the set psychological state.
即当加速度传感器检测到用户的活动参数一直呈稳定状态,而心电传感器突然检测到用户的心率值突然发生了变化,则将该种情况视为与预设条件相匹配,由此判定用户此时处于设定的心理状态。That is, when the acceleration sensor detects that the user's activity parameters have been in a stable state, but the ECG sensor suddenly detects a sudden change in the user's heart rate value, it will regard this situation as matching the preset condition, and thus determine that the user's heart rate value has changed suddenly. in a set state of mind.
其中,在所述判定心率值、活动参数是否与预设条件匹配的步骤中:Wherein, in the step of determining whether the heart rate value and the activity parameters match the preset conditions:
当检测到心率值保持稳定,而活动参数突变,视为与预设条件相匹配,由此判定用户处于设定的运动状态。When it is detected that the heart rate value remains stable and the activity parameter changes suddenly, it is considered to match the preset condition, and thus it is determined that the user is in the set exercise state.
即当心电传感器检测到用户的心率值一直呈稳定状态,而加速度传感器突然检测到用户的活动参数突然发生了变化,则将该种情况视为与预设条件相匹配,由此判定用户此时处于设定的运动状态。That is, when the ECG sensor detects that the user's heart rate value has been in a stable state, and the acceleration sensor suddenly detects that the user's activity parameters have changed suddenly, it will regard this situation as matching the preset condition, and thus determine that the user's current In the set motion state.
S13、当心率值与活动参数满足预设条件时,通过远程接口发送提醒信息。S13. When the heart rate value and the activity parameters meet the preset conditions, send a reminder message through the remote interface.
一旦心电传感器检测到的用户心率值和加速度传感器检测到的用户活动参数满足上述预设条件时,则通过远程接口发送提醒信息。Once the user's heart rate value detected by the ECG sensor and the user's activity parameters detected by the acceleration sensor meet the above preset conditions, a reminder message is sent through the remote interface.
由于每个应用程序都运行在自己的进程空间,并且可以从应用程序UI运行另一个服务进程,而且经常会在不同的进程间传递对象。在Android平台,一个进程通常不能访问另一个进程的内存空间,所以要想对话,需要将对象分解成操作系统可以理解的基本单元,并且有序的通过进程边界。通过代码来实现这个数据传输过程是冗长乏味的,Android提供了AIDL工具来处理这项工作。Since each application runs in its own process space, and another service process can be run from the application UI, objects are often passed between different processes. On the Android platform, a process usually cannot access the memory space of another process, so in order to have a dialogue, objects need to be decomposed into basic units that the operating system can understand and pass through process boundaries in an orderly manner. Implementing this data transfer process through code is tedious, and Android provides the AIDL tool to handle this work.
AIDL(AndroidInterfaceDefinitionLanguage)是一种IDL语言,用于生成可以在Android设备上两个进程之间进行进程间通信(IPC)的代码。如果在一个进程中(例如Activity)要调用另一个进程中(例如Service)对象的操作,就可以使用AIDL生成可序列化的参数。AIDL (AndroidInterfaceDefinitionLanguage) is an IDL language used to generate code that can perform interprocess communication (IPC) between two processes on an Android device. If in one process (such as Activity) you want to call the operation of another process (such as Service) object, you can use AIDL to generate serializable parameters.
AIDLIPC机制是面向接口的,像COM或Corba一样,但是更加轻量级,它是使用代理类在客户端和实现端传递数据。在完成了接口的实现后需要向客户端暴露接口了,也就是发布服务,实现的方法是继承Service,然后实现以Service.onBind(Intent)返回一个实现了接口的类对象。The AIDLIPC mechanism is interface-oriented, like COM or Corba, but more lightweight, and it uses proxy classes to pass data between the client and the implementation side. After completing the implementation of the interface, it is necessary to expose the interface to the client, that is, to publish the service. The method of implementation is to inherit the Service, and then implement Service.onBind(Intent) to return a class object that implements the interface.
通过步骤S11、S12和S13,获取心电传感器检测到的数据以确定心率值,同时获取加速度传感器检测到的数据以确定活动参数;判定心率值、活动参数是否与预设条件匹配;当心率值与活动参数满足预设条件时,通过远程接口发送提醒信息,实现用户身体状况监测以及判断用户对所处环境喜好的功能,区别于市面上存在的功能单一无法判定用户对所处环境喜好的可佩戴设备。并设定以下几种情况:当检测到心率值大于设定阈值,且活动参数小于或等于设定阈值时,视为与预设条件相匹配,由此判定用户处于设定的心理状态;当检测到心率值和活动参数均大于设定阈值时,视为与预设条件相匹配,由此判定用户处于设定的运动状态;当检测到活动参数保持稳定,而心率值突变,视为与预设条件相匹配,由此判定用户处于设定的心理状态;当检测到心率值保持稳定,而活动参数突变,视为与预设条件相匹配,由此判定用户处于设定的运动状态;采用此种方式对用户的不同状态进行判定,设计新颖、独特,效果更好区别于市面上存在的功能单一无法判定用户对所处环境喜好的可佩戴设备实现。Through steps S11, S12 and S13, obtain the data detected by the ECG sensor to determine the heart rate value, and at the same time obtain the data detected by the acceleration sensor to determine the activity parameters; determine whether the heart rate value and the activity parameters match the preset conditions; when the heart rate value When the activity parameters meet the preset conditions, a reminder message is sent through the remote interface to realize the function of monitoring the user's physical condition and judging the user's preference for the environment. Wear the device. And set the following situations: When the detected heart rate value is greater than the set threshold and the activity parameter is less than or equal to the set threshold, it is considered to match the preset condition, thus determining that the user is in the set psychological state; when When it is detected that the heart rate value and activity parameters are greater than the set threshold, it is deemed to match the preset conditions, and thus it is determined that the user is in the set exercise state; when the detected activity parameters remain stable, but the heart rate value changes suddenly, it is considered to be consistent If the preset conditions match, it is determined that the user is in the set mental state; when it is detected that the heart rate value remains stable, but the activity parameters change suddenly, it is deemed to match the preset conditions, and thus it is determined that the user is in the set exercise state; Using this method to judge the different states of the user, the design is novel and unique, and the effect is better. It is different from the implementation of wearable devices on the market that have a single function and cannot determine the user's preference for the environment.
其中,在一定的时间间隔内,获取心率值和活动参数。Wherein, within a certain time interval, the heart rate value and the activity parameters are acquired.
对于心电传感器和加速度传感器的运作规律,除了可以设定心电传感器一直检测用户的心率值,加速度传感器一直检测用户的活动参数之外,还可以将心电传感器和加速度传感器设定为在一定的时间间隔内(比如五秒)对用户的状态进行检测。For the operation rules of the ECG sensor and the acceleration sensor, in addition to setting the ECG sensor to always detect the user's heart rate value and the acceleration sensor to always detect the user's activity parameters, the ECG sensor and the acceleration sensor can also be set to a certain value. The user's status is detected within a time interval (such as five seconds).
另外,为了更好的提高可佩戴设备的用户体验,并起到节电的效果,可以对心电传感器、加速度传感器进行限定:暂停心电传感器检测用户的心率值,同时设定加速度传感器一直在对用户的活动参数进行检测,待检测到活动参数在一定时间范围内的变化值达到设定阈值时,则启动心电传感器,由心电传感器检测用户的心率值,获取用户的心率数值,再对用户此时的状态进行判定;另外,还可以暂停加速度传感器检测用户的活动参数,同时设定心电传感器一直在对用户的心率值进行检测,待检测到心率值在一定时间范围内的变化值达到设定阈值时,则启动加速度传感器,由加速度传感器检测用户的活动参数,获取用户的活动参数,再对用户此时的状态进行判定。In addition, in order to better improve the user experience of wearable devices and achieve power saving effects, the ECG sensor and acceleration sensor can be limited: the ECG sensor is suspended to detect the user's heart rate value, and the acceleration sensor is set at the same time. Detect the user's activity parameters. When it is detected that the change value of the activity parameters within a certain time range reaches the set threshold, the ECG sensor is started, and the ECG sensor detects the user's heart rate value, obtains the user's heart rate value, and then Determine the user's state at this time; in addition, the acceleration sensor can also be suspended to detect the user's activity parameters, and at the same time, the ECG sensor can be set to detect the user's heart rate value all the time, and the change of the heart rate value within a certain time range can be detected When the value reaches the set threshold, the acceleration sensor is started, and the acceleration sensor detects the user's activity parameters, obtains the user's activity parameters, and then judges the user's state at this time.
其中,所述活动参数的变化值达到设定阈值时,响应心电传感器的启动指令,获得心率值。Wherein, when the change value of the activity parameter reaches a set threshold, the heart rate value is obtained in response to an activation instruction of the ECG sensor.
其中,所述心率值的变化值达到设定阈值时,响应加速度传感器的启动指令,获得活动参数。Wherein, when the change value of the heart rate value reaches a set threshold, the activity parameter is obtained in response to an activation instruction of the acceleration sensor.
其中,所述当心率值与活动参数满足预设条件时,通过远程接口发送提醒信息的步骤,具体为:Wherein, when the heart rate value and the activity parameters meet the preset conditions, the step of sending reminder information through the remote interface is specifically:
当心率值与活动参数满足预设条件时,通过蓝牙信号发送提醒信息至移动终端。When the heart rate value and the activity parameters meet the preset conditions, the reminder information is sent to the mobile terminal through the bluetooth signal.
蓝牙是一种无线技术标准,可实现固定设备、移动设备和楼宇个人域网之间的短距离数据交换(使用2.4—2.485GHz的ISM波段的UHF无线电波)。蓝牙使用跳频技术,将传输的数据分割成数据包,通过79个指定的蓝牙频道分别传输数据包。每个频道的频宽为1MHz,蓝牙4.0使用2MHz间距,可容纳40个频道。第一个频道始于2402MHz,每1MHz一个频道,至2480MHz。有了适配跳频(AdaptiveFrequency-Hopping,简称AFH)功能,通常每秒跳1600次。蓝牙是基于数据包、有着主从架构的协议。一个主设备至多可和同一微微网中的七个从设备通讯。所有设备共享主设备的时钟。分组交换基于主设备定义的、以312.5μs为间隔运行的基础时钟。两个时钟周期构成一个625μs的槽,两个时间隙就构成了一个1250μs的缝隙对。在单槽封包的简单情况下,主设备在双数槽发送信息、单数槽接受信息。而从设备则正好相反。封包容量可长达1、3、或5个时间隙,但无论是哪种情况,主设备都会从双数槽开始传输,从设备从单数槽开始传输。Bluetooth It is a wireless technology standard that enables short-distance data exchange between fixed equipment, mobile equipment, and building personal area networks (using UHF radio waves in the ISM band of 2.4-2.485GHz). Bluetooth uses frequency hopping technology to divide the transmitted data into data packets, and transmits data packets through 79 designated Bluetooth channels. The bandwidth of each channel is 1MHz, and Bluetooth 4.0 uses 2MHz spacing, which can accommodate 40 channels. The first channel starts at 2402MHz, one channel every 1MHz, to 2480MHz. With the adaptive frequency hopping (Adaptive Frequency-Hopping, referred to as AFH) function, it usually jumps 1600 times per second. Bluetooth is a packet-based protocol with a master-slave architecture. A master device can communicate with up to seven slave devices in the same piconet. All devices share the master's clock. Packet switching is based on a base clock defined by the master running at 312.5µs intervals. Two clock cycles form a 625μs slot, and two time slots form a 1250μs slot pair. In the simple case of single-slot packets, the master sends messages on even-numbered slots and receives messages on odd-numbered slots. The opposite is true for slave devices. The packet size can be as long as 1, 3, or 5 time slots, but in either case, the master device will start transmission from the even-numbered slot, and the slave device will start transmission from the odd-numbered slot.
蓝牙技术是一种开放性的无线数据和信息传输的设备,是一种利用无线代替有线电缆的近距离传输设备。利用蓝牙进行的数据传输,数据传输可随时在主设备和其他设备之间进行(应用极少的广播模式除外)。主设备可选择要访问的从设备;典型的情况是,它可以在设备之间以轮替的方式快速转换。因为是主设备来选择要访问的从设备,理论上从设备就要在接收槽内待命,主设备的负担要比从设备少一些。主设备可以与七个从设备相连接,但是从设备却很难与一个以上的主设备相连。Bluetooth technology is an open wireless data and information transmission device, and a short-distance transmission device that uses wireless instead of wired cables. Using Bluetooth for data transmission, data transmission can be carried out between the main device and other devices at any time (except for the broadcast mode which is rarely used). The master device can choose which slave device to access; typically, it can quickly switch between devices in a round-robin fashion. Because the master device selects the slave device to be accessed, in theory the slave device should be on standby in the receiving slot, and the burden of the master device is less than that of the slave device. A master device can be connected to seven slave devices, but it is difficult for a slave device to be connected to more than one master device.
实现蓝牙数据传输的方法:将蓝牙传输模块加入到数据检测仪中,这样就可以实现检测到的各项用户数据以电波的方式传输到已开启了蓝牙端口的智能Android系统设备端。由于移动终端可以扫描到附近很多设备,所以需要确认设备端口再进行数据传输。在移动终端接收数据时可以同时打开对应的接收界面,从而实现数据的显示。The method of realizing Bluetooth data transmission: add the Bluetooth transmission module to the data detector, so that the detected user data can be transmitted to the smart Android system device with the Bluetooth port turned on in the form of radio waves. Since the mobile terminal can scan many nearby devices, it is necessary to confirm the device port before data transmission. When the mobile terminal receives the data, the corresponding receiving interface can be opened at the same time, so as to realize the display of the data.
除了采用蓝牙技术发送提醒信息至移动终端外,根据实际需要,也可以采用其它有线和/或无线方式,比如GPRS、WIFI、ZIGBEE等。可佩戴设备与移动终端之间的通信可以根据数据的大小自动选择通信信道,实现二者数据的通信流畅。In addition to using Bluetooth technology to send reminder information to the mobile terminal, other wired and/or wireless methods, such as GPRS, WIFI, ZIGBEE, etc., can also be used according to actual needs. The communication between the wearable device and the mobile terminal can automatically select a communication channel according to the size of the data, so as to realize smooth data communication between the two.
其中,所述当心率值与活动参数满足预设条件时,通过蓝牙信号发送提醒信息至移动终端的步骤中:Wherein, when the heart rate value and the activity parameters meet the preset conditions, in the step of sending reminder information to the mobile terminal through the bluetooth signal:
将提醒信息进行格式化处理后发送至与本佩戴设备绑定的关联用户。The reminder information is formatted and sent to the associated user bound to the wearable device.
HTTPS(全称:HyperTextTransferProtocoloverSecureSocketLayer),是以安全为目标的HTTP通道,简单讲是HTTP的安全版,即HTTP下加入SSL层,HTTPS的安全基础是SSL,因此加密的详细内容就需要SSL。它是一个URIscheme(抽象标识符体系),句法类同http:体系,用于安全的HTTP数据传输。https:URL表明它使用了HTTP,但HTTPS存在不同于HTTP的默认端口及一个加密/身份验证层(在HTTP与TCP之间)。HTTPS (full name: HyperTextTransferProtocoloverSecureSocketLayer) is an HTTP channel aimed at security. Simply speaking, it is a secure version of HTTP, that is, an SSL layer is added under HTTP. The security basis of HTTPS is SSL, so the detailed content of encryption requires SSL. It is a URI scheme (abstract identifier system), the syntax is similar to the http: system, used for secure HTTP data transmission. The https: URL indicates that it uses HTTP, but HTTPS has a default port different from HTTP and an encryption/authentication layer (between HTTP and TCP).
超文本传输协议HTTP协议被用于在Web浏览器和网站服务器之间传递信息。HTTP协议以明文方式发送内容,不提供任何方式的数据加密,如果攻击者截取了Web浏览器和网站服务器之间的传输报文,就可以直接读懂其中的信息,因此HTTP协议不适合传输一些敏感信息,比如信用卡号、密码等。为了解决HTTP协议的这一缺陷,需要使用另一种协议:安全套接字层超文本传输协议HTTPS。为了数据传输的安全,HTTPS在HTTP的基础上加入了SSL协议,SSL依靠证书来验证服务器的身份,并为浏览器和服务器之间的通信加密。因此,在本发明所述的可佩戴设备控制的实现方法及装置中,采用加密通道对信息进行传递,保证了用户的使用安全。The Hypertext Transfer Protocol HTTP protocol is used to transfer information between web browsers and web servers. The HTTP protocol sends content in plain text and does not provide any form of data encryption. If an attacker intercepts the transmission message between the web browser and the website server, he can directly read the information in it. Therefore, the HTTP protocol is not suitable for transmitting some Sensitive information, such as credit card numbers, passwords, etc. In order to solve this defect of the HTTP protocol, another protocol needs to be used: the Secure Sockets Layer Hypertext Transfer Protocol HTTPS. For the security of data transmission, HTTPS adds the SSL protocol on the basis of HTTP. SSL relies on certificates to verify the identity of the server and encrypt the communication between the browser and the server. Therefore, in the implementation method and device for wearable device control of the present invention, an encrypted channel is used to transmit information, which ensures user safety.
OAuth(开放授权)是一个开放标准,允许用户让第三方应用访问该用户在某一网站上存储的私密的资源(如照片,视频,联系人列表),而无需将用户名和密码提供给第三方应用。OAuth2.0关注客户端开发者的简易性,同时为Web应用,桌面应用和手机,和起居室设备提供专门的认证流程。以智能移动终端——手机,手机与可佩戴设备之间通过蓝牙方式通信为例,实现手机与手环之间绑定的步骤如下:首先,手机检测可佩戴设备的蓝牙信号强度rssi,比较rssi和初始化信号强度阈值SIT的值,如果rssi大于或等于预先设定的阈值(阈值也可以由用户根据需要自定义设置,为了将手机与可佩戴设备之间的通信距离控制的尽量小以保障信道安全,可以将阈值设置的较大),则继续初始化过程,进入下一步骤;之后,结合可佩戴设备的地址生产可佩戴设备的唯一标识码,同时读取可佩戴设备的当前时间,并将可佩戴设备的MAC(MediaAccessControl,介质访问控制)地址、标识码和时间的数据发送给手机;手机收到可佩戴设备发送的信息后,先检验时间,然后同时结合手机的生成手机终端的唯一标识码,读取当前手机的时间,并对信息进行加密,发给可佩戴设备;可佩戴设备收到手机在发送的消息后,先检验时间,然后解密收到的消息,再判断可佩戴设备的标识码与手机终端的标识码是否相等,即如果相等则向手机返回初始化成功的消息;在初始化成功后,即实现可佩戴设备与手机之间的绑定。OAuth (Open Authorization) is an open standard that allows users to allow third-party applications to access private resources (such as photos, videos, contact lists) stored by the user on a website without providing usernames and passwords to third parties application. OAuth 2.0 focuses on simplicity for client developers, while providing specialized authentication processes for web applications, desktop applications and mobile, and living room devices. Taking the smart mobile terminal—the mobile phone, the communication between the mobile phone and the wearable device through Bluetooth as an example, the steps to realize the binding between the mobile phone and the bracelet are as follows: First, the mobile phone detects the Bluetooth signal strength rssi of the wearable device, and compares the rssi And initialize the value of the signal strength threshold SIT, if rssi is greater than or equal to the preset threshold (threshold can also be customized by the user according to needs, in order to control the communication distance between the mobile phone and the wearable device as small as possible to ensure the channel safety, you can set a larger threshold), then continue the initialization process and enter the next step; after that, combine the address of the wearable device to produce the unique identification code of the wearable device, and read the current time of the wearable device at the same time, and set The MAC (MediaAccessControl, Media Access Control) address, identification code and time data of the wearable device are sent to the mobile phone; after the mobile phone receives the information sent by the wearable device, it first checks the time, and then combines the mobile phone to generate the unique identification of the mobile terminal at the same time Code, read the current time of the mobile phone, encrypt the information, and send it to the wearable device; after the wearable device receives the message sent by the mobile phone, it first checks the time, then decrypts the received message, and then judges the wearable device. Whether the identification code is equal to the identification code of the mobile phone terminal, that is, if they are equal, a message of successful initialization is returned to the mobile phone; after successful initialization, the binding between the wearable device and the mobile phone is realized.
在实现手机与可佩戴设备之间的初始化绑定后,在用户需要访问手机中的受保护信息(隐私信息,可以由用户自行设置标记)时,人们可以利用可佩戴设备中存储的认证参数对手机进行认证,从而实现便捷、安全的访问控制。After realizing the initial binding between the mobile phone and the wearable device, when the user needs to access the protected information (private information, which can be marked by the user) in the mobile phone, people can use the authentication parameters stored in the wearable device to Mobile phone authentication, so as to achieve convenient and safe access control.
在实际实现中,当用户使用账户名和密码成功登陆后,就会显示出终端获取到的所述可佩戴设备列表。可佩戴设备列表中包括有可佩戴设备与当前用户账户的绑定状态,其中,在绑定状态为已绑定时,即所述可佩戴设备与当前用户账户已绑定,则可以在可佩戴设备列表中展现可佩戴设备的当前工作状态,比如:智能摄像机是否已经开启、自动报警是否已经启动等。在绑定状态为未绑定时,即可佩戴设备与当前用户账户未绑定,则可以在可佩戴设备列表中呈现未绑定的标记,更为人性化地,可以为可佩戴设备提供“绑定”的按钮,以便用户可以一键绑定所述可佩戴设备。除了通过按下“绑定”的按钮之外,还可以根据实际需要,采用语音输入等方式,实现终端设备与可佩戴设备的绑定。In actual implementation, when the user successfully logs in using the account name and password, the list of wearable devices acquired by the terminal will be displayed. The wearable device list includes the binding status of the wearable device and the current user account, wherein, when the binding status is bound, that is, the wearable device and the current user account have been bound, the The device list shows the current working status of the wearable device, such as: whether the smart camera is turned on, whether the automatic alarm is turned on, etc. When the binding state is unbound, that is, the wearable device is not bound to the current user account, the unbound mark can be displayed in the wearable device list, and more humanely, the wearable device can be provided with " Bind" button so that users can bind the wearable device with one click. In addition to pressing the "binding" button, the binding of the terminal device and the wearable device can also be realized by voice input and other methods according to actual needs.
在获取到针对所述可佩戴设备的绑定指令后,终端将可佩戴设备与当前用户账户绑定。在实现中,终端可以发送携带可佩戴设备信息与当前用户账户信息的绑定请求给服务端,比如:终端在绑定请求中携带可佩戴设备的设备ID以及当前用户账户的账户名,服务端在接收到该绑定请求后,保存可佩戴设备的设备ID与当前用户账户的账名的绑定关系,并向终端返回绑定成功的消息,终端进而还可以在接收到绑定成功的消息后,提示用户绑定成功,并更新可佩戴设备列表中可佩戴设备的绑定状态。After acquiring the binding instruction for the wearable device, the terminal binds the wearable device with the current user account. In implementation, the terminal can send a binding request carrying wearable device information and current user account information to the server. For example, the terminal carries the device ID of the wearable device and the account name of the current user account in the binding request, and the server After receiving the binding request, save the binding relationship between the device ID of the wearable device and the account name of the current user account, and return a message of successful binding to the terminal, and the terminal can furthermore receive the message of successful binding After that, the user is prompted that the binding is successful, and the binding status of the wearable device in the wearable device list is updated.
其中,所述当心率值与活动参数满足预设条件时,通过远程接口发送提醒信息的步骤中:Wherein, in the step of sending reminder information through the remote interface when the heart rate value and activity parameters meet the preset conditions:
将处理后的提醒信息进行存储。Store the processed reminder information.
其中,所述提醒信息被存储于可佩戴设备本机。Wherein, the reminder information is stored in the wearable device itself.
其中,所述提醒信息被存储于云端服务器。Wherein, the reminder information is stored in the cloud server.
Android提供以下四种存储方式:SharePreference、SQLite、File、ContentProvider。Android系统中的数据基本都是私有的,一般存放在“data/data/程序包名”目录下。如果要实现数据共享,正确的方式是使用ContentProvider。Android provides the following four storage methods: SharePreference, SQLite, File, ContentProvider. The data in the Android system is basically private, and is generally stored in the "data/data/package name" directory. If you want to achieve data sharing, the correct way is to use ContentProvider.
SharedPreference是一种轻型的数据存储方式,实际上是基于XML文件存储的“key-value”键值对数据。通常用来存储程序的一些配置信息。其存储在“data/data/程序包名/shared_prefs目录下。SharedPreference本身只能获取数据,不支持存储和修改,存储和修改要通过Editor对象来实现。SQLite是一个轻量级关系型数据库,SQLite只有NULL、INTEGER、REAL(浮点数)、TEXT(字符串)和BLOB(大数据)五种类型,不存在BOOLEAN和DATE类型。File是文件储存方式。ContentProvider相对于其它的方式比较复杂,当然其功能相对于其它的方式也是革命性的改变。它能够实现跨应用之间的数据操作。利用ContentResolver对象的delete、update、insert、query等方法去操ContentProvider的对象,让ContentProvider对象的方法去对数据操作。SharedPreference is a lightweight data storage method, which is actually based on the "key-value" key-value pair data stored in XML files. Usually used to store some configuration information of the program. It is stored in the "data/data/package name/shared_prefs directory. SharedPreference itself can only obtain data, and does not support storage and modification. Storage and modification must be realized through the Editor object. SQLite is a lightweight relational database, SQLite There are only five types: NULL, INTEGER, REAL (floating point number), TEXT (string) and BLOB (big data). There are no BOOLEAN and DATE types. File is a file storage method. ContentProvider is more complicated than other methods. Of course, its Compared with other methods, the function is also a revolutionary change. It can realize data operations between applications. Use the delete, update, insert, query and other methods of the ContentResolver object to manipulate the ContentProvider object, and let the method of the ContentProvider object process the data operate.
在此重点介绍下SQLiteDatabase,封装了一些操作数据库的API,使用该类可以完成对数据进行添加(Create)、查询(Retrieve)、更新(Update)和删除(Delete)操作。为了实现对数据库版本进行管理,SQLiteOpenHelper类提供了两个重要的方法,分别是onCreate(SQLiteDatabasedb)和onUpgrade(SQLiteDatabasedb,intoldVersion,intnewVersion),前者用于初次使用软件时生成数据库表,后者用于升级软件时更新数据库表结构。当调用SQLiteOpenHelper的getWritableDatabase或者getReadableDatabase方法获取用于操作数据库的SQLiteDatabase实例的时候,如果数据库不存在,Android系统会自动生成一个数据库,接着调用onCreate方法,onCreate方法在初次生成数据库时才会被调用,在onCreate方法里可以生成数据库表结构及添加一些应用使用到的初始化数据。Here we focus on SQLiteDatabase, which encapsulates some APIs for operating databases. Using this class, you can complete the operations of adding (Create), querying (Retrieve), updating (Update) and deleting (Delete) data. In order to manage the database version, the SQLiteOpenHelper class provides two important methods, namely onCreate(SQLiteDatabasedb) and onUpgrade(SQLiteDatabasedb, intoldVersion, intnewVersion), the former is used to generate database tables when using the software for the first time, and the latter is used to upgrade The software updates the database table structure. When calling the getWritableDatabase or getReadableDatabase method of SQLiteOpenHelper to obtain the SQLiteDatabase instance used to operate the database, if the database does not exist, the Android system will automatically generate a database, and then call the onCreate method, which will be called when the database is first generated. In the onCreate method, you can generate the database table structure and add some initialization data used by the application.
终端设备一般可以包括通信单元、包括有一个或一个以上计算机可读存储介质的存储器、输入单元、显示单元、传感器、音频电路、WiFi模块、包括有一个或者一个以上处理核心的处理器、以及电源等部件。通信单元可用于收发信息或通话过程中,信号的接收和发送,该通信单元可以为RF(RadioFrequency,射频)电路、路由器、调制解调器等网络通信设备。特别地,当通信单元为RF电路时,将基站的下行信息接收后,交由一个或者一个以上处理器处理;另外,将涉及上行的数据发送给基站。通常,作为通信单元的RF电路包括但不限于天线、至少一个放大器、调谐器、一个或多个振荡器、用户身份模块(SIM)卡、收发信机、耦合器、LNA(LowNoiseAmplifier,低噪声放大器)、双工器等。此外,通信单元还可以通过无线通信与网络和其他设备通信。所述无线通信可以使用任一通信标准或协议,包括但不限于GSM(GlobalSystemofMobilecommunication,全球移动通讯系统)、GPRS(GeneralPacketRadioService,通用分组无线服务)、CDMA(CodeDivisionMultipleAccess,码分多址)、WCDMA(WidebandCodeDivisionMultipleAccess,宽带码分多址)、LTE(LongTermEvolution,长期演进)、电子邮件、SMS(ShortMessagingService,短消息服务)等。存储器可用于存储软件程序以及模块,处理器通过运行存储在存储器的软件程序以及模块,从而执行各种功能应用以及数据处理。存储器可主要包括存储程序区和存储数据区,其中,存储程序区可存储操作系统、至少一个功能所需的应用程序(比如声音播放功能、图像播放功能等)等;存储数据区可存储根据终端设备的使用所创建的数据(比如音频数据、电话本等)等。此外,存储器可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件、闪存器件、或其他易失性固态存储器件。相应地,存储器还可以包括存储器控制器,以提供处理器和输入单元对存储器的访问。A terminal device may generally include a communication unit, a memory including one or more computer-readable storage media, an input unit, a display unit, a sensor, an audio circuit, a WiFi module, a processor including one or more processing cores, and a power supply and other components. The communication unit can be used for sending and receiving information or receiving and sending signals during a call, and the communication unit can be network communication devices such as RF (Radio Frequency, radio frequency) circuits, routers, and modems. In particular, when the communication unit is an RF circuit, after receiving the downlink information from the base station, it is processed by one or more processors; in addition, the uplink data is sent to the base station. Typically, an RF circuit as a communication unit includes, but is not limited to, an antenna, at least one amplifier, a tuner, one or more oscillators, a Subscriber Identity Module (SIM) card, a transceiver, a coupler, an LNA (LowNoiseAmplifier, low noise amplifier) ), duplexer, etc. In addition, the communication unit can also communicate with the network and other devices through wireless communication. The wireless communication can use any communication standard or protocol, including but not limited to GSM (Global System of Mobile communication, Global System for Mobile Communications), GPRS (General Packet Radio Service, General Packet Radio Service), CDMA (Code Division Multiple Access, Code Division Multiple Access), WCDMA (Wideband Code Division Multiple Access , wideband code division multiple access), LTE (LongTermEvolution, long-term evolution), e-mail, SMS (ShortMessagingService, short message service), etc. The memory can be used to store software programs and modules, and the processor executes various functional applications and data processing by running the software programs and modules stored in the memory. The memory can mainly include a program storage area and a data storage area, wherein the program storage area can store an operating system, at least one application program required by a function (such as a sound playback function, an image playback function, etc.); Data created by the use of the device (such as audio data, phonebook, etc.), etc. In addition, the memory may include high-speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid-state storage devices. Correspondingly, the memory may also include a memory controller to provide access to the memory by the processor and the input unit.
其中,本方法还包括后续步骤:Wherein, the method also includes subsequent steps:
响应远程用户针对特定提醒信息的删除指令,删除特定提醒信息。Deleting the specific reminder information in response to a deletion instruction of the remote user for the specific reminder information.
目前,安卓系统上通用的可编辑文本(EditText)控件,使用了系统提供的软键盘来获取用户输入并将输入内容展现在控件当中。当用户想要删除已输入内容的时候,需要通过软键盘上的删除按钮来一个一个地进行删除,但当用户已输入较多文字而想全部删除重新输入时,不得不多次触发软键盘上的删除按钮,使得用户对手持设备上文字处理易用性的要求越来越高。用户在个人电脑上可以通过全选一次性删除输入内容,但是在移动端该操作不是很方便。目前在移动端,已经有通过在可编辑文本控件中的适当位置增加一个可点击的按钮控件,监听Button控件的点击事件来删除内容的实现方式。在对现有技术的研究和实践过程中,发明人发现现有技术中存在以下问题:每个需要使用到可删除文本编辑框的布局都需要定义EditText和Button两个控件,同时需要注册Button控件的点击监听,从而使得控件布局复杂繁琐;并且,两个不同的控件叠加在一起,需要考虑多分辨率多像素密度的适配性,从而导致在某一台终端上可行的实现方案,而可能在另一台终端上面临布局错乱的问题。At present, the common editable text (EditText) control on the Android system uses the soft keyboard provided by the system to obtain user input and display the input content in the control. When the user wants to delete the input content, he needs to delete one by one through the delete button on the soft keyboard, but when the user has entered a lot of text and wants to delete all the input again, he has to trigger the button on the soft keyboard multiple times. The delete button on the screen has made users increasingly demanding the ease of use of word processing on handheld devices. Users can delete the input content at one time by selecting all on the personal computer, but this operation is not very convenient on the mobile terminal. At present, on the mobile terminal, there is already a way to delete content by adding a clickable button control at an appropriate position in the editable text control and listening to the click event of the Button control. During the research and practice of the prior art, the inventor found the following problems in the prior art: every layout that needs to use a deletable text edit box needs to define two controls, EditText and Button, and needs to register the Button control Click monitoring, which makes the control layout complex and cumbersome; moreover, when two different controls are superimposed together, the adaptability of multi-resolution and multi-pixel density needs to be considered, resulting in a feasible implementation plan on a certain terminal, but it may be Facing the problem of disordered layout on another terminal.
因此,本发明可以采用判断单元通过监听单元监听到屏幕触摸事件来判断用户输入的触摸点是否处于展示单元展示的删除按钮的区域内,内容处理单元在该触摸点处于该删除按钮的区域内时,删除用户指定的特定提醒信息。对于使用可删除文本编辑框的布局能够只需要定义一种可编辑文本控件,从而能够简化控件布局的复杂繁琐,并且能够适配多个终端设备的多分辨率多像素密度。此外,可提高删除特定提醒信息操作的准确性,从而增强用户体验。Therefore, the present invention can use the judging unit to monitor the screen touch event through the monitoring unit to judge whether the touch point input by the user is in the area of the delete button displayed by the display unit. , to delete the specific reminder message specified by the user. For a layout using a deletable text edit box, only one editable text control needs to be defined, which can simplify the complexity of the control layout, and can adapt to multiple resolutions and multiple pixel densities of multiple terminal devices. In addition, the accuracy of the operation of deleting specific reminder information can be improved, thereby enhancing user experience.
远程用户的提醒信息一般可以存放在getCacheDir或者getExternalCacheDir路径下,响应用户的删除指令,将上述路径下存储的特定提醒信息进行清空。对于已发送且存储至远程用户终端设备的提醒信息,根据用户的实际需要,可以响应远程用户针对特定提醒信息的删除指令,删除特定提醒信息。至于特定提醒信息,可以定义为已经没有保留价值、参考价值等的提醒信息,远程用户通过删除指令,一是可以及时更新数据,二是可以适时扩大终端内存。The reminder information of the remote user can generally be stored in the getCacheDir or getExternalCacheDir path, and the specific reminder information stored in the above path is cleared in response to the user's delete command. For the reminder information that has been sent and stored in the remote user terminal device, according to the actual needs of the user, the specific reminder information can be deleted in response to the remote user's deletion instruction for the specific reminder information. As for the specific reminder information, it can be defined as reminder information that has no retention value, reference value, etc., and the remote user can update the data in time by deleting the command, and the second is to expand the terminal memory in a timely manner.
其中,所述可佩戴设备为智能手表、智能手环或智能眼镜。Wherein, the wearable device is a smart watch, smart bracelet or smart glasses.
可佩戴设备即直接穿在身上,或是整合到用户的衣服或配件的一种便携式设备。可佩戴设备不仅仅是一种硬件设备,更是通过软件支持以及数据交互、云端交互来实现强大的功能,可佩戴设备将会对人们的生活、感知带来很大的转变。可佩戴设备多以具备部分计算功能、可连接手机及各类终端的便携式配件形式存在,主流的产品形态包括以手腕为支撑的手表、腕带等产品,以脚为支撑的鞋、袜子等其它腿上佩戴产品,以头部为支撑的眼镜、头盔等,还包括智能服装、书包、拐杖、配饰等各类非主流产品形态。在本实施例中,可佩戴设备包括但不限于智能手表、智能手环或智能眼镜。A wearable device is a portable device that is worn directly on the body or integrated into the user's clothing or accessories. Wearable devices are not only a hardware device, but also achieve powerful functions through software support, data interaction, and cloud interaction. Wearable devices will bring great changes to people's lives and perceptions. Wearable devices mostly exist in the form of portable accessories with partial computing functions and can be connected to mobile phones and various terminals. The mainstream product forms include wrist-supported watches, wristbands and other products, feet-supported shoes, socks and other products. Products worn on the legs, glasses supported by the head, helmets, etc., also include various non-mainstream product forms such as smart clothing, school bags, crutches, and accessories. In this embodiment, the wearable device includes but is not limited to a smart watch, smart bracelet or smart glasses.
请参阅图2至图8,本发明可佩戴设备控制的实现装置,包括:获取模块11、判定模块12、发送模块13、预设模块14、移动终端接收模块15、信息处理模块16、信息存储模块17、删除模块18、第一启动模块19和第二启动模块20。Please refer to Fig. 2 to Fig. 8, the implementation device of wearable device control in the present invention includes: acquiring module 11, judging module 12, sending module 13, preset module 14, mobile terminal receiving module 15, information processing module 16, information storage module 17 , deletion module 18 , first startup module 19 and second startup module 20 .
上述各模块的功能如下:The functions of the above modules are as follows:
获取模块11:获取心电传感器检测到的数据以确定心率值,同时获取加速度传感器检测到的数据以确定活动参数;Acquisition module 11: acquire the data detected by the ECG sensor to determine the heart rate value, and simultaneously acquire the data detected by the acceleration sensor to determine the activity parameters;
判定模块12:判定心率值、活动参数是否与预设条件匹配;Determination module 12: determine whether the heart rate value and activity parameters match the preset conditions;
发送模块13:当心率值与活动参数满足预设条件时,通过远程接口发送提醒信息。Sending module 13: when the heart rate value and activity parameters meet the preset conditions, send reminder information through the remote interface.
预设模块14:在一定的时间间隔内,获取心率值和活动参数。Presetting module 14: acquiring heart rate values and activity parameters within a certain time interval.
移动终端接收模块15:当心率值与活动参数满足预设条件时,通过蓝牙信号发送提醒信息至移动终端。The mobile terminal receiving module 15: when the heart rate value and the activity parameters meet the preset conditions, send reminder information to the mobile terminal through the bluetooth signal.
信息处理模块16:将提醒信息进行格式化处理后发送至与本佩戴设备绑定的关联用户。Information processing module 16: format the reminder information and send it to the associated user bound with the wearable device.
信息存储模块17:将处理后的提醒信息进行存储。Information storage module 17: store the processed reminder information.
删除模块18:响应远程用户针对特定提醒信息的删除指令,删除特定提醒信息。Deletion module 18: responding to a remote user's deletion instruction for specific reminder information, delete specific reminder information.
第一启动模块19:所述活动参数的变化值达到设定阈值时,响应心电传感器的启动指令,获得心率值。The first starting module 19: when the change value of the activity parameter reaches the set threshold, respond to the starting instruction of the ECG sensor, and obtain the heart rate value.
第二启动模块20:所述心率值的变化值达到设定阈值时,响应加速度传感器的启动指令,获得活动参数。The second starting module 20: when the change value of the heart rate value reaches a set threshold, respond to the starting instruction of the acceleration sensor, and obtain the activity parameters.
其中,所述判定模块12还包括:第一检测模块21:当检测到心率值大于设定阈值,且活动参数小于或等于设定阈值时,视为与预设条件相匹配,由此判定用户处于设定的心理状态。Wherein, the determination module 12 also includes: a first detection module 21: when it is detected that the heart rate value is greater than the set threshold and the activity parameter is less than or equal to the set threshold, it is deemed to match the preset condition, thereby determining that the user In a set state of mind.
其中,所述判定模块12还包括:第二检测模块22:当检测到心率值和活动参数均大于设定阈值时,视为与预设条件相匹配,由此判定用户处于设定的运动状态。Wherein, the determination module 12 also includes: a second detection module 22: when it is detected that the heart rate value and the activity parameter are both greater than the set threshold, it is deemed to match the preset condition, thereby judging that the user is in the set exercise state .
其中,所述判定模块12还包括:第三检测模块23:当检测到活动参数保持稳定,而心率值突变,视为与预设条件相匹配,由此判定用户处于设定的心理状态.Wherein, the determination module 12 also includes: a third detection module 23: when it is detected that the activity parameters remain stable, but the heart rate value changes suddenly, it is deemed to match the preset condition, thereby determining that the user is in the set psychological state.
其中,所述判定模块12还包括:第四检测模块24:当检测到心率值保持稳定,而活动参数突变,视为与预设条件相匹配,由此判定用户处于设定的运动状态。Wherein, the determination module 12 further includes: a fourth detection module 24: when it is detected that the heart rate value remains stable but the activity parameter changes suddenly, it is deemed to match the preset condition, thereby determining that the user is in the set exercise state.
其中,所述信息存储模块17还包括:第一存储模块25:所述提醒信息被存储于可佩戴设备本机。Wherein, the information storage module 17 further includes: a first storage module 25: the reminder information is stored in the wearable device itself.
其中,所述信息存储模块17还包括:第二存储模块26:所述提醒信息被存储于云端服务器。Wherein, the information storage module 17 further includes: a second storage module 26: the reminder information is stored in a cloud server.
本发明通过获取模块,获取心电传感器检测到的数据以确定心率值,同时获取加速度传感器检测到的数据以确定活动参数;再通过判定模块,判定心率值、活动参数是否与预设条件匹配;待检测到的心率值与活动参数满足预设条件时,经发送模块通过远程接口发送提醒信息,实现用户身体状况监测以及判断用户对所处环境喜好的功能,区别于市面上存在的功能单一无法判定用户对所处环境喜好的可佩戴设备。The present invention obtains the data detected by the ECG sensor to determine the heart rate value through the acquisition module, and simultaneously obtains the data detected by the acceleration sensor to determine the activity parameters; and then determines whether the heart rate value and the activity parameters match the preset conditions through the determination module; When the heart rate value and activity parameters to be detected meet the preset conditions, the sending module sends reminder information through the remote interface to realize the function of monitoring the user's physical condition and judging the user's preference for the environment, which is different from the single function in the market. Wearables that determine the user's preferences for their environment.
本发明所述的可佩戴设备控制的实现方法及装置的具体应用如下:用户在使用可佩戴设备的过程中,该佩戴设备可以检测用户的心率值以及活动参数,通过数据处理电路按照预设的计算方式,算出不同的运动数据;并对用户状态进行匹配:比如,当检测到心率值大于设定阈值,且活动参数小于或等于设定阈值时,视为与预设条件相匹配,由此判定用户处于设定的心理状态;当检测到心率值和活动参数均大于设定阈值时,视为与预设条件相匹配,由此判定用户处于设定的运动状态;当检测到活动参数保持稳定,而心率值突变,视为与预设条件相匹配,由此判定用户处于设定的心理状态;当检测到心率值保持稳定,而活动参数突变,视为与预设条件相匹配,由此判定用户处于设定的运动状态。将满足预设条件时的数据进行处理后,通过远程接口,比如蓝牙信号等,发送提醒信息至移动终端。将提醒信息进行格式化处理之后发送至本佩戴设备绑定的关联用户,并且,将该提醒信息进行存储,可以存储于可佩戴设备本机,也可以存储于云端服务器。另外,对于一些特定提醒信息,可以响应远程用户的删除指令,删除特定提醒信息。The specific application of the implementation method and device for wearable device control described in the present invention is as follows: When the user is using the wearable device, the wearable device can detect the user's heart rate value and activity parameters, and the data processing circuit according to the preset Calculation method, calculate different sports data; and match the user status: for example, when it is detected that the heart rate value is greater than the set threshold, and the activity parameter is less than or equal to the set threshold, it is considered to match the preset condition, thus Determine that the user is in the set mental state; when the detected heart rate value and activity parameters are greater than the set threshold, it is deemed to match the preset condition, thus judging that the user is in the set exercise state; when it is detected that the activity parameters remain When the heart rate value is stable, but the heart rate value changes suddenly, it is considered to match the preset condition, so it is determined that the user is in the set psychological state; This determines that the user is in the set exercise state. After processing the data that meets the preset conditions, a reminder message is sent to the mobile terminal through a remote interface, such as a Bluetooth signal. The reminder information is formatted and sent to the associated user bound to the wearable device, and the reminder information can be stored in the wearable device itself or in a cloud server. In addition, for some specific reminder information, the specific reminder information may be deleted in response to a remote user's deletion instruction.
以上所述仅是本发明的部分实施方式,应当指出,对于本技术领域的普通技术人员来说,在不脱离本发明原理的前提下,还可以做出若干改进和润饰,这些改进和润饰也应视为本发明的保护范围。The above descriptions are only part of the embodiments of the present invention. It should be pointed out that those skilled in the art can make some improvements and modifications without departing from the principles of the present invention. It should be regarded as the protection scope of the present invention.
Claims (10)
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201510927717.5A CN105496428B (en) | 2015-12-14 | 2015-12-14 | The implementation method and device of wearable device control |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201510927717.5A CN105496428B (en) | 2015-12-14 | 2015-12-14 | The implementation method and device of wearable device control |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| CN105496428A true CN105496428A (en) | 2016-04-20 |
| CN105496428B CN105496428B (en) | 2018-10-30 |
Family
ID=55704998
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN201510927717.5A Active CN105496428B (en) | 2015-12-14 | 2015-12-14 | The implementation method and device of wearable device control |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN105496428B (en) |
Cited By (18)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN105877749A (en) * | 2016-06-08 | 2016-08-24 | 电子科技大学 | Automatic alarm help-seeking equipment based on respiration signal and detection method of automatic alarm help-seeking equipment |
| CN106108866A (en) * | 2016-06-08 | 2016-11-16 | 瑞安市智造科技有限公司 | A kind of school Intelligent bracelet |
| CN106526619A (en) * | 2016-10-26 | 2017-03-22 | 广东小天才科技有限公司 | method and device for automatically starting GPS positioning function |
| CN106913325A (en) * | 2017-02-17 | 2017-07-04 | 北京小米移动软件有限公司 | Step-recording method and device |
| CN107241328A (en) * | 2017-06-07 | 2017-10-10 | 黄俊生 | Electronic equipment method for opening and closing and system |
| CN107247974A (en) * | 2017-06-30 | 2017-10-13 | 中国科学院计算技术研究所 | Fitness sport recognizing method and system based on multisource data fusion |
| CN107396849A (en) * | 2017-07-28 | 2017-11-28 | 深圳市沃特沃德股份有限公司 | Obtain the method and device and pet wearable device of pet hobby |
| WO2018077020A1 (en) * | 2016-10-25 | 2018-05-03 | 广东乐源数字技术有限公司 | Wristband-based method for determining human emotions |
| CN108492879A (en) * | 2018-03-29 | 2018-09-04 | 云谷(固安)科技有限公司 | Terminal device, sport health assessment system and method |
| CN108628217A (en) * | 2018-05-30 | 2018-10-09 | 努比亚技术有限公司 | Wearable device power consumption control method, wearable device and computer readable storage medium |
| CN108653897A (en) * | 2017-03-31 | 2018-10-16 | 高军 | A kind of individual soldier's mental accommodation instrument system |
| CN109431000A (en) * | 2017-04-12 | 2019-03-08 | 佛山市丈量科技有限公司 | A kind of exercise guidance system and method based on step information |
| CN109714705A (en) * | 2018-12-29 | 2019-05-03 | 杭州平普智能科技有限公司 | A kind of data fusion method and device based on multisensor |
| CN110913009A (en) * | 2019-12-03 | 2020-03-24 | 浙江大学 | Device and method for displaying electrocardiogram by browser through UDP network protocol |
| CN110916671A (en) * | 2019-11-15 | 2020-03-27 | 河海大学 | Intelligent running monitoring system |
| CN111513700A (en) * | 2020-04-29 | 2020-08-11 | 江西服装学院 | Wearing equipment with locate function |
| CN111540458A (en) * | 2020-04-02 | 2020-08-14 | 出门问问信息科技有限公司 | Information processing method and device, electronic equipment and computer storage medium |
| CN113491513A (en) * | 2020-04-08 | 2021-10-12 | 华为技术有限公司 | Heart rhythm detection control method and terminal |
Citations (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US20090270743A1 (en) * | 2008-04-17 | 2009-10-29 | Dugan Brian M | Systems and methods for providing authenticated biofeedback information to a mobile device and for using such information |
| CN104434142A (en) * | 2014-11-14 | 2015-03-25 | 惠州Tcl移动通信有限公司 | Wearable device and emotion reminding method |
| CN104814728A (en) * | 2015-05-28 | 2015-08-05 | 京东方科技集团股份有限公司 | Running guide method and running guide device |
| CN204618229U (en) * | 2015-04-30 | 2015-09-09 | 吴健康 | The equipment of test heart movement function and system |
| CN204813800U (en) * | 2015-06-01 | 2015-12-02 | 陈耶锋 | Intelligent intervention system of full -automatic health |
-
2015
- 2015-12-14 CN CN201510927717.5A patent/CN105496428B/en active Active
Patent Citations (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US20090270743A1 (en) * | 2008-04-17 | 2009-10-29 | Dugan Brian M | Systems and methods for providing authenticated biofeedback information to a mobile device and for using such information |
| CN104434142A (en) * | 2014-11-14 | 2015-03-25 | 惠州Tcl移动通信有限公司 | Wearable device and emotion reminding method |
| CN204618229U (en) * | 2015-04-30 | 2015-09-09 | 吴健康 | The equipment of test heart movement function and system |
| CN104814728A (en) * | 2015-05-28 | 2015-08-05 | 京东方科技集团股份有限公司 | Running guide method and running guide device |
| CN204813800U (en) * | 2015-06-01 | 2015-12-02 | 陈耶锋 | Intelligent intervention system of full -automatic health |
Cited By (22)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN106108866A (en) * | 2016-06-08 | 2016-11-16 | 瑞安市智造科技有限公司 | A kind of school Intelligent bracelet |
| CN105877749A (en) * | 2016-06-08 | 2016-08-24 | 电子科技大学 | Automatic alarm help-seeking equipment based on respiration signal and detection method of automatic alarm help-seeking equipment |
| CN105877749B (en) * | 2016-06-08 | 2019-04-05 | 电子科技大学 | A kind of automatic alarm help-seeking equipment and its detection method based on breath signal |
| WO2018077020A1 (en) * | 2016-10-25 | 2018-05-03 | 广东乐源数字技术有限公司 | Wristband-based method for determining human emotions |
| CN106526619A (en) * | 2016-10-26 | 2017-03-22 | 广东小天才科技有限公司 | method and device for automatically starting GPS positioning function |
| CN106913325A (en) * | 2017-02-17 | 2017-07-04 | 北京小米移动软件有限公司 | Step-recording method and device |
| CN108653897A (en) * | 2017-03-31 | 2018-10-16 | 高军 | A kind of individual soldier's mental accommodation instrument system |
| CN109431000A (en) * | 2017-04-12 | 2019-03-08 | 佛山市丈量科技有限公司 | A kind of exercise guidance system and method based on step information |
| CN107241328A (en) * | 2017-06-07 | 2017-10-10 | 黄俊生 | Electronic equipment method for opening and closing and system |
| CN107241328B (en) * | 2017-06-07 | 2020-06-12 | 黄俊生 | Electronic equipment opening and closing method and system |
| CN107247974A (en) * | 2017-06-30 | 2017-10-13 | 中国科学院计算技术研究所 | Fitness sport recognizing method and system based on multisource data fusion |
| CN107396849A (en) * | 2017-07-28 | 2017-11-28 | 深圳市沃特沃德股份有限公司 | Obtain the method and device and pet wearable device of pet hobby |
| CN108492879A (en) * | 2018-03-29 | 2018-09-04 | 云谷(固安)科技有限公司 | Terminal device, sport health assessment system and method |
| CN108628217A (en) * | 2018-05-30 | 2018-10-09 | 努比亚技术有限公司 | Wearable device power consumption control method, wearable device and computer readable storage medium |
| CN108628217B (en) * | 2018-05-30 | 2022-03-11 | 努比亚技术有限公司 | Wearable device power consumption control method, wearable device and computer-readable storage medium |
| CN109714705A (en) * | 2018-12-29 | 2019-05-03 | 杭州平普智能科技有限公司 | A kind of data fusion method and device based on multisensor |
| CN110916671A (en) * | 2019-11-15 | 2020-03-27 | 河海大学 | Intelligent running monitoring system |
| CN110913009A (en) * | 2019-12-03 | 2020-03-24 | 浙江大学 | Device and method for displaying electrocardiogram by browser through UDP network protocol |
| CN111540458A (en) * | 2020-04-02 | 2020-08-14 | 出门问问信息科技有限公司 | Information processing method and device, electronic equipment and computer storage medium |
| CN113491513A (en) * | 2020-04-08 | 2021-10-12 | 华为技术有限公司 | Heart rhythm detection control method and terminal |
| CN113491513B (en) * | 2020-04-08 | 2023-06-30 | 华为技术有限公司 | Heart rhythm detection control method and terminal |
| CN111513700A (en) * | 2020-04-29 | 2020-08-11 | 江西服装学院 | Wearing equipment with locate function |
Also Published As
| Publication number | Publication date |
|---|---|
| CN105496428B (en) | 2018-10-30 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN105496428B (en) | The implementation method and device of wearable device control | |
| US11355157B2 (en) | Special effect synchronization method and apparatus, and mobile terminal | |
| CN103908227B (en) | Wireless Portable Biometric Device Synchronization | |
| CN105830475B (en) | The information exchange based on gesture between neighbouring equipment | |
| US12041034B2 (en) | Controlling computing device virtual private network usage with a wearable device | |
| US10623885B2 (en) | Watch type mobile terminal and operation method thereof | |
| KR20200044505A (en) | Electronic device suporting link sharing and method therefor | |
| CN106471860B (en) | Mobile terminal and method for controlling the same | |
| CN115428413A (en) | Notification processing method, electronic equipment and system | |
| CN105391682A (en) | Authentication method and apparatus using biometric information and context information | |
| CN105955700A (en) | Sound effect adjusting method and user terminal | |
| US20150061829A1 (en) | System and method for managing functional features of electronic devices | |
| WO2022160993A1 (en) | Method and device for multimedia data sharing | |
| US10306421B2 (en) | Wearable device notification framework | |
| CN112218150A (en) | Terminal and video analysis display method and device thereof | |
| US9712256B2 (en) | Method and system for capturing media by using BAN | |
| WO2022048453A1 (en) | Unlocking method and electronic device | |
| CN108446574A (en) | data query method, terminal and computer readable storage medium | |
| WO2022152174A1 (en) | Screen projection method and electronic device | |
| CN110069184B (en) | Mobile terminal control method, wearable device and computer readable storage medium | |
| US9386434B2 (en) | Method and apparatus for synchronization of devices | |
| US20160143066A1 (en) | Method and system for displaying web applications of a first communication device on a second communication device by using ban | |
| WO2024067328A1 (en) | Message processing method | |
| CN110187950B (en) | Methods of adjusting screen display position, wearable devices and storage media | |
| CN105849694A (en) | Information processing device, information processing method, program, and information processing system |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| C06 | Publication | ||
| PB01 | Publication | ||
| C10 | Entry into substantive examination | ||
| SE01 | Entry into force of request for substantive examination | ||
| GR01 | Patent grant | ||
| GR01 | Patent grant | ||
| TR01 | Transfer of patent right | ||
| TR01 | Transfer of patent right |
Effective date of registration: 20220725 Address after: Room 801, 8th floor, No. 104, floors 1-19, building 2, yard 6, Jiuxianqiao Road, Chaoyang District, Beijing 100015 Patentee after: BEIJING QIHOO TECHNOLOGY Co.,Ltd. Address before: 100088 room 112, block D, 28 new street, new street, Xicheng District, Beijing (Desheng Park) Patentee before: BEIJING QIHOO TECHNOLOGY Co.,Ltd. Patentee before: Qizhi software (Beijing) Co.,Ltd. |