CN114367037A - Pulse output control method and device, therapeutic instrument and storage medium - Google Patents

Pulse output control method and device, therapeutic instrument and storage medium Download PDF

Info

Publication number
CN114367037A
CN114367037A CN202111592852.0A CN202111592852A CN114367037A CN 114367037 A CN114367037 A CN 114367037A CN 202111592852 A CN202111592852 A CN 202111592852A CN 114367037 A CN114367037 A CN 114367037A
Authority
CN
China
Prior art keywords
pulse
target
output
type
event
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.)
Pending
Application number
CN202111592852.0A
Other languages
Chinese (zh)
Inventor
王邵东
高祥安
詹俊南
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Leqing Health Care Instrument Co ltd
Original Assignee
Shenzhen Leqing Health Care Instrument Co ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Shenzhen Leqing Health Care Instrument Co ltd filed Critical Shenzhen Leqing Health Care Instrument Co ltd
Priority to CN202111592852.0A priority Critical patent/CN114367037A/en
Publication of CN114367037A publication Critical patent/CN114367037A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • AHUMAN NECESSITIES
    • A61MEDICAL OR VETERINARY SCIENCE; HYGIENE
    • A61NELECTROTHERAPY; MAGNETOTHERAPY; RADIATION THERAPY; ULTRASOUND THERAPY
    • A61N1/00Electrotherapy; Circuits therefor
    • A61N1/18Applying electric currents by contact electrodes
    • A61N1/32Applying electric currents by contact electrodes alternating or intermittent currents
    • A61N1/36Applying electric currents by contact electrodes alternating or intermittent currents for stimulation
    • A61N1/36014External stimulators, e.g. with patch electrodes
    • AHUMAN NECESSITIES
    • A61MEDICAL OR VETERINARY SCIENCE; HYGIENE
    • A61NELECTROTHERAPY; MAGNETOTHERAPY; RADIATION THERAPY; ULTRASOUND THERAPY
    • A61N1/00Electrotherapy; Circuits therefor
    • A61N1/18Applying electric currents by contact electrodes
    • A61N1/32Applying electric currents by contact electrodes alternating or intermittent currents
    • A61N1/36Applying electric currents by contact electrodes alternating or intermittent currents for stimulation
    • A61N1/36014External stimulators, e.g. with patch electrodes
    • A61N1/36021External stimulators, e.g. with patch electrodes for treatment of pain
    • AHUMAN NECESSITIES
    • A61MEDICAL OR VETERINARY SCIENCE; HYGIENE
    • A61NELECTROTHERAPY; MAGNETOTHERAPY; RADIATION THERAPY; ULTRASOUND THERAPY
    • A61N1/00Electrotherapy; Circuits therefor
    • A61N1/18Applying electric currents by contact electrodes
    • A61N1/32Applying electric currents by contact electrodes alternating or intermittent currents
    • A61N1/36Applying electric currents by contact electrodes alternating or intermittent currents for stimulation
    • A61N1/36014External stimulators, e.g. with patch electrodes
    • A61N1/3603Control systems
    • AHUMAN NECESSITIES
    • A61MEDICAL OR VETERINARY SCIENCE; HYGIENE
    • A61NELECTROTHERAPY; MAGNETOTHERAPY; RADIATION THERAPY; ULTRASOUND THERAPY
    • A61N1/00Electrotherapy; Circuits therefor
    • A61N1/18Applying electric currents by contact electrodes
    • A61N1/32Applying electric currents by contact electrodes alternating or intermittent currents
    • A61N1/36Applying electric currents by contact electrodes alternating or intermittent currents for stimulation
    • A61N1/36014External stimulators, e.g. with patch electrodes
    • A61N1/3603Control systems
    • A61N1/36034Control systems specified by the stimulation parameters
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2218/00Aspects of pattern recognition specially adapted for signal processing

Landscapes

  • Health & Medical Sciences (AREA)
  • Life Sciences & Earth Sciences (AREA)
  • Biophysics (AREA)
  • Heart & Thoracic Surgery (AREA)
  • Engineering & Computer Science (AREA)
  • Biomedical Technology (AREA)
  • Nuclear Medicine, Radiotherapy & Molecular Imaging (AREA)
  • Radiology & Medical Imaging (AREA)
  • Animal Behavior & Ethology (AREA)
  • General Health & Medical Sciences (AREA)
  • Public Health (AREA)
  • Veterinary Medicine (AREA)
  • Pain & Pain Management (AREA)
  • Electrotherapy Devices (AREA)

Abstract

The application is suitable for the technical field of therapeutic instruments, and provides a pulse output control method, a pulse output control device, a therapeutic instrument and a storage medium, wherein the pulse output control method comprises the following steps: acquiring a target prescription type and a target gear selected by a user, wherein the target gear refers to a pulse voltage intensity gear; determining N pulse types corresponding to the target prescription type and output frequency corresponding to each pulse type according to the target prescription type; determining pulse signals corresponding to the N pulse types respectively according to the target gear and the output frequency corresponding to each pulse type; and acquiring the output sequence of the N pulse types corresponding to the target prescription type, and outputting the pulse signals corresponding to the N pulse types respectively according to the output sequence. The scheme can generate better treatment effect on human body through the switching treatment of a plurality of pulse signals with different frequencies.

Description

