[go: up one dir, main page]

CN116712670B - Electronic treatment system and electronic device, synchronization method and storage medium contained therein - Google Patents

Electronic treatment system and electronic device, synchronization method and storage medium contained therein Download PDF

Info

Publication number
CN116712670B
CN116712670B CN202310747969.4A CN202310747969A CN116712670B CN 116712670 B CN116712670 B CN 116712670B CN 202310747969 A CN202310747969 A CN 202310747969A CN 116712670 B CN116712670 B CN 116712670B
Authority
CN
China
Prior art keywords
electronic device
time
electronic
vivo
stimulation
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.)
Active
Application number
CN202310747969.4A
Other languages
Chinese (zh)
Other versions
CN116712670A (en
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.)
Borui Kang Technology (Shanghai) Co.,Ltd.
Original Assignee
Neuracle Technology Changzhou 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 Neuracle Technology Changzhou Co ltd filed Critical Neuracle Technology Changzhou Co ltd
Priority to CN202310747969.4A priority Critical patent/CN116712670B/en
Publication of CN116712670A publication Critical patent/CN116712670A/en
Application granted granted Critical
Publication of CN116712670B publication Critical patent/CN116712670B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

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/3605Implantable neurostimulators for stimulating central or peripheral nerve system
    • A61N1/36128Control systems
    • A61N1/36135Control systems using physiological parameters
    • AHUMAN NECESSITIES
    • A61MEDICAL OR VETERINARY SCIENCE; HYGIENE
    • A61MDEVICES FOR INTRODUCING MEDIA INTO, OR ONTO, THE BODY; DEVICES FOR TRANSDUCING BODY MEDIA OR FOR TAKING MEDIA FROM THE BODY; DEVICES FOR PRODUCING OR ENDING SLEEP OR STUPOR
    • A61M21/00Other devices or methods to cause a change in the state of consciousness; Devices for producing or ending sleep by mechanical, optical, or acoustical means, e.g. for hypnosis
    • 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/3605Implantable neurostimulators for stimulating central or peripheral nerve system
    • A61N1/36128Control systems
    • A61N1/36146Control systems specified by the stimulation parameters
    • A61N1/36167Timing, e.g. stimulation onset
    • AHUMAN NECESSITIES
    • A61MEDICAL OR VETERINARY SCIENCE; HYGIENE
    • A61MDEVICES FOR INTRODUCING MEDIA INTO, OR ONTO, THE BODY; DEVICES FOR TRANSDUCING BODY MEDIA OR FOR TAKING MEDIA FROM THE BODY; DEVICES FOR PRODUCING OR ENDING SLEEP OR STUPOR
    • A61M21/00Other devices or methods to cause a change in the state of consciousness; Devices for producing or ending sleep by mechanical, optical, or acoustical means, e.g. for hypnosis
    • A61M2021/0005Other devices or methods to cause a change in the state of consciousness; Devices for producing or ending sleep by mechanical, optical, or acoustical means, e.g. for hypnosis by the use of a particular sense, or stimulus
    • A61M2021/0022Other devices or methods to cause a change in the state of consciousness; Devices for producing or ending sleep by mechanical, optical, or acoustical means, e.g. for hypnosis by the use of a particular sense, or stimulus by the tactile sense, e.g. vibrations
    • AHUMAN NECESSITIES
    • A61MEDICAL OR VETERINARY SCIENCE; HYGIENE
    • A61MDEVICES FOR INTRODUCING MEDIA INTO, OR ONTO, THE BODY; DEVICES FOR TRANSDUCING BODY MEDIA OR FOR TAKING MEDIA FROM THE BODY; DEVICES FOR PRODUCING OR ENDING SLEEP OR STUPOR
    • A61M21/00Other devices or methods to cause a change in the state of consciousness; Devices for producing or ending sleep by mechanical, optical, or acoustical means, e.g. for hypnosis
    • A61M2021/0005Other devices or methods to cause a change in the state of consciousness; Devices for producing or ending sleep by mechanical, optical, or acoustical means, e.g. for hypnosis by the use of a particular sense, or stimulus
    • A61M2021/0027Other devices or methods to cause a change in the state of consciousness; Devices for producing or ending sleep by mechanical, optical, or acoustical means, e.g. for hypnosis by the use of a particular sense, or stimulus by the hearing sense
    • AHUMAN NECESSITIES
    • A61MEDICAL OR VETERINARY SCIENCE; HYGIENE
    • A61MDEVICES FOR INTRODUCING MEDIA INTO, OR ONTO, THE BODY; DEVICES FOR TRANSDUCING BODY MEDIA OR FOR TAKING MEDIA FROM THE BODY; DEVICES FOR PRODUCING OR ENDING SLEEP OR STUPOR
    • A61M21/00Other devices or methods to cause a change in the state of consciousness; Devices for producing or ending sleep by mechanical, optical, or acoustical means, e.g. for hypnosis
    • A61M2021/0005Other devices or methods to cause a change in the state of consciousness; Devices for producing or ending sleep by mechanical, optical, or acoustical means, e.g. for hypnosis by the use of a particular sense, or stimulus
    • A61M2021/0044Other devices or methods to cause a change in the state of consciousness; Devices for producing or ending sleep by mechanical, optical, or acoustical means, e.g. for hypnosis by the use of a particular sense, or stimulus by the sight sense
    • AHUMAN NECESSITIES
    • A61MEDICAL OR VETERINARY SCIENCE; HYGIENE
    • A61MDEVICES FOR INTRODUCING MEDIA INTO, OR ONTO, THE BODY; DEVICES FOR TRANSDUCING BODY MEDIA OR FOR TAKING MEDIA FROM THE BODY; DEVICES FOR PRODUCING OR ENDING SLEEP OR STUPOR
    • A61M2205/00General characteristics of the apparatus
    • A61M2205/35Communication
    • A61M2205/3507Communication with implanted devices, e.g. external control
    • A61M2205/3523Communication with implanted devices, e.g. external control using telemetric means
    • AHUMAN NECESSITIES
    • A61MEDICAL OR VETERINARY SCIENCE; HYGIENE
    • A61MDEVICES FOR INTRODUCING MEDIA INTO, OR ONTO, THE BODY; DEVICES FOR TRANSDUCING BODY MEDIA OR FOR TAKING MEDIA FROM THE BODY; DEVICES FOR PRODUCING OR ENDING SLEEP OR STUPOR
    • A61M2205/00General characteristics of the apparatus
    • A61M2205/35Communication
    • A61M2205/3546Range
    • A61M2205/3569Range sublocal, e.g. between console and disposable

Landscapes

  • Health & Medical Sciences (AREA)
  • Life Sciences & Earth Sciences (AREA)
  • Animal Behavior & Ethology (AREA)
  • Veterinary Medicine (AREA)
  • Public Health (AREA)
  • General Health & Medical Sciences (AREA)
  • Engineering & Computer Science (AREA)
  • Biomedical Technology (AREA)
  • Neurosurgery (AREA)
  • Radiology & Medical Imaging (AREA)
  • Nuclear Medicine, Radiotherapy & Molecular Imaging (AREA)
  • Neurology (AREA)
  • Physiology (AREA)
  • Biophysics (AREA)
  • Physics & Mathematics (AREA)
  • Acoustics & Sound (AREA)
  • Psychology (AREA)
  • Anesthesiology (AREA)
  • Heart & Thoracic Surgery (AREA)
  • Hematology (AREA)
  • Electrotherapy Devices (AREA)

Abstract

The invention provides an electronic therapy system, an electronic device, a synchronization method and a storage medium contained in the electronic therapy system, and relates to the technical field of electronic medical treatment. The electronic therapy system includes an external electronic device and at least one internal electronic device, each of the at least one internal electronic device being electrically connected to at least one electrode disposed within a patient, and the synchronization method includes: acquiring the time stamp offset of each electronic device; the time synchronization of the electronic devices is realized according to the respective time stamp offset of the electronic devices. The time stamp offset of different electronic devices is adopted in the time synchronization process, so that errors caused by time stamp differences in the traditional synchronization mode can be solved, the time synchronization precision can be improved, the requirement of medical system data processing on time precision can be met, the accuracy of clinical judgment reference can be ensured, and the collaborative work of acquisition, stimulation, drug administration and the like of each electronic device can be realized.

Description

电子治疗系统及其包含的电子装置、同步方法、存储介质Electronic treatment system and electronic device, synchronization method and storage medium contained therein

本申请是2020年1月7日申请的申请号为202010014295.3的中国发明专利申请的分案申请。This application is a divisional application of the Chinese invention patent application with application number 202010014295.3 filed on January 7, 2020.

技术领域Technical Field

本发明涉及一种电子医疗技术领域,具体而言,涉及一种电子治疗系统及其包含的电子装置、各电子装置之间的时间同步方法、以及计算机可读存储介质。The present invention relates to the field of electronic medical technology, and in particular to an electronic treatment system and electronic devices contained therein, a time synchronization method between the electronic devices, and a computer-readable storage medium.

背景技术Background technique

植入人体的各类医疗装置,埋入在人体的各个部位的骨骼或腔体组织内,其包括能够采集人体对应部位的生物电的采集器和能够将具有适当强度刺激施加到人体各部位的刺激器。Various types of medical devices implanted in the human body are buried in the bones or cavity tissues of various parts of the human body. They include collectors that can collect bioelectricity from corresponding parts of the human body and stimulators that can apply stimulation of appropriate intensity to various parts of the human body.

近年来植入体内的电子系统的复杂性与日俱增,多个体内植入电子装置或体内植入电子装置与体外电子装置的协同工作的要求也愈来愈高。In recent years, the complexity of electronic systems implanted in the body has been increasing day by day, and the requirements for the coordinated operation of multiple implanted electronic devices or implanted electronic devices in the body and external electronic devices have become increasingly higher.

与体外电子装置不同,体内植入电子装置一般使用无线方式进行控制及数据传输。传统的体内植入电子装置往往是独立工作,每个体内植入电子装置的控制信号或采集信号与其他体内植入电子装置或体外电子装置的无线信号无法进行精准同步。而为了提高病症的诊断准确率和工作效率,医生往往需要更精准地掌握病人不同治疗部位在同一时间段(点)的活动状态及相应的生理电信号变化,这就需要同步对照分析多个电子装置的协同工作数据。Unlike external electronic devices, implantable electronic devices in the body generally use wireless methods for control and data transmission. Traditional implantable electronic devices in the body often work independently, and the control signal or acquisition signal of each implantable electronic device in the body cannot be accurately synchronized with the wireless signals of other implantable electronic devices in the body or external electronic devices. In order to improve the diagnostic accuracy and work efficiency of diseases, doctors often need to more accurately grasp the activity status of different treatment parts of the patient in the same time period (point) and the corresponding physiological electrical signal changes, which requires synchronous comparison and analysis of the collaborative work data of multiple electronic devices.

