Wireless communication method, device and electronic equipment for neurostimulator

By conducting wireless communication during the period when the neurostimulator does not generate electrical stimulation pulses, the problem of induction coil voltage fluctuation caused by modulation/demodulation is solved, and the supply voltage stability and therapeutic effect of the neurostimulator are improved.

CN118490987BActive Publication Date: 2024-09-24HANGZHOU SEENEURO MEDICAL CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410969912.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-07-16
Publication Date
2024-09-24
Estimated Expiration
2044-07-16

AI Technical Summary

Technical Problem

When the neurostimulator performs wireless communication, the modulation/demodulation technology causes the receiving voltage of the induction coil to fluctuate, affecting the stability of the power supply voltage, thereby affecting the treatment effect.

Method used

Wireless communication is performed during the period when the neurostimulator does not generate electrical stimulation pulses, and the available communication time period is determined and data is sent within this time period to avoid the negative impact of power supply voltage fluctuations caused by communication on the stability of the electrical stimulation pulses.

Benefits of technology

It effectively avoids the possible negative impact of power supply voltage fluctuations caused by communication on the stability of electrical stimulation pulses, and improves the stability of the treatment effect.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118490987B
    Figure CN118490987B
Patent Text Reader

Abstract

The present specification provides a wireless communication method, device and electronic equipment for a neurostimulator, wherein the method is applied to a programmer controlling the neurostimulator, wherein the neurostimulator is provided with an induction coil, and the induction coil is used for both wireless communication and wireless power supply between the neurostimulator and the programmer, and the method comprises: upon receiving a pulse termination signal sent by the neurostimulator, determining a first available communication time period of the neurostimulator within a current electrical stimulation pulse cycle; wherein the neurostimulator does not generate an electrical stimulation pulse within the first available communication time period; determining first target data that needs to be sent within the first available communication time period, and sending the first target data to the neurostimulator within the first available communication time period.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of wireless communication technology, and in particular to wireless communication methods, devices and electronic equipment for neurostimulators. Background Art

[0002] Neurostimulators are devices used to deliver electrical signals to specific nerve regions, with the primary goal of modulating the electrical activity of neurons to achieve therapeutic effects. They play an important role in the fields of neuroscience and biomedical engineering, particularly in pain management, movement disorders, and epilepsy.

[0003] In the related art, since the neurostimulator is implanted in human tissue through surgery and electrically stimulates the muscle or nerve tissue according to the needs of the patient's condition, the size of the neurostimulator should be as small as possible to reduce the surgical risk. In order to reduce the size of the neurostimulator, the neurostimulator uses modulation / demodulation technology to achieve simultaneous wireless power supply and wireless communication on an induction coil to simplify the energy storage unit and communication unit inside the neurostimulator.

[0004] However, this solution also brings new technical problems, namely, modulation / demodulation will affect the stability of the receiving voltage of the induction coil, especially when the modulation depth is large, which will cause obvious fluctuations in the receiving voltage. The working circuit inside the neurostimulator relies on a stable power supply voltage to maintain normal operation. When the receiving voltage of the induction coil fluctuates, the power management module may not be able to completely smooth these fluctuations, so the power supply voltage of the neurostimulator will also fluctuate. The stimulation pulse generation circuit of the neurostimulator is very sensitive to the power supply voltage. The fluctuation of the power supply voltage will directly affect the working state of the components in the pulse generation circuit (such as operational amplifiers, transistors, etc.), and ultimately cause the output stimulation pulse to fluctuate, thereby affecting the treatment effect. Summary of the invention

[0005] In order to overcome the problems existing in the related art, this specification provides a wireless communication method, device and electronic equipment for a neurostimulator.

[0006] According to a first aspect of an embodiment of the present specification, a wireless communication method for a neurostimulator is provided, the method being applied to a programmer controlling the neurostimulator, the neurostimulator being provided with an induction coil, the induction coil being used for both wireless communication and wireless power supply between the neurostimulator and the programmer, the method comprising:

[0007] Upon receiving a pulse stop signal sent by the neurostimulator, determining a first available communication time period of the neurostimulator within the current electrical stimulation pulse cycle; wherein the neurostimulator does not generate an electrical stimulation pulse within the first available communication time period;

[0008] Determine first target data that needs to be sent within the first available communication time period, and send the first target data to the neural stimulator within the first available communication time period.

[0009] According to a second aspect of the embodiments of this specification, another wireless communication method for a neurostimulator is provided. The method is applied to a neurostimulator, wherein the neurostimulator is provided with an induction coil, and the induction coil is used for both wireless communication and wireless power supply between the neurostimulator and a programmer. The method comprises:

