体感模拟信号的输出方法及系统Method and system for outputting somatosensory analog signal
技术领域Technical field
本发明属于可穿戴电子设备技术领域,尤其涉及一种体感模拟信号的输出方法及系统。The invention belongs to the technical field of wearable electronic devices, and in particular relates to a method and a system for outputting a somatosensory analog signal.
背景技术Background technique
随着科学技术的发展及生活质量的提高,人类对自己的身心健康也越来越重视,诸如按摩仪这样的可穿戴式电子设备被越来越多的用户所使用,人们希望通过此类产品达到按摩保健、放松身心的效果。近些年来,中国传统的针灸也开始通过可穿戴式电子设备实现。针灸,是通过对人体特定穴位进行刺激来达到按摩保健的效果,针灸一词涵盖了针与灸这两种穴位刺激方式,在传统的针灸过程中,针,指的是以实体针扎入特定穴位,刺激经脉;灸,则是以温热的材料,如点燃的艾草,来刺激经脉,对于可穿戴式针灸产品来说,其是利用可穿戴装置在人体特定穴位上进行体感信号的输出,以模拟针和灸的刺激方式,使得用户能够足不出户地享受到针灸带来的益处。With the development of science and technology and the improvement of the quality of life, human beings are paying more and more attention to their physical and mental health. Wearable electronic devices such as massage devices are used by more and more users, and people hope to pass such products. Achieve massage and health care and relax. In recent years, traditional Chinese acupuncture has also begun to be realized through wearable electronic devices. Acupuncture is the effect of massage and health care by stimulating specific acupuncture points on the human body. The term acupuncture covers both acupuncture and moxibustion. In the traditional acupuncture process, the needle refers to the physical needle. Acupoints stimulate the meridians; moxibustion uses warm materials such as ignited wormwood to stimulate the meridians. For wearable acupuncture products, it uses the wearable device to output the somatosensory signal at specific points on the human body. By simulating the stimulation of needles and moxibustion, users can enjoy the benefits of acupuncture without leaving home.
然而在现阶段,市面上现有的可穿戴式针灸产品大多只能实现对穴位的电刺激和热刺激,刺激方式缺乏多样性,无法达到更加全方位的按摩保健效果,这也进一步使得用户需要额外购置相应的按摩设备,无疑也带来了用户消费成本的增加。However, at this stage, most of the existing wearable acupuncture products on the market can only achieve electrical stimulation and thermal stimulation of acupuncture points. The lack of diversity in stimulation methods can not achieve a more comprehensive massage and health care effect, which further enables users to The additional purchase of the corresponding massage equipment will undoubtedly bring about an increase in the user's cost of consumption.
发明内容Summary of the invention
有鉴于此,本发明实施例提供了体感模拟信号的输出方法及系统,以解决现有的可穿戴式针灸产品,其刺激方式缺乏多样性的问题。In view of this, the embodiments of the present invention provide a method and a system for outputting a somatosensory analog signal to solve the problem that the existing wearable acupuncture products lack the diversity of the stimulation modes.
第一方面,提供了一种体感模拟信号的输出方法,包括:
In a first aspect, a method for outputting a somatosensory analog signal is provided, including:
利用可穿戴装置上的电极测量预设的人体位置的肌肉电信号,得到测量结果;Measuring the muscle electrical signal of the preset human body position by using an electrode on the wearable device to obtain a measurement result;
若所述测量结果为所述肌肉电信号的变化幅度小于预设幅度,则获取与所述测量结果匹配的控制数据包,所述控制数据包用于控制体感模拟信号输出;And if the measurement result is that the amplitude of the change of the muscle electrical signal is less than a preset amplitude, acquiring a control data packet that matches the measurement result, where the control data packet is used to control the somatosensory analog signal output;
解析所述控制数据包,从中获取体感模拟参数;Parsing the control data packet, and obtaining a somatosensory simulation parameter therefrom;
基于所述体感模拟参数,控制可穿戴装置中的反馈模块通过以下任一种方式向预设的人体位置输出体感模拟信号:Based on the somatosensory simulation parameter, the feedback module in the control wearable device outputs the somatosensory analog signal to the preset human body position by any of the following methods:
第一方式包括:根据穴位电刺激参数控制所述电极向所述人体位置输出电刺激信号,根据加热参数对贴附在所述人体位置的加热片进行温度控制,以及根据震动参数对贴附在所述人体位置的震动模块进行震动控制;The first mode includes: controlling the electrode to output an electrical stimulation signal to the human body position according to the acupoint electrical stimulation parameter, performing temperature control on the heating piece attached to the human body position according to the heating parameter, and attaching according to the vibration parameter pair The vibration module of the human body position performs vibration control;
第二方式包括:根据肌肉电刺激参数控制所述电极向所述人体位置输出电刺激信号。The second mode includes controlling the electrode to output an electrical stimulation signal to the human body position based on the muscle electrical stimulation parameter.
第二方面,提供了一种体感模拟信号的输出装置,包括:In a second aspect, an output device for a somatosensory analog signal is provided, including:
测量单元,用于利用可穿戴装置上的电极测量预设的人体位置的肌肉电信号,得到测量结果;a measuring unit, configured to measure a muscle electrical signal of a preset human body position by using an electrode on the wearable device to obtain a measurement result;
获取单元,用于若所述测量结果为所述肌肉电信号的变化幅度小于预设幅度,则获取与所述测量结果匹配的控制数据包,所述控制数据包用于控制体感模拟信号输出;And an acquiring unit, configured to: if the measurement result is that the magnitude of the change of the muscle electrical signal is less than a preset amplitude, acquire a control data packet that matches the measurement result, where the control data packet is used to control the somatosensory analog signal output;
解析单元,用于解析所述控制数据包,从中获取体感模拟参数;a parsing unit, configured to parse the control data packet, and obtain a somatosensory simulation parameter therefrom;
控制单元,用于基于所述体感模拟参数,控制可穿戴装置中的反馈模块通过以下任一种方式向预设的人体位置输出体感模拟信号:And a control unit, configured to: according to the somatosensory simulation parameter, control the feedback module in the wearable device to output the somatosensory analog signal to the preset human body position by any of the following methods:
第一方式包括:根据穴位电刺激参数控制所述电极向所述人体位置输出电刺激信号,根据加热参数对贴附在所述人体位置的加热片进行温度控制,以及根据震动参数对贴附在所述人体位置的震动模块进行震动控制;The first mode includes: controlling the electrode to output an electrical stimulation signal to the human body position according to the acupoint electrical stimulation parameter, performing temperature control on the heating piece attached to the human body position according to the heating parameter, and attaching according to the vibration parameter pair The vibration module of the human body position performs vibration control;
第二方式包括:根据肌肉电刺激参数控制所述电极向所述人体位置输出电刺激信号。
The second mode includes controlling the electrode to output an electrical stimulation signal to the human body position based on the muscle electrical stimulation parameter.
本发明实施例基于对人体进行体感模拟信号的控制输出,能够通过一套可穿戴针灸产品来兼顾实现穴位刺激和肌肉刺激,提升了可穿戴针灸产品的刺激方式多样性,此外,本发明实施例还基于肌肉电信号的检测结果来明确是否对人体加以肌肉刺激,由此保证了体感模拟信号输出后对人体实施刺激的有效性和准确性。The embodiment of the present invention is based on the control output of the somatosensory analog signal of the human body, and can achieve acupuncture stimulation and muscle stimulation through a set of wearable acupuncture products, thereby improving the stimulating manner diversity of the wearable acupuncture product, and further, the embodiment of the present invention It is also based on the detection result of the muscle electrical signal to determine whether the muscle stimulation is applied to the human body, thereby ensuring the effectiveness and accuracy of the stimulation of the human body after the output of the somatosensory analog signal.
附图说明DRAWINGS
为了更清楚地说明本发明实施例中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动性的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings used in the embodiments or the description of the prior art will be briefly described below. It is obvious that the drawings in the following description are only the present invention. For some embodiments, other drawings may be obtained from those of ordinary skill in the art in light of the inventive workability.
图1是本发明实施例提供的体感模拟信号的输出方法的实现流程图;1 is a flowchart of implementing an output method of a somatosensory analog signal according to an embodiment of the present invention;
图2是本发明实施例提供的电击模式为其他模式时电刺激参数的波形图;2 is a waveform diagram of electrical stimulation parameters when the electric shock mode is another mode according to an embodiment of the present invention;
图3是本发明另一实施例提供的体感模拟信号的输出方法的实现流程图;3 is a flowchart of an implementation of a method for outputting a somatosensory analog signal according to another embodiment of the present invention;
图4是本发明实施例提供的体感模拟信号的输出装置的结构框图。4 is a structural block diagram of an apparatus for outputting a somatosensory analog signal according to an embodiment of the present invention.
具体实施方式detailed description
以下描述中,为了说明而不是为了限定,提出了诸如特定系统结构、技术之类的具体细节,以便透彻理解本发明实施例。然而,本领域的技术人员应当清楚,在没有这些具体细节的其它实施例中也可以实现本发明。在其它情况中,省略对众所周知的系统、装置、电路以及方法的详细说明,以免不必要的细节妨碍本发明的描述。In the following description, for purposes of illustration and description However, it will be apparent to those skilled in the art that the present invention may be practiced in other embodiments without these specific details. In other instances, detailed descriptions of well-known systems, devices, circuits, and methods are omitted so as not to obscure the description of the invention.
首先,对本发明实施例中提及的可穿戴装置进行解释说明。在本发明实施例中,可穿戴装置即可穿戴式针灸产品,其可以是由柔性面料制成的衣服、裤子以及手套等,且在柔性面料贴近人体皮肤一侧镶嵌有多个反馈模块,每个反馈模块分布于不同的位置点,以使得用户在穿上该产品之后,各个反馈模块能
够贴附于用户身体的各个穴位点。在可穿戴装置中,还镶嵌有至少一个控制模块,每个反馈模块分别与该控制模块通过通讯总线相连。控制模块以通讯总线的方式把控制信息下发至反馈模块后,反馈模块中的MCU(Microcontroller Unit,微控制单元)依照控制信息来决定需要输出的针灸模拟参数,从而通过输出不同的体感模拟信号来对用户的各个穴位点或肌肉块进行不同方式的刺激。First, the wearable device mentioned in the embodiment of the present invention will be explained. In the embodiment of the present invention, the wearable device can be a wearable acupuncture product, which can be a garment made of a flexible fabric, pants, gloves, etc., and a plurality of feedback modules are embedded on the side of the flexible fabric close to the human skin. Feedback modules are distributed at different locations so that after the user puts on the product, each feedback module can
Attach enough to each point of the user's body. In the wearable device, at least one control module is also embedded, and each feedback module is respectively connected to the control module via a communication bus. After the control module sends the control information to the feedback module in the manner of the communication bus, the MCU (Microcontroller Unit) in the feedback module determines the acupuncture simulation parameters to be output according to the control information, thereby outputting different somatosensory analog signals. To stimulate the user's various acupoints or muscle blocks in different ways.
在具体实现中,示例性地,可穿戴装置中还安置有电线及电路板,其中,电路板用于固定各类通讯总线以及固定磁吸公头,使得外壳上具有磁吸母头的每个反馈模块能够利用磁吸之间的吸力,灵活地与任一电路板上固定的磁吸公头进行镶嵌连接,从而固定在可穿戴装置的预设位置点。此外,电路板及其各个焊接处都包裹有防水胶,作为一种具体的实现方式,各个反馈模块均可从电路板中拆卸出来,作为另一种具体的实现方式,也可以通过在衣物上固定防水的走线和接插装置,将反馈模块及搭载反馈模块的控制电路板进行整体拆卸,因此,该可穿戴装置能够被洗涤。In a specific implementation, by way of example, the wearable device is further provided with a wire and a circuit board, wherein the circuit board is used for fixing various communication buses and fixing the magnetic male head, so that each of the magnetic female contacts on the outer casing The feedback module can flexibly be inlaid with the fixed magnetic male head on any circuit board by the suction between the magnetic contacts, thereby being fixed at a preset position of the wearable device. In addition, the circuit board and its various solder joints are wrapped with waterproof glue. As a specific implementation, each feedback module can be detached from the circuit board. As another specific implementation, it can also be passed on the clothes. The waterproof waterproof wiring and the connecting device integrally disassemble the feedback module and the control circuit board on which the feedback module is mounted, so that the wearable device can be washed.
在本发明实施例中,每个反馈模块对应一个身体点位(穴位),且每个反馈模块上集成了电极、加热片及震动模块这三种体感传感器:In the embodiment of the present invention, each feedback module corresponds to one body point (acupoint), and each of the feedback modules integrates three kinds of body sensors: an electrode, a heating piece and a vibration module:
其中,电极的作用包括:对人体位置进行穴位刺激和肌肉刺激,每个反馈模块中电极的数量可以为一个或两个。在进行穴位刺激时,当电极数量为一个时,需要至少有两个反馈模块同时接收到基于电刺激参数的控制信息并同时输出电刺激信号,才能在这两个反馈模块对应的两个电极与用户身体之间形成电击回路,从而产生电刺激模拟效果,即对针灸中的“针”进行模拟。当每个反馈模块中电极的数量为两个时,对于任一反馈模块,可以直接在其内部的两个电极与用户身体之间形成电击回路,从而产生电刺激模拟效果。The role of the electrode includes: acupoint stimulation and muscle stimulation on the position of the human body, and the number of electrodes in each feedback module may be one or two. When acupoint stimulation is performed, when the number of electrodes is one, at least two feedback modules need to simultaneously receive control information based on electrical stimulation parameters and simultaneously output electrical stimulation signals, so that the two electrodes corresponding to the two feedback modules can An electric shock circuit is formed between the user's bodies to produce an electrical stimulation simulation effect, that is, a simulation of the "needle" in acupuncture. When the number of electrodes in each feedback module is two, for any feedback module, an electric shock circuit can be formed directly between the two electrodes inside and the user's body, thereby generating an electrical stimulation simulation effect.
除了电极之外,在本发明实施例中,每个反馈模块内部还集成有加热片以及震动模块。反馈模块在接收到控制模块发送的控制信息后,使用内部相应的体感传感器来做出体感反馈。例如,利用加热片进行温度控制,使得该反馈模
块能够在其贴附的人体位置产生相应温度值的艾灸发热效果。此外,由于石墨烯在发热时,其产生的远红外光谱与艾灸发热时所产生的红外线光谱相似,因此,为了使加热片在人体位置点发热时能够产生与艾灸发热更为相似的加热效果,示例性地,反馈模块中的加热片可以为石墨烯加热片。当用户身体接收到来自石墨烯加热片所产生的红外线时,能够进一步促进细胞的新陈代谢,达到更好的细胞修复性效果。In addition to the electrodes, in the embodiment of the present invention, each of the feedback modules is further integrated with a heating sheet and a vibration module. After receiving the control information sent by the control module, the feedback module uses the corresponding internal somatosensory sensor to make the somatosensory feedback. For example, using a heating pad for temperature control such that the feedback mode
The block can produce the moxibustion heating effect of the corresponding temperature value at the position of the human body to which it is attached. In addition, since the far-infrared spectrum generated by graphene is similar to the infrared spectrum generated when moxibustion is heated, it is possible to generate a heating similar to that of moxibustion in order to heat the heating sheet at a human body point. Effect, exemplarily, the heating sheet in the feedback module may be a graphene heating sheet. When the user's body receives the infrared rays generated by the graphene heating sheet, it can further promote the metabolism of the cells and achieve a better cell repairing effect.
基于上文所描述的可穿戴装置,接下来对本发明实施例提供的体感模拟信号的输出方法的实现流程进行详细说明。在本发明实施例中,该流程的执行主体即为上述可穿戴装置中的控制模块,如图1所示:Based on the wearable device described above, the implementation flow of the method for outputting the somatosensory analog signal provided by the embodiment of the present invention will be described in detail. In the embodiment of the present invention, the execution body of the flow is the control module in the wearable device, as shown in FIG. 1:
在S101中,利用可穿戴装置上的电极测量预设的人体位置的肌肉电信号,得到测量结果。In S101, a muscle electrical signal of a preset human body position is measured using an electrode on the wearable device to obtain a measurement result.
肌肉电信号,即肌电信号(EMG),是众多肌纤维中运动单元动作电位在时间和空间上的叠加,通常指的是表面肌电信号(SEMG),即浅层肌肉的肌电信号和神经干上电活动在皮肤表面的综合效应,能在一定程度上反映神经肌肉的活动。将电极贴附于肌肉外层皮肤的表面,便可以实现对肌肉电信号的采集。通过对采集到的肌肉电信号进行分析,能够得到关于肌肉电信号的特征参数的测量结果。The electrical signal of the muscle, the electromyographic signal (EMG), is a superposition of the action potentials of the motor unit in many muscle fibers in time and space. It is usually referred to as the surface electromyography (SEMG), the myoelectric signal and nerve of the superficial muscle. The combined effect of dry electrical activity on the surface of the skin can reflect the activity of the neuromuscular to some extent. The electrode's electrical signal can be collected by attaching the electrode to the surface of the muscle's outer skin. By analyzing the collected muscle electrical signals, it is possible to obtain measurement results of characteristic parameters of the muscle electrical signals.
在S102中,若所述测量结果为所述肌肉电信号的变化幅度小于预设幅度,则获取与所述测量结果匹配的控制数据包,所述控制数据包用于控制体感模拟信号输出。In S102, if the measurement result is that the variation amplitude of the muscle electrical signal is less than a preset amplitude, acquiring a control data packet that matches the measurement result, and the control data packet is used to control the somatosensory analog signal output.
由于相比于人体的非肌肉位置,肌肉动作电位会产生-90mV到30mV的电势差,又由于人体是电的不良导体,故从可穿戴装置的电极上通常会获得1mV左右的峰值的肌肉电信号,而当肌肉过于紧张或疼痛时,其肌肉张力在肌肉电信号上的表现为:肌肉电信号的变化幅度会小于正常肌肉电信号的变化幅度。因此,在本发明实施例中,通过设置一能够代表肌肉电信号变化幅度的预设幅度,若S101中采集到的肌肉电信号的变化幅度小于该预设幅度,则能够确定该
位置需要进行肌肉刺激,若对该电极输出用于进行肌肉刺激的电刺激信号,会对肌肉起到收缩及放松的作用;若S101中采集到的肌肉电信号的变化幅度不小于该预设幅度,则认为针对该位置可以仅施加以穴位刺激,不需要进行肌肉刺激。Since the muscle action potential produces a potential difference of -90 mV to 30 mV compared to the non-muscle position of the human body, and since the human body is a poor conductor of electricity, a muscle electrical signal of a peak of about 1 mV is usually obtained from the electrode of the wearable device. When the muscles are too tight or painful, the muscle tension on the muscle electrical signal is: the amplitude of the muscle electrical signal changes less than the normal muscle electrical signal. Therefore, in the embodiment of the present invention, by setting a preset amplitude capable of representing the amplitude of the change of the muscle electrical signal, if the amplitude of the change of the muscle electrical signal collected in S101 is less than the preset amplitude, the
The position needs muscle stimulation. If the electrode outputs an electrical stimulation signal for muscle stimulation, it will contract and relax the muscle; if the amplitude of the muscle electrical signal collected in S101 is not less than the preset amplitude It is considered that only acupoint stimulation can be applied to the position, and no muscle stimulation is required.
因此,在本发明实施例中,若采集到的肌肉电信号的变化幅度小于该预设幅度,则能够确定电极当前所贴附的皮肤下方为肌肉,那么进一步地获取与该测量结果匹配的控制数据包,用于控制该反馈模块对体感模拟信号进行输出。Therefore, in the embodiment of the present invention, if the magnitude of the change of the collected muscle electrical signal is less than the preset amplitude, it can be determined that the muscle attached to the skin currently attached to the electrode is a muscle, and then the control matching the measurement result is further acquired. A data packet is used to control the feedback module to output a somatosensory analog signal.
在S103中,解析所述控制数据包,从中获取体感模拟参数。In S103, the control packet is analyzed, and a somatosensory simulation parameter is acquired therefrom.
在本发明实施例中,一个控制数据包用于控制一个反馈模块在一个时刻的体感模拟信号的输出,其中,体感模拟信号包括以下三种类型:电刺激信号、温度控制信号及震动信号,这三种信号分别通过电极、加热片和震动模块输出至人体位置,以分别带来电击、加热和震动的体感模拟。因此,每个反馈模块对应一个身体点位(穴位),且每个反馈模块上集成了电极、加热片及震动模块这三种体感传感器。如上文所述,在控制数据包中,针对每一种体感模拟信号都设置了对应的体感模拟参数:In the embodiment of the present invention, a control data packet is used to control the output of a somatosensory analog signal of a feedback module at a moment, wherein the somatosensory analog signal includes the following three types: an electrical stimulation signal, a temperature control signal, and a vibration signal. The three signals are output to the human body through the electrodes, the heating plate and the vibration module, respectively, to respectively simulate the body feeling of electric shock, heating and vibration. Therefore, each feedback module corresponds to one body point (acupoint), and each of the feedback modules integrates three kinds of somatosensory sensors: an electrode, a heating piece and a vibration module. As described above, in the control data packet, corresponding somatosensory simulation parameters are set for each of the somatosensory analog signals:
对于加热信号,其对应的针灸模拟参数包括温控模式、温控强度和温控时间,其中,温控模式包括升温、降温和保持三种;温控强度可以为升温的度数、降温的度数,也可以为具体的温度值;温控时间代表升温、降温或保持的持续时间。For the heating signal, the corresponding acupuncture simulation parameters include temperature control mode, temperature control intensity and temperature control time, wherein the temperature control mode includes three kinds of temperature rise, temperature drop and hold; the temperature control intensity can be the degree of temperature rise, the degree of temperature drop, It can also be a specific temperature value; the temperature control time represents the duration of temperature rise, temperature drop or hold.
对于震动信号,其对应的针灸模拟参数包括震动强度、震动频率和震动时间,能够在人体穴位处通过震动按摩并刺激穴位。For the vibration signal, the corresponding acupuncture simulation parameters include vibration intensity, vibration frequency and vibration time, which can massage and stimulate the acupuncture points through the vibration at the acupuncture points of the human body.
对于电刺激信号,其对应的体感模拟参数包括电击模式、电击间隔、电击时长和电击强度。在对针刺入效果进行模拟时,只控制电极在当前时刻向人体位置输出单次电刺激信号;在对运针效果或者肌肉刺激效果进行模拟时,控制电极以一定的电击频率向人体位置输出持续的电刺激信号。优选地,电击模式可以包括第一模式、第二模式和除第一模式和第二模式之外的其他模式,具体
地:For the electrical stimulation signal, the corresponding somatosensory simulation parameters include the electric shock mode, the electric shock interval, the electric shock duration, and the electric shock intensity. When simulating the needle penetration effect, only the control electrode outputs a single electrical stimulation signal to the human body position at the current time; when simulating the needle effect or the muscle stimulation effect, the control electrode outputs to the human body position with a certain shock frequency. Continuous electrical stimulation signal. Preferably, the shock mode may include a first mode, a second mode, and other modes than the first mode and the second mode, specifically
Ground:
若电击模式为第一模式,令电极停止向所述人体位置输出电刺激信号;If the electric shock mode is the first mode, the electrode stops outputting the electrical stimulation signal to the human body position;
若电击模式为第二模式,控制电极维持从时刻t-1起所采用的电击间隔、电击时长和电击强度向人体位置输出电刺激信号;If the electric shock mode is the second mode, the control electrode maintains the electric shock interval, the electric shock duration and the electric shock intensity used to output the electrical stimulation signal to the human body position from the time t-1;
若所述电击模式为第一模式和第二模式之外的其他模式,基于时刻t对应的控制数据包中的电击间隔、电击时长和电击强度,控制电极以预设的有效刺激频率向人体位置输出电刺激信号。If the electric shock mode is other modes than the first mode and the second mode, the control electrode is at a preset effective stimulation frequency to the human body position based on the electric shock interval, the electric shock duration and the electric shock intensity in the control data packet corresponding to the time t. The electrical stimulation signal is output.
本发明实施例中,第一模式即为关闭功能模式,第二模式即为不处理模式。控制数据包中电刺激参数的电击模式为第一模式时的针灸模拟信号输出方式与与电刺激参数为空值时的输出方式相同,即令反馈模块中的电极不输出任何电刺激信号。In the embodiment of the present invention, the first mode is a closed function mode, and the second mode is a non-processing mode. When the electric shock mode of the electrical stimulation parameter in the control packet is the first mode, the acupuncture analog signal output mode is the same as the output mode when the electrical stimulation parameter is null, that is, the electrode in the feedback module does not output any electrical stimulation signal.
第一模式适用于需要中止输出电刺激信号的情况之下。假设依照控制数据包中的电刺激参数,需要控制反馈模块1从时刻t=0s起持续输出15秒且电击强度为10V的电刺激信号,而用户在t=3s时感觉不适,想要暂停接受电击刺激,则发出电击停止指令后,可穿戴装置中的控制模块生成另一控制数据包,且该控制数据包中所标识的电击模式为第一模式,用于控制反馈模块1从该控制数据包所对应的时刻起,停止输出原先已确定的10V电刺激信号。The first mode is suitable for situations where it is necessary to abort the output electrical stimulation signal. It is assumed that according to the electrical stimulation parameters in the control data packet, it is required to control the electrical stimulation signal that the feedback module 1 continuously outputs for 15 seconds from the time t=0s and the shock intensity is 10V, and the user feels uncomfortable at t=3s, and wants to suspend acceptance. After the electric shock stimulation, the control module in the wearable device generates another control data packet, and the electric shock mode identified in the control data packet is the first mode, and is used to control the feedback module 1 from the control data. At the time corresponding to the packet, the output of the previously determined 10V electrical stimulation signal is stopped.
当反馈模块接收到的控制数据包中电击模式为第二模式时,表示该反馈模块从当前时刻t起直至在接收到下一控制数据包之前,依然不改变时刻t之前所采用的电击间隔、电击时长和电击强度,即该电击间隔、电击时长和电击强度与时刻t-1起所采用的电刺激参数相同。When the electric shock mode of the control data packet received by the feedback module is the second mode, it indicates that the feedback module does not change the electric shock interval used before the time t from the current time t until the next control data packet is received. The duration of the electric shock and the electric shock intensity, that is, the electric shock interval, the electric shock duration, and the electric shock intensity are the same as those used at the time t-1.
第二模式适用于在持续输出电刺激信号的过程中,需要加入其它刺激方式的情况之下。若时刻t对应的控制数据包只用于控制反馈模块输出电刺激信号,而从时刻t+1起需要控制反馈模块输出震动信号,此时却又仍需输出与时刻t相同的电刺激信号,则在生成上述t+1时刻所对应的控制数据包时,只需写入具体的震动参数,并令电击模式为第二模式,而无需再写入电击间隔、电击时
长和电击强度,保持默认值。在t+1时刻,反馈模块读取对应的控制数据包后,只要从控制字节中读取到的电击模式为第二模式,则直接读取表示其他类型针灸模拟参数的控制字节,不再读取以及考虑电击间隔、电击时长和电击强度的具体值。可见,通过使用该第二模式,能够提高了控制数据包的生成效率以及提高反馈模块对针灸模拟参数的读取效率,降低延时。The second mode is suitable for use in the process of continuously outputting an electrical stimulation signal, where other stimulation methods need to be added. If the control data packet corresponding to the time t is only used to control the feedback module to output the electrical stimulation signal, and the control feedback module needs to output the vibration signal from the time t+1, the electrical stimulation signal of the same time as the time t still needs to be output. Then, when generating the control data packet corresponding to the time t+1, it is only necessary to write a specific vibration parameter and make the electric shock mode the second mode without writing the electric shock interval and the electric shock.
Length and shock intensity, keep the default value. At time t+1, after the feedback module reads the corresponding control data packet, as long as the shock mode read from the control byte is the second mode, the control byte indicating other types of acupuncture simulation parameters is directly read, Read and consider the specific values of the shock interval, shock duration and shock intensity. It can be seen that by using the second mode, the generation efficiency of the control data packet can be improved, and the reading efficiency of the feedback module for the acupuncture simulation parameter can be improved, and the delay can be reduced.
本发明实施例中,以控制数据包中的任意数量控制字节来存储从时刻t起所采用的电击模式。若用于存储从时刻t起所采用的电击模式的控制字节数量为N个,则用该N个控制字节可以表示出28N种不同的电击模式。例如,当控制字节的数量为两个时,可以表示出28*2=256种不同的电击模式,则除了上述第一模式以及第二模式之外,电击模式还包括第三模式、第四模式以及第五模式等254种其他模式。示例性地,若该两个控制字节的具体值为“0000000000000001”,则表示当前的电击模式为第一模式。In an embodiment of the invention, the number of control bytes in the control packet is used to store the shock mode employed from time t. If the control byte is used to store the number from time t onwards shock model employed is N, then with the N 2 8N control bytes can be expressed shock different modes. For example, when the number of control bytes is two, it can represent 2 8*2 = 256 different shock modes, and in addition to the first mode and the second mode, the shock mode further includes a third mode, 254 other modes such as the four mode and the fifth mode. Exemplarily, if the specific value of the two control bytes is "0000000000000001", it indicates that the current shock mode is the first mode.
图2示出了电击模式为其他模式时电刺激参数的波形图,其中,p为单次电刺激脉冲时长;u为电击强度;T1+T2为电刺激周期;T1为电刺激周期内的有效刺激时长;T2为电击间隔,电击间隔内的电击强度为零,即不输出电刺激信号;n*(T1+T2)为电击时长;在T1内,电刺激脉冲的出现频率为有效刺激频率。Figure 2 shows the waveform of the electrical stimulation parameters when the shock mode is other modes, where p is the duration of a single electrical stimulation pulse; u is the shock intensity; T1 + T2 is the electrical stimulation cycle; T1 is effective during the electrical stimulation cycle The duration of the stimulation; T2 is the interval of the shock, the shock intensity within the shock interval is zero, that is, the electrical stimulation signal is not output; n*(T1+T2) is the duration of the electric shock; in T1, the frequency of the electrical stimulation pulse is the effective stimulation frequency.
特别地,在对针刺入效果进行模拟时,若控制数据包中电刺激参数的有效刺激频率与电击时长的乘积为1,则只控制反馈模块中的电极在当前时刻内向人体位置输出单次电刺激信号。相对于用户而言,只能在该反馈模块所贴附的身体位置感觉到一次电击,如同在临床针灸中,被针刺入了用户的一个穴位。In particular, when simulating the needle penetration effect, if the product of the effective stimulation frequency of the electrical stimulation parameter in the control packet and the duration of the shock is 1, then only the electrode in the feedback module is controlled to output a single time to the human body position at the current time. Electrical stimulation signal. Relative to the user, only one electric shock can be felt in the body position attached to the feedback module, as in the clinical acupuncture, the needle is stuck into one of the user's acupuncture points.
假设图2中第一个电刺激脉冲产生的时刻为t,则根据图2中每个时间点所对应的各个电击强度以及有效刺激频率,控制所述反馈模块中的电极以该有效刺激频率向人体位置输出该电击强度的电刺激信号。Assuming that the time at which the first electrical stimulation pulse is generated in FIG. 2 is t, the electrodes in the feedback module are controlled to the effective stimulation frequency according to the respective shock intensity and the effective stimulation frequency corresponding to each time point in FIG. 2 . The body position outputs an electrical stimulation signal of the shock intensity.
本发明实施例提供的针灸模拟方法基于电击模式、电击时长、电击强度以及电击间隔等多种电刺激参数来实现,通过电击强度来模拟进针深度,通过电
击模式中的有效刺激频率来模拟捻针速度、捻针频率,并且在不同的时刻,根据电刺激参数的不同,能够使得各个反馈模块分别输出不同的电刺激信号,准确地控制每个反馈模块所需输出针灸模拟信号的电击时长,避免了整个针灸模拟过程只能输出常恒量的电刺激信号,因而极大程度地实现了对传统针灸手法的模拟。The acupuncture simulation method provided by the embodiment of the invention is implemented based on various electrical stimulation parameters such as electric shock mode, electric shock duration, electric shock intensity and electric shock interval, and the depth of the needle is simulated by the electric shock intensity, and the electric power is passed through the electric shock intensity.
The effective stimulation frequency in the mode is used to simulate the needle speed and the needle frequency, and at different times, according to different electrical stimulation parameters, each feedback module can output different electrical stimulation signals respectively, and accurately control each feedback module. The required electric shock duration of the output acupuncture analog signal avoids the fact that the entire acupuncture simulation process can only output constant constant electrical stimulation signals, thus greatly simulating the simulation of traditional acupuncture techniques.
作为本发明的一个实施例,上述若所述电击模式为所述第一模式和所述第二模式之外的其他模式,基于所述电击间隔、所述电击时长和所述电击强度,控制所述电极以预设的有效刺激频率向所述人体位置输出电刺激信号,具体地,由图2可知,在一个控制数据包所包含的电刺激参数中,在上述电击时长的各个电刺激周期的各个有效刺激时长之内,有效刺激频率都是固定的,但每个电刺激周期的有效刺激时长T1之内,有效刺激频率可能不是恒量。换句话说,在T1之内,尽管需要持续输出电刺激信号,但是有效刺激频率会随着时间的推移逐步发生改变。当有效刺激时长T1之内,有效刺激频率不是恒量时,可能连续出现的几个有效刺激频率及其分别对应的分时刺激时长共同形成该电击模式下的分时有效刺激频率组合,且各个所述分时刺激时长的总和为所述有效刺激时长;当有效刺激时长T1之内,有效刺激频率是恒量时,该电击模式则只包含一种有效刺激频率。多种电击模式之中,除了第一模式以及第二模式之外,每一种有效刺激频率或者有效刺激频率组合均对应一种其他模式。According to an embodiment of the present invention, if the electric shock mode is other modes than the first mode and the second mode, the control station is based on the electric shock interval, the electric shock duration, and the electric shock intensity. The electrode outputs an electrical stimulation signal to the human body position at a preset effective stimulation frequency. Specifically, as shown in FIG. 2, in the electrical stimulation parameter included in a control data packet, each electrical stimulation cycle of the above-mentioned electric shock duration is The effective stimulation frequency is fixed within each effective stimulation duration, but the effective stimulation frequency may not be constant within the effective stimulation duration T1 of each electrical stimulation cycle. In other words, within T1, although the electrical stimulation signal needs to be continuously output, the effective stimulation frequency gradually changes over time. When the effective stimulation frequency is not constant within the effective stimulation time T1, several effective stimulation frequencies that may occur continuously and the corresponding time-sharing stimulation durations together form a time-sharing effective stimulation frequency combination in the shock mode, and each The sum of the time-stimulation durations is the effective stimulation duration; when the effective stimulation frequency is constant within the effective stimulation duration T1, the shock mode includes only one effective stimulation frequency. Among the various shock modes, in addition to the first mode and the second mode, each effective stimulation frequency or effective stimulation frequency combination corresponds to one other mode.
本发明实施例适用于对运针效果进行模拟的情况之下。若在当前时刻从某个反馈模块所对应的控制数据包中获取到的电刺激参数包括第四模式(其他模式)、电击间隔、电击时长以及电击强度等参数值,且第四模式中包含有有效刺激时长和唯一的有效刺激频率,则令该反馈模块在当前的一段电击时长内,每隔所述电击间隔,在所述有效刺激时长内控制电极以该有效刺激频率向所述人体位置输出所述电击强度的电刺激信号。例如,若电击间隔为1秒,电击时长为9秒,电击强度为20V,第四模式对应的有效刺激频率为10KHz,有效刺激时长为2秒,那么,从当前时刻开始的9秒内,每隔1秒,则控制电极以10KHz
的频率向人体位置输出20V的电刺激信号,且该电刺激信号需要持续2秒。Embodiments of the present invention are applicable to the case where the effect of the needle is simulated. The electrical stimulation parameters obtained from the control data packet corresponding to a feedback module at the current time include parameter values of the fourth mode (other modes), the shock interval, the shock duration, and the shock intensity, and the fourth mode includes The effective stimulation duration and the only effective stimulation frequency are such that the feedback module outputs the control electrode to the human body position at the effective stimulation frequency during the current stimulation interval for the current period of the shock duration. The electrical stimulation signal of the shock intensity. For example, if the shock interval is 1 second, the shock duration is 9 seconds, the shock intensity is 20V, the fourth mode corresponds to an effective stimulation frequency of 10KHz, and the effective stimulation duration is 2 seconds. Then, within 9 seconds from the current time, each After 1 second, the control electrode is 10KHz
The frequency outputs a 20V electrical stimulation signal to the human body position, and the electrical stimulation signal needs to last for 2 seconds.
若上述例子的第四模式中并未包含有唯一的有效刺激频率,而包含有分时有效刺激频率组合,且该分时有效刺激频率组合中包含有两个有效刺激频率及两个有效刺激频率分别对应的分时刺激时长,则令该反馈模块在当前的一段电击时长内,每隔所述电击间隔,在所述有效刺激时长的第一个分时刺激时长内控制电极以第一个有效刺激频率向所述人体位置输出所述电击强度的电刺激信号,在第二个分时刺激时长内控制电极以第二个有效刺激频率向所述人体位置输出所述电击强度的电刺激信号。例如,若第一种有效刺激频率为10Khz,分时刺激时长为0.5s,第二种有效刺激频率为15Khz,分时刺激时长为0.7s,其他电刺激参数与上述例子相同,则从当前时刻开始,控制电极以10KHz的频率向人体位置输出20V的电刺激信号,且该电刺激信号需要持续0.5秒,然后,控制电极以15KHz的频率向人体位置输出20V的电刺激信号,且该电刺激信号需要持续0.7秒。此后每隔1秒,重复执行上述控制操作,直至从该当前时刻开始经过了9秒的时长。If the fourth mode of the above example does not include a unique effective stimulation frequency, and includes a time-sharing effective stimulation frequency combination, and the time-sharing effective stimulation frequency combination includes two effective stimulation frequencies and two effective stimulation frequencies. The corresponding time-sharing stimulation durations are such that the feedback module controls the electrodes to be effective for the first time interval of the effective stimulation duration within the current period of the shock duration. The stimulation frequency outputs an electrical stimulation signal of the shock intensity to the human body position, and the control electrode outputs the electrical stimulation signal of the shock intensity to the human body position at a second effective stimulation frequency during the second time-sharing stimulation duration. For example, if the first effective stimulation frequency is 10Khz, the time-sharing stimulation duration is 0.5s, the second effective stimulation frequency is 15Khz, and the time-sharing stimulation duration is 0.7s. Other electrical stimulation parameters are the same as the above examples, then the current time Initially, the control electrode outputs a 20V electrical stimulation signal to the human body position at a frequency of 10KHz, and the electrical stimulation signal needs to last for 0.5 seconds. Then, the control electrode outputs a 20V electrical stimulation signal to the human body position at a frequency of 15KHz, and the electrical stimulation is performed. The signal needs to last for 0.7 seconds. Thereafter, the control operation is repeatedly executed every 1 second until a period of 9 seconds elapses from the current time.
具体地,一个控制数据包的电刺激参数中,T1以及T2不超过1.5秒。有效刺激时长T1与电击间隔T2的具体值存储于控制数据包的一个字节当中。在该字节的四个高比特位存储有效刺激时长T1,在该字节的四个低比特位存储电击间隔T2,每个比特位对应的时长为0.1秒。例如,当该字节为“01001011”时,则表示有效刺激时长T1为0.4秒,电击间隔为1.1秒。若控制数据包中上述字节的四个低比特位均为零,则表示电击间隔为零,此时表示在整个电击时长内,需要持续输出电刺激信号。Specifically, among the electrical stimulation parameters of one control packet, T1 and T2 do not exceed 1.5 seconds. The specific value of the effective stimulation duration T1 and the shock interval T2 is stored in one byte of the control packet. The effective stimulation duration T1 is stored in the four high bits of the byte, and the shock interval T2 is stored in the four lower bits of the byte, each bit corresponding to a duration of 0.1 second. For example, when the byte is "01001011", it means that the effective stimulation time T1 is 0.4 seconds and the shock interval is 1.1 seconds. If the four low bits of the above byte in the control data packet are all zero, it means that the electric shock interval is zero, and it means that the electrical stimulation signal needs to be continuously output during the entire electric shock duration.
优选地,电刺激参数中的电击强度与电击模式相对应。一种电击模式所对应的电击强度可以是一个恒量值或一个分时电击强度组合。当电击模式所对应的电击强度为恒量值时,表示在该电击模式所对应的各个有效刺激时长内,无论有效刺激频率是否发生改变,均控制电极向所述人体位置输出该固定大小的电击强度的电刺激信号。若电击模式所对应的电击强度为分时电击强度组合时,
该分时电击强度组合可以包含两个及以上的电击强度及每个电击强度分别对应的分时电击时长。假设分时电击强度组合包含两个电击强度,则令该反馈模块在当前的一段电击时长内,每隔所述电击间隔,在所述有效刺激时长的第一个分时电击时长内控制电极向所述人体位置输出第一电击强度的电刺激信号,在第二个分时电击时长内控制电极向所述人体位置输出第二电击强度的电刺激信号。其中,各个分时电击时长的总和与电击模式中各个分时刺激时长的总和相同。Preferably, the shock intensity in the electrical stimulation parameter corresponds to the shock mode. The shock intensity corresponding to a shock mode can be a constant value or a time-sharing shock combination. When the electric shock intensity corresponding to the electric shock mode is a constant value, it indicates that the control electrode outputs the fixed-size electric shock to the human body position regardless of whether the effective stimulation frequency changes within each effective stimulation time period corresponding to the electric shock mode. Intensity of electrical stimulation signals. If the shock intensity corresponding to the shock mode is a time-sharing shock combination,
The time-sharing electric shock intensity combination may include two or more electric shock strengths and a time-sharing electric shock duration corresponding to each electric shock intensity. Assuming that the time-sharing electric shock intensity combination comprises two electric shock intensities, the feedback module is configured to control the electrode to the first time-sharing electric shock duration of the effective stimulation duration during the current electric shock duration. The human body position outputs an electrical stimulation signal of the first electric shock intensity, and the control electrode outputs an electrical stimulation signal of the second electric shock intensity to the human body position during the second time-sharing electric shock duration. The sum of the durations of the respective time-sharing shocks is the same as the sum of the durations of the respective time-sharing stimuli in the shock mode.
优选地,在本发明实施例中,还提出了一种控制数据包的帧格式,该帧格式的构成包括作为帧头的起始控制帧以及体感数据帧。Preferably, in the embodiment of the present invention, a frame format of a control data packet is also proposed, and the frame format includes a start control frame as a frame header and a somatosensory data frame.
(一)起始控制帧中携带了若干字节的控制数据:(1) The control data carrying several bytes in the initial control frame:
示例性地,如表1所示,该起始控制帧中包括了4个字节的控制数据,分别为控制帧字节1、控制帧字节2、控制帧字节3及控制帧字节4,每个控制帧字节可以根据体感模拟信号输出的需要写入相应的数据内容,例如,可以用控制帧字节来表明控制数据包所对应的身体点位,或者表明该控制数据包是否需要被控制模块所屏蔽,即在当前时刻该控制数据包对应的身体点位不输出体感模拟信号。Exemplarily, as shown in Table 1, the start control frame includes 4 bytes of control data, which are control frame byte 1, control frame byte 2, control frame byte 3, and control frame byte. 4. Each control frame byte can be written into the corresponding data content according to the needs of the somatosensory analog signal output. For example, the control frame byte can be used to indicate the body point corresponding to the control data packet, or whether the control data packet is It needs to be shielded by the control module, that is, the body point corresponding to the control data packet does not output the somatosensory analog signal at the current time.
表1Table 1
(二)体感数据帧中携带了顺序写入的上述三种体感传感器对应的体感控制数据:(2) The somatosensory data frame carries the somatosensory control data corresponding to the above three types of somatosensory sensors sequentially written:
在体感数据帧中,每种体感传感器对应的体感控制数据可以用于表明该体感传感器相关的体感控制模式,或者用于描述该体感传感器相关的体感功能实现。示例性地,如表2所示,每种体感传感器对应4个字节的体感控制数据,分别为体感控制模式字节1、体感功能字节1、体感功能字节2及体感功能字节3。In the somatosensory data frame, the somatosensory control data corresponding to each of the somatosensory sensors may be used to indicate the somatosensory sensor related somatosensory control mode, or to describe the somatosensory sensor related somatosensory function implementation. Illustratively, as shown in Table 2, each of the somatosensory sensors corresponds to 4 bytes of somatosensory control data, which are respectively a somatosensory control mode byte 1, a somatosensory function byte 1, a somatosensory function byte 2, and a somatosensory function byte 3 .
表2
Table 2
表3示出了一个完整的控制数据包的帧结构示例,从表3中可以看出,该体感控制数据包的帧头为4字节的起始控制帧,体感数据帧中顺序写入了上述三种体感传感器的体感控制数据,且每种体感传感器的体感控制数据为4个字节。Table 3 shows an example of the frame structure of a complete control packet. As can be seen from Table 3, the frame header of the somatosensory control packet is a 4-byte initial control frame, and the somatosensory data frame is sequentially written. The somatosensory control data of the above three types of body sensor, and the somatosensory control data of each of the body sensor is 4 bytes.
表3table 3
示例性地,表4示出了上述三种体感传感器所对应的体感控制数据帧的帧结构:Illustratively, Table 4 shows the frame structure of the somatosensory control data frame corresponding to the above three types of body sensor:
表4Table 4
电击模式Electric shock mode
|
电击间隔Shock interval
|
电击时长Electric shock duration
|
电击强度Electric shock intensity
|
温控模式Temperature control mode
|
温控强度Temperature control intensity
|
温控时间Temperature control time
|
保留字节Reserved byte
|
震动模式Vibration mode
|
震动强度Vibration intensity
|
震动频率Vibration frequency
|
震动时间Vibration time
|
在体感模拟信号的输出过程中,若采用上文所述的帧格式生成控制数据包,一方面可以将三处体感传感器的体感控制数据整合为统一的数据格式,有效地消除体感传感器因来自不同的供应商而导致的碎片化现象,另一方面,将多种不同类型的体感传感器的体感控制数据写入一个数据包中进行传输,也可以在一定程度上降低数据传输过程中丢包现象的出现,提高了数据通信的可靠性。In the output process of the somatosensory analog signal, if the control packet is generated by using the frame format described above, the somatosensory control data of the three somatosensory sensors can be integrated into a unified data format, thereby effectively eliminating the difference in the somatosensory sensor. Fragmentation caused by the supplier, on the other hand, the somatosensory control data of many different types of somatosensory sensors are written into a data packet for transmission, and the packet loss phenomenon during data transmission can be reduced to some extent. Appeared to improve the reliability of data communication.
在本发明实施例中,将多个控制数据包依照各自对应的时序排序之后,便可以构成控制文件,一个控制文件用于控制一个反馈模块对体感模拟信号进行输出,因此,在体感模拟信号的输出行为被触发之后,如图3所示,可以通过以下方式获取到每个时刻的控制数据包:In the embodiment of the present invention, after the plurality of control data packets are sorted according to the respective timings, the control file may be configured, and one control file is used to control a feedback module to output the somatosensory analog signal, and therefore, the somatosensory analog signal is After the output behavior is triggered, as shown in Figure 3, the control packet for each moment can be obtained by:
S301,获取与所述测量结果匹配的控制文件,所述控制文件由多个控制数据包依时序排列得到,每个控制数据包分别用于控制从一个时刻起的体感模拟信号输出。
S301. Acquire a control file that matches the measurement result. The control file is sequentially arranged by using a plurality of control data packets, and each control data packet is used to control a somatosensory analog signal output from a moment.
S302,从所述控制文件中读取当前时刻的控制数据包。S302. Read a control packet of a current time from the control file.
在本发明实施例中,对需要输出体感模拟信号的反馈模块,根据对肌电信号的测量结果,加载与该测量结果相匹配的控制文件,该控制文件由多个控制数据包排列得到,控制数据包的排列以时间为顺序,每个控制数据包控制一个时刻的体感模拟信号的输出。因此,在对体感模拟信号进行输出时,依序从控制文件中读取出当前时刻的控制数据包,用于控制当前时刻该反馈模块的体感模拟信号输出。In the embodiment of the present invention, the feedback module that needs to output the somatosensory analog signal loads a control file matching the measurement result according to the measurement result of the myoelectric signal, and the control file is arranged by a plurality of control data packets, and is controlled. The arrangement of the data packets is in time order, and each control data packet controls the output of the somatosensory analog signal at one time. Therefore, when the somatosensory analog signal is output, the current time control data packet is sequentially read from the control file, and is used to control the somatosensory analog signal output of the feedback module at the current time.
在S104中,基于所述体感模拟参数,控制可穿戴装置中的反馈模块通过以下任一种方式向预设的人体位置输出体感模拟信号:In S104, based on the somatosensory simulation parameter, the feedback module in the wearable device is controlled to output the somatosensory analog signal to the preset human body position by any of the following methods:
第一方式包括:根据穴位电刺激参数控制所述电极向所述人体位置输出电刺激信号,根据加热参数对贴附在所述人体位置的加热片进行温度控制,以及根据震动参数对贴附在所述人体位置的震动模块进行震动控制;The first mode includes: controlling the electrode to output an electrical stimulation signal to the human body position according to the acupoint electrical stimulation parameter, performing temperature control on the heating piece attached to the human body position according to the heating parameter, and attaching according to the vibration parameter pair The vibration module of the human body position performs vibration control;
第二方式包括:根据肌肉电刺激参数控制所述电极向所述人体位置输出电刺激信号。The second mode includes controlling the electrode to output an electrical stimulation signal to the human body position based on the muscle electrical stimulation parameter.
在采集到的肌肉电信号的变化幅度小于该预设幅度的情况下,与该测量结果匹配的控制数据包,其对应的体感模拟信号的输出方案同时包括了穴位刺激和肌肉刺激这两种体感模拟信号输出方式,第一种输出方式通过电刺激、加热及震动的方式全方位地模拟针灸过程,而第二种输出方式通过电刺激来刺激用户的肌肉群,以达到按摩放松的效果。由于对于人体来说,在某些位置,穴位和肌肉块的位置在空间上有重叠,因此可以控制反馈模块分时地实现穴位刺激功能和肌肉刺激功能,即,在体感模拟信号输出的任一时刻,以上两种输出方式只可选择其中一种进行。在本发明实施例中,虽然同样是输出电刺激信号,但穴位电刺激参数与肌肉电刺激参数在参数要求上有不同,例如,穴位电刺激参数的电击强度要低于肌肉电刺激参数的电击强度,而穴位电刺激参数的电击频率也低于肌肉电刺激参数的电击频率,等等。In the case that the magnitude of the change of the collected muscle electrical signal is less than the preset amplitude, the control packet matching the measurement result, the corresponding output scheme of the somatosensory analog signal includes both the acupoint stimulation and the muscle stimulation. The analog signal output mode, the first output mode simulates the acupuncture process in an all-round way through electrical stimulation, heating and vibration, while the second output mode stimulates the user's muscle group through electrical stimulation to achieve a relaxing massage effect. Since for the human body, in some positions, the positions of the acupuncture points and the muscle blocks overlap in space, the feedback module can be controlled to implement the acupoint stimulation function and the muscle stimulation function in a time-sharing manner, that is, in any of the somatosensory analog signal outputs. At the moment, only one of the above two output methods can be selected. In the embodiment of the present invention, although the electrical stimulation signal is also output, the acupoint electrical stimulation parameter and the muscle electrical stimulation parameter have different parameter requirements. For example, the electric shock intensity of the acupoint electrical stimulation parameter is lower than the electric shock of the muscle electrical stimulation parameter. The intensity, and the electric shock frequency of the acupoint electrical stimulation parameter is also lower than the electric shock frequency of the muscle electrical stimulation parameter, and the like.
优选地,可以控制可穿戴装置中的反馈模块以上述第一方式和上述第二方
式交替的形式,向预设的人体位置输出体感模拟信号,从而实现穴位与肌肉的交替刺激,以实现更佳的体感刺激效果。此外,还可以在实现穴位刺激之后,再向用户身体施加以肌肉刺激,从而放松身体的肌肉群,从而在穴位刺激的基础之上,达到更好的放松效果。Preferably, the feedback module in the wearable device can be controlled in the first manner and the second party described above
The alternating form outputs a somatosensory analog signal to a preset human body position, thereby achieving alternating stimulation of acupoints and muscles to achieve a better somatosensory stimulation effect. In addition, after acupoint stimulation is achieved, muscle stimulation is applied to the user's body to relax the muscle group of the body, thereby achieving a better relaxation effect on the basis of acupoint stimulation.
此外,需要说明的是,若在当前时刻,控制数据包内某一类的体感模拟信号对应的参数为空,则代表该时刻反馈模块不需要对此类体感模拟信号进行输出。另外,由于如上文所述,至少需要有两个电极与用户身体之间形成电击回路,才能产生有效的穴位刺激效果,因此,在第一种方式中,若当前时刻控制数据包内的电刺激参数不为空,那么控制文件所传达的控制信息,需要保证可穿戴装置中的至少两个电极分别向所述人体位置输出电刺激信号。In addition, it should be noted that, if the parameter corresponding to a certain type of somatosensory analog signal in the control data packet is empty at the current time, the feedback module does not need to output such a somatosensory analog signal. In addition, since as described above, at least two electrodes are required to form an electric shock circuit with the user's body, an effective acupoint stimulation effect can be generated. Therefore, in the first mode, if the current time is to control the electrical stimulation in the data packet. If the parameter is not empty, then the control information conveyed by the control file needs to ensure that at least two electrodes in the wearable device respectively output electrical stimulation signals to the human body position.
本发明实施例基于对人体进行体感模拟信号的控制输出,能够通过一套可穿戴针灸产品来兼顾实现穴位刺激和肌肉刺激,提升了可穿戴针灸产品的刺激方式多样性,此外,本发明实施例还基于肌肉电信号的检测结果来明确是否对人体加以肌肉刺激,由此保证了体感模拟信号输出后对人体实施刺激的有效性和准确性。The embodiment of the present invention is based on the control output of the somatosensory analog signal of the human body, and can achieve acupuncture stimulation and muscle stimulation through a set of wearable acupuncture products, thereby improving the stimulating manner diversity of the wearable acupuncture product, and further, the embodiment of the present invention It is also based on the detection result of the muscle electrical signal to determine whether the muscle stimulation is applied to the human body, thereby ensuring the effectiveness and accuracy of the stimulation of the human body after the output of the somatosensory analog signal.
接下来基于一个实际的应用场景,对上文所述的体感模拟信号的输出方法进行进一步说明:Next, based on an actual application scenario, the output method of the somatosensory analog signal described above is further described:
假设用户感觉到肩部肌肉紧绷、疼痛、不适,则提示用户令肩部肌肉用力,以采集用户肩部肌肉群的主动用力时的肌肉电信号。若肩部肌肉群的某个位置确实紧绷不适则会在该位置测量到一个变化幅度小于正常肌肉电信号变化幅度的肌肉电信号,此时,先对该位置进行短暂的肌肉电刺激,此后进入穴位刺激,在针灸过程中的第1秒,输出单次电刺激信号以模拟针刺入;第2秒,加热片快速加热到60摄氏度,以让人体皮肤感觉到温热;第3秒及第4秒,以低电击强度和低电击频率持续输出电刺激信号,以模拟运针,与此同时,将加热片的温度降低到45摄氏度,并令震动模块在第3秒及第4秒时持续震动;第5秒,加热片停止加温、震动模块停止震动,电刺激信号持续输出……经过20分钟至
30分钟,穴位刺激结束,最后再对该位置施加肌肉刺激,以放松肌肉群。Assuming that the user feels tightness, pain, or discomfort in the shoulder muscles, the user is prompted to force the shoulder muscles to collect the muscle electrical signals when the user's shoulder muscles are actively exerting force. If a certain position of the shoulder muscle group is indeed tight and discomfort, a muscle electrical signal whose amplitude of change is smaller than the amplitude of the normal muscle electrical signal is measured at this position. At this time, the muscle electrical stimulation is temporarily performed on the position, and thereafter Into the acupoint stimulation, in the first second of the acupuncture process, a single electrical stimulation signal is output to simulate needle penetration; in the second second, the heating piece is rapidly heated to 60 degrees Celsius to make the skin feel warm; the third second and In the 4th second, the electrical stimulation signal is continuously output with low shock intensity and low shock frequency to simulate the needle, and at the same time, the temperature of the heater is lowered to 45 degrees Celsius, and the vibration module is at the 3rd and 4th seconds. Continuous vibration; in the 5th second, the heating piece stops heating, the vibration module stops shaking, and the electrical stimulation signal continues to output... After 20 minutes to
After 30 minutes, the acupoint stimulation is over, and finally muscle stimulation is applied to the position to relax the muscle group.
应理解,上述实施例中各步骤的序号的大小并不意味着执行顺序的先后,各过程的执行顺序应以其功能和内在逻辑确定,而不应对本发明实施例的实施过程构成任何限定。It should be understood that the size of the sequence of the steps in the above embodiments does not imply a sequence of executions, and the order of execution of the processes should be determined by its function and internal logic, and should not be construed as limiting the implementation of the embodiments of the present invention.
对应于上文实施例所述的体感模拟信号的输出方法,图4示出了本发明实施例提供的体感模拟信号的输出装置的结构框图,为了便于说明,仅示出了与本实施例相关的部分。Corresponding to the output method of the somatosensory analog signal described in the above embodiments, FIG. 4 is a structural block diagram of the output device of the somatosensory analog signal provided by the embodiment of the present invention. For convenience of description, only the embodiment is shown. part.
参照图4,该装置包括:Referring to Figure 4, the apparatus includes:
测量单元41,利用可穿戴装置上的电极测量预设的人体位置的肌肉电信号,得到测量结果。The measuring unit 41 measures the muscle electrical signals of the preset human body position using the electrodes on the wearable device to obtain the measurement result.
获取单元42,若所述测量结果为所述肌肉电信号的变化幅度小于预设幅度,则获取与所述测量结果匹配的控制数据包,所述控制数据包用于控制体感模拟信号输出。The obtaining unit 42 obtains a control data packet that matches the measurement result if the measurement result is that the amplitude of the change of the muscle electrical signal is less than a preset amplitude, and the control data packet is used to control the somatosensory analog signal output.
解析单元43,解析所述控制数据包,从中获取体感模拟参数。The analyzing unit 43 analyzes the control packet and acquires a somatosensory simulation parameter therefrom.
控制单元44,基于所述体感模拟参数,控制可穿戴装置中的反馈模块通过以下任一种方式向预设的人体位置输出体感模拟信号:The control unit 44 controls the feedback module in the wearable device to output the somatosensory analog signal to the preset human body position by any one of the following methods based on the somatosensory simulation parameter:
第一方式包括:根据穴位电刺激参数控制所述电极向所述人体位置输出电刺激信号,根据加热参数对贴附在所述人体位置的加热片进行温度控制,以及根据震动参数对贴附在所述人体位置的震动模块进行震动控制;The first mode includes: controlling the electrode to output an electrical stimulation signal to the human body position according to the acupoint electrical stimulation parameter, performing temperature control on the heating piece attached to the human body position according to the heating parameter, and attaching according to the vibration parameter pair The vibration module of the human body position performs vibration control;
第二方式包括:根据肌肉电刺激参数控制所述电极向所述人体位置输出电刺激信号。The second mode includes controlling the electrode to output an electrical stimulation signal to the human body position based on the muscle electrical stimulation parameter.
可选地,所述控制单元44具体用于:Optionally, the control unit 44 is specifically configured to:
基于所述体感模拟参数,控制可穿戴装置中的反馈模块以所述第一方式和所述第二方式交替的形式,向预设的人体位置输出体感模拟信号。And based on the somatosensory simulation parameter, the feedback module in the control wearable device outputs the somatosensory analog signal to the preset human body position in an alternating manner in the first manner and the second manner.
可选地,所述获取单元42包括:Optionally, the obtaining unit 42 includes:
加载子单元,获取与所述测量结果匹配的控制文件,所述控制文件由多个
控制数据包依时序排列得到,每个控制数据包分别用于控制从一个时刻起的体感模拟信号输出。Loading a subunit, acquiring a control file matching the measurement result, where the control file is composed of multiple
The control data packets are arranged in time series, and each control data packet is used to control the somatosensory analog signal output from one moment.
读取子单元,从所述控制文件中读取当前时刻对应的控制数据包。The subunit is read, and the control packet corresponding to the current time is read from the control file.
可选地,在所述第一方式中,所述控制单元44具体用于:Optionally, in the first mode, the control unit 44 is specifically configured to:
若所述当前时刻的所述穴位电刺激参数不为空,控制可穿戴装置中的至少两个电极分别向所述人体位置输出电刺激信号。If the acupoint electrical stimulation parameter of the current moment is not empty, at least two electrodes in the wearable device are controlled to output an electrical stimulation signal to the human body position, respectively.
可选地,所述控制单元34具体用于:Optionally, the control unit 34 is specifically configured to:
控制电极向人体位置输出单次电刺激信号。The control electrode outputs a single electrical stimulation signal to the human body position.
所属领域的技术人员可以清楚地了解到,为了描述的方便和简洁,仅以上述各功能单元、模块的划分进行举例说明,实际应用中,可以根据需要而将上述功能分配由不同的功能单元、模块完成,即将所述装置的内部结构划分成不同的功能单元或模块,以完成以上描述的全部或者部分功能。实施例中的各功能单元、模块可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中,上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。另外,各功能单元、模块的具体名称也只是为了便于相互区分,并不用于限制本申请的保护范围。上述系统中单元、模块的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。It will be apparent to those skilled in the art that, for convenience and brevity of description, only the division of each functional unit and module described above is exemplified. In practical applications, the above functions may be assigned to different functional units as needed. The module is completed by dividing the internal structure of the device into different functional units or modules to perform all or part of the functions described above. Each functional unit and module in the embodiment may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit, and the integrated unit may be hardware. Formal implementation can also be implemented in the form of software functional units. In addition, the specific names of the respective functional units and modules are only for the purpose of facilitating mutual differentiation, and are not intended to limit the scope of protection of the present application. For the specific working process of the unit and the module in the foregoing system, reference may be made to the corresponding process in the foregoing method embodiment, and details are not described herein again.
本领域普通技术人员可以意识到,结合本文中所公开的实施例描述的各示例的单元及算法步骤,能够以电子硬件、或者计算机软件和电子硬件的结合来实现。这些功能究竟以硬件还是软件方式来执行,取决于技术方案的特定应用和设计约束条件。专业技术人员可以对每个特定的应用来使用不同方法来实现所描述的功能,但是这种实现不应认为超出本发明的范围。Those of ordinary skill in the art will appreciate that the elements and algorithm steps of the various examples described in connection 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 solution. A person skilled in the art can use different methods for implementing the described functions for each particular application, but such implementation should not be considered to be beyond the scope of the present invention.
在本发明所提供的实施例中,应该理解到,所揭露的装置和方法,可以通过其它的方式实现。例如,以上所描述的系统实施例仅仅是示意性的,例如,所述模块或单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的
划分方式,例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通讯连接可以是通过一些接口,装置或单元的间接耦合或通讯连接,可以是电性,机械或其它的形式。In the embodiments provided by the present invention, it should be understood that the disclosed apparatus and method may be implemented in other manners. For example, the system embodiments described above are merely illustrative. For example, the division of the modules or units is only a logical function division, and may actually have another
The manner of division, for example, multiple units or components may be combined or integrated into another system, or some features may be omitted or not performed. In addition, the mutual coupling or direct coupling or communication connection shown or discussed may be an indirect coupling or communication connection through some interface, device or unit, and may be in electrical, mechanical or other form.
所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。The units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, may be located in one place, or may be distributed to multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of the embodiment.
另外,在本发明各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above integrated unit can be implemented in the form of hardware or in the form of a software functional unit.
所述集成的单元如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本发明实施例的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的全部或部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)或处理器(processor)执行本发明实施例各个实施例所述方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、只读存储器(ROM,Read-Only Memory)、随机存取存储器(RAM,Random Access Memory)、磁碟或者光盘等各种可以存储程序代码的介质。The integrated unit, if implemented in the form of a software functional unit and sold or used as a standalone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the embodiments of the present invention may contribute to the prior art or all or part of the technical solution may be embodied in the form of a software product stored in a storage. The medium includes a plurality of instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) or a processor to perform all or part of the steps of the methods described in various embodiments of the embodiments of the present invention. The foregoing storage medium includes: a U disk, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk, or an optical disk, and the like. .
以上所述实施例仅用以说明本发明的技术方案,而非对其限制;尽管参照前述实施例对本发明进行了详细的说明,本领域的普通技术人员应当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分技术特征进行等同替换;而这些修改或者替换,并不使相应技术方案的本质脱离本发明各实施例技术方案的精神和范围,均应包含在本发明的保护范围之内。
The embodiments described above are only for explaining the technical solutions of the present invention, and are not intended to be limiting; although the present invention has been described in detail with reference to the foregoing embodiments, those of ordinary skill in the art will understand that The technical solutions described in the examples are modified, or some of the technical features are equivalently replaced; and the modifications or substitutions do not deviate from the spirit and scope of the technical solutions of the embodiments of the present invention, and should be included in Within the scope of protection of the present invention.