这种场景下,需要同步地对多部位进行采集、刺激、给药。比如对生理电信号的判断,需要基于不同部位的信号一起作为基础;又如刺激、给药也需要基于整体生理状况做一个评估和处理。In this scenario, it is necessary to collect, stimulate, and administer drugs to multiple parts simultaneously. For example, the judgment of physiological electrical signals needs to be based on the signals from different parts; stimulation and drug administration also need to be evaluated and processed based on the overall physiological condition.

然而,传统的方式是在多个电子装置启动时分别记录或清除电子装置的时间戳,然后根据时间戳来进行数据同步,但由于不同电子装置的工作时钟/频率等一系列电路特性差异,会导致多个设备在协同工作时信号的时间戳差异逐渐增大,导致时间同步精度下降,无法满足上述场景下对时间同步的精度要求。However, the traditional method is to record or clear the timestamps of multiple electronic devices separately when they are started, and then synchronize data based on the timestamps. However, due to differences in a series of circuit characteristics such as the working clock/frequency of different electronic devices, the timestamp differences of signals of multiple devices will gradually increase when working together, resulting in a decrease in the accuracy of time synchronization, which cannot meet the accuracy requirements of time synchronization in the above scenarios.

因此,本领域亟需一种时间同步方法来实现电子治疗系统中不同电子装置的时间同步。Therefore, there is an urgent need in the art for a time synchronization method to achieve time synchronization of different electronic devices in an electronic treatment system.

发明内容Summary of the invention

为了解决上述现有技术存在的上述技术问题,本发明实施方式提供了一种电子治疗系统及其包含的电子装置、各电子装置之间的时间同步方法,实现多台电子装置的同步,实现各个电子装置协同采集、刺激、给药等工作。In order to solve the above-mentioned technical problems existing in the above-mentioned prior art, the embodiment of the present invention provides an electronic treatment system and the electronic devices contained therein, and a time synchronization method between the electronic devices, so as to realize the synchronization of multiple electronic devices and realize the coordinated collection, stimulation, drug administration and other tasks of each electronic device.

根据本发明的第一方面,本发明实施方式提供了一种电子治疗系统,其包括:According to a first aspect of the present invention, an embodiment of the present invention provides an electronic treatment system, comprising:

至少一个体内电子装置,其适于布置在患者的体内,所述至少一个体内电子装置中的每一个与布置于患者体内的至少一个电极电连接,通过所述电极采集患者的生理电信号的数据或者向所述患者发送刺激信号;At least one in-vivo electronic device, which is suitable for being arranged in the body of a patient, each of the at least one in-vivo electronic device is electrically connected to at least one electrode arranged in the body of the patient, and collects data of physiological electrical signals of the patient or sends stimulation signals to the patient through the electrode;

体外电子装置,其适于布置在患者的体外,与所述至少一个体内电子装置无线连接;以及an external electronic device adapted to be disposed outside the patient's body and wirelessly connected to the at least one internal electronic device; and

主控装置,其适于布置在患者的体外并与所述体外电子装置有线或无线连接,用于控制及处理所述体内电子装置及体外电子装置的数据;A main control device, which is suitable for being arranged outside the patient's body and connected to the external electronic device by wire or wirelessly, and is used to control and process data of the internal electronic device and the external electronic device;

其中,所述主控装置控制及处理所述体内电子装置及体外电子装置的数据包括:根据所述至少一个体内电子装置和体外电子装置中各个电子装置的时间戳偏移量来实现所述各个电子装置的时间同步。Among them, the main control device controls and processes the data of the internal electronic device and the external electronic device, including: realizing time synchronization of the various electronic devices according to the timestamp offset of each electronic device in the at least one internal electronic device and the external electronic device.

在本发明的一种实施方式中,定时根据所述至少一个体内电子装置和体外电子装置中各个电子装置的时间戳偏移量来实现所述各个电子装置的时间同步。In one embodiment of the present invention, the timing is based on the time stamp offset of each electronic device in the at least one in-vivo electronic device and the in-vitro electronic device to achieve time synchronization of the respective electronic devices.

在本发明的一种实施方式中,所述主控装置根据所述至少一个体内电子装置和体外电子装置中各个电子装置的时间戳偏移量来实现所述各个电子装置的时间同步包括:In one embodiment of the present invention, the main control device realizes time synchronization of each electronic device according to the timestamp offset of each electronic device in the at least one in-vivo electronic device and the in-vitro electronic device, including:

选取所述各个电子装置中任意一个电子装置的时间轴作为基线时间;Selecting a time axis of any one of the electronic devices as a baseline time;

以所述基线时间为基准加上所述各个电子装置中其他电子装置各自的时间戳偏移量与所述基线时间对应的电子装置的时间戳偏移量之差(即其他电子装置相对于作为基线的电子装置的时间偏移量)得到所述其他电子装置的采集数据或发送刺激的实际时间。Taking the baseline time as the reference and adding the difference between the timestamp offset of each other electronic device in the electronic devices and the timestamp offset of the electronic device corresponding to the baseline time (i.e. the time offset of other electronic devices relative to the electronic device serving as the baseline), the actual time of collecting data or sending stimulation by the other electronic devices is obtained.

在本发明的另一种实施方式中,所述主控装置根据所述至少一个体内电子装置和体外电子装置中各个电子装置的时间戳偏移量来实现所述各个电子装置的时间同步包括:In another embodiment of the present invention, the main control device realizes time synchronization of each electronic device according to the timestamp offset of each electronic device in the at least one in-vivo electronic device and the in-vitro electronic device, including:

所述主控装置向所述各个电子装置发出同步信号;The main control device sends a synchronization signal to each of the electronic devices;

所述各个电子装置在收到所述同步信号之后清零自身的时间戳偏移量,所述清零后的时间戳偏移量开始随运行时间同步自增;Each electronic device clears its own timestamp offset after receiving the synchronization signal, and the timestamp offset after clearing starts to increase synchronously with the running time;

所述主控装置接收所述各个电子装置的时间戳偏移量;The main control device receives the timestamp offset of each electronic device;

所述主控装置以所述各个电子装置中的任意一个电子装置的时间轴为时间基线,按照各体内电子装置各自的时间戳偏移量对齐采集数据的时间或发送刺激的时间。The main control device uses the time axis of any one of the electronic devices as a time baseline, and aligns the time of collecting data or sending stimulation according to the respective timestamp offsets of the electronic devices in the body.

其中,所述主控装置可以按照预定时间间隔向所述各个电子装置发出同步信号。可选地,所述预定时间间隔可以为10秒至200秒。The main control device may send a synchronization signal to each electronic device at a predetermined time interval. Optionally, the predetermined time interval may be 10 seconds to 200 seconds.

在本发明的其他实施方式中,所述主控装置控制及处理所述体内电子装置及体外电子装置的数据还可以包括:将时间同步后的采集数据进行存储和/或展示。In other embodiments of the present invention, the main control device controlling and processing the data of the internal electronic device and the external electronic device may also include: storing and/or displaying the time-synchronized collected data.

在本发明的一些实施方式中,所述主控装置控制及处理所述体内电子装置及体外电子装置的数据还包括:In some embodiments of the present invention, the main control device controls and processes data of the internal electronic device and the external electronic device, and further includes:

根据所述采集数据生成刺激命令或选择预定义的刺激命令;generating a stimulation command or selecting a predefined stimulation command according to the collected data;

向所述至少一个体内电子装置和体外电子装置中一个或多个发送所述刺激命令。The stimulation command is sent to one or more of the at least one in vivo electronic device and the in vitro electronic device.

其中,收到所述刺激命令的体内电子装置可以根据所述刺激命令生成刺激信号,并将所述刺激信号发送给相应的电极。可选地或附加地,收到所述刺激命令的体外电子装置可以按照同步后的时间向所述患者发送体外刺激。其中,所述体外刺激可以包括听觉刺激、视觉刺激、触觉刺激等。Wherein, the in-vivo electronic device that receives the stimulation command can generate a stimulation signal according to the stimulation command, and send the stimulation signal to the corresponding electrode. Optionally or additionally, the in-vivo electronic device that receives the stimulation command can send an in-vitro stimulation to the patient at a synchronized time. Wherein, the in-vitro stimulation can include auditory stimulation, visual stimulation, tactile stimulation, etc.

在本发明的可选实施方式中,所述主控装置和所述体外电子装置可以集成在单个设备上。换句话说,可以通过单个计算设备来统一执行所述主控装置和所述体外电子装置的上述处理。In an optional embodiment of the present invention, the main control device and the external electronic device can be integrated into a single device. In other words, the above-mentioned processing of the main control device and the external electronic device can be uniformly performed by a single computing device.

根据本发明的第二方面,本发明的实施方式提供了一种在电子治疗系统中使用的控制装置,其包括:According to a second aspect of the present invention, an embodiment of the present invention provides a control device for use in an electronic treatment system, comprising:

通信接口,其通过与之连接的体外电子装置与植入患者体内的至少一个体内电子装置通信;a communication interface that communicates with at least one internal electronic device implanted in the patient through the external electronic device connected thereto;

存储器,其上存储有计算机指令;a memory having computer instructions stored thereon;

处理器,其用于执行所述计算机指令以执行下述操作:根据所述至少一个体内电子装置和体外电子装置中各个电子装置的时间戳偏移量来实现所述各个电子装置的时间同步。A processor is configured to execute the computer instructions to perform the following operations: achieving time synchronization of each electronic device according to a time stamp offset of each electronic device in the at least one in-vivo electronic device and the in-vitro electronic device.

在本发明的一种实施方式中,所述处理器执行所述计算机指令以根据所述至少一个体内电子装置和体外电子装置中各个电子装置的时间戳偏移量来实现所述各个电子装置的时间同步包括:In one embodiment of the present invention, the processor executes the computer instructions to achieve time synchronization of each electronic device according to the timestamp offset of each electronic device in the at least one in-vivo electronic device and the in-vitro electronic device, including:

选取所述各个电子装置中任意一个电子装置的时间轴作为基线时间;以所述基线时间为基准加上所述各个电子装置中其他电子装置各自的时间戳偏移量与所述基线时间对应的电子装置的时间戳偏移量之差得到所述其他电子装置的采集数据或发送刺激的实际时间。Select the time axis of any one of the electronic devices as the baseline time; take the baseline time as the reference and add the difference between the timestamp offset of each of the other electronic devices and the timestamp offset of the electronic device corresponding to the baseline time to obtain the actual time of collecting data or sending stimulation of the other electronic devices.