[0010] Determining a second available communication time period of the neural stimulator within the current electrical stimulation pulse cycle; wherein the neural stimulator does not generate an electrical stimulation pulse within the second available communication time period;

[0011] Determine second target data that needs to be sent within the second available communication time period, and send the second target data to the programmer within the second available communication time period.

[0012] According to a third aspect of the embodiments of this specification, there is provided a wireless communication device for a neurostimulator, the device being applied to a programmer controlling the neurostimulator, the neurostimulator being provided with an induction coil, the induction coil being used for wireless communication and wireless power supply between the neurostimulator and the programmer, the device comprising:

[0013] A first available communication time period determination module, configured to determine a first available communication time period of the neurostimulator within a current electrical stimulation pulse cycle upon receiving a pulse stop signal sent by the neurostimulator; wherein the neurostimulator does not generate an electrical stimulation pulse within the first available communication time period;

[0014] The first target data sending module is used to determine the first target data that needs to be sent within the first available communication time period, and send the first target data to the neural stimulator within the first available communication time period.

[0015] According to a fourth aspect of an embodiment of this specification, an electronic device is provided, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the program, the steps of the method described in the first aspect or the second aspect are implemented.

[0016] According to a fifth aspect of the embodiments of this specification, a computer-readable storage medium is provided, on which a computer program is stored, and when the program is executed by a processor, the steps of the method described in the first aspect or the second aspect are implemented.

[0017] The technical solutions provided by the embodiments of this specification may have the following beneficial effects:

[0018] In an embodiment of the present specification, upon receiving a pulse termination signal sent by a neurostimulator, the programmer determines the first available communication time period within the current electrical stimulation pulse cycle, wherein the neurostimulator does not generate an electrical stimulation pulse within the first available communication time period, and determines the first target data that needs to be sent within the first available communication time period, and sends the first target data to the neurostimulator within the first available communication time period. Since the modulation / demodulation of the neurostimulator occurs in the two-way communication stage between the neurostimulator and the programmer, this solution only communicates within the first available communication time period when the neurostimulator does not generate an electrical stimulation pulse, and does not perform any communication within the time period when the neurostimulator outputs an electrical stimulation pulse, thereby effectively avoiding the negative impact that power supply voltage fluctuations caused by communication may have on the stability of the electrical stimulation pulse.

[0019] It is to be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present specification. BRIEF DESCRIPTION OF THE DRAWINGS

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

[0021] Figure 1 This is a schematic diagram of a scenario of interaction between a neural stimulator and a programmer according to an exemplary embodiment of this specification.

[0022] Figure 2 It is a flow chart of a wireless communication method for a neurostimulator according to an exemplary embodiment of the present specification.

[0023] Figure 3 It is a schematic diagram of a first available communication time period according to an exemplary embodiment of the present specification.

[0024] Figure 4 It is a flow chart of another wireless communication method for a neurostimulator according to an exemplary embodiment of the present specification.

[0025] Figure 5 It is a schematic diagram of a second available communication time period according to an exemplary embodiment of the present specification.

[0026] Figure 6 It is a schematic diagram of the structure of an electronic device according to an exemplary embodiment of the present specification.

[0027] Figure 7It is a block diagram of a wireless communication device for a neurostimulator according to an exemplary embodiment of the present specification.

[0028] Figure 8 It is a block diagram of another wireless communication device for a neurostimulator according to an exemplary embodiment of the present specification. DETAILED DESCRIPTION

[0029] like Figure 1 As shown, the neurostimulator 10 is implanted in the patient's body by a doctor, and includes an electrode and a pulse generator. The electrode is placed near the target nerve, and an electrical stimulation pulse is generated to the target nerve through the pulse generator. The programmer 11 includes but is not limited to the functions of controlling the parameter configuration and adjustment of the neurostimulator 10, data transmission, and providing electrical energy to the neurostimulator 10. The programmer 11 can refer to any electronic device with the above functions. For example, if an electronic device has the above functions, it can be used as the programmer 11 in this specification. In practical applications, the programmer 11 can adjust the working parameters of the neurostimulator 10, such as current intensity, frequency, pulse width, and stimulation mode. During the operation of the neurostimulator 10, the programmer 11 can also receive feedback information (such as electrode resistance change, internal state, etc.) sent by the neurostimulator 10, so that the programmer 11 can adjust the working parameters of the programmer 10 according to the feedback information. Exemplarily, the neurostimulator 10 includes but is not limited to a spinal cord stimulator (SCS), a peripheral nerve stimulator (PNS), and a tibial nerve stimulator (TNS).