Pulse output control method and device, therapeutic instrument and storage medium
Technical Field
The application belongs to the technical field of therapeutic instruments, and particularly relates to a pulse output control method and device, a therapeutic instrument and a storage medium.
Background
With the development of modern science and technology, the combination of meridians and collaterals and modern high technology, more and more therapeutic apparatuses are used for physical therapy rehabilitation of sub-health people and for treating symptoms such as headache, scalp numbness, waist soreness, back soreness and back pain caused by physical strength and mental strength. The most common treatment method is electrotherapy, which is to connect pulse electric signals with certain voltage and frequency with human body through electrodes, and when the electric stimulation is applied, the muscle, nerve, body fluid and blood of the human body can generate physicochemical reaction to a certain extent, thereby improving pain and regulating nerve function. Therefore, the therapeutic apparatus can be used for treating symptoms caused by physical strength and mental strength, such as headache, scalp numbness, waist soreness, back pain, etc.
Disclosure of Invention
The embodiment of the application provides a pulse output control method and device, a therapeutic apparatus and a storage medium, and the therapeutic apparatus can generate a better therapeutic effect. .
A first aspect of an embodiment of the present application provides a pulse output control method, including:
acquiring a target prescription type and a target gear selected by a user, wherein the target gear refers to a pulse voltage intensity gear;
determining N pulse types corresponding to the target prescription type and output frequency corresponding to each pulse type according to the target prescription type;
determining pulse signals corresponding to the N pulse types respectively according to the target gear and the output frequency corresponding to each pulse type;
and acquiring the output sequence of the N pulse types corresponding to the target prescription type, and outputting the pulse signals corresponding to the N pulse types respectively according to the output sequence.
Optionally, the outputting the pulse signals respectively corresponding to the N pulse types according to the output sequence includes:
outputting a first pulse signal corresponding to a first pulse type in the N pulse types, and detecting whether the first pulse signal is completely output within a first preset time, wherein the first pulse type refers to a pulse type with a first order of output sequence;
and if the first pulse signal is completely output, taking the next bit of the first bit as the first bit of the output sequence, returning to execute the output of the first pulse signal corresponding to the first pulse type in the N pulse types, and detecting whether the first pulse signal is completely output within a first preset time until the pulse signals corresponding to the N pulse types are completely output.
Optionally, the determining, according to the target gear and the output frequency corresponding to each pulse type, pulse signals corresponding to the N pulse types respectively includes:
acquiring a modulation frequency coefficient corresponding to each pulse type according to the output frequency corresponding to each pulse type, wherein the modulation frequency coefficient is used for indicating the output times of a fundamental wave signal in a second preset time, and the fundamental wave signal is a fundamental signal forming the pulse signal;
and determining pulse signals corresponding to the N pulse types respectively according to the target gear and the modulation frequency coefficient corresponding to each pulse type.
Optionally, the obtaining, according to the output frequency corresponding to each pulse type, a modulation frequency coefficient corresponding to each pulse type includes:
when the frequency range to which the output frequency corresponding to the pulse type belongs is low frequency, acquiring a first modulation frequency coefficient corresponding to the pulse type, wherein the first modulation frequency coefficient is used for indicating that the output frequency of the fundamental wave signal is one time within the second preset time;
and when the frequency range to which the output frequency corresponding to the pulse type belongs is the intermediate frequency, acquiring a second modulation frequency coefficient corresponding to the pulse type, wherein the second modulation frequency coefficient is used for indicating that the output frequency of the fundamental wave signal in the second preset time is M times, and M is an integer greater than 1.
Optionally, the obtaining of the target prescription type and the target gear selected by the user includes:
when the polling time of the key detection event is reached, acquiring the target prescription type and the target gear selected by the user based on the key detection event.
Optionally, the obtaining the target prescription type and the target gear selected by the user based on the key detection event when the polling time of the key detection event is reached includes:
detecting whether the key detection event occurs or not when the polling time of the key detection event is reached;
and when the key detection event occurs, executing a key detection function corresponding to the key detection event to acquire the target prescription type and the target gear selected by the user.
Optionally, before the polling time of the key detection event is reached, the method further includes:
acquiring function execution time corresponding to a target event, wherein the target event at least comprises the key detection event;
dividing the target events with the same function execution time into the same target event group;
creating a time slice for each target event group, and determining polling time corresponding to the target event group according to the time interval of the time slice corresponding to the target event group, wherein the function execution time corresponding to each target event in the target event group is less than or equal to the time interval of the corresponding time slice;
and acquiring the polling time of the key detection event according to the polling time corresponding to the target event group.
A second aspect of the embodiments of the present application provides a pulse output control apparatus including:
the system comprises an acquisition module, a judgment module and a control module, wherein the acquisition module is used for acquiring a target prescription type and a target gear selected by a user, and the target gear refers to a pulse voltage intensity gear;
the type determining module is used for determining N pulse types corresponding to the target prescription type and output frequency corresponding to each pulse type according to the target prescription type;
the signal determining module is used for determining pulse signals corresponding to the N pulse types according to the target gear and the output frequency corresponding to each pulse type;
and the pulse output module is used for acquiring the output sequence of the N pulse types corresponding to the target prescription type and outputting the pulse signals corresponding to the N pulse types respectively according to the output sequence.
A third aspect of an embodiment of the present application provides an apparatus comprising: a memory, a processor and a computer program stored in the memory and executable on the processor, the processor implementing the pulse output control method of the first aspect when executing the computer program.
A fourth aspect of embodiments of the present application provides a computer-readable storage medium storing a computer program, which when executed by a processor implements the pulse output control method according to the first aspect.
A fifth aspect of embodiments of the present application provides a computer program product, which, when run on a terminal device, causes the terminal device to execute the pulse output control method according to the first aspect.
Compared with the prior art, the embodiment of the application has the advantages that: according to the method, the N pulse types corresponding to the target prescription type and the output frequency corresponding to each pulse type are determined by obtaining the target prescription type and the target gear selected by the user, the pulse signals corresponding to the N pulse types are determined according to the target gear and the output frequency corresponding to each pulse type, and finally the pulse signals corresponding to the N pulse types are output according to the output sequence of the N pulse types corresponding to the obtained target prescription type.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed to be used in the embodiments or the prior art descriptions will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings without creative efforts.
Fig. 1 is a schematic flowchart of a pulse output control method according to an embodiment of the present disclosure;
FIG. 2 is a schematic diagram of the pulse type and the output frequency corresponding to the target recipe type;
fig. 3 is a schematic flowchart of a pulse output control method according to a second embodiment of the present application;
FIG. 4 is a flow diagram of target event polling;
FIG. 5 is a schematic view of the apparatus;
fig. 6 is a schematic structural diagram of a pulse output control device according to a third embodiment of the present application;
fig. 7 is a schematic structural diagram of a therapeutic apparatus provided in the fourth embodiment of the present application.
Detailed Description
In the following description, for purposes of explanation and not limitation, specific details are set forth, such as particular system structures, techniques, etc. in order to provide a thorough understanding of the embodiments of the present application. It will be apparent, however, to one skilled in the art that the present application may be practiced in other embodiments that depart from 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 present application with unnecessary detail.
It will be understood that the terms "comprises" and/or "comprising," when used in this specification and the appended claims, specify the presence of stated features, integers, steps, operations, elements, and/or components, but do not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and/or groups thereof.
It should also be understood that the term "and/or" as used in this specification and the appended claims refers to and includes any and all possible combinations of one or more of the associated listed items.
As used in this specification and the appended claims, the term "if" may be interpreted contextually as "when", "upon" or "in response to" determining "or" in response to detecting ". Similarly, the phrase "if it is determined" or "if a [ described condition or event ] is detected" may be interpreted contextually to mean "upon determining" or "in response to determining" or "upon detecting [ described condition or event ]" or "in response to detecting [ described condition or event ]".
Furthermore, in the description of the present application and the appended claims, the terms "first," "second," "third," and the like are used for distinguishing between descriptions and not necessarily for describing or implying relative importance.
Reference throughout this specification to "one embodiment" or "some embodiments," or the like, means that a particular feature, structure, or characteristic described in connection with the embodiment is included in one or more embodiments of the present application. Thus, appearances of the phrases "in one embodiment," "in some embodiments," "in other embodiments," or the like, in various places throughout this specification are not necessarily all referring to the same embodiment, but rather "one or more but not all embodiments" unless specifically stated otherwise. The terms "comprising," "including," "having," and variations thereof mean "including, but not limited to," unless expressly specified otherwise.
It should be understood that, the sequence numbers of the steps in this embodiment do not mean the execution sequence, and the execution sequence of each process should be determined by the function and the inherent logic of the process, and should not constitute any limitation to the implementation process of the embodiment of the present application.
When the existing therapeutic apparatus is used in the electrotherapy, the output pulse electrical signal is relatively single, which easily causes the human body to generate the electrical resistance, i.e. the human body is easy to feel tired and numb when receiving the treatment, and the treatment effect is not good.
Therefore, in order to improve the treatment effect of the treatment apparatus, the application provides a pulse output control method, which determines N pulse types corresponding to the target prescription type and output frequency corresponding to each pulse type by obtaining the target prescription type and the target gear selected by the user, determines pulse signals corresponding to the N pulse types respectively according to the target gear and the output frequency corresponding to each pulse type, and finally outputs the pulse signals corresponding to the N pulse types respectively according to the obtained output sequence of the N pulse types corresponding to the target prescription type. The method can output pulse signals with various frequencies, and can generate better treatment effect on human bodies through switching treatment of the pulse signals with various frequencies.
In order to explain the technical solution of the present application, the following description is given by way of specific examples.
Referring to fig. 1, a schematic flow chart of a pulse output control method according to a first embodiment of the present application is shown. As shown in fig. 1, the pulse output control method may include the steps of:
step 101, acquiring a target prescription type and a target gear selected by a user.
In the embodiment of the application, the target prescription type and the target gear can be obtained based on the operation of a user on a prescription type key and a gear key on a therapeutic apparatus, and when the user is detected to operate the prescription type key, the prescription type corresponding to the detected prescription type key is obtained as the target prescription type; when the fact that a user operates the gear button is detected, the gear corresponding to the detected gear button is obtained as a target gear.
The target gear is a Pulse voltage intensity gear, different Pulse voltage intensities output different Pulse signals, and the Pulse signals may be Pulse Width Modulation (PWM) signals.
For example, as shown in fig. 2, the pulse types and the output frequencies corresponding to the target prescription types may include "automatic mode", "mode 1", "mode 2", "mode 3", "mode 4", "mode 5", and "mode 6", when the user presses the prescription type key corresponding to "automatic mode", the target prescription type may be acquired as "automatic mode", and when the user presses the prescription key corresponding to "mode 1", the target prescription type may be acquired as "mode 1". Similarly, if any one of the prescription types is the target prescription type, reference may be made to a process of acquiring "mode 1" or "automatic mode" as the target prescription type, which is not described herein again.
It should be understood that the above-mentioned "automatic mode", "mode 1", "mode 2", "mode 3", "mode 4", "mode 5", and "mode 6" are only examples of prescription types, do not constitute a limitation on prescription types, and may include more or less modes.
Step 102, determining N pulse types corresponding to the target prescription type and output frequency corresponding to each pulse type according to the target prescription type.
In the embodiment of the present application, the pulse type may refer to a waveform type corresponding to the pulse, such as a sine wave, a triangle wave, a pulse wave, a square wave, an index wave, a sawtooth wave, and the like, and the sine wave, the triangle wave, the pulse wave, the square wave, the index wave, and the sawtooth wave are merely examples of the pulse type, and do not constitute a limitation on the pulse type, and more or fewer waveforms may be included. The output frequency may refer to the number of times the fundamental wave signal constituting the pulse type is output per unit time.
The output frequency of the pulse type fundamental wave signal in unit time can be judged according to the frequency range to which the output frequency belongs, if the frequency range to which the output frequency belongs is 0 Hertz (Hz) to 1kHz, the output frequency is determined to be low frequency, and under the condition that the output frequency is low frequency, the output frequency of the pulse type fundamental wave signal in unit time can be 1 time; if the frequency range to which the output frequency belongs is 1kHz to 100kHz, the output frequency is determined to be an intermediate frequency, and in the case where the output frequency is an intermediate frequency, the number of times the fundamental wave signal constituting the pulse type is output per unit time may be 2 to 20 times.
It should be understood that, in the embodiment of the present application, the output frequency of the fundamental wave signal corresponding to the low frequency and the intermediate frequency in the unit time is not limited, and it is sufficient that the output frequency of the fundamental wave signal corresponding to the intermediate frequency in the unit time is greater than the output frequency of the fundamental wave signal corresponding to the low frequency.
Determining the N pulse types corresponding to the target prescription type may refer to N waveform types that the target prescription type may specifically include, and determining the output frequency corresponding to each pulse type may refer to an output frequency corresponding to each waveform type of the N waveform types.
For example, as shown in fig. 2, the pulse type and the output frequency corresponding to the target prescription type are schematic diagrams, and if the obtained target prescription type is the "automatic mode", the pulse type corresponding to the target prescription type includes: sine wave, triangular wave, pulse wave, sawtooth wave, sine wave 1, triangular wave 1, exponential wave, sawtooth wave 1; the output frequency corresponding to each pulse type may refer to: the output frequency corresponding to the sine wave is 100Hz (belonging to the low frequency range); the output frequency corresponding to the triangular wave is 100 Hz; the output frequency corresponding to the pulse wave is 100 Hz; the output frequency corresponding to the sawtooth wave is 100 Hz; the output frequency corresponding to the sine wave 1 is 2.5kHz (belonging to the intermediate frequency range); the output frequency corresponding to the triangular wave 1 is 2.5 kHz; the output frequency corresponding to the exponential wave is 100Hz, and the output frequency corresponding to the sawtooth wave 1 is 2.5 kHz. If the obtained target prescription type is "mode 1", the pulse type corresponding to the target prescription type includes: sine wave, square wave, triangular wave, square wave, exponential wave, square wave, sawtooth wave, and square wave; since the output frequency of the pulse type is 2.5kHz in the mode 1, the output frequency corresponding to each pulse type is 2.5kHz, and it should be understood that the sine wave arranged in the first and second output positions in the mode 1 is a sine wave, which means that two sine waves with the output frequency of 2.5kHz are continuously output in the mode 1. Similarly, when the target recipe type is "mode 2", "mode 3", "mode 4", "mode 5", and "mode 6", the process of determining the N pulse types corresponding to the target recipe type and the output frequency corresponding to each pulse type is the same as that when the target recipe type is "mode 1" or "automatic mode", and will not be described again.
And 103, determining pulse signals corresponding to the N pulse types respectively according to the target gear and the output frequency corresponding to each pulse type.
In the embodiment of the present application, the pulse signal may refer to a PWM signal, that is, a PWM value, and determining the pulse signal corresponding to each of the N pulse types may refer to determining the PWM value corresponding to each of the N pulse types.
The PWM values corresponding to the N pulse types can be calculated according to the target gear and the output frequency corresponding to each pulse, the PWM values can be used for controlling the pulse voltage strength value output by the therapeutic instrument, and the larger the PWM value is, the higher the output pulse voltage is.
In one possible embodiment, determining the pulse signals corresponding to the N pulse types according to the target gear and the output frequency corresponding to each pulse type includes:
acquiring a modulation frequency coefficient corresponding to each pulse type according to the output frequency corresponding to each pulse type;
and determining pulse signals respectively corresponding to the N pulse types according to the target gear and the modulation frequency coefficient corresponding to each pulse type.
The modulation frequency coefficient is used for indicating the output times of a fundamental wave signal in a second preset time, and the fundamental wave signal is a fundamental signal forming a pulse signal.
In the embodiment of the application, the pulse signal corresponding to any pulse type is determined, and the target gear and the modulation frequency coefficient corresponding to the pulse type can be determined.
For example, when the pulse type is a sine wave, outputting sine waves of different output frequencies can be realized by changing the sine angle, that is, when the sine angle changes, the output PWM value is also changed, and the conversion relationship between the PWM value and the sine angle can be expressed as the following formula:
PWM1=Pm*sin((F*T)*(π/180)),0≤F*T≤180
PWM1 is a PWM value corresponding to a sine wave at each time; pm refers to a PWM value corresponding to a peak voltage of the target gear, that is, the corresponding relationship between Pm and the target gear is Pm ═ Ln × 1.7; ln refers to a target gear; f is a modulation frequency coefficient; t is a time variable, and is added after one base wave is output, and is cleared when F × T reaches 180, that is, when F × T reaches 180, it can be confirmed that the PWM1 value output at each time constitutes a complete sine wave, and PWM1 is a PWM value at each time.
For example, if the current shift position is 30 steps and the sine angle (i.e., F × T) is 45 degrees, Pm ═ Ln 1.7 ═ 30 × 1.7 ═ 51, the PWM1 value output when the sine angle is 45 degrees is PWM1 ═ 51 ═ sin (45 × pi (180)) -51 ═ 0.5 ═ 25, the calculated PWM value at each angle is a pulse signal corresponding to the sine wave, and the sine wave pulse signal can be used to control the magnitude of the sine wave pulse voltage.
It should be understood that F is used to indicate the number of outputs of the fundamental wave signal in the second preset time, and the more the number of outputs of the fundamental wave signal per unit time, the faster the angle change of the sine wave is indicated, i.e., the higher the output frequency of the sine wave is.
Illustratively, when the pulse type is a triangular wave, a pulse signal corresponding to the triangular wave can be obtained by the following formula. As the target gear is increased, the output PWM2 value is gradually increased, and the conversion relationship between the PWM2 value and the target gear can be expressed as the following formula:
PWM2=(Pn*F)*(10/(Lm-Ln))+PL
the PWM2 is a PWM value corresponding to a triangular wave at each time; the value of Pn can be 1 or-1, which is determined by the current PWM2 value of the target gear, if the current PWM2 value of the target gear is larger than the PWM2 value corresponding to the peak voltage of the target gear, the value of Pn is-1, and if the current PWM2 value of the target gear is smaller than or equal to the PWM value corresponding to the peak voltage of the target gear, the value of Pn is 1; f is a modulation frequency coefficient and is used for indicating the output times of the fundamental wave signal in a second preset time; lm refers to the maximum gear, and may be 30 in the embodiment of the present application; ln refers to a target gear value; PL refers to the value of PWM2 that was output at the last time, and is incremented over time and cleared after a full output of a triangle wave.
Illustratively, when the pulse type is a pulse wave, the pulse wave may be output according to a change in the waiting time and the modulation frequency coefficient. The transformation of the interval time between the modulation frequency coefficient F and the previous pulse wave is realized through the transformation of the modulation frequency coefficient F, namely the transformation of the density of the pulse wave can be realized. In this embodiment, outputting a pulse wave according to the change of the waiting time and the modulation frequency coefficient may specifically be that a complete pulse envelope is output after a waiting time, after three times of continuous output, one pulse wave is ended, and a next pulse wave starts to be output after a time interval of the modulation frequency is waited, where a PWM value of the output pulse is constant as a PWM value corresponding to a peak voltage of the target gear.
Illustratively, when the pulse type is a square wave, the square wave can be formed by continuously outputting a PWM value corresponding to the peak voltage of the target gear for a period of time, and the length of time for outputting the square wave is realized by adjusting the modulation frequency F.
Illustratively, when the pulse type is an exponential wave, the exponential wave may be composed of a first half of a sine wave and the exponential wave, the waveform of the first half may be obtained by PWM1 ═ Pm × sin ((F × T) (# 180)) to obtain a PWM value, and the waveform of the second half is the waveform when F × T ≧ 90. The PWM3 value output of its exponential wave can be expressed as the following equation:
PWM3=Pm*((0.5)^(((F*T*5)-90)/90))90≤F*T*5≤180
the PWM3 is a PWM value corresponding to the exponential wave at each time.
For example, when the current gear is 25 steps, F × T × 5 is 100, Pm is 25 × 1.7 is 42.5, and the value of the output PWM3 at this time is PWM3 ═ 42.5 ^ (0.5^ ((100-90)/90)) ≈ 39, resulting in the value of PWM3 after rounding. The value of PWM3 at each time, that is, the pulse signal corresponding to the exponential wave can be calculated from the calculation formula of PWM3, and the exponential wave pulse signal can be used to control the magnitude of the exponential wave pulse voltage, and the exponential wave can be formed from the magnitude of the exponential wave pulse voltage output at each angle.
Illustratively, when the pulse type is a sawtooth wave, the sawtooth wave may be composed of the first half of a triangular wave, and the PWM value of the sawtooth wave may also be derived according to the formula PWM2 ═ F (10/(Lm-Ln)) + PL, and outputting a completed sawtooth wave is indicated when the PWM value of the sawtooth wave is equal to the PWM value corresponding to the peak voltage of the target gear.
In a possible implementation manner, obtaining the modulation frequency coefficient corresponding to each pulse type according to the output frequency corresponding to each pulse type includes:
when the frequency range to which the output frequency corresponding to the pulse type belongs is low frequency, acquiring a first modulation frequency coefficient corresponding to the pulse type;
and when the frequency range to which the output frequency corresponding to the pulse type belongs is the intermediate frequency, acquiring a second modulation frequency coefficient corresponding to the pulse type.
The first modulation frequency coefficient is used for indicating that the output frequency of the fundamental wave signal is one time in a second preset time, the second modulation frequency coefficient is used for indicating that the output frequency of the fundamental wave signal is M times in the second preset time, and M is an integer greater than 1.
Illustratively, the first modulation frequency coefficient may be used to instruct to output one pulse width 0.01ms-100ms pulse fundamental wave (i.e. fundamental wave signal) in the second preset time, and the second modulation frequency coefficient may be used to instruct to output 2 to 20 pulse width 0.01ms-100ms pulse fundamental waves in the second preset time. It should be understood that, in the embodiment of the present application, the output frequency of the fundamental wave signal corresponding to the low frequency and the intermediate frequency in the unit time is not limited, and it is sufficient that the output frequency of the fundamental wave signal corresponding to the intermediate frequency in the unit time is greater than the output frequency of the fundamental wave signal corresponding to the low frequency.
And 104, acquiring the output sequence of the N pulse types corresponding to the target prescription type, and outputting pulse signals corresponding to the N pulse types respectively according to the output sequence.
In the embodiment of the present application, the output sequence of the N pulse types corresponding to the target prescription type may be obtained from the acquired target prescription type, and as shown in fig. 2, when the target prescription type is the "automatic mode", the output sequence of the corresponding pulse type is sine wave → triangle wave → pulse wave → sawtooth wave → sine wave 1 → triangle wave 1 → exponential wave → sawtooth wave 1. When the user selects the 'automatic mode', the therapeutic apparatus outputs the pulse signal corresponding to each waveform according to the output sequence of the waveforms.
In one possible embodiment, outputting the pulse signals corresponding to the N pulse types respectively according to the output sequence includes:
outputting a first pulse signal corresponding to a first pulse type in the N pulse types, and detecting whether the first pulse signal is completely output within a first preset time;
and if the first pulse signal is completely output, taking the next time of the first time as the first time of the output sequence, returning to execute the output of the first pulse signal corresponding to the first pulse type in the N pulse types, and detecting whether the first pulse signal is completely output within a first preset time until the pulse signals corresponding to the N pulse types are completely output.
The first pulse type refers to a pulse type with a first order of output, such as the sine wave with the first order of output in the "automatic mode" shown in fig. 2. In the process of outputting the pulse signals according to the output sequence, it is required to detect whether the pulse signals are completely output within a first preset time every time when one pulse signal is output, and each pulse signal has a corresponding complete output condition when completely output.
In this embodiment of the application, if it is detected that the first pulse signal is completely output, the next bit of the first order is used as the first order of the output sequence, and whether the first pulse signal is completely output is detected within a first preset time until the pulse signals corresponding to the N pulse types are completely output. For example, in the "automatic mode", it is first detected whether the sine wave is completely output, and if the sine wave is completely output, the triangle wave of the next time of the sine wave is used as the first pulse signal, and it is continuously detected whether the triangle wave is completely output until each pulse signal in the "automatic mode" is completely output, and the therapeutic apparatus stops working.
In the embodiment of the application, the N pulse types corresponding to the target prescription type and the output frequency corresponding to each pulse type are determined by obtaining the target prescription type and the target gear selected by the user, the pulse signals corresponding to the N pulse types are determined according to the target gear and the output frequency corresponding to each pulse type, and finally the pulse signals corresponding to the N pulse types are output according to the obtained output sequence of the N pulse types corresponding to the target prescription type.
Referring to fig. 3, a schematic flow chart of a pulse output control method provided in the second embodiment of the present application is shown. As shown in fig. 3, the pulse output control method may include the steps of:
step 301, obtaining a function execution time corresponding to the target event.
In this embodiment of the application, the target event may include all function events in the therapeutic apparatus, for example, a key detection event, and the obtaining of the function execution time corresponding to the target event may refer to obtaining the execution time corresponding to the key detection function corresponding to the key detection event, and if the execution time corresponding to the key detection event is 90ms, the obtaining of the function execution time corresponding to the key detection event is 90 ms.
As shown in fig. 4, which is a schematic flow chart of target event polling, it can be seen that the target event of the embodiment of the present application may include: the control system comprises a duty ratio output control event, a waveform output control event, an output gear control event, a charging plugging control event, a deflation control event, a key detection event, a battery voltage detection event, an inflation control event, a display control event, a voice broadcasting control event, a heating control event, a countdown control event, a charging control event, a battery temperature control event and a modulation frequency control event, wherein functions corresponding to each target event have function execution events.
It should be understood that the above target events include the target events, which are examples of the target events, and do not constitute a limitation on the target events, and more or fewer events may be included.
In a possible embodiment, the above function execution of the target event can be applied to the structure of the apparatus as shown in fig. 5, wherein the structure of the apparatus as shown in fig. 5 is only an example of the structure of the apparatus and does not constitute a limitation on the structure of the apparatus.
Wherein main control unit can regard as the treater of therapeutic instrument, and its button module, bluetooth module, remote control module, voice broadcast module, temperature control module, power management module, pulse output control module, waveform detection module all integrate on main control unit. The key module is used for detecting that the key is pressed down, and can execute a key detection function corresponding to a key detection event; the Bluetooth module is a module for receiving or sending data through Bluetooth data transmission; the remote control module can control the main controller to enter a working mode corresponding to the target prescription type, and can execute corresponding functions such as a display control event, a heating control event, a key detection event and the like, for example, a display instruction can be obtained through a display key in the remote control module, so that a display function corresponding to the display control event is executed; the voice broadcasting module is used for carrying out voice broadcasting and can execute a voice broadcasting function corresponding to a voice broadcasting event; the temperature control module is used for controlling the temperature of the therapeutic apparatus and can execute a heating control function corresponding to a heating control event; the power supply management module is used for charging the therapeutic apparatus and executing a charging control function corresponding to the charging control event; the pulse output control module is used for receiving the pulse width modulation signal sent by the main controller and generating a pulse signal, and can execute a duty ratio output control function corresponding to a duty ratio output control event; the waveform detection module is used for detecting the pulse signal output by the pulse output control module so as to detect whether the output pulse signal is a complete pulse signal or not, when the pulse signal is detected to be the complete pulse signal or not, the pulse signal is fed back to the main controller, the main controller sends a pulse width modulation signal to the pulse output control module according to the feedback signal so that the pulse output control module outputs the pulse signal of the next bit, and the waveform detection module can execute a waveform output control function corresponding to a waveform output control event.
Step 302, dividing the target events with the same function execution time into the same target event group.
In the embodiment of the application, the target event functions of the same target event group have the same execution time, so that time slices are divided for each target event group, and the functions corresponding to the target events of each target event group have sufficient time to be executed.
Step 303, creating a time slice for each target event group, and determining the polling time corresponding to the target event group according to the time slice time interval corresponding to the target event group.
In the embodiment of the present application, the execution time of the function corresponding to each target event in the target time group needs to be less than or equal to the time interval of the corresponding time slice, so as to ensure that the function corresponding to each target event can be executed in sufficient time.
Illustratively, as shown in fig. 4, the time slices are created for each event group and are respectively 1ms, 10ms, 100ms, 500ms and 1s, and the polling time corresponding to the target event group is determined according to the time interval corresponding to the time slice and the function execution time of the target event group, for example, the function execution time corresponding to the target event group including the duty ratio output control event, the waveform output control event and the output gear control event is 5ms, since the time interval corresponding to the 1ms time slice is 9ms, the 5ms is less than 9ms and the time difference value with the 9ms is minimum, the polling time corresponding to the target event group can be determined to be 1 ms; the function execution time corresponding to a target event group comprising a charging plugging test event, an air release control event and a key detection event is 80ms, and as the time interval corresponding to a 10ms time slice is 90ms, 80ms is less than 90ms and the time difference value between the 80ms and the 90ms is minimum, the polling time corresponding to the target event group can be determined to be 10 ms; by analogy, the polling time corresponding to each target event group can be determined.
And step 304, acquiring polling time of the key detection event according to the polling time corresponding to the target event group.
In the embodiment of the present application, the polling time of the key detection event may be obtained according to the polling event corresponding to each target event group, for example, the polling time corresponding to the key detection event shown in fig. 4 is 10 ms.
The polling time is used for indicating that the target event is detected when the polling time is reached, and inquiring whether the target event occurs. If the target event occurs, executing a function corresponding to the target event; if the target event does not occur, detecting the next target event group when the polling time of the next target event group is reached, wherein if the target event occurs and the polling time of the next target event group is reached, the function corresponding to the target event is not executed completely, and a timer is used for generating an interrupt so as to suspend the execution of the function corresponding to the target event.
And 305, acquiring the target prescription type and the target gear selected by the user based on the key detection event when the polling time of the key detection event is reached.
In the embodiment of the application, the function corresponding to the key detection event may include key detection of a target prescription type and key detection of a target gear, so that when the polling time of the key detection event is reached, the target prescription type and the target gear selected by the user may be obtained through execution of the function corresponding to the key detection event.
In one possible embodiment, obtaining the target prescription type and the target gear selected by the user based on the key detection event when the polling time of the key detection event is reached comprises:
when the polling time of the key detection event is reached, detecting whether the key detection event occurs or not;
and when a key detection event occurs, executing a key detection function corresponding to the key detection event to acquire the target prescription type and the target gear selected by the user.
In this embodiment of the application, if the key detection event occurs at the time when the polling time of the key detection event is reached, the key detection function corresponding to the key detection event is directly executed to obtain the target prescription type and the target gear selected by the user, if the key detection event does not occur when the polling time of the key detection event is reached, the key detection function corresponding to the key detection event is not executed, and when the polling time of the next target event group is reached, whether the target event of the next target event group occurs or not is detected.
The total polling time of each round can be set to be 1 second according to the function execution event corresponding to each target event, so that the key detection event can be executed once every second (namely, whether the key is pressed down or not is detected once every second), and the situation that the key detection event is not polled by the therapeutic apparatus when the key is pressed down by a user is avoided.
It should be understood that after all target event groups are polled in the current round, the timer is cleared (i.e. the main controller is initialized), and polling in the next round is continued according to the polling time of each target event group until the therapeutic apparatus stops running, and the polling process is closed.
Step 306, according to the target prescription type, determining N pulse types corresponding to the target prescription type and an output frequency corresponding to each pulse type.
Step 307, determining pulse signals corresponding to the N pulse types respectively according to the target gear and the output frequency corresponding to each pulse type.
Step 308, obtaining an output sequence of the N pulse types corresponding to the target prescription type, and outputting pulse signals corresponding to the N pulse types according to the output sequence.
The steps 306-308 of this embodiment are the same as the steps 102-104 of the previous embodiment, and reference may be made to these steps, which are not described herein again.
Compared with the first embodiment, because the pulse electrical signal sent by the conventional therapeutic apparatus is mainly based on the key input of the user, that is, the user inputs the selected prescription type through the key, and the therapeutic apparatus detects the prescription type selected by the user by executing the key detection, and further sends the corresponding pulse electrical signal according to the prescription type, in the operating system of the conventional therapeutic apparatus, only the function corresponding to one event can be executed at the same time, the functions corresponding to the ready events in the event queue are sequentially executed after one function is executed, if the execution time of the event arranged at the head of the event queue is longer, the time for waiting for the event arranged at the tail of the event queue to be executed is longer, for example, the key detection event is arranged at the tail of the task queue in the therapeutic apparatus, and if the key detection is carried out in the process of waiting for being executed by the user, the therapeutic apparatus cannot detect the key operation of the user at this time, namely, the therapeutic apparatus has no reaction. According to the embodiment of the application, the target events are detected according to the polling time corresponding to each target event, and the target functions corresponding to the target events which are not executed are interrupted when the next polling time is reached, so that each target event can be inquired in the total polling time, and the non-reaction condition of the therapeutic apparatus is reduced.
Referring to fig. 6, a schematic structural diagram of a pulse output control device provided in the third embodiment of the present application is shown, and for convenience of description, only the parts related to the third embodiment of the present application are shown.
The pulse output control device may specifically include the following modules:
the acquisition module 601 is used for acquiring a target prescription type and a target gear selected by a user, wherein the target gear refers to a pulse voltage intensity gear;
a type determining module 602, configured to determine, according to the target prescription type, N pulse types corresponding to the target prescription type and an output frequency corresponding to each pulse type;
a signal determining module 603, configured to determine, according to the target gear and the output frequency corresponding to each pulse type, pulse signals corresponding to the N pulse types respectively;
the pulse output module 604 is configured to obtain an output sequence of N pulse types corresponding to the target prescription type, and output pulse signals corresponding to the N pulse types according to the output sequence.
In this embodiment, the pulse output module 604 may specifically include the following sub-modules:
the signal detection submodule is used for outputting a first pulse signal corresponding to a first pulse type in the N pulse types and detecting whether the first pulse signal is completely output within a first preset time, wherein the first pulse type refers to a pulse type with the output sequence of a first order;
and the cycle detection submodule is used for taking the next bit of the first bit as the first bit of the output sequence if the first pulse signal is completely output, returning to execute the output of the first pulse signal corresponding to the first pulse type in the N pulse types, and detecting whether the first pulse signal is completely output within a first preset time until the pulse signals corresponding to the N pulse types are completely output.
In this embodiment, the signal determining module 603 may specifically include the following sub-modules:
the modulation coefficient acquisition submodule is used for acquiring a modulation frequency coefficient corresponding to each pulse type according to the output frequency corresponding to each pulse type, the modulation frequency coefficient is used for indicating the output times of a fundamental wave signal in second preset time, and the fundamental wave signal is a fundamental signal forming the pulse signal;
and the pulse determining submodule is used for determining pulse signals corresponding to the N pulse types respectively according to the target gear and the modulation frequency coefficient corresponding to each pulse type.
In this embodiment of the present application, the modulation coefficient obtaining sub-module may specifically include the following units:
the first modulation coefficient acquisition unit is used for acquiring a first modulation frequency coefficient corresponding to the pulse type when the frequency range to which the output frequency corresponding to the pulse type belongs is low frequency, and the first modulation frequency coefficient is used for indicating that the output frequency of the fundamental wave signal is once in second preset time;
and the second modulation coefficient acquisition unit is used for acquiring a second modulation frequency coefficient corresponding to the pulse type when the frequency range to which the output frequency corresponding to the pulse type belongs is the intermediate frequency, wherein the second modulation frequency coefficient is used for indicating that the output frequency of the fundamental wave signal in a second preset time is M times, and M is an integer greater than 1.
In this embodiment, the obtaining module 601 may specifically include the following sub-modules:
and the polling detection sub-module is used for acquiring the target prescription type and the target gear selected by the user based on the key detection event when the polling time of the key detection event is reached.
In this embodiment of the present application, the polling detection sub-module may further include the following units:
the detection unit is used for detecting whether the key detection event occurs or not when the polling time of the key detection event is reached;
and the execution unit is used for executing a key detection function corresponding to the key detection event to acquire the target prescription type and the target gear selected by the user when the key detection event occurs.
In this embodiment, the pulse output control device may further include the following modules:
the time acquisition module is used for acquiring function execution time corresponding to a target event, wherein the target event at least comprises a key detection event;
the event group division module is used for dividing the target events with the same function execution time into the same target event group;
the time slice creating module is used for creating time slices for each target event group and determining the polling time corresponding to the target event group according to the time intervals of the time slices corresponding to the target event group, wherein the function execution time corresponding to each target event in the target event group is less than or equal to the time interval of the corresponding time slice;
and the detection time acquisition module is used for acquiring the polling time of the key detection event according to the polling time corresponding to the target event group.
The pulse output control device provided in the embodiment of the present application can be applied to the foregoing method embodiments, and for details, reference is made to the description of the foregoing method embodiments, and details are not repeated here.
Fig. 7 is a schematic structural diagram of a therapeutic apparatus provided in the fourth embodiment of the present application. As shown in fig. 7, the therapeutic apparatus 700 of this embodiment comprises: at least one processor 710 (only one shown in fig. 7), a memory 720, and a computer program 721 stored in the memory 720 and operable on the at least one processor 710, the processor 710 implementing the steps in the pulse output control method embodiments described above when executing the computer program 721.
The therapeutic apparatus 700 may be a desktop computer, a notebook, a palm computer, a cloud server, or other computing devices. The therapeutic apparatus may include, but is not limited to, a processor 710 and a memory 720. It will be appreciated by those skilled in the art that fig. 7 is merely an example of the apparatus 700 and is not intended to limit the apparatus 700 and may include more or less components than those shown, or some components in combination, or different components, such as input and output devices, network access devices, etc.
The Processor 710 may be a Central Processing Unit (CPU), and the Processor 710 may be other general purpose Processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), an off-the-shelf Programmable Gate Array (FPGA) or other Programmable logic device, discrete Gate or transistor logic, discrete hardware components, etc. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
The memory 720 may in some embodiments be an internal storage unit of the apparatus 700, such as a hard disk or a memory of the apparatus 700. The memory 720 may also be an external storage device of the therapeutic apparatus 700 in other embodiments, such as a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card), etc. provided on the therapeutic apparatus 700. Further, the memory 720 may also comprise both an internal memory unit and an external memory device of the apparatus 700. The memory 720 is used for storing an operating system, an application program, a BootLoader (BootLoader), data, and other programs, such as program codes of the computer program. The memory 720 may also be used to temporarily store data that has been output or is to be output.
It will be apparent to those skilled in the art that, for convenience and brevity of description, only the above-mentioned division of the functional units and modules is illustrated, and in practical applications, the above-mentioned function distribution may be performed by different functional units and modules according to needs, that is, the internal structure of the apparatus is divided into different functional units or modules to perform all or part of the above-mentioned functions. Each functional unit and module in the embodiments may be integrated in one processing unit, or each unit may exist alone physically, or two or more units are integrated in one unit, and the integrated unit may be implemented in a form of hardware, or in a form of software functional unit. In addition, specific names of the functional units and modules are only for convenience of distinguishing from each other, and are not used for limiting the protection scope of the present application. The specific working processes of the units and modules in the system may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
In the above embodiments, the descriptions of the respective embodiments have respective emphasis, and reference may be made to the related descriptions of other embodiments for parts that are not described or illustrated in a certain embodiment.
Those of ordinary skill in the art will appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware or combinations of computer software and electronic hardware. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present application.
In the embodiments provided in the present application, it should be understood that the disclosed apparatus/terminal device and method may be implemented in other ways. For example, the above-described embodiments of the apparatus/terminal device are merely illustrative, and for example, the division of the modules or units is only one logical division, and there may be other divisions when actually implemented, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The integrated modules/units, if implemented in the form of software functional units and sold or used as separate products, may be stored in a computer readable storage medium. Based on such understanding, all or part of the flow in the method of the embodiments described above can be realized by a computer program, which can be stored in a computer-readable storage medium and can realize the steps of the embodiments of the methods described above when the computer program is executed by a processor. Wherein the computer program comprises computer program code, which may be in the form of source code, object code, an executable file or some intermediate form, etc. The computer-readable medium may include: any entity or device capable of carrying the computer program code, recording medium, usb disk, removable hard disk, magnetic disk, optical disk, computer Memory, Read-Only Memory (ROM), Random Access Memory (RAM), electrical carrier wave signals, telecommunications signals, software distribution medium, and the like. It should be noted that the computer readable medium may contain content that is subject to appropriate increase or decrease as required by legislation and patent practice in jurisdictions, for example, in some jurisdictions, computer readable media does not include electrical carrier signals and telecommunications signals as is required by legislation and patent practice.
When the computer program product runs on a terminal device, the steps in the method embodiments can be implemented when the terminal device executes the computer program product.
The above-mentioned embodiments are only used for illustrating the technical solutions of the present application, and not for limiting the same. Although the present application has been described in detail with reference to the foregoing embodiments, it should be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; such modifications and substitutions do not substantially depart from the spirit and scope of the embodiments of the present application and are intended to be included within the scope of the present application.