在本发明的另一种实施方式中,所述处理器执行所述计算机指令以根据所述至少一个体内电子装置和体外电子装置中各个电子装置的时间戳偏移量来实现所述各个电子装置的时间同步包括:In another embodiment of the present invention, the processor executes the computer instructions to achieve time synchronization of each electronic device according to the timestamp offset of each electronic device in the at least one in-vivo electronic device and the in-vitro electronic device, including:

所述处理器执行所述计算机指令以执行下述操作:The processor executes the computer instructions to perform the following operations:

向所述各个电子装置发出同步信号,其中,所述各个电子装置在收到所述同步信号之后清零自身的时间戳偏移量,所述清零后的时间戳偏移量开始随运行时间同步自增;Sending a synchronization signal to each of the electronic devices, wherein each of the electronic devices clears its own timestamp offset after receiving the synchronization signal, and the timestamp offset after clearing starts to increase synchronously with the running time;

接收所述各个电子装置的时间戳偏移量;Receiving a timestamp offset of each electronic device;

以所述各个电子装置中的任意一个电子装置的时间轴为时间基线,按照各体内电子装置各自的时间戳偏移量对齐采集数据的时间或发送刺激的时间。The time axis of any one of the electronic devices is used as the time baseline, and the time of collecting data or sending stimulation is aligned according to the timestamp offset of each in-vivo electronic device.

在本发明的一些实施方式中,所述处理器执行所述计算机指令以按照预定时间间隔执行根据所述至少一个体内电子装置和体外电子装置中各个电子装置的时间戳偏移量来实现所述各个电子装置的时间同步的操作。例如,所述预定时间间隔可以包括10秒至200秒。In some embodiments of the present invention, the processor executes the computer instructions to perform the operation of implementing time synchronization of the at least one in vivo electronic device and the in vitro electronic device according to the timestamp offset of each electronic device at a predetermined time interval. For example, the predetermined time interval may include 10 seconds to 200 seconds.

在本发明的一些实施方式中,所述处理器执行所述计算机指令以将同步后的采集数据存入所述存储器或其他存储装置。可选地,所述控制装置还包括显示器,其中,所述处理器执行所述计算机指令以将同步后的采集数据通过所述显示器进行展示。In some embodiments of the present invention, the processor executes the computer instructions to store the synchronized collected data in the memory or other storage device. Optionally, the control device also includes a display, wherein the processor executes the computer instructions to display the synchronized collected data through the display.

在本发明的其他实施方式中,所述处理器执行所述计算机指令以执行下述操作:In other embodiments of the present invention, the processor executes the computer instructions to perform the following operations:

根据所述采集数据生成刺激命令或选择预定义的刺激命令;Generate a stimulation command or select a predefined stimulation command according to the collected data;

向所述至少一个体内电子装置和体外电子装置中一个或多个发送所述刺激命令。The stimulation command is sent to one or more of the at least one in vivo electronic device and the in vitro electronic device.

根据本发明的第三方面,本发明的实施方式提供了一种适于植入患者体内的体内电子装置,其包括:According to a third aspect of the present invention, an embodiment of the present invention provides an in-vivo electronic device suitable for implantation in a patient's body, comprising:

通信接口,其通过与之无线连接的体外电子装置与控制装置通信或者通过无线连接与所述控制装置通信;a communication interface that communicates with the control device via an external electronic device wirelessly connected thereto or communicates with the control device via a wireless connection;

存储器,其上存储有计算机指令;a memory having computer instructions stored thereon;

处理器,其用于执行所述计算机指令以将通过电极对患者体内生理状况进行采集得到的采集数据和时间戳偏移量发送给所述控制装置,使得所述控制装置能够根据所述时间戳偏移量与其他电子装置进行时间同步,例如,使得所述控制装置能够根据所述时间戳偏移量与其他体内电子装置的时间戳偏移量同步来自各体内电子装置的采集数据。A processor is used to execute the computer instructions to send the collected data and timestamp offset obtained by collecting the physiological conditions in the patient's body through the electrodes to the control device, so that the control device can synchronize time with other electronic devices according to the timestamp offset, for example, the control device can synchronize the collected data from each in-body electronic device with the timestamp offset of other in-body electronic devices according to the timestamp offset.

在本发明的一种实施方式中,所述处理器执行所述计算机指令以进行下述操作:In one embodiment of the present invention, the processor executes the computer instructions to perform the following operations:

根据收到的来自所述控制装置的同步信号清零自身的时间戳偏移量,所述清零后的时间戳偏移量开始随运行时间同步自增;The timestamp offset of the controller is cleared according to the synchronization signal received from the controller, and the timestamp offset after clearing starts to increase synchronously with the running time;

将通过电极采集的采集数据和时间戳偏移量通过所述通信接口发送至所述控制装置。The collected data and the timestamp offset collected by the electrodes are sent to the control device through the communication interface.

在本发明的另一种实施方式中,所述处理器执行所述计算机指令还进行下述操作:In another embodiment of the present invention, the processor executes the computer instruction and further performs the following operations:

根据所述通信接口收到的来自所述控制装置的刺激命令生成刺激信号,并将所述刺激信号发送给相应的电极。A stimulation signal is generated according to the stimulation command from the control device received by the communication interface, and the stimulation signal is sent to the corresponding electrode.

根据本发明的第四方面,本发明的实施方式提供了一种体外电子装置,其包括:According to a fourth aspect of the present invention, an embodiment of the present invention provides an extracorporeal electronic device, comprising:

通信接口,其通过无线连接与体内电子装置通信并且通过无线连接或有线连接与控制装置通信;a communication interface that communicates with the in-vivo electronic device via a wireless connection and communicates with the control device via a wireless connection or a wired connection;

存储器,其上存储有计算机指令;a memory having computer instructions stored thereon;

处理器,其用于执行所述计算机指令以将时间戳偏移量发送给所述控制装置,使得所述控制装置能够根据所述时间戳偏移量与所述体内电子装置的时间戳偏移量来实现时间同步。A processor is used to execute the computer instructions to send a timestamp offset to the control device, so that the control device can achieve time synchronization according to the timestamp offset and the timestamp offset of the in-vivo electronic device.

在本发明的一种实施方式中,所述处理器执行所述计算机指令以进行下述操作:In one embodiment of the present invention, the processor executes the computer instructions to perform the following operations:

根据收到的来自所述控制装置的同步信号清零自身的时间戳偏移量,所述清零后的时间戳偏移量开始随运行时间同步自增;The timestamp offset of the controller is cleared according to the synchronization signal received from the controller, and the timestamp offset after clearing starts to increase synchronously with the running time;

将自身的时间戳偏移量和来自所述体内电子装置的时间戳偏移量通过所述通信接口发送至所述控制装置。The time stamp offset of the device itself and the time stamp offset from the in-vivo electronic device are sent to the control device through the communication interface.

在本发明的一种实施方式中,所述处理器执行所述计算机指令以进行下述操作:In one embodiment of the present invention, the processor executes the computer instructions to perform the following operations:

根据所述通信接口收到的来自所述控制装置的刺激命令向患者发送体外刺激。可选地,所述体外刺激包括听觉刺激、视觉刺激、触觉刺激等。Sending external stimulation to the patient according to the stimulation command from the control device received by the communication interface. Optionally, the external stimulation includes auditory stimulation, visual stimulation, tactile stimulation, etc.

根据本发明的第五方面,本发明的实施方式提供了一种用于电子治疗系统进行时间同步的方法,其中,所述电子治疗系统包括体外电子装置和至少一个体内电子装置,所述至少一个体内电子装置中的每一个与布置于患者体内的至少一个电极电连接,并且,所述方法包括:According to a fifth aspect of the present invention, an embodiment of the present invention provides a method for time synchronization of an electronic treatment system, wherein the electronic treatment system comprises an external electronic device and at least one internal electronic device, each of the at least one internal electronic device is electrically connected to at least one electrode arranged in a patient's body, and the method comprises:

获取所述至少一个体内电子装置和体外电子装置中各个电子装置的时间戳偏移量;Obtaining a timestamp offset of each electronic device in the at least one in-vivo electronic device and the in-vitro electronic device;

根据各个电子装置各自的时间戳偏移量来实现所述各个电子装置的时间同步。Time synchronization of each electronic device is achieved according to the respective timestamp offset of each electronic device.

在本发明的一种实施方式中,所述根据所述至少一个体内电子装置和体外电子装置中各个电子装置的时间戳偏移量来实现所述各个电子装置的时间同步包括:In one embodiment of the present invention, the step of implementing time synchronization of each electronic device according to the timestamp offset of each electronic device in the at least one in-vivo electronic device and the in-vitro electronic device comprises:

选取所述各个电子装置中任意一个电子装置的时间轴作为基线时间;Selecting a time axis of any one of the electronic devices as a baseline time;

以所述基线时间为基准加上所述各个电子装置中其他电子装置各自的时间戳偏移量与所述基线时间对应的电子装置的时间戳偏移量之差得到所述其他电子装置的采集数据或发送刺激的实际时间。The actual time of collecting data or sending stimulation by the other electronic devices is obtained by taking the baseline time as a reference and adding the difference between the timestamp offset of each other electronic device in the electronic devices and the timestamp offset of the electronic device corresponding to the baseline time.

在本发明的一种实施方式中,所述方法还包括:In one embodiment of the present invention, the method further comprises:

在所述获取各个电子装置的时间戳偏移量之前,向各个电子装置发出使各个电子装置的时间戳偏移量清零的同步信号,所述清零后的时间戳偏移量开始随运行时间同步自增。Before acquiring the timestamp offset of each electronic device, a synchronization signal is sent to each electronic device to clear the timestamp offset of each electronic device, and the timestamp offset after clearing starts to increase synchronously with the running time.

其中,根据所述至少一个体内电子装置和体外电子装置中各个电子装置的时间戳偏移量来实现所述各个电子装置的时间同步可以包括:以所述各个电子装置中的任意一个电子装置的时间轴为时间基线,按照各体内电子装置各自的时间戳偏移量对齐采集数据的时间或发送刺激的时间。Among them, realizing the time synchronization of the electronic devices according to the timestamp offset of each electronic device in the at least one in vivo electronic device and the in vitro electronic device may include: taking the time axis of any one of the electronic devices as the time baseline, and aligning the time of collecting data or sending stimulation according to the timestamp offset of each in vivo electronic device.

可选地,可以按照预定时间间隔执行所述方法的步骤。其中,所述预定时间间隔可以包括10秒至200秒。Optionally, the steps of the method may be performed at a predetermined time interval, wherein the predetermined time interval may include 10 seconds to 200 seconds.

根据本发明的第六方面,本发明的实施方式提供了一种计算机可读存储介质,所述计算机可读存储介质上存储有计算机指令,所述计算机指令被处理器执行时以实现上述任意一种实施方式所述的方法、操作、处理或步骤。According to the sixth aspect of the present invention, an embodiment of the present invention provides a computer-readable storage medium, on which computer instructions are stored. When the computer instructions are executed by a processor, the methods, operations, processes or steps described in any one of the above embodiments are implemented.