[0030] The neurostimulator 10 is equipped with an induction coil, which is used for two-way wireless communication between the neurostimulator 10 and the programmer 11, and the neurostimulator 10 receives electrical energy provided by the programmer 11 through the induction coil. Specifically, the induction coil of the programmer 11 generates an alternating magnetic field through high-frequency alternating current. The induction coil of the neurostimulator 10 is in the alternating magnetic field. Based on the principle of electromagnetic induction, an induced current is generated in the induction coil to supply energy to the pulse generator. While sending a power supply signal, the programmer 11 can superimpose a modulation signal on the power supply signal. The demodulation circuit of the neurostimulator 10 extracts the modulation signal, that is, the data sent by the programmer, from the received power supply signal, and then hands the demodulated data to the microprocessor of the neurostimulator for processing to adjust the working parameters of the neurostimulator 10. Correspondingly, when the neurostimulator 10 needs to feedback information to the programmer, it uses load modulation technology to change the load of the induction coil thereon, thereby causing a change in the magnetic field to cause a change in the current in the induction coil of the programmer 11, and the programmer 11 demodulates the feedback information from the changing current through the demodulation circuit. The modulation / demodulation technology applied to the neurostimulator 10 can specifically be ASK / AM modulation technology. When using ASK / AM modulation technology for wireless communication, the modulation depth determines the amplitude variation range of the carrier signal. A larger amplitude depth means that the amplitude variation of the carrier signal is larger, resulting in more obvious voltage fluctuations at the receiving end of the rectifier circuit. For example, assuming that the carrier signal voltage is 5V and the modulation depth is 0.6, the modulated voltage range varies between 2V and 8V. If the modulation depth is increased to 0.8, the voltage range becomes 1V to 9V, with greater fluctuations. Due to the fluctuation of the power supply voltage, the current output by the neurostimulator will also fluctuate accordingly. This fluctuation will cause the amplitude of the stimulation pulse to change, thereby affecting the stimulation effect. For other modulation techniques, such as frequency modulation (FM) and phase modulation (PM), although the impact on voltage is not as great as that of AM modulation, voltage fluctuations are also introduced during the demodulation process of the neurostimulator 10, thereby affecting the stimulation effect. When the neurostimulator 10 needs to feedback information to the programmer, it uses load modulation technology to change the load of the induction coil thereon. The load change will affect the quality factor (Q value) of the coupling coil, and further affect the stability of the power supply voltage. Therefore, during the two-way communication between the neurostimulator 10 and the programmer 11, that is, whether the neurostimulator 10 sends data to the programmer 11 or the programmer 11 sends data to the neurostimulator 10, the electrical stimulation pulses output by the neurostimulator 10 will fluctuate during the communication process, thereby affecting the treatment effect.

[0031] As described in the above-mentioned embodiment, during the two-way communication between the neurostimulator 10 and the programmer 11, the voltage fluctuation of the induction coil caused by the modulation / demodulation signal during the communication process indirectly causes the electrical stimulation pulse output by the neurostimulator to fluctuate.

[0032] To solve the above problems, this manual proposes a new wireless communication solution, that is, to achieve two-way communication between the neurostimulator and the programmer only during the time period when the neurostimulator does not generate electrical stimulation pulses, thereby avoiding the negative impact of power supply voltage fluctuations caused by communication on the stability of electrical stimulation pulses.

[0033] Next, the embodiments of this specification are described in detail.

[0034] like Figure 2 As shown, Figure 2 This is a flowchart of a wireless communication method for a neurostimulator according to an exemplary embodiment of the present specification. The method can be applied to Figure 1 The program controller 11, the method comprises the following steps:

[0035] Step 201: upon receiving a pulse stop signal sent by the neurostimulator, determining a first available communication time period of the neurostimulator in a current electrical stimulation pulse cycle.