Claims (10)

1. A pulse output control method is applied to a therapeutic apparatus, and comprises the following steps:
acquiring a target prescription type and a target gear selected by a user, wherein the target gear refers to a pulse voltage intensity gear;
determining N pulse types corresponding to the target prescription type and output frequency corresponding to each pulse type according to the target prescription type;
determining pulse signals corresponding to the N pulse types respectively according to the target gear and the output frequency corresponding to each pulse type;
and acquiring the output sequence of the N pulse types corresponding to the target prescription type, and outputting the pulse signals corresponding to the N pulse types respectively according to the output sequence.
2. The pulse output control method according to claim 1, wherein said outputting the pulse signals corresponding to the N pulse types, respectively, in the output order comprises:
outputting a first pulse signal corresponding to a first pulse type in the N pulse types, and detecting whether the first pulse signal is completely output within a first preset time, wherein the first pulse type refers to a pulse type with a first order of output sequence;
and if the first pulse signal is completely output, taking the next bit of the first bit as the first bit of the output sequence, returning to execute the output of the first pulse signal corresponding to the first pulse type in the N pulse types, and detecting whether the first pulse signal is completely output within a first preset time until the pulse signals corresponding to the N pulse types are completely output.
3. The pulse output control method according to claim 1, wherein the determining the pulse signals corresponding to the N pulse types respectively according to the target gear and the output frequency corresponding to each pulse type includes:
acquiring a modulation frequency coefficient corresponding to each pulse type according to the output frequency corresponding to each pulse type, wherein the modulation frequency coefficient is used for indicating the output times of a fundamental wave signal in a second preset time, and the fundamental wave signal is a fundamental signal forming the pulse signal;
and determining pulse signals corresponding to the N pulse types respectively according to the target gear and the modulation frequency coefficient corresponding to each pulse type.
4. The pulse output control method according to claim 3, wherein the obtaining the modulation frequency coefficient corresponding to each pulse type according to the output frequency corresponding to each pulse type includes:
when the frequency range to which the output frequency corresponding to the pulse type belongs is low frequency, acquiring a first modulation frequency coefficient corresponding to the pulse type, wherein the first modulation frequency coefficient is used for indicating that the output frequency of the fundamental wave signal is one time within the second preset time;
and when the frequency range to which the output frequency corresponding to the pulse type belongs is the intermediate frequency, acquiring a second modulation frequency coefficient corresponding to the pulse type, wherein the second modulation frequency coefficient is used for indicating that the output frequency of the fundamental wave signal in the second preset time is M times, and M is an integer greater than 1.
5. The pulse output control method according to claim 1, wherein the acquiring of the target prescription type and the target gear selected by the user includes:
when the polling time of the key detection event is reached, acquiring the target prescription type and the target gear selected by the user based on the key detection event.
6. The pulse output control method according to claim 5, wherein the obtaining of the target recipe type and the target gear selected by the user based on the key detection event upon arrival of the polling time of the key detection event comprises:
detecting whether the key detection event occurs or not when the polling time of the key detection event is reached;
and when the key detection event occurs, executing a key detection function corresponding to the key detection event to acquire the target prescription type and the target gear selected by the user.
7. The pulse output control method according to claim 6, further comprising, before the polling time of the key detection event is reached:
acquiring function execution time corresponding to a target event, wherein the target event at least comprises the key detection event;
dividing the target events with the same function execution time into the same target event group;
creating a time slice for each target event group, and determining polling time corresponding to the target event group according to the time interval of the time slice corresponding to the target event group, wherein the function execution time corresponding to each target event in the target event group is less than or equal to the time interval of the corresponding time slice;
and acquiring the polling time of the key detection event according to the polling time corresponding to the target event group.
8. A pulse output control device, characterized by comprising:
the system comprises an acquisition module, a judgment module and a control module, wherein the acquisition module is used for acquiring a target prescription type and a target gear selected by a user, and the target gear refers to a pulse voltage intensity gear;
the type determining module is used for determining N pulse types corresponding to the target prescription type and output frequency corresponding to each pulse type according to the target prescription type;
the signal determining module is used for determining pulse signals corresponding to the N pulse types according to the target gear and the output frequency corresponding to each pulse type;
and the pulse output module is used for acquiring the output sequence of the N pulse types corresponding to the target prescription type and outputting the pulse signals corresponding to the N pulse types respectively according to the output sequence.
9. An apparatus comprising a memory, a processor and a computer program stored in the memory and executable on the processor, wherein the processor implements the method according to any one of claims 1 to 7 when executing the computer program.
10. A computer-readable storage medium, in which a computer program is stored which, when being executed by a processor, carries out the method according to any one of claims 1 to 7.
CN202111592852.0A 2021-12-23 2021-12-23 Pulse output control method and device, therapeutic instrument and storage medium Pending CN114367037A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111592852.0A CN114367037A (en) 2021-12-23 2021-12-23 Pulse output control method and device, therapeutic instrument and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111592852.0A CN114367037A (en) 2021-12-23 2021-12-23 Pulse output control method and device, therapeutic instrument and storage medium