实施本发明可以达到以下有益效果:The implementation of the present invention can achieve the following beneficial effects:

根据本发明各种实施方式,通过各电子装置的时间戳偏移量来实现各电子装置之间的时间同步,在同步过程中考虑到了不同电子装置的时间戳变化即偏移,从而能够解决传统同步方式中因时间戳差异带来的误差,可以提高时间同步的精度,尤其能够满足电子医疗领域中数据处理对时间精度的要求,确保临床判断参考的准确性,并实现各个电子装置采集、刺激、给药等协同工作。According to various embodiments of the present invention, time synchronization between electronic devices is achieved through the timestamp offset of each electronic device. The timestamp changes, i.e., offsets, of different electronic devices are taken into account during the synchronization process, thereby resolving errors caused by timestamp differences in traditional synchronization methods and improving the accuracy of time synchronization. In particular, it can meet the requirements for time accuracy in data processing in the electronic medical field, ensure the accuracy of clinical judgment references, and realize the coordinated work of various electronic devices in collection, stimulation, and drug administration.

通过体内电子装置与体外电子装置的时间同步,可以实现体外刺激的发出时间和体内生理电信号的数据的采集时间同步。By synchronizing the time between the in-vivo electronic device and the in-vivo electronic device, the time of issuing the in-vivo stimulation and the time of collecting the data of the in-vivo physiological electrical signal can be synchronized.

通过使用本发明的时间同步技术,可以在体内不同部位植入多个体内电子装置,以同时采集/刺激不同部位。从而,可以避免产生现有的采用一台植入装置分接出连接线用于同时采集/刺激不同部位存在的下述技术问题:By using the time synchronization technology of the present invention, multiple in-body electronic devices can be implanted in different parts of the body to collect/stimulate different parts at the same time. Thus, the following technical problems existing in the existing method of using one implanted device to branch out the connection line for collecting/stimulating different parts at the same time can be avoided:

1)连接线需要在颅内固定,增加了手术创伤范围;1) The connecting wire needs to be fixed inside the skull, which increases the scope of surgical trauma;

2)信号在连接线传输过程中容易受到干扰,影响分析准确度;2) The signal is easily disturbed during the transmission of the connecting line, which affects the accuracy of the analysis;

3)植入电子装置受到电池和功率的限制,一般一台植入设备仅支持两条外接连接线,同时这种情况下,每条连接线上能够支持的数据采集和刺激或给药的功率为最大功率的1/2;3) Implantable electronic devices are limited by batteries and power. Generally, an implantable device only supports two external connection lines. At the same time, in this case, the power that can be supported on each connection line for data acquisition and stimulation or drug administration is 1/2 of the maximum power;

4)如果两个采集、刺激或给药位置相隔太远,就无法用一台植入装置实现。4) If the two collection, stimulation or drug delivery sites are too far apart, they cannot be achieved with one implanted device.

综上所述,在采用本发明的时间同步方法的电子治疗系统中,除了可以解决传统同步方式的时间同步精度下降的问题,还可以在不同部位植入不同的体内电子装置,从而进一步解决现有的一台植入装置分接出不同连线导致的上述四点技术问题,实现同时对不同部位的数据采集和刺激。To sum up, in the electronic treatment system adopting the time synchronization method of the present invention, in addition to solving the problem of decreased time synchronization accuracy in traditional synchronization methods, different in-vivo electronic devices can also be implanted in different parts of the body, thereby further solving the above four technical problems caused by different connections branching out from an existing implanted device, and realizing simultaneous data collection and stimulation of different parts.

附图说明BRIEF DESCRIPTION OF THE DRAWINGS

图1是根据本发明一种示例性实施方式的电子治疗系统的框图。FIG. 1 is a block diagram of an electronic therapeutic system according to an exemplary embodiment of the present invention.

图2是在图1所示的系统中进行时间同步的流程图。FIG. 2 is a flow chart of time synchronization in the system shown in FIG. 1 .

图3是根据本发明另一种实施方式的电子治疗系统的框图。FIG. 3 is a block diagram of an electronic treatment system according to another embodiment of the present invention.

图4是根据本发明一种示例性实施方式的用于电子治疗系统进行时间同步的方法的流程图。FIG. 4 is a flow chart of a method for time synchronization of an electronic treatment system according to an exemplary embodiment of the present invention.

图5是根据本发明另一种示例性实施方式的用于电子治疗系统进行时间同步的方法的流程图。FIG. 5 is a flow chart of a method for time synchronization of an electronic treatment system according to another exemplary embodiment of the present invention.

图6是根据本发明一种示例性实施方式的在电子治疗系统中使用的控制装置的框图。FIG. 6 is a block diagram of a control device used in an electronic treatment system according to an exemplary embodiment of the present invention.

图7是根据本发明一种示例性实施方式的适于植入患者体内的体内电子装置的框图。7 is a block diagram of an in vivo electronic device suitable for implantation in a patient according to an exemplary embodiment of the present invention.

图8是根据本发明一种示例性实施方式的体外电子装置的框图。8 is a block diagram of an extracorporeal electronic device according to an exemplary embodiment of the present invention.

具体实施方式Detailed ways

以下结合附图和具体实施方式对本发明的各个方面进行详细阐述。其中,众所周知的模块、单元及其相互之间的连接、链接、通信或操作没有示出或未作详细说明。并且,所描述的特征、架构或功能可在一个或一个以上实施方式中以任何方式组合。本领域技术人员应当理解,下述的各种实施方式只用于举例说明,而非用于限制本发明的保护范围。还可以容易理解,本文所述和附图所示的各实施方式中的模块或单元或处理方式可以按各种不同配置进行组合和设计。The various aspects of the present invention are described in detail below in conjunction with the accompanying drawings and specific embodiments. Among them, well-known modules, units and their connections, links, communications or operations are not shown or described in detail. In addition, the described features, architectures or functions can be combined in any way in one or more embodiments. It should be understood by those skilled in the art that the various embodiments described below are only used for illustration and are not intended to limit the scope of protection of the present invention. It can also be easily understood that the modules or units or processing methods in each embodiment described herein and shown in the accompanying drawings can be combined and designed in various different configurations.

图1是根据本发明一种示例性实施方式的电子治疗系统的框图。在本发明的一种示例性实施方式中,所述电子治疗系统可以包括主控装置100、体外电子装置200和多个体内电子装置(包括第一体内电子装置301和第二体内电子装置302)。其中,所述多个体内电子装置分别与电极连接,并且布置在患者体内不同的部位,便于同时采集或刺激不同部位。在本实施方式中,第一体内电子装置301与电极401电连接,第二体内电子装置302与电极402电连接。在可选的实施方式中,体内电子装置的数量可以多于2个,也可以只有一个;并且,一个体内电子装置可以连接两个或两个以上的电极。在本实施方式中,所述第一体内电子装置301通过电极401采集一个部位的生理电信号的数据,第二体内电子装置302通过电极402采集另一部位的生理电信号的数据。或者,所述第一体内电子装置301通过电极401向所述一个部位施加刺激(例如,脉冲),第二体内电子装置302通过电极402向所述另一部位施加刺激(例如,脉冲)。FIG1 is a block diagram of an electronic treatment system according to an exemplary embodiment of the present invention. In an exemplary embodiment of the present invention, the electronic treatment system may include a main control device 100, an external electronic device 200, and multiple internal electronic devices (including a first internal electronic device 301 and a second internal electronic device 302). The multiple internal electronic devices are respectively connected to electrodes and arranged at different parts of the patient's body to facilitate simultaneous acquisition or stimulation of different parts. In this embodiment, the first internal electronic device 301 is electrically connected to the electrode 401, and the second internal electronic device 302 is electrically connected to the electrode 402. In an optional embodiment, the number of internal electronic devices may be more than 2, or only one; and one internal electronic device may be connected to two or more electrodes. In this embodiment, the first internal electronic device 301 collects data of physiological electrical signals of one part through the electrode 401, and the second internal electronic device 302 collects data of physiological electrical signals of another part through the electrode 402. Alternatively, the first internal electronic device 301 applies stimulation (e.g., pulse) to the one part through the electrode 401, and the second internal electronic device 302 applies stimulation (e.g., pulse) to the other part through the electrode 402.

在本实施方式中,如图2所示,体外电子装置200布置在患者体外,通过无线通信的方式与所述第一体内电子装置301、第二体内电子装置302连接,并且通过有线通信的方式与主控装置100连接。可选地,体外电子装置200与主控装置100亦可以通过无线通信的方式连接。体外电子装置200将所述第一体内电子装置301、第二体内电子装置302上传的采集数据发送给主控装置100。并且,所述体外电子装置200可以将主控装置100发送的刺激命令传送给所述第一体内电子装置301、第二体内电子装置302,以便于所述第一体内电子装置301、第二体内电子装置302根据所述刺激命令产生刺激信号。在本发明的一种实施方式中,体外电子装置200可以根据主控装置100的控制直接在体外向患者发送刺激,例如,播放声音、图像等。在本发明的一些实施方式中,主控装置100可以根据所述采集数据生成刺激命令。在本发明的其他实施方式中,所述主控装置100也可以选择预定义的刺激命令,例如,根据预定义的刺激模式控制体内电子装置或体外电子装置发送刺激。In this embodiment, as shown in FIG. 2 , the external electronic device 200 is arranged outside the patient's body, connected to the first internal electronic device 301 and the second internal electronic device 302 by wireless communication, and connected to the main control device 100 by wired communication. Optionally, the external electronic device 200 and the main control device 100 can also be connected by wireless communication. The external electronic device 200 sends the collected data uploaded by the first internal electronic device 301 and the second internal electronic device 302 to the main control device 100. In addition, the external electronic device 200 can transmit the stimulation command sent by the main control device 100 to the first internal electronic device 301 and the second internal electronic device 302, so that the first internal electronic device 301 and the second internal electronic device 302 generate stimulation signals according to the stimulation command. In one embodiment of the present invention, the external electronic device 200 can directly send stimulation to the patient in vitro according to the control of the main control device 100, for example, play sound, image, etc. In some embodiments of the present invention, the main control device 100 can generate stimulation commands according to the collected data. In other embodiments of the present invention, the main control device 100 may also select a predefined stimulation command, for example, to control an in-vivo electronic device or an out-vivo electronic device to send stimulation according to a predefined stimulation pattern.