[0036] The electrical stimulation pulse cycle consists of two parts: pulse width and pulse interval. Among them, pulse width refers to the duration of continuous output of a single pulse, and pulse interval refers to the time interval between two consecutive electrical stimulation pulses. It can be generally understood that the pulse width is the duration of continuous output of the pulse within the electrical stimulation pulse cycle, and the pulse interval is the duration of stop output of the pulse within the electrical stimulation pulse cycle. The two together constitute the electrical stimulation pulse cycle. Figure 3 As shown, 0-5s is the time period of the first electrical stimulation pulse cycle, and 5-10s is the time period of the adjacent second electrical stimulation pulse cycle. If the neurostimulator continuously outputs electrical stimulation pulses within 5-8s, the pulse width is 3s, and stops outputting electrical stimulation pulses within 8-10s, then the pulse interval is 2s, and the second electrical stimulation pulse cycle is 3s+2s=5s. The composition of the first electrical stimulation pulse cycle is the same as that of the second electrical stimulation pulse cycle, which will not be repeated here. Of course, two adjacent electrical stimulation pulse cycles may be different. For example, the pulse width of the first electrical stimulation pulse cycle is 5s, while the pulse width of the second electrical stimulation pulse cycle is 6s.

[0037] In an embodiment shown, when the neurostimulator detects that the pulse generator starts to stop outputting electrical stimulation pulses, it can immediately generate a pulse stop signal and send it to the programmer to notify the programmer that the current neurostimulator starts to stop outputting electrical stimulation pulses and needs to prepare to send target data within the pulse stop output time period. Figure 3As shown, when the neurostimulator detects at the 8th second that the pulse generator begins to stop outputting electrical stimulation pulses within the current electrical stimulation pulse cycle, a pulse stop signal can be immediately generated and sent to the programmer. Since the neurostimulator cannot know when the programmer needs to send the target data, a pulse stop signal can be sent to the programmer at the moment of pulse stop output within each electrical stimulation pulse cycle, and the programmer decides whether to respond to the pulse stop signal and send the target data. If the programmer does not have target data to send, the pulse stop signal can be ignored. If the programmer has target data to send, it can respond to the pulse stop signal and prepare to send the target data. The pulse stop signal can be represented by a specific code type to distinguish it from other signals fed back by the neurostimulator, so that when the programmer receives the signal, it can recognize that the purpose of the signal is to notify the programmer that the current neurostimulator begins to stop outputting electrical stimulation pulses, and it needs to prepare to send target data within the pulse stop output time period.

[0038] When receiving the pulse stop signal sent by the neurostimulator, the programmer starts to determine the first available communication time period of the neurostimulator in the current electrical stimulation pulse cycle, wherein the neurostimulator does not generate electrical stimulation pulses in the first available communication time period.

[0039] In an illustrated embodiment, the method of determining the first available communication time period of the neurostimulator in the current electrical stimulation pulse cycle is as follows:

[0040] The programmer needs to obtain the electrical stimulation parameters of the current neurostimulator, which include the current electrical stimulation pulse period and pulse width. Optionally, the programmer can save a log record of each time the electrical stimulation parameters of the neurostimulator are set, and obtain the electrical stimulation parameters of the current neurostimulator by reading the log record. Optionally, the programmer can save a configuration file for each configuration of the electrical stimulation parameters of the neurostimulator, and obtain the electrical stimulation parameters of the current neurostimulator by reading the configuration file. This specification does not limit the way in which the programmer obtains the electrical stimulation parameters of the current neurostimulator.

[0041] By obtaining the electrical stimulation parameters of the current neurostimulator, the current electrical stimulation pulse cycle and pulse width can be determined. The duration of the pulse interval is the duration of the current electrical stimulation pulse cycle without outputting the electrical stimulation pulse after the pulse width is subtracted from the electrical stimulation pulse cycle. It should be considered that the neurostimulator sends a pulse stop signal to the programmer at the moment of pulse stop output, and the uplink communication time it takes to generate the pulse stop signal and send it to the programmer also needs to be taken into account. Then, in the current electrical stimulation pulse cycle, the maximum duration that the neurostimulator can communicate with the programmer during the pulse stop output time period is the remaining duration after the current electrical stimulation pulse cycle is subtracted from the pulse width and the uplink communication time. The time period from the current moment to the moment after the remaining duration is determined as the first available communication time period.

[0042] For example, Figure 3 As shown, within the 5-10s electrical stimulation pulse cycle, the neurostimulator detects at the 8th second that the pulse generator stops outputting electrical stimulation pulses, and sends a pulse stop signal to the programmer at the moment the pulse stops outputting. The programmer receives the pulse stop signal at the 9th second, and the uplink communication time for the neurostimulator to send the pulse stop signal is 1 second. The time period between the 9th and 10th seconds is the first available communication time period. In other words, the programmer can communicate with the neurostimulator within the 9th and 10th seconds.

[0043] It is easy for those skilled in the art to understand that the calculation method of the first available communication time period for other electrical stimulation cycles is the same as that in the above embodiment, and will not be described in detail in this specification.

[0044] Next, this manual introduces how to determine the time taken for uplink communication:

[0045] In one embodiment, when the neurostimulator generates a pulse stop signal, it can add a start timestamp of the pulse stop signal to the data packet of the pulse stop signal, and then send the pulse stop signal including the start timestamp to the programmer. After receiving the pulse stop signal, the programmer records the end timestamp of the received pulse stop signal, and extracts the start timestamp from the data packet of the pulse stop signal, and uses the difference between the end timestamp and the start timestamp as the uplink communication time.

[0046] In another embodiment, without considering the interference of external environmental factors, the uplink communication time of the neurostimulator for each pulse suspension signal is almost fixed. Therefore, after the uplink communication time is determined for the first time in the manner of the previous embodiment, the uplink communication time can be saved on the programmer, and the programmer can directly use the saved uplink communication time in subsequent operations, avoiding the need to recalculate the uplink communication time in the manner of the previous embodiment each time, thereby saving computing resources.

[0047] Step 202: Determine first target data that needs to be sent within the first available communication time period, and send the first target data to the neural stimulator within the first available communication time period.

[0048] In this embodiment, this scheme only communicates during the first available communication time period when the neurostimulator does not generate electrical stimulation pulses, and does not perform any communication during the time period when the neurostimulator outputs electrical stimulation pulses, thereby effectively avoiding the negative impact that power supply voltage fluctuations caused by communication may have on the stability of electrical stimulation pulses.

[0049] Regarding the meaning of the first target data, there are two cases in this solution:

[0050] The first case is that the first target data is complete data to be sent, and the amount of the data to be sent is less than or equal to the maximum amount of data that can be communicated with the neurostimulator within the first available communication time period. Then the complete data to be sent can be sent to the neurostimulator within the first available communication time period.

[0051] The second situation is that the amount of data to be sent is greater than the maximum amount of data that can be used to complete communication with the neurostimulator in the first available communication time period, that is, the complete data to be sent cannot be sent to the neurostimulator in the first available communication time period. At this time, the maximum amount of data that the programmer can complete communication with the neurostimulator in the first available communication time period can be determined, and then the part of the data to be sent with the maximum amount of data is sent to the neurostimulator as the first target data to ensure that the target data can be sent to the neurostimulator in the first available communication time period. For the remaining data that has not been sent in the current data to be sent, it can continue to be sent in the first available communication time period of the next electrical stimulation pulse cycle until all the data to be sent are sent. For example, it is assumed that the maximum amount of data that can be used to complete communication with the neurostimulator in the first available communication time period of each electrical stimulation pulse cycle is 30 bytes. At this time, if the amount of data to be sent is 50 bytes, in the current electrical stimulation pulse cycle, the 30-byte part of the data to be sent can be sent to the neurostimulator in accordance with the preset sending order; wait until the next electrical stimulation pulse cycle, and then send the remaining 20 bytes of data to the neurostimulator. Correspondingly, after receiving all the messages (of the data to be sent), the neurostimulator can parse the messages and recover the complete data, that is, the complete data to be sent (of course, the data has been sent at this time).

[0052] It should be noted that the first target data refers to the data that the program controller decides to send within the first available communication time period. When the amount of data to be sent is less than or equal to the maximum communication data amount, the first target data is the complete data to be sent. When the amount of data to be sent is greater than the maximum communication data amount, the first target data is the partial data of the data to be sent that meets the maximum communication data amount.

[0053] In one embodiment, in determining the maximum amount of data that can be communicated with the neurostimulator within the first available communication time period, the transmission time of a single code element transmitted by the programmer to the neurostimulator can be determined. For example, based on the theoretical transmission rate (such as baud rate) between the programmer and the neurostimulator, the transmission time of a single code element can be 1 second divided by the theoretical transmission rate. Without considering environmental interference (such as electromagnetic interference) and other factors (retransmission mechanism, protocol overhead, etc.), the transmission time of a single code element can be roughly calculated, so that the ratio of the duration of the first available communication time period to the transmission time is rounded off and determined as the maximum amount of data. The transmission time of transmitting a single code element only needs to be calculated once.

[0054] like Figure 4 As shown, Figure 4 is a flowchart of another wireless communication method for a neurostimulator according to an exemplary embodiment of the present specification. The method can be applied to Figure 1 The neural stimulator 10, the method comprises the following steps:

[0055] Step 401: Determine a second available communication time period of the neurostimulator in a current electrical stimulation pulse cycle; wherein the neurostimulator does not generate an electrical stimulation pulse in the second available communication time period.