Publications (1)

Publication Number Publication Date
CN114367037A true CN114367037A (en) 2022-04-19

Family

ID=81143019

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111592852.0A Pending CN114367037A (en) 2021-12-23 2021-12-23 Pulse output control method and device, therapeutic instrument and storage medium

Country Status (1)

Country Link
CN (1) CN114367037A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115671551A (en) * 2023-01-03 2023-02-03 北京市金华医疗器械研究所 Control method and device of intermediate frequency pulse therapeutic apparatus and therapeutic apparatus

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110215603A (en) * 2019-07-05 2019-09-10 金娜 A kind of production method and device, physiotherapy equipment of physiotherapy equipment electric pulse
CN110354384A (en) * 2019-06-03 2019-10-22 俞剑虹 A kind of pulse signal control circuit, method and channels and collaterals let out therapeutic equipment along inverse benefit
CN111760191A (en) * 2020-06-05 2020-10-13 未来穿戴(深圳)有限公司 Pulse current output control method, pulse current output control device, electronic device, and storage medium
CN112057739A (en) * 2020-08-10 2020-12-11 未来穿戴技术有限公司 Pulse output control method, pulse output control device, electronic device, and computer storage medium
CN112704628A (en) * 2020-12-10 2021-04-27 未来穿戴技术有限公司 Control method of finger massage equipment, related device and computer storage medium
WO2021218598A1 (en) * 2020-04-30 2021-11-04 未来穿戴技术有限公司 Mode selection method, mobile terminal, and computer-readable storage medium

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110354384A (en) * 2019-06-03 2019-10-22 俞剑虹 A kind of pulse signal control circuit, method and channels and collaterals let out therapeutic equipment along inverse benefit
CN110215603A (en) * 2019-07-05 2019-09-10 金娜 A kind of production method and device, physiotherapy equipment of physiotherapy equipment electric pulse
WO2021218598A1 (en) * 2020-04-30 2021-11-04 未来穿戴技术有限公司 Mode selection method, mobile terminal, and computer-readable storage medium
CN111760191A (en) * 2020-06-05 2020-10-13 未来穿戴(深圳)有限公司 Pulse current output control method, pulse current output control device, electronic device, and storage medium
CN112057739A (en) * 2020-08-10 2020-12-11 未来穿戴技术有限公司 Pulse output control method, pulse output control device, electronic device, and computer storage medium
CN112704628A (en) * 2020-12-10 2021-04-27 未来穿戴技术有限公司 Control method of finger massage equipment, related device and computer storage medium