在本实施方式中,主控装置100用于控制及处理所述体内电子装置301、302及体外电子装置200的数据,包括:根据所述体内电子装置301、302及体外电子装置200中各个电子装置的时间戳偏移量来实现所述各个电子装置的时间同步。例如,使第一体内电子装置301和第二体内电子装置302采集数据的时间同步,使体外电子装置200发送刺激的时间与体内电子装置采集数据的时间同步。在示例性实施方式中,主控装置100可以定时执行所述时间同步的操作,从而将系统的时间同步控制在预定的精度范围内。在本发明的一种实施方式中,所述时间同步包括:选取所述各个电子装置中任意一个电子装置的时间轴作为基线时间;以所述基线时间为基准加上所述各个电子装置中其他电子装置各自的时间戳偏移量与所述基线时间对应的电子装置的时间戳偏移量之差得到所述其他电子装置的采集数据或发送刺激的实际时间。In this embodiment, the main control device 100 is used to control and process the data of the in-vivo electronic devices 301, 302 and the external electronic device 200, including: realizing the time synchronization of the electronic devices according to the timestamp offset of each electronic device in the in-vivo electronic devices 301, 302 and the external electronic device 200. For example, the time of collecting data of the first in-vivo electronic device 301 and the second in-vivo electronic device 302 is synchronized, and the time of sending stimulation of the external electronic device 200 is synchronized with the time of collecting data of the in-vivo electronic device. In an exemplary embodiment, the main control device 100 can perform the time synchronization operation regularly, so as to control the time synchronization of the system within a predetermined accuracy range. In one embodiment of the present invention, the time synchronization includes: selecting the time axis of any one of the electronic devices as the baseline time; taking the baseline time as the reference and adding the difference between the timestamp offset of each of the other electronic devices in the electronic devices and the timestamp offset of the electronic device corresponding to the baseline time to obtain the actual time of collecting data or sending stimulation of the other electronic devices.

下面结合图2对本发明实施方式的时间同步方法进行具体说明。The time synchronization method according to an embodiment of the present invention is described in detail below with reference to FIG. 2 .

未同步时When not synchronized

作为比较,在未进行本发明的时间同步时,第一体内电子装置301、第二体内电子装置302以及体外电子装置200分别独立地与主控装置100进行通讯,通讯数据中包含各个电子装置自身的时间戳,而时间戳跟随电子装置运行而自增。In comparison, when the time synchronization of the present invention is not performed, the first internal electronic device 301, the second internal electronic device 302 and the external electronic device 200 communicate with the main control device 100 respectively and independently, and the communication data includes the timestamp of each electronic device itself, and the timestamp increases automatically as the electronic device runs.

主控装置100根据每个电子装置的时间戳来处理数据。由于各自的晶振性能存在偏差,各个电子装置的时间戳增量不同,因此,根据时间戳来处理数据,存在同步误差,并且随着时间的增加,误差越大。The main control device 100 processes data according to the timestamp of each electronic device. Due to the deviation of the performance of each crystal oscillator, the timestamp increment of each electronic device is different. Therefore, there is a synchronization error when processing data according to the timestamp, and the error increases with time.

同步时When syncing

主控装置100根据系统预估的误差及应用需要,通过设定同步频率,发送给体外电子装置200、第一体内电子装置301、第二体内电子装置302,即按照预定时间间隔发起同步。例如:用于ERP分析,或者导联信号产生顺序、相位差分析时,需要误差精度在1ms,可设定较短的同步周期;用于信号频谱分析等,误差精度可以控制在50ms,可设定较长的同步周期以降低功耗。在本发明的一种实施方式中,电子系统的时钟误差一般来源于晶振,当选用5ppm精度的晶振时,电子装置每秒钟误差在5us内,故同步周期(预定时间间隔)设置在200s内应可满足1ms时间精度要求。当选用20ppm精度的晶振时,电子装置每秒钟误差在20us内,故同步精度设置在50s内应可满足1ms时间精度要求。通常,所述预定时间间隔的范围可以为10秒至200秒。The main control device 100 sets the synchronization frequency according to the system's estimated error and application needs, and sends it to the external electronic device 200, the first internal electronic device 301, and the second internal electronic device 302, that is, initiates synchronization at a predetermined time interval. For example: when used for ERP analysis, or when the lead signal generation sequence and phase difference analysis are performed, the error accuracy is required to be 1ms, and a shorter synchronization period can be set; when used for signal spectrum analysis, the error accuracy can be controlled within 50ms, and a longer synchronization period can be set to reduce power consumption. In one embodiment of the present invention, the clock error of the electronic system generally comes from the crystal oscillator. When a crystal oscillator with a precision of 5ppm is selected, the error of the electronic device is within 5us per second, so the synchronization period (predetermined time interval) is set within 200s and should meet the 1ms time accuracy requirement. When a crystal oscillator with a precision of 20ppm is selected, the error of the electronic device is within 20us per second, so the synchronization accuracy is set within 50s and should meet the 1ms time accuracy requirement. Generally, the range of the predetermined time interval can be 10 seconds to 200 seconds.

同步周期设置完成后启动同步流程如下:After the synchronization cycle is set, the synchronization process is as follows:

S010:主控装置100定时发出同步信号给体外电子装置200、第一体内电子装置301、第二体内电子装置302。S010: The main control device 100 periodically sends a synchronization signal to the external electronic device 200, the first internal electronic device 301, and the second internal electronic device 302.

S020:上述各电子装置在收到主控装置100的同步信号之后,清零自身的时间戳偏移量,清零后的时间戳偏移量开始跟随电子装置运行时间同步自增。S020: After receiving the synchronization signal from the main control device 100, each of the above-mentioned electronic devices clears its own timestamp offset, and the timestamp offset after being cleared begins to increase synchronously with the running time of the electronic device.

S030:主控装置100收到各电子装置上送的各自的时间戳偏移量,以系统中某一电子装置的时间轴作为基线时间,根据各电子装置的数据中的时间戳偏移量来重新对齐采集数据的时间或发送刺激的时间。S030: The main control device 100 receives the respective timestamp offsets sent by each electronic device, takes the time axis of a certain electronic device in the system as the baseline time, and realigns the time of collecting data or sending stimulation according to the timestamp offsets in the data of each electronic device.

在本发明的一种实施方式中,可以按照下述公式来确定各电子装置相对于基线时间的实际时间,即:In one embodiment of the present invention, the actual time of each electronic device relative to the baseline time may be determined according to the following formula, namely:

电子装置的实际时间=基线时间+(该电子装置的时间戳偏移量-基线时间对应的电子装置的时间戳偏移量)The actual time of the electronic device = baseline time + (timestamp offset of the electronic device - timestamp offset of the electronic device corresponding to the baseline time)

例如,第一体内电子装置301的时间戳偏移量为Δt1,第二体内电子装置302的时间戳偏移量为Δt2,体外电子装置200的时间戳偏移量为Δt3,以第一体内电子装置301的时间轴t为时间基线,则第二体内电子装置302的实际时间为t+(Δt2-Δt1),体外电子装置200的实际时间为t+(Δt3-Δt1)。For example, the timestamp offset of the first in vivo electronic device 301 is Δt1, the timestamp offset of the second in vivo electronic device 302 is Δt2, and the timestamp offset of the external electronic device 200 is Δt3. Taking the time axis t of the first in vivo electronic device 301 as the time baseline, the actual time of the second in vivo electronic device 302 is t+(Δt2-Δt1), and the actual time of the external electronic device 200 is t+(Δt3-Δt1).

然后,基于各个电子装置的所述实际时间将各个采集数据和/或刺激对齐。Then, the respective acquired data and/or stimulations are aligned based on the actual time of the respective electronic devices.

整个系统在工作的过程中按照上述设定的同步周期或预定时间间隔重复上述同步过程S010~S030,以确保在24小时的记录过程中,系统内各电子装置的数据的时间误差在1毫秒之内。During operation, the entire system repeats the synchronization process S010-S030 according to the set synchronization cycle or predetermined time interval to ensure that the time error of the data of each electronic device in the system is within 1 millisecond during the 24-hour recording process.

在本示例性实施方式中,以两个体内电子装置为例对本发明的同步方法进行了说明。在可选的实施方式中,所述电子治疗系统可以包括三个以上的体内电子装置,每个体内电子装置可以连接两个以上的电极。在其他实施方式中,所述电子治疗系统也可以包括一个体内电子装置,该体内电子装置可以连接1个或2个以上的电极。In this exemplary embodiment, the synchronization method of the present invention is described by taking two in-vivo electronic devices as an example. In an optional embodiment, the electronic treatment system may include more than three in-vivo electronic devices, each of which may be connected to more than two electrodes. In other embodiments, the electronic treatment system may also include one in-vivo electronic device, which may be connected to one or more than two electrodes.

图3示出了根据本发明的另一种实施方式的电子治疗系统。在本实施方式中,所述电子治疗系统除了包括上述实施方式所述的布置在体外的主控装置100和体外电子装置200外,还包括布置体内的1个体内电子装置300。体内电子装置300通过连接导线与布置在两个不同部位的两个电极401、402连接。当然,在可选的实施方式中,体内电子装置300可以连接一个电极,也可以连接三个以上的电极。在本实施方式中,体内电子装置300与体外电子装置200无线连接,体外电子装置200与主控装置100有线连接。Figure 3 shows an electronic treatment system according to another embodiment of the present invention. In this embodiment, in addition to the main control device 100 and the external electronic device 200 arranged outside the body as described in the above embodiment, the electronic treatment system also includes an internal electronic device 300 arranged inside the body. The internal electronic device 300 is connected to two electrodes 401 and 402 arranged at two different parts through a connecting wire. Of course, in an optional embodiment, the internal electronic device 300 can be connected to one electrode or more than three electrodes. In this embodiment, the internal electronic device 300 is wirelessly connected to the external electronic device 200, and the external electronic device 200 is wired to the main control device 100.

在本实施方式中,当启动同步功能时,主控装置100定时发出同步信号给体外电子装置200、体内电子装置300。体外电子装置200、体内电子装置300在收到主控装置100的同步信号之后,清零自身的时间戳偏移量,清零后的时间戳偏移量开始跟随相应的电子装置运行时间同步自增。主控装置100收到各电子装置上送的各自的时间戳偏移量,可以以体外电子装置200的时间轴作为基线时间,并根据收到的体内电子装置300的时间戳偏移量和体外电子装置200的时间戳偏移量计算体内电子装置300相对于体外电子装置200的时间偏移量,通过该基线时间加上计算得到的时间偏移量得到体内电子装置300相对于基线时间的实际时间,由此可以将体内电子装置300的采集数据的时间与体外电子装置200发送刺激的时间同步。在本实施方式中,体外电子装置200向人体发出的刺激可以包括视觉刺激(例如图像)、听觉刺激(例如声音)或其他刺激(例如骨传导)。In this embodiment, when the synchronization function is started, the main control device 100 sends a synchronization signal to the external electronic device 200 and the internal electronic device 300 at a fixed time. After receiving the synchronization signal from the main control device 100, the external electronic device 200 and the internal electronic device 300 clear their own timestamp offsets, and the timestamp offsets after clearing begin to increase synchronously with the corresponding electronic device running time. The main control device 100 receives the respective timestamp offsets sent by each electronic device, and can use the time axis of the external electronic device 200 as the baseline time, and calculate the time offset of the internal electronic device 300 relative to the external electronic device 200 according to the received timestamp offset of the internal electronic device 300 and the timestamp offset of the external electronic device 200, and obtain the actual time of the internal electronic device 300 relative to the baseline time by adding the calculated time offset to the baseline time, thereby synchronizing the time of the internal electronic device 300 to collect data with the time of the external electronic device 200 to send stimulation. In this embodiment, the stimulation sent to the human body by the external electronic device 200 may include visual stimulation (such as images), auditory stimulation (such as sound) or other stimulation (such as bone conduction).