[0056] Step 402: Determine second target data that needs to be sent within the second available communication time period, and send the second target data to the program controller within the second available communication time period.

[0057] The neurostimulator can monitor and record the patient's physiological parameters in real time, such as electromyography signals, heart rate, and blood oxygen level data, and then periodically and actively feed this data back to the programmer, or send this data to the programmer in response to the programmer's read instructions. The neurostimulator can also detect the current working status of the device in real time and actively report device failure data, such as electrode detachment problems, to the programmer.

[0058] Since the electrical stimulation pulses will also fluctuate when the neurostimulator sends data to the programmer, in this solution, the negative impact of fluctuations in the receiving voltage of the induction coil caused by communication on the stability of the electrical stimulation pulses is avoided by controlling the neurostimulator to communicate with the programmer during the pulse stop output period.

[0059] Specifically, the neurostimulator can obtain the current working electrical stimulation parameters, which include the electrical stimulation pulse period and pulse width. By calculating the electrical stimulation pulse period minus the pulse width, the remaining time can be obtained, and the remaining time is the time during which the electrical stimulation pulse is stopped from being output within the electrical stimulation pulse period. Of course, the programmer can also calculate the remaining time based on the two stored electrical stimulation parameters of the electrical stimulation pulse period and pulse width and send it to the neurostimulator.

[0060] After determining the remaining duration, the second available communication time period can be the time period between the pulse termination moment and the moment after the remaining duration as the second available communication time period, and the pulse termination moment is the moment when the neurostimulator stops generating electrical stimulation pulses in the current electrical stimulation pulse cycle.

[0061] For example, Figure 5 As shown, the time period of the current electrical stimulation pulse cycle of the neurostimulator is [5th s, 10th s], the remaining time is pulse period (5s) - pulse width (2s) = remaining time (3s), and the pulse termination time is the 7th second. The second available communication time period is the time period between the pulse termination time and the remaining time (7th-10th s).

[0062] When the electrical stimulation parameters do not change, the value of the remaining time is unchanged. Therefore, when the electrical stimulation parameters do not change, the neurostimulator does not need to repeatedly calculate the remaining time in each electrical stimulation pulse cycle.

[0063] Regarding the meaning of the second target data, there are two cases in this solution:

[0064] The first case is that the second target data is complete data to be sent, and the data volume of the data to be sent is less than or equal to the maximum data volume that can be communicated with the program controller within the second available communication time period. Then the complete data to be sent can be sent to the program controller within the second available communication time period.

[0065] The second situation is that the amount of data to be sent is greater than the maximum amount of data that can be used to complete communication with the programmer in the second available communication time period, that is, the complete data to be sent cannot be sent to the programmer in the second available communication time period. At this time, the maximum amount of data that the neurostimulator can complete communication with the programmer in the second available communication time period can be determined, and then the part of the data to be sent with the maximum amount of data is sent to the programmer as the second target data to ensure that the target data can be sent to the programmer in the second available communication time period. For the remaining data that has not been sent in the current data to be sent, it can continue to be sent in the second available communication time period of the next electrical stimulation pulse cycle until all the data to be sent are sent. For example, if the amount of data to be sent is 50 bytes, and the maximum amount of data that can be used to complete communication with the programmer in the second available communication time period of the current electrical stimulation pulse cycle is 30 bytes, then 30 bytes of partial data can be cut from the data to be sent and sent to the programmer first; if the maximum amount of data that can be used to complete communication with the programmer in the second available communication time period of the next electrical stimulation pulse cycle is still 30 bytes, then the remaining 20 bytes of data can be sent to the programmer. After receiving all partial messages of the data to be sent, the program controller restores them to complete data.

[0066] It should be noted that the second target data refers to the data that the neurostimulator decides to send during the second available communication time period. When the amount of data to be sent is less than or equal to the maximum communication data amount, the second target data is the complete data to be sent. When the amount of data to be sent is greater than the maximum communication data amount, the second target data is the partial data of the data to be sent that meets the maximum communication data amount.

[0067] Among them, in determining the maximum amount of data that can be communicated with the programmer within the second available communication time period, the transmission time of a single code element to the programmer can be determined. For example, based on the theoretical transmission rate (such as baud rate) between the programmer and the neural stimulator, the transmission time of a single code element is 1 second divided by the theoretical transmission rate. Without considering environmental interference (such as electromagnetic interference) and other factors (retransmission mechanism, protocol overhead, etc.), the transmission time of a single code element can be roughly calculated, so that the ratio of the duration of the second available communication time period to the transmission time is rounded off and determined as the maximum data amount. The transmission time of transmitting a single code element only needs to be calculated once.