Non-Patent Citations (3)

* Cited by examiner, † Cited by third party
Title
周兴华: "《手把手教你学ARM CORTEX-M0 基于LPC11XX系列》", 31 January 2016, 北京航空航天大学出版社, pages: 415 *
周启平: "《VxWorks下设备驱动程序及BSP开发指南》", 30 September 2004, 中国电力出版社, pages: 30 - 37 *
高维滨: "《高维滨针刺十绝 神经病针刺新疗法》", 30 June 2019, 中国医药科技出版社, pages: 19 *

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115671551A (en) * 2023-01-03 2023-02-03 北京市金华医疗器械研究所 Control method and device of intermediate frequency pulse therapeutic apparatus and therapeutic apparatus

Similar Documents

Publication Publication Date Title
JP3503135B2 (en) Biological stimulator
CN103378658B (en) Power transmission device, non-contact power transmission system and signal creating method
CN114367037A (en) Pulse output control method and device, therapeutic instrument and storage medium
CN109260591B (en) Transcranial stimulation method and device
CN201410229Y (en) Neuromuscular rehabilitation instrument
CN205548978U (en) Therapeutic apparatus
Enriquez et al. The role of choice in longitudinal recall of meaningful tactile signals
CN105999545A (en) Cerebral apoplexy rehabilitation device
CN109731221A (en) A kind of Multifunctional nerve muscular electrostimulation device
CN108245777A (en) A kind of intelligent Physical Therapeutic Device and its control method
CN109245745A (en) A kind of signal generating method, device and radio-frequency unit
CN109876296B (en) Electronic acupuncture therapeutic instrument
CN206730132U (en) Channels and collaterals health-preserving instrument
CN104056356A (en) Audio electro-therapeutic instrument
CN111481826A (en) Intelligent variable-frequency cervical vertebra massager
CN211273154U (en) Electric wave leading-in instrument for leading facial mask essence into skin
CN102631748A (en) Mobile terminal and electrotherapy method
CN209270636U (en) A kind of intelligent Physical Therapeutic Device
CN111225713B (en) Multifunctional body beautifying instrument system for generating sine wave vibration
CN108107771B (en) Device for generating specific waveform
CN202554749U (en) Mobile terminal with electrotherapeutic function
KR101075943B1 (en) Tactile Stimulator
CN114343838B (en) Pulse light control method, circuit and equipment of dehairing instrument and dehairing instrument
CN211273161U (en) Frequency modulation pulse recovery instrument
KR100874099B1 (en) General purpose frequency generator and frequency generation method using mobile terminal

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
CB02 Change of applicant information
CB02 Change of applicant information

Address after: 518000 Room 301, building D, elegant factory, No. 31, fangkeng Road, Pinghu community, Pinghu street, Longgang District, Shenzhen, Guangdong Province

Applicant after: Leqing medical instruments (Shenzhen) Co.,Ltd.

Address before: 518000 Room 301, building D, elegant factory, No. 31, fangkeng Road, Pinghu community, Pinghu street, Longgang District, Shenzhen, Guangdong Province

Applicant before: Shenzhen Leqing health care instrument Co.,Ltd.