通过上述实施方式可知,本发明通过提取系统内各个电子装置的时机戳偏移量,通过时间戳偏移量来对齐各个电子装置的执行操作(包括采集数据和发送刺激)的时间,相对于现有仅根据时机戳来对齐时间,避免了因时间戳的自增导致的时间偏差,提高了同步精度,尤其能够满足电子医疗系统对数据处理的时间同步要求。It can be seen from the above implementation that the present invention extracts the time stamp offset of each electronic device in the system, and aligns the execution time of each electronic device (including collecting data and sending stimulation) through the time stamp offset. Compared with the existing method of aligning time only based on the time stamp, it avoids the time deviation caused by the self-increment of the timestamp, improves the synchronization accuracy, and can especially meet the time synchronization requirements of the electronic medical system for data processing.

以上对本发明提供的电子治疗系统进行了详细说明,下面对本发明提供的同步方法进行具体介绍。The electronic treatment system provided by the present invention is described in detail above. The synchronization method provided by the present invention is described in detail below.

图4是根据本发明一种示例性实施方式的用于电子治疗系统进行时间同步的方法的流程图。如上所述,所述电子治疗系统可以包括体外电子装置和至少一个体内电子装置,所述至少一个体内电子装置中的每一个与布置于患者体内的至少一个电极电连接,所述方法可以包括:FIG4 is a flow chart of a method for time synchronization of an electronic therapy system according to an exemplary embodiment of the present invention. As described above, the electronic therapy system may include an external electronic device and at least one internal electronic device, each of the at least one internal electronic device being electrically connected to at least one electrode disposed in a patient's body, and the method may include:

S100:获取所述至少一个体内电子装置和体外电子装置中各个电子装置的时间戳偏移量;S100: Acquire a timestamp offset of each electronic device in the at least one in-vivo electronic device and the in-vitro electronic device;

S200:根据各个电子装置各自的时间戳偏移量来实现所述各个电子装置的时间同步。其中,可选地,在处理S200中,选取所述各个电子装置中任意一个电子装置的时间轴作为基线时间;以所述基线时间为基准加上所述各个电子装置中其他电子装置各自的时间戳偏移量与所述基线时间对应的电子装置的时间戳偏移量之差得到所述其他电子装置的采集数据或发送刺激的实际时间。S200: Time synchronization of each electronic device is achieved according to the timestamp offset of each electronic device. Optionally, in processing S200, the time axis of any one of the electronic devices is selected as the baseline time; the baseline time is used as a reference to add the difference between the timestamp offset of each of the other electronic devices and the timestamp offset of the electronic device corresponding to the baseline time to obtain the actual time of collecting data or sending stimulation of the other electronic devices.

图5是根据本发明另一种示例性实施方式的用于电子治疗系统进行时间同步的方法的流程图。在本实施方式中,所述方法可以包括:FIG5 is a flow chart of a method for time synchronization of an electronic treatment system according to another exemplary embodiment of the present invention. In this embodiment, the method may include:

S501:向各个电子装置发出同步信号,使各个电子装置的时间戳偏移量清零,所述清零后的时间戳偏移量开始随运行时间同步自增;S501: Sending a synchronization signal to each electronic device to reset the timestamp offset of each electronic device, and the timestamp offset after reset starts to increase synchronously with the running time;

S502:获取所述至少一个体内电子装置和体外电子装置中各个电子装置的时间戳偏移量;S502: Obtaining a timestamp offset of each electronic device in the at least one in-vivo electronic device and the in-vitro electronic device;

S503:选取所述各个电子装置中任意一个电子装置的时间轴作为时间基线;S503: Selecting a time axis of any one of the electronic devices as a time baseline;

S504:按照各体内电子装置各自的时间戳偏移量对齐采集数据的时间或发送刺激的时间。S504: Align the time of collecting data or sending stimulation according to the timestamp offset of each in-vivo electronic device.

在本发明的一种实施方式中,在处理S504中,根据接收的时间戳偏移量确定各电子装置相对于基线时间对应的电子装置的时间偏移量,基于各个电子装置各自的所述时间偏移量与时间基线对齐,由此实现各电子装置执行采集数据或发送刺激的时间同步。In one embodiment of the present invention, in processing S504, the time offset of each electronic device relative to the electronic device corresponding to the baseline time is determined based on the received timestamp offset, and the time baseline is aligned based on the time offset of each electronic device, thereby achieving time synchronization for each electronic device to collect data or send stimulation.

在本发明的其他实施方式中,在处理S504中,可以按照下述公式来确定各电子装置相对于基线时间的实际时间,即:In other embodiments of the present invention, in process S504, the actual time of each electronic device relative to the baseline time may be determined according to the following formula, namely:

电子装置的实际时间=基线时间+(该电子装置的时间戳偏移量-基线时间对应的电子装置的时间戳偏移量)The actual time of the electronic device = baseline time + (timestamp offset of the electronic device - timestamp offset of the electronic device corresponding to the baseline time)

例如,第一体内电子装置的时间戳偏移量为Δt1,第二体内电子装置的时间戳偏移量为Δt2,体外电子装置的时间戳偏移量为Δt3,以第一体内电子装置的时间轴t为时间基线,则第二体内电子装置的实际时间为t+(Δt2-Δt1),体外电子装置的实际时间为t+(Δt3-Δt1)。For example, the timestamp offset of the first in vivo electronic device is Δt1, the timestamp offset of the second in vivo electronic device is Δt2, and the timestamp offset of the external electronic device is Δt3. Taking the time axis t of the first in vivo electronic device as the time baseline, the actual time of the second in vivo electronic device is t+(Δt2-Δt1), and the actual time of the external electronic device is t+(Δt3-Δt1).

然后,基于各个电子装置的所述实际时间将各个采集数据和/或刺激对齐。Then, the respective acquired data and/or stimulations are aligned based on the actual time of the respective electronic devices.

在本发明的可选实施方式中,可以按照预定时间间隔执行所述方法,可以将时间同步的精度控制在预定范围内,例如,所述预定时间间隔可以包括10秒至200秒。具体而言,电子系统的时钟误差一般来源于晶振,当选用5ppm精度的晶振时,电子装置每秒钟误差在5us内,故同步周期(预定时间间隔)设置在200s内应可满足1ms时间精度要求。当选用20ppm精度的晶振时,电子装置每秒钟误差在20us内,故同步精度设置在50s内应可满足1ms时间精度要求。In an optional embodiment of the present invention, the method can be performed at a predetermined time interval, and the accuracy of time synchronization can be controlled within a predetermined range. For example, the predetermined time interval can include 10 seconds to 200 seconds. Specifically, the clock error of the electronic system generally comes from the crystal oscillator. When a crystal oscillator with a precision of 5ppm is selected, the error of the electronic device per second is within 5us, so the synchronization period (predetermined time interval) is set within 200s and should meet the 1ms time accuracy requirement. When a crystal oscillator with a precision of 20ppm is selected, the error of the electronic device per second is within 20us, so the synchronization accuracy is set within 50s and should meet the 1ms time accuracy requirement.

由上述可知,采用本发明的同步方法可以将时间精度要求控制在1ms,足以满足电子治疗领域对数据处理的要求。It can be seen from the above that the synchronization method of the present invention can control the time accuracy requirement to 1 ms, which is sufficient to meet the requirements of data processing in the field of electronic therapy.

通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到本发明可借助软件结合硬件平台的方式来实现。基于这样的理解,本发明的技术方案对背景技术做出贡献的全部或者部分可以以软件产品的形式体现出来,该计算机软件产品可以存储在存储介质中,如ROM/RAM、磁碟、光盘等,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行本发明各个实施例或者实施例的某些部分所述的方法。Through the description of the above implementation methods, those skilled in the art can clearly understand that the present invention can be implemented by combining software with a hardware platform. Based on such an understanding, all or part of the contribution of the technical solution of the present invention to the background technology can be embodied in the form of a software product, which can be stored in a storage medium such as ROM/RAM, a magnetic disk, an optical disk, etc., including several instructions for enabling a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in various embodiments of the present invention or certain parts of the embodiments.

相应的,根据本发明的一种实施方式的计算机可读存储介质,其上存储有计算机指令,所述计算机指令被处理器执行时以实现上述任一实施方式所述的方法、处理、操作等。Accordingly, a computer-readable storage medium according to an embodiment of the present invention stores computer instructions thereon, and when the computer instructions are executed by a processor, the methods, processes, operations, etc. described in any of the above embodiments are implemented.

此外,图6示出了根据本发明一种示例性实施方式的在电子治疗系统中使用的控制装置。如图6所示,所述控制装置包括:In addition, FIG6 shows a control device used in an electronic treatment system according to an exemplary embodiment of the present invention. As shown in FIG6 , the control device includes:

通信接口601,其通过与之连接的体外电子装置与植入患者体内的至少一个体内电子装置通信;a communication interface 601, which communicates with at least one internal electronic device implanted in the patient through an external electronic device connected thereto;

存储器602,其上存储有计算机指令;Memory 602, on which computer instructions are stored;

处理器603,其用于执行所述计算机指令以执行下述操作:根据所述至少一个体内电子装置和体外电子装置中各个电子装置的时间戳偏移量来实现所述各个电子装置的时间同步。The processor 603 is configured to execute the computer instructions to perform the following operation: realizing time synchronization of each electronic device according to the timestamp offset of each electronic device in the at least one in-vivo electronic device and the in-vitro electronic device.

在本发明的一种实施方式中,所述处理器603执行所述计算机指令以根据所述至少一个体内电子装置和体外电子装置中各个电子装置的时间戳偏移量来实现所述各个电子装置的时间同步包括:选取所述各个电子装置中任意一个电子装置的时间轴作为基线时间;以所述基线时间为基准加上所述各个电子装置中其他电子装置各自的时间戳偏移量与所述基线时间对应的电子装置的时间戳偏移量之差得到所述其他电子装置的采集数据或发送刺激的实际时间。In one embodiment of the present invention, the processor 603 executes the computer instructions to achieve time synchronization of the electronic devices according to the timestamp offset of each electronic device in the at least one internal electronic device and the external electronic device, including: selecting the time axis of any one of the electronic devices as the baseline time; taking the baseline time as the reference and adding the difference between the timestamp offset of each of the other electronic devices in the electronic devices and the timestamp offset of the electronic device corresponding to the baseline time to obtain the actual time of collecting data or sending stimulation of the other electronic devices.