[0068] Corresponding to the embodiments of the aforementioned method, this specification also provides embodiments of a device and a terminal to which it is applied.

[0069] like Figure 6 As shown, Figure 6It is a structural diagram of an electronic device shown in this specification according to an exemplary embodiment. At the hardware level, the device includes a processor 602, an internal bus 604, a network interface 606, a memory 608 and a non-volatile memory 610, and of course may also include hardware required for other services. One or more embodiments of this specification can be implemented based on software, such as the processor 602 reading the corresponding computer program from the non-volatile memory 610 into the memory 608 and then running it. Of course, in addition to the software implementation, one or more embodiments of this specification do not exclude other implementations, such as logic devices or a combination of software and hardware, etc., that is to say, the execution subject of the following processing flow is not limited to each logic module, but can also be hardware or logic devices.

[0070] like Figure 7 As shown, Figure 7 This is a wireless communication device for a neurostimulator according to an exemplary embodiment of the present specification. The device 700 can be applied to Figure 6 In the electronic device shown in the figure, the technical solution of this specification is implemented. The device 700 includes:

[0071] A first available communication time period determination module 702 is used to determine a first available communication time period of the neurostimulator within a current electrical stimulation pulse cycle upon receiving a pulse stop signal sent by the neurostimulator; wherein the neurostimulator does not generate an electrical stimulation pulse within the first available communication time period;

[0072] The first target data sending module 704 is used to determine the first target data that needs to be sent within the first available communication time period, and send the first target data to the neural stimulator within the first available communication time period.

[0073] The first available communication time period determination module 702 is specifically used to obtain the electrical stimulation parameters of the current neurostimulator, the electrical stimulation parameters including the electrical stimulation pulse period and pulse width; and determine the uplink communication time of the pulse termination signal; calculate the remaining duration after deducting the pulse width and the uplink communication time from the electrical stimulation pulse period, and determine the time period between the current moment and the moment after the remaining duration as the first available communication time period.

[0074] The first available communication time period determination module 702 is specifically used to determine the start timestamp of generating the pulse stop signal and the end timestamp of receiving the pulse stop signal, and use the difference between the end timestamp and the start timestamp as the uplink communication time.

[0075] The first target data sending module 704 is specifically used to determine the maximum amount of data that can complete communication with the neurostimulator within the first available communication time period; if the amount of data to be sent is greater than the maximum amount of data, then the part of the data to be sent that is the maximum amount of data is sent to the neurostimulator as the first target data.

[0076] The first target data sending module 704 is specifically used to determine the transmission duration of a single code element transmitted from the programmer to the neural stimulator, and the maximum data volume is the ratio of the duration of the first available communication time period to the transmission duration.

[0077] like Figure 8 As shown, Figure 8 This is another wireless communication device for a neurostimulator according to an exemplary embodiment of the present specification. The device 800 can be applied to Figure 6 In the electronic device shown in the figure, the technical solution of this specification is implemented. The device 800 includes:

[0078] A second available communication time period determination module 802 is used to determine a second available communication time period of the neurostimulator within a current electrical stimulation pulse cycle; wherein the neurostimulator does not generate an electrical stimulation pulse within the second available communication time period;

[0079] The second target data sending module 804 is used to determine the second target data that needs to be sent within the second available communication time period, and send the second target data to the program controller within the second available communication time period.

[0080] The second available communication time period determination module 802 is specifically used to obtain the electrical stimulation parameters of the current neurostimulator, the electrical stimulation parameters including the electrical stimulation pulse period and pulse width; and calculate the remaining duration after deducting the pulse width from the electrical stimulation pulse period; determine the time period between the pulse termination moment and the moment after the remaining duration as the second available communication time period, the pulse termination moment being the moment when the neurostimulator stops generating electrical stimulation pulses within the current electrical stimulation pulse period.

[0081] The implementation process of the functions and effects of each module in the above-mentioned device is specifically described in the implementation process of the corresponding steps in the above-mentioned method, which will not be repeated here.

[0082] For the device embodiment, since it basically corresponds to the method embodiment, the relevant parts can refer to the partial description of the method embodiment. The device embodiment described above is only schematic, wherein the modules described as separate components may or may not be physically separated, and the components displayed as modules may or may not be physical modules, that is, they may be located in one place, or they may be distributed on multiple network modules. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this specification. Ordinary technicians in this field can understand and implement it without paying creative work.