在本发明的另一种实施方式中,所述处理器603执行所述计算机指令以根据所述至少一个体内电子装置和体外电子装置中各个电子装置的时间戳偏移量来实现所述各个电子装置的时间同步包括:向所述各个电子装置发出同步信号;所述各个电子装置在收到所述同步信号之后清零自身的时间戳偏移量,所述清零后的时间戳偏移量开始随运行时间同步自增;接收所述各个电子装置的时间戳偏移量;以所述各个电子装置中的任意一个电子装置的时间轴为时间基线,按照各体内电子装置各自的时间戳偏移量对齐采集数据的时间或发送刺激的时间。In another embodiment of the present invention, the processor 603 executes the computer instructions to achieve time synchronization of each electronic device according to the timestamp offset of each electronic device in the at least one in vivo electronic device and the in vitro electronic device, including: sending a synchronization signal to each electronic device; each electronic device clears its own timestamp offset after receiving the synchronization signal, and the timestamp offset after clearing starts to increase synchronously with the running time; receiving the timestamp offset of each electronic device; taking the time axis of any one of the electronic devices as the time baseline, and aligning the time of collecting data or sending stimulation according to the timestamp offset of each in vivo electronic device.

在本发明的其他实施方式中,所述处理器603执行所述计算机指令以按照预定时间间隔执行根据所述至少一个体内电子装置和体外电子装置中各个电子装置的时间戳偏移量来实现所述各个电子装置的时间同步的操作。其中,所述预定时间间隔可以包括10秒至200秒。In other embodiments of the present invention, the processor 603 executes the computer instructions to perform the operation of implementing time synchronization of the at least one in-vivo electronic device and the in-vitro electronic device according to the timestamp offset of each electronic device at a predetermined time interval, wherein the predetermined time interval may include 10 seconds to 200 seconds.

在本发明的可选实施方式中,所述处理器603执行所述计算机指令以将同步后的采集数据存入所述存储器602,当然,也可以将所述数据存入其他存储装置中。在本发明的进一步的实施方式中,所述主控装置还包括显示器(未示出),其中,所述处理器603执行所述计算机指令以将同步后的采集数据通过所述显示器进行展示。In an optional embodiment of the present invention, the processor 603 executes the computer instructions to store the synchronized collected data in the memory 602. Of course, the data can also be stored in other storage devices. In a further embodiment of the present invention, the main control device also includes a display (not shown), wherein the processor 603 executes the computer instructions to display the synchronized collected data through the display.

在本发明的进一步的实施方式中,所述处理器603执行所述计算机指令以进一步执行下述操作:根据所述采集数据生成刺激命令或选择预定义的刺激命令;向所述至少一个体内电子装置和体外电子装置中一个或多个发送所述刺激命令。In a further embodiment of the present invention, the processor 603 executes the computer instructions to further perform the following operations: generating a stimulation command or selecting a predefined stimulation command based on the acquired data; sending the stimulation command to one or more of the at least one in vivo electronic device and the in vitro electronic device.

图7示出了根据本发明的一种示例性实施方式的适于植入患者体内的体内电子装置。所述体内电子装置除了具有本领域可植入患者体内的装置的共有特征外,如图7所示,还包括:FIG7 shows an in-vivo electronic device suitable for implantation in a patient according to an exemplary embodiment of the present invention. In addition to having the common features of devices implantable in patients in the art, the in-vivo electronic device, as shown in FIG7, also includes:

通信接口701,其通过与之无线连接的体外电子装置与控制装置通信;A communication interface 701, which communicates with the control device via an external electronic device wirelessly connected thereto;

存储器702,其上存储有计算机指令;Memory 702, on which computer instructions are stored;

处理器703,其用于执行所述计算机指令以将通过电极对患者体内生理状况进行采集得到的采集数据和时间戳偏移量通过通信接口701发送给所述控制装置,使得所述控制装置能够如上所述地根据所述时间戳偏移量与其他电子装置进行时间同步。The processor 703 is used to execute the computer instructions to send the collected data and timestamp offset obtained by collecting the physiological conditions of the patient's body through the electrodes to the control device through the communication interface 701, so that the control device can synchronize time with other electronic devices according to the timestamp offset as described above.

在本实施方式中,所述处理器703执行所述计算机指令以进行下述操作:根据收到的来自所述控制装置的同步信号清零自身的时间戳偏移量,所述清零后的时间戳偏移量开始随运行时间同步自增;将通过电极采集的采集数据和时间戳偏移量通过所述通信接口发送至所述控制装置。In this embodiment, the processor 703 executes the computer instructions to perform the following operations: clearing its own timestamp offset according to the synchronization signal received from the control device, and the timestamp offset after clearing begins to increase synchronously with the running time; sending the collected data and timestamp offset collected by the electrodes to the control device through the communication interface.

在本发明的可选实施方式中,所述处理器703执行所述计算机指令以进行下述操作:根据所述通信接口701收到的来自所述控制装置的刺激命令生成刺激信号(例如,脉冲),并将所述刺激信号发送给相应的电极。In an optional embodiment of the present invention, the processor 703 executes the computer instructions to perform the following operations: generate a stimulation signal (eg, a pulse) according to a stimulation command from the control device received by the communication interface 701, and send the stimulation signal to the corresponding electrode.

图8示出了根据本发明的一种示例性实施方式的体外电子装置。FIG. 8 shows an extracorporeal electronic device according to an exemplary embodiment of the present invention.

如图8所示,所述体外电子装置可以包括:As shown in FIG8 , the external electronic device may include:

通信接口801,其通过无线连接与体内电子装置连接并且通过无线连接或有线连接与控制装置通信;A communication interface 801, which is connected to the in-vivo electronic device via a wireless connection and communicates with the control device via a wireless connection or a wired connection;

存储器802,其上存储有计算机指令;Memory 802, on which computer instructions are stored;

处理器803,其用于执行所述计算机指令以将时间戳偏移量发送给所述控制装置,使得所述控制装置能够如上所述地根据所述时间戳偏移量与所述体内电子装置的时间戳偏移量来时间同步。The processor 803 is configured to execute the computer instructions to send the timestamp offset to the control device, so that the control device can synchronize time with the timestamp offset of the in-vivo electronic device according to the timestamp offset as described above.

在本实施方式中,所述处理器803执行所述计算机指令以进行下述操作:根据收到的来自所述控制装置的同步信号清零自身的时间戳偏移量,所述清零后的时间戳偏移量开始随运行时间同步自增;将自身的时间戳偏移量和来自所述体内电子装置的时间戳偏移量通过所述通信接口801发送至所述控制装置。In this embodiment, the processor 803 executes the computer instructions to perform the following operations: clearing its own timestamp offset according to the synchronization signal received from the control device, and the timestamp offset after clearing begins to increase synchronously with the running time; sending its own timestamp offset and the timestamp offset from the in vivo electronic device to the control device through the communication interface 801.

在本发明的可选实施方式中,所述体外电子装置还包括刺激发生器(未示出),所述处理器803执行所述计算机指令以进行下述操作:根据所述通信接口801收到的来自所述控制装置的刺激命令控制所述刺激发生器向患者发送体外刺激,例如,所述体外刺激可以包括听觉刺激、视觉刺激、触觉刺激。In an optional embodiment of the present invention, the extracorporeal electronic device also includes a stimulation generator (not shown), and the processor 803 executes the computer instructions to perform the following operations: controlling the stimulation generator to send extracorporeal stimulation to the patient according to the stimulation command from the control device received by the communication interface 801. For example, the extracorporeal stimulation may include auditory stimulation, visual stimulation, and tactile stimulation.

综上所述,通过本发明各种实施方式,能够实现多个体内电子装置的协同工作。由于采用多个体内电子装置,减少了连接线造成的手术额外创伤,减少了信号干扰,实现了在更远距离的同步信号采集、刺激、给药等应用。能够实现多个体内电子装置或体内电子装置与体外电子装置的精确同步,多个电子装置的时间误差可以控制在24小时内为±1毫秒。In summary, through various embodiments of the present invention, the coordinated operation of multiple in-vivo electronic devices can be achieved. Due to the use of multiple in-vivo electronic devices, the additional surgical trauma caused by the connecting wires is reduced, the signal interference is reduced, and the applications of synchronous signal acquisition, stimulation, and drug administration at a longer distance are achieved. It is possible to achieve precise synchronization of multiple in-vivo electronic devices or an in-vivo electronic device with an external electronic device, and the time error of multiple electronic devices can be controlled to ±1 millisecond within 24 hours.

以上通过各种实施方式对本发明的各个方面进行了详细阐述。本领技术人员应当理解,以上所公开的仅为本发明的实施方式而已,当然不能以此来限定本发明之权利范围,依本发明实施方式所作的等同变化,仍属本发明权利要求所涵盖的范围。例如,可以将体外电子装置和主控装置各自实现的处理、功能可以集成在单个计算机装置上,但这样的改变仍然落入本发明权利要求所涵盖的范围。The above detailed description of various aspects of the present invention is made through various embodiments. Those skilled in the art should understand that what is disclosed above is only the embodiment of the present invention, and it certainly cannot be used to limit the scope of the rights of the present invention. Equivalent changes made according to the embodiment of the present invention still fall within the scope covered by the claims of the present invention. For example, the processing and functions implemented by the in vitro electronic device and the main control device can be integrated into a single computer device, but such changes still fall within the scope covered by the claims of the present invention.

Claims (19)