[0083] The present specification also provides a computer-readable storage medium having a computer program stored thereon, and when the program is executed by a processor, the steps of any of the aforementioned wireless communication methods for a neurostimulator provided in the present application are implemented.

[0084] Specifically, computer-readable media suitable for storing computer program instructions and data include all forms of non-volatile memory, media and memory devices, including, for example, semiconductor memory devices (such as EPROM, EEPROM and flash memory devices), magnetic disks (such as internal hard disks or removable disks), magneto-optical disks, and CD ROM and DVD-ROM disks.

Claims

1. A wireless communication method for a neurostimulator, characterized in that: The method is applied to a programmer controlling a neurostimulator, wherein the neurostimulator is provided with an induction coil, and the induction coil is used for wireless communication and wireless power supply between the neurostimulator and the programmer at the same time, and the method comprises: Upon receiving a pulse stop signal sent by the neurostimulator, determining a first available communication time period of the neurostimulator within a current electrical stimulation pulse cycle; wherein the neurostimulator does not generate an electrical stimulation pulse within the first available communication time period; Determine first target data that needs to be sent within the first available communication time period, and send the first target data to the neural stimulator within the first available communication time period.

2. The method according to claim 1, characterized in that The determining of a first available communication time period of the neural stimulator in a current electrical stimulation pulse cycle comprises: Acquiring electrical stimulation parameters of the current neurostimulator, the electrical stimulation parameters including electrical stimulation pulse period and pulse width; and determining the uplink communication time of the pulse stop signal; The remaining duration after subtracting the pulse width and the uplink communication time from the electrical stimulation pulse cycle is calculated, and the time period between the current moment and the moment after the remaining duration is determined as the first available communication time period.

3. The method according to claim 2, characterized in that The determining of the uplink communication time of the pulse stop signal includes: Determine a start timestamp of generating the pulse stop signal and an end timestamp of receiving the pulse stop signal, and use the difference between the end timestamp and the start timestamp as the uplink communication time.

4. The method according to claim 1, characterized in that: The determining the first target data that needs to be sent within the first available communication time period, and sending the first target data to the neural stimulator within the first available communication time period, comprises: determining a maximum amount of data that can be communicated with the neurostimulator within the first available communication time period; If the data amount of the data to be sent is greater than the maximum data amount, a portion of the data to be sent having a size of the maximum data amount is sent to the neural stimulator as the first target data.

5. The method according to claim 4, characterized in that The determining of the maximum amount of data that can be communicated with the neural stimulator within the first available communication time period includes: The transmission duration of a single code element transmitted by the programmer to the neural stimulator is determined, and the maximum data amount is the ratio of the duration of the first available communication time period to the transmission duration.

6. A wireless communication method for a neurostimulator, characterized in that: The method is applied to a neurostimulator, wherein the neurostimulator is provided with an induction coil, and the induction coil is used for wireless communication and wireless power supply between the neurostimulator and a programmer, and the method comprises: Determining a second available communication time period of the neural stimulator within the current electrical stimulation pulse cycle; wherein the neural stimulator does not generate an electrical stimulation pulse within the second available communication time period; Determine second target data that needs to be sent within the second available communication time period, and send the second target data to the program controller within the second available communication time period.

7. The method according to claim 6, characterized in that The determining of a second available communication time period of the neural stimulator within the current electrical stimulation pulse cycle comprises: Acquire electrical stimulation parameters of the current neural stimulator, the electrical stimulation parameters including electrical stimulation pulse period and pulse width; and calculate the remaining time after subtracting the pulse width from the electrical stimulation pulse period; The time period between the pulse termination moment and the moment after the remaining time is determined as the second available communication time period, and the pulse termination moment is the moment when the neural stimulator stops generating the electrical stimulation pulse in the current electrical stimulation pulse cycle.

8. A wireless communication device for a neurostimulator, characterized in that: The device is applied to a programmer controlling a neurostimulator, wherein the neurostimulator is provided with an induction coil, and the induction coil is used for wireless communication and wireless power supply between the neurostimulator and the programmer at the same time. The device comprises: A first available communication time period determination module, configured to determine a first available communication time period of the neurostimulator within a current electrical stimulation pulse cycle upon receiving a pulse stop signal sent by the neurostimulator; wherein the neurostimulator does not generate an electrical stimulation pulse within the first available communication time period; The first target data sending module is used to determine the first target data that needs to be sent within the first available communication time period, and send the first target data to the neural stimulator within the first available communication time period.

9. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the program, the steps of the method according to any one of claims 1 to 7 are implemented.

10. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, the steps of the method according to any one of claims 1 to 7 are implemented.