1. An electronic therapy system, comprising:
At least one in-vivo electronic device adapted to be disposed within a patient's body, each of the at least one in-vivo electronic device being electrically connected to at least one electrode disposed within the patient's body;
an external electronic device adapted to be arranged outside the patient's body, in wireless connection with the at least one internal electronic device; and
a master control device adapted to be arranged outside the patient's body and to be connected with the external electronic device, either wired or wireless, for controlling and processing the data of the internal and external electronic devices;
the main control device controls and processes the data of the in-vivo electronic device and the in-vitro electronic device, and the main control device comprises: achieving time synchronization of each electronic device according to the time stamp offset of each electronic device in the at least one in-vivo electronic device and the in-vitro electronic device;
the master control device implementing time synchronization of each electronic device according to the time stamp offset of each electronic device in the at least one in-vivo electronic device and the in-vitro electronic device includes:
selecting a time axis of any one of the electronic devices as a baseline time;
and adding the difference between the time stamp offset of other electronic devices in the electronic devices and the time stamp offset of the electronic device corresponding to the baseline time by taking the baseline time as a reference to obtain the acquired data of the other electronic devices or the actual time for sending the stimulus.
2. The electronic therapy system of claim 1, wherein timing is based on a time stamp offset for each of the at least one in-vivo electronic device and the in-vitro electronic device to achieve time synchronization of each electronic device.
3. The electronic therapy system of claim 1 or 2, wherein the master control device controlling and processing data of the in-vivo electronic device and the in-vitro electronic device further comprises:
and storing and/or displaying the acquired data after time synchronization.
4. The electronic therapy system of claim 3, wherein the master control device controlling and processing data of the in-vivo and in-vitro electronic devices further comprises:
generating a stimulation command or selecting a predefined stimulation command according to the acquired data;
the stimulation command is sent to one or more of the at least one in-vivo electronic device and the in-vitro electronic device.
5. The electronic therapy system of claim 4, wherein the in-vivo electronics that receive the stimulation command generate a stimulation signal based on the stimulation command and transmit the stimulation signal to the corresponding electrode.
6. The electronic therapy system of claim 4, wherein the external electronics that receive the stimulation command send external stimulation to the patient at synchronized times.
7. The electronic therapy system of claim 6, wherein the external stimulus comprises an auditory stimulus, a visual stimulus, a tactile stimulus.
8. The electronic therapy system of claim 1, wherein data of physiological electrical signals of a patient are acquired through the electrodes or stimulus signals are sent to the patient.
9. The electronic therapy system of claim 1, wherein the master control device and the extracorporeal electronic device are integrated on a single apparatus.
10. A control device for use in an electronic therapy system, the control device comprising:
a communication interface in communication with at least one in-vivo electronic device implanted in the patient via an in-vitro electronic device connected thereto;
a memory having stored thereon computer instructions;
a processor for executing the computer instructions to perform the following: achieving time synchronization of each electronic device according to the time stamp offset of each electronic device in the at least one in-vivo electronic device and the in-vitro electronic device;
Wherein the processor executing the computer instructions to achieve time synchronization of each of the at least one in-vivo electronic device and the in-vitro electronic device according to a time stamp offset of the respective electronic device comprises:
selecting a time axis of any one of the electronic devices as a baseline time; and adding the difference between the time stamp offset of each of the other electronic devices in each electronic device and the time stamp offset of the electronic device corresponding to the baseline time by taking the baseline time as a reference to obtain the acquired data of the other electronic devices or the actual time of sending the stimulus.
11. The control device of claim 10, wherein the processor executes the computer instructions to perform operations in accordance with a timestamp offset of each of the at least one in-vivo electronic device and the in-vitro electronic device to achieve time synchronization of each electronic device at predetermined time intervals.
12. The control device of claim 11, wherein the predetermined time interval comprises 10 seconds to 200 seconds.
13. The control device of claim 10, wherein the processor executes the computer instructions to store the synchronized acquisition data in the memory or other storage device.
14. The control device of claim 10, further comprising a display, wherein the processor executes the computer instructions to present the synchronized acquisition data via the display.
15. The control device of claim 10, wherein the processor executes the computer instructions to further perform the operations of:
generating a stimulation command or selecting a predefined stimulation command according to the acquired data;
the stimulation command is sent to one or more of the at least one in-vivo electronic device and the in-vitro electronic device.
16. A method for time synchronizing an electronic therapy system, the electronic therapy system comprising an external electronic device and at least one internal electronic device, each of the at least one internal electronic device being electrically connected to at least one electrode disposed within a patient, the method comprising:
acquiring the time stamp offset of each electronic device in the at least one in-vivo electronic device and the in-vitro electronic device;
the time synchronization of each electronic device is realized according to the respective time stamp offset of each electronic device;
Wherein said implementing the time synchronization of each electronic device according to the time stamp offset of each electronic device in the at least one in-vivo electronic device and in-vitro electronic device comprises:
selecting a time axis of any one of the electronic devices as a baseline time;
and adding the difference between the time stamp offset of each of the other electronic devices in each electronic device and the time stamp offset of the electronic device corresponding to the baseline time by taking the baseline time as a reference to obtain the acquired data of the other electronic devices or the actual time of sending the stimulus.
17. The method of claim 16, wherein the steps of the method are performed at predetermined time intervals.
18. The method of claim 17, wherein the predetermined time interval comprises 10 seconds to 200 seconds.
19. A computer readable storage medium having stored thereon computer instructions which, when executed by a processor, implement the method of any of claims 16 to 18.
CN202310747969.4A 2020-01-07 2020-01-07 Electronic treatment system and electronic device, synchronization method and storage medium contained therein Active CN116712670B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310747969.4A CN116712670B (en) 2020-01-07 2020-01-07 Electronic treatment system and electronic device, synchronization method and storage medium contained therein

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202310747969.4A CN116712670B (en) 2020-01-07 2020-01-07 Electronic treatment system and electronic device, synchronization method and storage medium contained therein
CN202010014295.3A CN111228646B (en) 2020-01-07 2020-01-07 Electronic therapy system and electronic device contained therein, synchronization method, storage medium

Related Parent Applications (1)

Application Number Title Priority Date Filing Date
CN202010014295.3A Division CN111228646B (en) 2020-01-07 2020-01-07 Electronic therapy system and electronic device contained therein, synchronization method, storage medium

Publications (2)

Publication Number Publication Date
CN116712670A CN116712670A (en) 2023-09-08
CN116712670B true CN116712670B (en) 2024-04-05

Family

ID=70867804

Family Applications (2)

Application Number Title Priority Date Filing Date
CN202310747969.4A Active CN116712670B (en) 2020-01-07 2020-01-07 Electronic treatment system and electronic device, synchronization method and storage medium contained therein
CN202010014295.3A Active CN111228646B (en) 2020-01-07 2020-01-07 Electronic therapy system and electronic device contained therein, synchronization method, storage medium

Family Applications After (1)

Application Number Title Priority Date Filing Date
CN202010014295.3A Active CN111228646B (en) 2020-01-07 2020-01-07 Electronic therapy system and electronic device contained therein, synchronization method, storage medium

Country Status (1)

Country Link
CN (2) CN116712670B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112972895A (en) * 2021-04-16 2021-06-18 北京领创医谷科技发展有限责任公司 Implanted nerve stimulator
CN114153266B (en) * 2021-11-12 2023-10-27 苏州维伟思医疗科技有限公司 Data time synchronization method and device and computer readable storage medium
US12003862B2 (en) * 2022-06-21 2024-06-04 Snap Inc. Camera timestamp validation

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106361322A (en) * 2016-08-31 2017-02-01 博睿康科技(常州)股份有限公司 Automatic accumulative deviation detection method and automatic accumulative deviation detection device for electroencephalogram device
WO2018132664A1 (en) * 2017-01-16 2018-07-19 General Electric Company System and method for predicting an excitation pattern of a deep brain stimulation

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7286872B2 (en) * 2003-10-07 2007-10-23 Cardiac Pacemakers, Inc. Method and apparatus for managing data from multiple sensing channels
EP2695000B1 (en) * 2011-04-05 2018-05-30 Koninklijke Philips N.V. Detector array with time-to-digital conversion having improved temporal accuracy
JP6144670B2 (en) * 2011-04-08 2017-06-07 ボルケーノ コーポレイション Distributed medical sensing system and method
CN103607269B (en) * 2013-12-02 2016-05-25 常州博睿康科技有限公司 A kind of brain electric installation and accurate wireless event synchronizing method

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106361322A (en) * 2016-08-31 2017-02-01 博睿康科技(常州)股份有限公司 Automatic accumulative deviation detection method and automatic accumulative deviation detection device for electroencephalogram device
WO2018132664A1 (en) * 2017-01-16 2018-07-19 General Electric Company System and method for predicting an excitation pattern of a deep brain stimulation

Also Published As

Publication number Publication date
CN116712670A (en) 2023-09-08
CN111228646B (en) 2023-07-14
CN111228646A (en) 2020-06-05

Similar Documents

Publication Publication Date Title
CN116712670B (en) Electronic treatment system and electronic device, synchronization method and storage medium contained therein
US10617323B2 (en) Coordination of functional MRI scanning and electrical stimulation therapy
US20250194939A1 (en) Time synchronization in a medical device system or network
CN108367149B (en) System and method for monitoring autonomic health
CN107073217B (en) Systems and methods for delivering vagal nerve therapy
CN107949421B (en) Systems and methods for treating urinary dysfunction
Deshmukh et al. Fully implantable neural recording and stimulation interfaces: Peripheral nerve interface applications
CN102462891B (en) Remote implantable medical device monitoring system and remote implantable medical device monitoring method
WO2011059531A1 (en) System for stimulating a hypoglossal nerve for controlling the position of a patient's tongue
WO2007127714A2 (en) Telemetry-synchronized physiological monitoring and therapy delivery systems
JP2014514944A (en) Transplant device capable of acquiring and monitoring bioelectric signals in the brain and performing skull simulation
Schulman The feasible FES system: battery powered BION stimulator
Coviello et al. Distributed full synchronized system for global health monitoring based on flsa
CN116966417B (en) Method and device for detecting abrasion of implanted electrode
US11065439B1 (en) Conforming modular neural interface system
WO2023061233A1 (en) Charging control method for external charger, and related apparatus
US7415304B2 (en) System and method for correlating implant and non-implant data
CN201894779U (en) Remote monitoring system for implantable medical device
US20090264814A1 (en) Device for medical treatment decision support and/or monitoring the status of a patient
WO2019023055A1 (en) Physiologic monitoring kits
WO2023011493A1 (en) Double-blind experimental apparatus, electronic device, double-blind experimental system, and storage medium
WO2023142534A1 (en) Program-controlled device and implantable nerve stimulation system
CN114733067A (en) Non-implanted multi-target feedback type electrical stimulator
US8016812B2 (en) Techniques for delivery of stem cell and related therapies to treat cardiac conditions
Neimat et al. A novel closed-loop electrical brain stimulation device featuring wireless low-energy ultrasound power and communication

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
GR01 Patent grant
GR01 Patent grant
CP03 Change of name, title or address

Address after: Room 406, 4th Floor, Building 8, 128 Dieqiao Road, Pudong New Area, Shanghai, 200120

Patentee after: Borui Kang Technology (Shanghai) Co.,Ltd.

Country or region after: China

Address before: 213164 chuangyangang 6-b602, Changzhou science and Education City, No. 18, Changwu Middle Road, Wujin District, Changzhou City, Jiangsu Province

Patentee before: NEURACLE TECHNOLOGY (CHANGZHOU) CO.,LTD.

Country or region before: China

CP03 Change of name, title or address