Driving an optical sensor of a drug delivery device or drug delivery accessory device

By employing priming light pulses and adaptive pulse rate switching, the method stabilizes sensor output in drug delivery devices, improving accuracy and reducing energy consumption in detecting dose programming components.

JP2024533664APending Publication Date: 2024-09-12SANOFI SA(FR)
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
JP2024518321
Authority / Receiving Office
JP · JP
Patent Type
Applications
Current Assignee / Owner
Priority Date
2021-09-24
Filing Date
2022-09-22
Publication Date
2024-09-12

AI Technical Summary

Technical Problem

Existing drug delivery devices face challenges in accurately detecting the movement of movable dose programming components due to variations in sensor output signals caused by changes in pulse rates, leading to measurement uncertainties and increased energy consumption.

Method used

The method involves generating priming light pulses at a different rate before measurement light pulses to stabilize the optical sensor's state and switching pulse rates based on threshold crossings, reducing measurement uncertainties and energy usage.

Benefits of technology

This approach enhances the accuracy of dose detection in drug delivery devices by minimizing signal fluctuations and optimizing energy consumption, particularly in devices with rotary encoder systems.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 2024533664000001
    Figure 2024533664000001
Patent Text Reader

Abstract

A method of operating an optical sensor of a drug delivery device or drug delivery accessory device is disclosed, the drug delivery device including a movable dose programming component, and an optical sensor is provided and configured to detect movement of the movable dose programming component relative to a sensor mechanism during administration of a drug by generating measurement light pulses and detecting reflection of the measurement light pulses from the movable dose programming component, the method comprising configuring the optical sensor to generate measurement light pulses at at least one predefined pulse rate and to generate at least one priming light pulse prior to the one or more measurement light pulses, the at least one priming light pulse being generated at one of the at least one predefined pulse rates.
Need to check novelty before this filing date? Find Prior Art

Description

[Technical field]

[0001] The present disclosure relates to driving optical sensors in a drug delivery device or drug delivery accessory. [Background technology]

[0002] WO2016131713A1 relates to a data collection device for attachment to an injection device and collecting drug dosage information therefrom. The data collection device may include a mating mechanism configured to attach to the injection device, a sensor mechanism configured to detect movement of a movable dose programming component of the injection device relative to the data collection device during delivery of the drug, and a processor mechanism configured to determine a drug dosage administered by the injection device based on the detected movement. The sensor mechanism may include a light sensor, e.g. an optical encoder unit, particularly including a light source such as a light emitting diode (LED), and a photodetector such as an optical transducer. The processor mechanism may be configured to monitor the time elapsed since a pulse was output by the optical encoder and to determine the drug dosage if the time exceeds a predetermined threshold.

[0003] WO 2019101962 A1 describes an injection device including a movable dose programming component including a rotary encoder system having a predetermined angular periodicity, and a sensor mechanism including a first optical sensor configured to detect movement of the movable dose programming component relative to the sensor mechanism during drug administration. The first optical sensor is configured to operate at a first frequency in a strobed sampling mode. The injection device further includes a second optical sensor configured to detect movement of the rotary encoder system relative to the second optical sensor and to operate at a second frequency lower than the first frequency in the strobed sampling mode. Furthermore, the injection device includes a processor mechanism configured to identify a drug dose to be administered by the injection device based on the detected movement of the rotary encoder system. The rotary encoder system may be configured to be rotatable relative to the first optical sensor during a dial mode of operation of the injection device. The second optical sensor may be configured to operate at a second frequency lower than the first frequency in the strobed sampling mode. WO2019101962A1 discloses another embodiment that uses an optical sensor and rotary encoder system to determine a medication or drug dose. Summary of the Invention [Means for solving the problem]

[0004] This disclosure describes methods and devices for driving optical sensors in a drug delivery device or drug delivery accessory device.

[0005] In one aspect, the present disclosure provides a method of driving an optical sensor of a drug delivery device or drug delivery accessory, the drug delivery device including a movable dose programming component, the optical sensor being provided and configured to detect the movement of the movable dose programming component with respect to the sensor mechanism during administration of the drug by generating measurement light pulses and detecting the reflection of the measurement light pulses from the movable dose programming component, the method including configuring the optical sensor to generate measurement light pulses at at least one predefined pulse rate and to generate at least one priming light pulse prior to the one or more measurement light pulses, the at least one priming light pulse being generated at one of the at least one predefined pulse rates, in particular the at least one priming light pulse being used only to bring the optical sensor into a suitable state for performing measurements with the one or more measurement light pulses, in particular a kind of "steady state". The generation of the priming light pulses at the selected predefined pulse rate stimulates the signal behavior of the optical sensor which generates the measurement light pulses at the selected predefined pulse rate. With the at least one priming light pulse, the light sensor can in principle be brought into a certain "steady state" and therefore more independent of the selected one of the at least one predefined pulse rates. The priming light pulse differs from the measurement light pulse in that it is not used to perform a measurement, but rather to "prepare" the light sensor for measuring by bringing it into a certain "steady state". For example, when the light sensor comprises a light pulse generator and a photosensor, sampling of the photosensor may not be performed during the emission of the at least one priming light pulse by the pulse generator. The priming light pulse may in particular be adapted to one or more requirements of the light sensor for performing a measurement, in particular to bring it into a state that is most suitable for performing an accurate measurement with the measurement light pulse. The priming light pulse may therefore in principle be generated with parameters that are different from those used to generate measurement light pulses, for example with different amplitudes or durations.

[0006] The at least one priming light pulse may in particular be generated with approximately the same parameters as the measurement light pulse, e.g. approximately the same amplitude, approximately the same duration, approximately the same energy, in order to obtain an accurate stimulation of the signal behavior of the optical sensor generating the measurement light pulse.

[0007] In an embodiment, configuring the light sensor to generate at least one light pulse may include generating at least one priming light pulse that may have one or more parameters different from the corresponding parameters for generating the measurement light pulse, in particular the at least one parameter including one or more of the following: energy of the priming and measurement light pulses, duration of the priming and measurement light pulses. For example, the priming light pulse may be generated with a lower or higher energy and / or a shorter or longer duration than the measurement light pulse to meet specific requirements of the light sensor.

[0008] The movable dose programming component, in an embodiment, includes a rotary encoder system with a predefined angular periodicity, from which reflections of measurement light pulses can be detected. The spatial resolution of the optical sensor has a significant effect on the transitions of the movable dose programming component, in particular the rotary encoder system, in particular the transitions of a reflective target, such as a flag on the movable dose programming component, in particular the rotary encoder system. The optical sensor therefore usually detects the edges of a step change in the reflectivity of the target as a fuzzy or smooth transition, rather than as an abrupt change in its output signal. As a result, the amplitude of the sensor output signal is position dependent around the transitions of the movable dose programming component, in particular the rotary encoder system, e.g. the transitions of a flag. This may also mean that the mechanical transition points, in particular the flag transition points, may not coincide with those detected by the sensor output signal. However, in an embodiment, the method disclosed herein may allow the optical sensor to be configured to generate measurement light pulses at different pulse rates. A higher pulse rate may in particular be used to sample edges or transitions of a rotary encoder system with a higher spatial resolution than a lower pulse rate. The application of different pulse rates may in particular help to save energy, for example by using a higher pulse rate only for sampling edges or transitions of targets of a movable dose programming component, in particular rotary encoder systems.

[0009] The term "light pulse," as used herein, may include electromagnetic radiation pulses in portions of the electromagnetic spectrum that may include ultraviolet, visible, and infrared light. Thus, the term "light pulse" should not be construed as being limited to visible light. Indeed, "light pulse," in the context of this disclosure, may refer to any electromagnetic radiation pulse that can be detected with a compatible detector, particularly a light sensor.

[0010] In an embodiment, the measurement light pulses may be generated at either a first pulse rate or at least one second pulse rate, the first pulse rate being lower than the at least one second pulse rate, and the at least one priming light pulse may be generated at one of the at least one second pulse rates, and the light sensor may be configured to generate at least one priming light pulse before generating the measurement light pulses at the first pulse rate, each priming light pulse being generated at a time shift corresponding to the at least one second pulse rate before the subsequent measurement light pulse. The change in pulse rate may cause a shift in the output signal from the light sensor, particularly due to the sensor characteristics, if, for example, a phototransistor is used in the light sensor. To eliminate or at least reduce the occurrence of such a shift, one or more priming light pulses may be generated at least before generating the measurement pulses at the first pulse rate. Therefore, the driving method of the light sensor disclosed herein can mitigate the fluctuation of the sensor output signal amplitude resulting from different pulse rates used to generate the measurement light pulses. This can reduce measurement uncertainties due to small shifts in the output of the light sensor, especially in the output of the phototransistor of the light sensor, while at the same time the energy usage of the light sensor can be minimized by reducing the occurrence of unnecessary changes in the pulse rate due to fluctuations in the sensor output signal, which can trigger a pulse rate switch. By generating a priming light pulse with a time shift before the measurement light pulse, corresponding to at least one second pulse rate, it is possible to obtain an optimal compensation of undesirable effects that may occur due to the pulse rate switch.

[0011] In another embodiment, configuring the light sensor to generate measurement light pulses at either the first pulse rate or the at least one second pulse rate may include switching the pulse rate depending on whether the output signal of the light sensor is above or below at least one predefined threshold. The at least one threshold may be specifically selected to enable switching the pulse rate such that transitions can be detected, at least in part, with higher spatial resolution. The at least one predefined threshold may be a static threshold, specifically selected by test measurements or determined by some calibration.

[0012] In an embodiment, the optical sensor may be configured to generate measurement light pulses at a first pulse rate when the output signal is lower than at least one predefined threshold value, and to generate measurement light pulses at at least one second pulse rate when the output signal is higher than at least one predefined threshold value. For example, the at least one threshold value may be selected to be lower than a typical reflection of the measurement light pulses from a target of the rotary encoder system, but higher than if there is no reflection, so that at the start of a transition to a target of the rotary encoder system, the pulse rate may be switched from the first to the at least one second pulse rate, and at the end of the transition, it may be switched back to the first pulse rate again. Therefore, sampling of the transition may be performed with a higher spatial resolution, resulting in a more accurate output signal of the optical sensor.

[0013] In another embodiment, a second pulse rate and a threshold value may be provided and the light sensor may be configured to switch between generating measurement light pulses at the first and second pulse rates when the output signal of the light sensor crosses the threshold value, which may require less implementation effort compared to implementing multiple second pulse rates and multiple threshold values ​​and may result in sufficient accuracy for some applications.

[0014] In yet another embodiment, the light sensor may be configured to generate measurement light pulses at a first pulse rate when the light sensor output signal is above a threshold and to generate measurement light pulses at a second pulse rate when the light sensor output signal is below the threshold, or vice versa.

[0015] In yet another embodiment, the method may include varying the at least one threshold value, in particular in response to the detected reflection, so that the threshold value can be adapted to, for example, the reflectivity of the rotary encoder system, in particular of a target of the rotary encoder system. If the reflectivity decreases over time, for example due to dust, the at least one threshold value can be lowered, for example to correspond to a lower reflectivity. Also, a modification of the at least one threshold value can be provided for possible degradation of the optical sensor.

[0016] In yet another embodiment, the light sensor may be configured to generate measurement light pulses at the first pulse rate as a default, so that the method may start with a minimum energy demand for the measurement, thereby conserving, for example, battery power of the infusion device. In an alternative embodiment, the light sensor may be configured to generate measurement light pulses at the second pulse rate as a default.

[0017] In one embodiment, the first pulse rate may be about 2 milliseconds and the second pulse rate and time shift may be about 250 microseconds. This particular implementation may be particularly suitable for injection devices such as those described in WO2014033195.

[0018] In an embodiment, the method may further include at least one of the following: modulating the duration of the measurement light pulses, changing the amplitude and / or waveform of the output signal of the optical sensor, modulating the energy of the measurement light pulses. These measures may further reduce measurement uncertainty due to pulse rate switching.

[0019] In another aspect, the present disclosure provides an apparatus for driving an optical sensor of a drug delivery device or a drug delivery accessory, the apparatus being configured to perform the methods disclosed herein, the apparatus in particular comprising a controller, in particular a microcontroller, the controller being configured to perform the methods disclosed herein by means of a program, which may for example be part of the firmware of the controller of the electronic components of the drug delivery device or accessory.

[0020] In certain embodiments, the device may be configured to determine the dose delivered and / or selected by the drug delivery device based on the detected reflection of a measurement light pulse from a movable dose programming component.

[0021] In another aspect, the present disclosure provides a sensor unit of a drug delivery device or drug delivery accessory device, the sensor unit comprising one or more optical sensors driven by the device disclosed herein, the sensor unit being provided and configured for incorporation into the drug delivery device or drug delivery accessory device. The sensor unit may, for example, comprise a printed circuit board (PCB) comprising electronic components including a controller and other electronic components necessary for operation of the controller and the at least one optical sensor, and the at least one optical sensor may be wired to the PCB.

[0022] In yet another aspect, the present disclosure provides a drug delivery device or drug delivery accessory, the drug delivery device including a movable dose programming component, the drug delivery device or drug delivery accessory including a sensor unit as disclosed herein. [Brief description of the drawings]

[0023] [Figure 1] 1 illustrates an injection device according to an embodiment. [Diagram 2] FIG. 1 is a side view of a rotary encoder system. [Diagram 3] FIG. 3 is a plan view of the encoder system shown in FIG. 2. [Figure 4]FIG. 2 shows a schematic block diagram of an embodiment of a device controller. [Diagram 5] 3 illustrates an example sequence of light pulses generated to drive a light sensor and an example trace of the output signal of the light sensor according to an embodiment. [Figure 6] 6 shows a detailed diagram of the exemplary sequence of FIG. 5. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS

[0024] In the following, embodiments of the present disclosure are described with respect to injection devices, particularly pen-type injection devices. However, the present disclosure is not limited to such applications and may be equally utilized with other types of drug delivery devices, particularly those with shapes other than pens. All absolute values ​​are given herein by way of example only and should not be construed as limiting.

[0025] An example of an injection device with a combined injection button and grip is described in WO2014033195. Other examples of injection devices with separate injection button and dial grip components are disclosed, for example, in WO2004078239.

[0026] In the following description, the terms "distal", "distally" and "distal end" refer to the end of the injection pen at which the needle is located, while "proximal", "proximal" and "proximal end" refer to the opposite end of the injection device at which the injection button or dose knob is located.

[0027] FIG. 1 is an exploded view of an injection pen 1, for example the injection pen described in WO2014033195. The injection pen 1 of FIG. 1 is a prefilled disposable injection pen, comprising a housing 10, in which an insulin container 14 is accommodated, to which a needle 15 can be attached. The needle is protected by an inner needle cap 16 and either an outer needle cap 17 or another cap 18. The insulin dose to be discharged from the injection pen 1 can be programmed or "dialed" by turning the dose knob 12, and the currently programmed dose is then displayed, for example in multiples, via the dose window 13. For example, if the injection pen 1 is configured to administer human insulin, the dose can be displayed in so-called international units (IU), where 1 IU is the biological equivalent of about 45.5 micrograms (1 / 22 mg) of highly pure crystalline insulin. Other units can be used in injection devices for delivering insulin analogues or other drugs. It should be noted that the selected dose may equally be displayed in different ways than that shown in the dose window 13 of FIG.

[0028] The dose window 13 may be in the form of an opening in the housing 10 that allows a user to view a limited portion of a dial sleeve 70 that is configured to move as the dose knob 12 is turned to provide a visual indication of the currently programmed dose. The dose knob 12 rotates in a helical path relative to the housing 10 when turned during programming. In this example, the dose knob 12 includes one or more formations 71 a, 71 b, 71 c to facilitate attachment of a data collection device (a drug delivery or injection accessory).

[0029] The injection pen 1 may be configured such that turning the dose knob 12 produces a mechanical click sound to provide audio feedback to the user. The dial sleeve 70 mechanically interacts with a piston in the insulin container 14. In this embodiment, the dose knob 12 also functions as an injection button. When the needle 15 is driven into the patient's skin area and the dose knob 12 is pressed axially, the insulin dose displayed in the viewing window 13 is expelled from the injection pen 1. If the needle 15 of the injection pen 1 remains in the skin area for a certain period of time after the dose knob 12 is pressed, a high percentage of the dose is actually injected into the patient's body. The expulsion of the insulin dose may also produce a mechanical click sound, which is different from the sound produced when the dose knob 12 is rotated while dialing the dose.

[0030] In this embodiment, during delivery of an insulin dose, the dose knob 12 moves axially and does not rotate back to its original position, while the dial sleeve 70 rotates back to its original position, e.g., to indicate a dose of zero units.

[0031] The injection pen 1 can be used for multiple injection processes until the insulin container 14 is empty or the expiration date of the medication within the injection pen 1 is reached (eg, 28 days after first use).

[0032] Furthermore, in order to expel air from the insulin container 14 and needle 15 before using the injection pen 1 for the first time, it may be necessary to perform a so-called "prime shot", for example by holding the injection pen 1 with the needle 15 facing upwards, selecting two units of insulin and pressing the dose knob 12. For ease of explanation, in the following it is assumed that the discharged amount substantially corresponds to the injected dose, whereby for example the amount of drug discharged from the injection pen 1 is equal to the dose received by the user. However, differences between the discharged amount and the injected amount (e.g. losses) may need to be taken into account.

[0033] As mentioned above, the dose knob 12 also functions as an injection button, whereby the same components are used for dialing and ejection. A sensor mechanism 215 (FIGS. 2 and 3) including one or more optical sensors may be mounted in the injection button or dose knob 12 and configured to sense the relative rotational position of the dial sleeve 70 with respect to the injection button 12. This relative rotation equates to the size of the ejected or delivered dose and can be used to generate and store or display administration history information. The sensor mechanism 215 may include a first (optical) sensor 215a and a second (optical) sensor 215b. The sensor mechanism 215 may also be mounted on a drug delivery or injection accessory device, which may be adapted for use with different injection devices 1 and configured to collect the data obtained by the sensor mechanism 215.

[0034] The optical sensors 215a, 215b of the sensor mechanism 215 may be used with an encoder system, such as the system 500 shown in Figs. 2 and 3. The encoder system may be configured for use with the device 1 described above and may have a predefined angular periodicity as described below. As shown in Figs. 2 and 3, the first sensor 215a and the second sensor 215b are configured to target a specially adapted area at the proximal end of the dial sleeve 70. In this embodiment, the first sensor 215a and the second sensor 215b are IR reflective sensors. Thus, the specially adapted proximal area of ​​the dial sleeve 70 is divided into a reflective area 70a and a non-reflective (i.e. absorbing) area 70b, resulting in a predefined angular periodicity. The portion of the dial sleeve 70 that includes the reflective area 70a and the non-reflective (i.e. absorbing) area 70b may be referred to as an encoder ring, which has a predefined angular periodicity defined by the areas 70a, 70b, as shown in Figs. 2 and 3.

[0035] The light sensors 215a, 215b may include a pulse generator, in particular an LED, and a photo sensor, in particular a photodiode or phototransistor. The pulse generator and the photo sensor may be integrated in one housing, in particular as a single-chip solution, or they may also be discrete electronic components. It should be noted that the pulse generator and the photo sensor may operate independently, in particular they may be controlled by different signals and clocks. The term "pulse rate" as used herein is to be understood in particular as the pulse rate of the pulse generator, at which, for example, a pulse clock or frequency, a light pulse for measurement and / or a priming light pulse is emitted. The photo sensor may be sampled, i.e. controlled, by a signal having a sampling rate, which in particular means that the photo sensor is read at the sampling rate or that the output signal of the photo sensor is generated at the sampling rate. The pulse rate and the sampling rate may be the same or they may be different. The pulse rate and the sampling rate may generate signals that occur simultaneously, or the pulse rate and the sampling rate may generate signals that are offset in time, or the pulse rate and the sampling rate may generate signals that have different durations, e.g., a phase shift, and / or the generator pulse duration may differ from the sensor sample time. In particular, during the emission of the at least one priming light pulse by the pulse generator, no sampling of the photosensor may be performed, since the at least one priming light pulse may be provided in particular for the purpose of generating a kind of "steady state" of a photosensor, rather than for the purpose of creating a sample of the photosensor's output signal.

[0036] To minimize production costs, it may be advantageous to form these areas 70a, 70b from injection molded polymer. For polymer materials, the absorptivity and reflectivity can be controlled using additives, e.g. carbon black for absorptivity and titanium dioxide for reflectivity. Alternative implementations are possible where the absorptive areas are molded polymer material and the reflective areas are made of metal (either additional metal components or selective metallization of segments of the polymer dial sleeve 70).

[0037] Having two sensors facilitates the power management methods described below. The first sensor 215a is positioned to target the sequence of alternating reflective and non-reflective regions 70a and 70b at a frequency commensurate with the resolution required for the dosing history requirements of a particular drug or dosing regime, e.g., 1 IU. The second sensor 215b is positioned to target the sequence of alternating reflective and non-reflective regions 70a and 70b at a lower frequency compared to the first sensor 215a. It should be understood that the encoder system 500 can function with only the first sensor 215a to measure the dispensed dose. The second sensor 215b facilitates the power management methods described below.

[0038] 2 and 3, two sets of encoding regions 70a, 70b are shown as concentric circles, one on the outside and one on the inside. However, any suitable arrangement of the two encoding regions 70a, 70b is possible. It should be kept in mind that although regions 70a, 70b are shown as castellated regions, other shapes and configurations are possible.

[0039] The device 1 or an accessory device for mounting to the device 1 may also include a sensor unit 700, as shown diagrammatically in Fig. 4. The sensor unit 700 may include a sensor mechanism 215 including two sensors 215a, 215b and a device for controlling the sensor mechanism 215. Controlling the sensor mechanism 215 may in particular include driving at least one of the optical sensors 215a, 215b, where driving in particular means how to control the optical sensor to generate light pulses for measurement of the rotation of the encoder ring and to detect reflections of these measurement light pulses from the reflective area 70a. The control device may include one or more processors, such as, for example, a microprocessor, a digital signal processor (DSP), an application specific integrated circuit (ASIC), a field programmable gate array (FPGA), or the like; memory units 24, 25 including a program memory 24 and a main memory 25 capable of storing software executed by the processor mechanism 23; a communication unit or output 27, which may be a wireless communication interface for communicating with other devices via a wireless network such as Wi-Fi™ or Bluetooth®, and / or an interface for a wireless communication link, such as a socket for receiving, for example, a Universal Serial Bus (USB), mini-USB, or micro-USB connector; a display unit 30, such as, for example, an LCD (liquid crystal display), one or more LEDs, and / or an e-paper display; a user interface (UI) 31, such as, for example, one or more buttons and / or touch input devices; a power switch 28; and a battery 29.

[0040] The components 23, 24, 25, 27, 28, 29, 30, 31 of the control device may be soldered to a PCB that includes wiring for the components. The sensor mechanism 215 may be mounted on the PCB or wired to the processor mechanism 23. The implementation of the sensor unit 700 depends on the drug delivery device or drug delivery accessory in which it is to be incorporated. For example, a PCB with the components 23, 24, 25, 27, 28, 29, 30, 31 may be incorporated at the distal end of the infusion device 1 and the sensors 215a, 215b may be arranged as shown in Figures 2 and 3 and connected to the PCB by wires. At least some of the components 23, 24, 25, 27 may also be included in a SoC (System on Chip) or a microcontroller.

[0041] The firmware stored in the program memory 25 may configure the processor mechanism 23 to control the sensor mechanism 215 to detect the discharge of a drug dose delivered using the device 1, with each of the sensors 215a, 215b outputting a sensor signal corresponding to the detected delivered drug dose, as described above, particularly with respect to Figs. 2 and 3. The processor mechanism 23 receives the sensor signal of each of the sensors 215a, 215b to obtain a reading of each sensor signal, which is processed to calculate the delivered dose. The reading may include, for example, one or more voltage samples of the analog voltage signal of the sensor 215a, 215b. The reading may also include an integral of the analog voltage signal of the sensor 215a, 215b over a certain time range. Instead of a voltage signal, a current, charge, or other output signal generated by the sensor may also be used to obtain a reading, for example the frequency, frequency shift of the sensor signal. Readings may be obtained by each sensor 215a, 215b during operation of the infusion device 1 to measure the number of units dispensed by the device 1. Measuring the number of ejected units may involve counting peaks in each sensor signal and deriving the delivered dose from the counted peaks, as described in more detail below.

[0042] It is advantageous to reduce the power usage of the encoder system 500 so that the size of the battery 29 that needs to be incorporated into the device 1 can be reduced. The sensors 215a, 215b used in this embodiment require a certain amount of power to operate. This embodiment is arranged so that the sensors 215a, 215b can be switched on and off intermittently with a controlled period (i.e. in a strobed sampling mode). Inherently, there is a limit to the maximum rotational speed that can be counted by a sampled encoder system before aliasing occurs. Aliasing is the phenomenon where the sampling rate is lower than the rate at which the sensed area passes the sensor, meaning that miscounting occurs when changes in area are missed. The second sensor 215b, which has a lower frequency compared to the first frequency 215a, can withstand higher rotational speeds before it also begins to alias. Although the second sensor 215b cannot resolve the dispensed dose to the same resolution as the first sensor 215a, the output of the second sensor 215b remains reliable at higher speeds. Thus, both sensors 215a, 215b can be used in combination to accurately determine the dose delivered up to a first threshold rotational (dispensing) speed. The sensors 215a, 215b can then be used to determine the approximate dose delivered up to a second (higher) threshold dose speed. Above the second threshold speed, the sensors 215a, 215b cannot accurately or approximately determine the dose delivered, and therefore the second threshold is set higher than a speed that is physically impossible with the injection pen 1.

[0043] The first rate threshold is determined by the pulse rate of the first sensor 215a and the period of the encoder field transitions fixed to the resolution required by the intended drug or administration regime (e.g., one transition per IU). The second rate threshold is determined by the pulse rate of the second sensor 215b and the period of the encoder field transitions. The first threshold is set such that the maximum range of ejection rates can be covered by the system for accurate reporting of the ejected dose.

[0044] The exemplary embodiment shown in Figure 3 has a first sensor 215a targeting a zone transition of 1 transition per IU of delivered dose and a second sensor 215b targeting a zone transition of 1 transition per 6 IU of delivered dose. Other options are possible, including 1 transition per 2 IU, 1 transition per 4 IU, 1 transition per 8 IU, 1 transition per 12 IU units. Each of these options is possible because there are 24 separate zones 70a, 70b per revolution in the encoder system 500 shown in Figure 3. In general, if the number of separate zones 70a, 70b per revolution were n units, there would be an option at 1 zone transition per m units, where m is any integer factor of n greater than 1 and less than n.

[0045] The slower the sampling frequency of both sensors 215a, 215b, the lower the power consumption required and therefore the smaller the required size of the battery 29. Therefore, it is optimal to keep the sampling frequency as low as possible by design.

[0046] The firmware stored in the program memory 25 and executed by the processor mechanism 23 for detecting the delivered dose is also implemented to configure the light sensor 215a and / or 215b to generate measuring light pulses, i.e. to drive the light sensors 215a, 215b. The light sensors 215a, 215b can be configured by the processor mechanism 23 to generate light pulses at different pulse rates, in particular at a first pulse rate or at least one second pulse rate. The first pulse rate here is lower than the at least one second pulse rate. The pulse rate determines the time interval between two successive light pulses.

[0047] Fig. 5 shows an example of a sequence of light pulses 1000 generated by the light sensor 215a, 215b driven by the processor arrangement 23 configured by firmware. The illustrated sequence of light pulses 1000 comprises a first sequence of light pulses 1002 with a first, i.e. "slow", pulse rate, with a time interval T1 between successive pulses 1002. The time interval T1 may for example be about 2 milliseconds, i.e. the time interval between two successive light pulses 1002 is about 2 milliseconds, for example in a specific embodiment of an injection pen as described in WO2014033195. This first sequence of light pulses 1002 may in particular be generated by default and adapted to the characteristics of the encoder ring, in particular the number of areas 70a, 70b, their dimensions and the distance between the reflecting areas 70a. This may be chosen as a compromise between the energy consumption required for sampling and the spatial resolution required to obtain a sensor output signal representative of the transition between the areas 70a and 70b.

[0048] The sequence of light pulses 1000 also includes a second sequence of light pulses 1004 with a second, i.e. "fast" pulse rate, the time interval between successive pulses being T2. The time interval T2 may for example be about 250 microseconds in a particular embodiment of an injection pen, for example as described in WO2014033195, i.e. the time interval between two successive light pulses 1004 is 250 microseconds, and is therefore much smaller than the time interval T1 between light pulses 1002. The faster pulse rate of light pulses 1004 provides a higher spatial resolution than the slower pulse rate of light pulses 1002, and is therefore particularly suitable for detecting the transition between areas 70a and 70b with greater accuracy than light pulses 1002.

[0049] Although only four "fast" light pulses 1004 are shown in FIG. 5, it should be understood that more or fewer "fast" light pulses 1004 may be provided, in particular 16 light pulses, which may be adapted for implementation with an injection device, for example as described in International Patent Application No. 2014033195.

[0050] It should be noted that other sequences of light pulses with different pulse rates, for example faster pulse rates than the first and second pulses, may be provided to obtain even greater spatial resolution.

[0051] The output signal 1008 of the optical sensor is shown in the bottom example trace of Figure 5. The output signal 1008 represents the detection of a transition of the encoder ring between areas 70a and 70b. When the transition between areas 70a and 70b is sampled or detected by the optical sensor, the output signal 1008 also changes at time 1012 as shown in Figure 5, which represents an ideal edge detection of the transition between areas 70a, 70b.

[0052] As outlined above, a drive scheme using two or more different pulse rates can increase the spatial resolution of the area of ​​the encoder ring, especially when the transition between areas 70a and 70b must be detected. In particular, firmware can configure the processor mechanism 23 to switch from a first to a second pulse rate when the transition between areas 70a and 70b should be sampled with a higher spatial resolution than can be achieved with the first pulse rate. The spatial resolution of the optical sensor can have a significant effect on the flag transition, or the transition between areas 70a and 70b. The optical sensor typically detects the edge of the step change in the target reflection as it may appear in the transition between areas 70a and 70b, not as an abrupt change in its output signal, but as a fuzzy or smoothed transition. As a result, the amplitude of the sensor output signal can be position-dependent around the flag transition. This can also mean that the mechanical flag transition point may not coincide with that detected by the optical sensor. Therefore, by switching to a faster pulse rate when a transition between areas 70a and 70b appears within the detection range of the optical sensor 215, a more accurate sensor signal may be obtained, particularly a sensor signal that more accurately represents the detected transition.

[0053] The switching of the pulse rate may be controlled by one or more thresholds, as shown in a more detailed diagram of the transition detection in FIG. 6. Two exemplary predefined thresholds TH, TH' are shown in FIG. 6. Each predefined threshold TH, TH' may be provided to trigger the switching of the pulse rate from T1 to T2 to obtain a better spatial resolution. The threshold TH is greater than the threshold TH'. The thresholds TH, TH' may be, for example, voltage or current values ​​of the output voltage or current, respectively, of the light receiving part of the optical sensor, e.g., a phototransistor, a photodiode.

[0054] The firmware may configure the processor mechanism 23 to process the output signal of the light sensor by comparing it to at least one of the thresholds TH, TH'. When the processor mechanism 23 detects that the output signal of the light sensor is above or below the threshold TH, TH' (depending on the behavior of the output signal when the transition between the areas 70a and 70b is detected), the processor mechanism 23 may switch the pulse rate from the first to the second, i.e., increase the pulse rate by generating light pulses 1004 with a smaller time interval T2, resulting in a higher spatial resolution.

[0055] A larger threshold TH may be provided, for example, for a sharper transition between areas 70a and 70b, e.g., when the photosensor output signal changes with a larger slope, as shown in FIG. 6 by example trace 1008'. A smaller threshold TH' may be provided, for example, for a smoother transition between areas 70a and 70b, e.g., when the photosensor output signal changes with a smaller slope, as shown in FIG. 6 by example trace 1008''. The exceeding or falling below of both thresholds TH, TH' occurs at time 1010, which causes a pulse rate switch to occur at time 1012.

[0056] The thresholds TH, TH' may be predefined values, but may also be adjusted to a particular implementation of the encoder ring, for example to better adapt the switching of the pulse rate to the reflectivity of the reflective area 70a. For example, the thresholds TH, TH' may be adapted to a calibration procedure, during which they may be adjusted, for example, to the reflectivity.

[0057] Although FIG. 6 shows the output signal 1008 falling below the thresholds TH, TH', it should be understood that the output signal 1008 may be detected to exceed the thresholds TH, TH', particularly when the trace of the output signal 1008 reverses, i.e., rises from a low value to a high value, when a transition from non-reflective area 70b to reflective area 70a should be detected, which is shown in FIGS. 5 and 6 by a second transition of the signal 1008 from a low value to a high value.

[0058] It is also possible to change other parameters of the driving method of the light sensor. The firmware may configure the processor mechanism 23 to modulate, among other things, the duration of the light pulses 1002 and 1004. For example, the duration may be modulated with the rotation speed of the encoder ring, so that the measurement light pulses 1002 and 1004 are better adapted to higher or lower rotation speeds. Another parameter is the amplitude of the output signal, which can also be modulated, among other things, depending on the pulse rate. For example, when the pulse rate is switched from a lower pulse rate to a higher one, the amplitude of the output signal may be increased to reduce the fluctuations due to the switching of the pulse rate.

[0059] Next, we will discuss measures to mitigate the effects of pulse rate switching on the output signal of the light sensor. First, we will explain these effects: A change in pulse rate usually causes a small shift in the output signal of the light sensor, for example at the output of the phototransistor, due to the sensor characteristics. If the encoder ring is positioned so that the light sensor is close to a flag transition (transition between areas 70a and 70b) and the output signal is close to a threshold, for example TH or TH' in FIG. 6, it is assumed that the procedure will remain at a high pulse rate due to small variations in the amplitude of the output signal due to the change in pulse rate. For example, in a two-pulse rate implementation, crossing the threshold will cause a sample at the high pulse rate, which then drops to a low pulse rate, resulting in a small reduction in amplitude, which may trip the threshold and switch it back to the high pulse rate. Such a situation may cause fluctuations in the implementation of the encoder ring in Gray code, which may increase the measurement uncertainty. Energy may also be wasted by unnecessary sampling at a high rate.

[0060] This can be mitigated by including a priming light pulse, e.g., a priming IR LED drive pulse, before the light pulse used for the measurement. In Figures 5 and 6, the priming light pulse is indicated by reference numeral 1006 and is generated a time interval T2 before the measurement light pulse 1002, which is of the same duration as the fast, or second, pulse rate of the light pulse 1004. It can be shown that for optimal compensation, this duration should coincide with the duration of the fast, or second, pulse rate.

[0061] The priming light pulse 1006 can be generated with the same parameters as the measurement light pulses 1002 and / or 1004, in particular with the same duration and energy (in particular amplitude and emission spectrum). However, it may also be possible and advantageous for the priming light pulse 1006 to differ from the measurement light pulses 1002 and / or 1004 in one or more parameters, for example to better mitigate undesirable effects due to pulse rate switching. For example, the duration and / or energy of the priming light pulse may differ from those of the measurement light pulses, in order to match the priming light pulse to the characteristics of the light sensor. In particular, a different duration and / or energy of the priming light pulse may be more suitable for reducing a shift in the output signal of the light sensor depending on the characteristics of the sensor, and in particular a shorter duration and lower energy than the measurement light pulse may be sufficient to mitigate a shift in the output signal of the light sensor when the pulse rate is switched.

[0062] Mitigation may also be performed by appropriately modulating the duration of the drive pulse to generate the light pulse, or by changing the threshold, or by modulating the amplitude of the output signal of the light sensor.

[0063] The method of driving the optical sensor disclosed herein is particularly suitable for injection devices including a movable dose programming component with a rotary encoder system with a predefined angular periodicity, such as the injection pen described in WO2014033195. However, the method of driving according to the present disclosure is applicable to drug delivery devices in general that have a movable dose programming component with a rotary encoder system with a predefined angular periodicity. It is to be understood that the method of the present disclosure is also applicable to drug delivery accessory devices, for example wireless communication devices provided for attachment to a drug delivery device, such as an injection device, and designed and configured to provide electronic functions such as dose recording and / or connectivity with external electronics. Such an accessory device may include, for example, electronic components comprising a sensor unit 700 as shown in FIG. 4 and designed to be able to measure the dose selected and / or delivered by the drug delivery device to which the accessory device is attached. The electronic components included in the accessory device may then execute the method disclosed herein by firmware constituting a controller, such as a microcontroller, for driving one or more optical sensors, provided in particular for generating measurement light pulses for detecting dose selection and / or ejection. An implementation of an optical encoder system for which the methods disclosed herein are particularly suitable is disclosed, for example, in the aforementioned WO 2019101962 A1.

[0064] According to the method disclosed herein, an output signal of the optical sensor can be generated that is accurately representative of the movement of the movable dose programming component. This can be obtained in particular by switching the pulse rate by which the measurement light pulses are generated to sample the transitions between different areas of the rotary encoder system from a first lower pulse rate to at least one second higher pulse rate. The switching can in particular be triggered by the output signal of the optical sensor crossing one or more threshold values. In order to reduce the influence of the pulse rate switching on the output signal, the embodiments disclosed herein propose to introduce a priming light pulse that is generated before the measurement light pulses at the first pulse rate. The priming light pulse is in particular generated with a time shift corresponding to the at least one second pulse rate before the measurement light pulses.

[0065] The terms "drug" or "medicament" are used interchangeably herein to refer to a pharmaceutical formulation containing one or more active pharmaceutical ingredients or pharma- ceutically acceptable salts or solvates thereof, and optionally a pharma- ceutically acceptable carrier. An active pharmaceutical ingredient (API) is, in its broadest sense, a chemical structure that has a biological effect on humans or animals. In pharmacology, drugs or agents are used in the treatment, cure, prevention, or diagnosis of disease, or otherwise to improve physical or mental health. Drugs or agents may be used for a limited period of time, or periodically for chronic conditions.

[0066] As described below, a drug or agent may include at least one API, or a combination thereof, in various types of formulations for the treatment of one or more diseases. Examples of APIs may include small molecules with a molecular weight of 500 Da or less, polypeptides, peptides, proteins (e.g., hormones, growth factors, antibodies, antibody fragments, and enzymes), carbohydrates and polysaccharides, and acids, double-stranded or single-stranded DNA (including naked and cDNA), RNA, antisense nucleic acids such as antisense DNA and RNA, small interfering RNA (siRNA), ribozymes, genes, and oligonucleotides. Nucleic acids may be incorporated into molecular delivery systems such as vectors, plasmids, or liposomes. Mixtures of one or more drugs are also envisioned.

[0067] The drug or agent may be contained in a primary package or "drug container" adapted for use with the drug delivery device. The drug container may be, for example, a cartridge, syringe, reservoir, or other solid or flexible container configured to provide a suitable chamber for suitable storage (e.g., short-term or long-term storage) of one or more drugs. For example, in some instances, the chamber may be designed to store the drug for at least one day (e.g., from 1 to at least 30 days). In some instances, the chamber may be designed to store the drug for about one month to about two years. Storage may be at room temperature (e.g., about 20°C) or at low temperature (e.g., from about -4°C to about 4°C). In some instances, the drug container may be or include a dual-chamber cartridge configured to store two or more components of a drug formulation to be administered (e.g., an API and a diluent, or two drugs) separately, one in each chamber. In such instances, the two chambers of the dual-chamber cartridge may be configured to allow mixing of the two or more components prior to and / or during delivery into the human or animal body. For example, the two chambers may be configured such that they are in fluid communication with each other (e.g., by a conduit between the two chambers) to allow a user to mix the two components if desired prior to ejection. Alternatively, or in addition, the two chambers may be configured such that the components can be mixed while being ejected into the human or animal body.

[0068] The drugs or agents contained in the drug delivery devices described herein can be used for the treatment and / or prevention of various types of medical disorders. Examples of disorders include, for example, diabetes mellitus or complications of diabetes mellitus, such as diabetic retinopathy, thrombotic occlusions, such as deep vein or pulmonary thrombosis. Further examples of disorders are acute coronary syndromes (ACS), angina pectoris, myocardial infarction, cancer, macular degeneration, inflammation, hay fever, atherosclerosis, and / or rheumatoid arthritis. Examples of APIs and drugs are those listed in handbooks such as the Rote Liste 2014, for example, but not limited to, main groups 12 (antidiabetic drugs) or 86 (oncology drugs), and the Merck Index 15th Edition.

[0069] Examples of APIs for the treatment and / or prevention of type 1 or type 2 diabetes mellitus or complications of type 1 or type 2 diabetes mellitus include insulin, e.g., human insulin, or an insulin analog or derivative, glucagon-like peptide (GLP-1), a GLP-1 analog or GLP-1 receptor agonist, or an analog or derivative thereof, a dipeptidyl peptidase-4 (DPP4) inhibitor, or a pharma-ceutically acceptable salt or solvate thereof, or any mixture thereof. As used herein, the terms "analog" and "derivative" refer to a polypeptide having a molecular structure that can be derived formally from the structure of a naturally occurring peptide, e.g., that of human insulin, by deleting and / or substituting at least one amino acid residue present in the naturally occurring peptide and / or by adding at least one amino acid residue. The added and / or substituted amino acid residue can be either a codable amino acid residue or other naturally occurring residue, or a purely synthetic amino acid residue. Insulin analogs are also referred to as "insulin receptor ligands". In particular, the term "derivative" refers to a polypeptide having a molecular structure formally derivable from that of a naturally occurring peptide, such as that of human insulin, in which one or more organic substituents (e.g., fatty acids) are attached to one or more of the amino acids. Optionally, one or more amino acids present in the naturally occurring peptide may be deleted and / or substituted with other amino acids, including non-codeable amino acids, or amino acids, including non-codeable ones, have been added to the naturally occurring peptide.

[0070] Examples of insulin analogues are Gly(A21), Arg(B31), Arg(B32) human insulin (insulin glargine), Lys(B3), Glu(B29), human insulin (insulin lispro), Asp(B28) human insulin (insulin aspart), human insulin in which the proline in position B28 can be substituted with Asp, Lys, Leu, Val, or Ala and the Lys in position B29 can be substituted with Pro, Ala(B26) human insulin, Des(B28-B30) human insulin, Des(B27) human insulin, and Des(B30) human insulin.

[0071] Examples of insulin derivatives are e.g. B29-N-myristoyl-des(B30) human insulin, Lys(B29)(N-tetradecanoyl)-des(B30) human insulin (insulin detemir, Levemir®), B29-N-palmitoyl-des(B30) human insulin, B29-N-myristoyl human insulin, B29-N-palmitoyl human insulin, B28-N-myristoyl-LysB28ProB29 human insulin, B28-N-palmitoyl-LysB28ProB29 human insulin, B30-N-myristoyl-ThrB29LysB30 human insulin. , B30-N-palmitoyl-ThrB29LysB30 human insulin, B29-N-(N-palmitoyl-gamma-glutamyl)-des(B30) human insulin, B29-N-omega-carboxypentadecanoyl-gamma-L-glucamyl-des(B30) human insulin (insulin degludec, Tresiba®), B29-N-(N-lithocholyl-gamma-glutamyl)-des(B30) human insulin, B29-N-(ω-carboxyheptadecanoyl)-des(B30) human insulin, and B29-N-(ω-carboxyheptadecanoyl) human insulin.

[0072] Examples of GLP-1, GLP-1 analogs, and GLP-1 receptor agonists include, for example, lixisenatide (Lyxumia®), exenatide (Exendin-4, Byetta®, Bydureon®, a 39 amino acid peptide produced by the salivary glands of the Gila monster), liraglutide (Victoza®), semoglatide, taspoglatide, albiglatide (Syncria®), dulaglutide (Trulicity®), rExendin-4, CJC-1134-PC, PB-102 3, TTP-054, Langloisomerase / HM-11260C (Efpeglenatide), HM-15211, CM-3, GLP-1 Erigen, ORMD-0901, NN-9423, NN-9709, NN-9924, NN-9926, NN-9927, Nodexene, Viador-GLP-1, CVX-096, ZYOG-1, ZYD-1, GSK-2374697, DA-3091, MAR-701, MAR709, ZP-2929, ZP-3022, ZP-DI-70, TT-401 (Pegapamodtide), and BHM-034. MOD-6030, CAM-2036, DA-15864, ARI-2651, ARI-2255, tirzepatide (LY3298176), bamadutide (SAR425899), exenatide-XTEN, and glucagon-Xten.

[0073] Examples of oligonucleotides are, for example, mipomersen sodium (Kynamro®), a cholesterol-lowering antisense therapeutic for the treatment of familial hypercholesterolemia, or RG012 for the treatment of Alport Syndrome.

[0074] Examples of DPP4 inhibitors are linagliptin, vildagliptin, sitagliptin, denagliptin, saxagliptin, and berberine.

[0075] Examples of hormones include pituitary or hypothalamic hormones or regulatory active peptides and their antagonists, such as gonadotropins (follitropin, lutropin, chorion gonadotropin, menotropin), somatropin (somatropin), desmopressin, terlipressin, gonadorelin, triptorelin, leuprorelin, buserelin, nafarelin, and goserelin.

[0076] Examples of polysaccharides include glycosaminoglycans, hyaluronic acid, heparin, low molecular weight heparin or very low molecular weight heparin, or derivatives thereof, or sulfated polysaccharides, such as the polysulfated forms of the above polysaccharides, and / or pharmaceutically acceptable salts thereof.An example of a pharmaceutically acceptable salt of polysulfated low molecular weight heparin is enoxaparin sodium.An example of a hyaluronic acid derivative is Hylan G-F20 (Synvisc®), sodium hyaluronate.

[0077] The term "antibody" as used herein refers to an immunoglobulin molecule or an antigen-binding portion thereof. Examples of antigen-binding portions of an immunoglobulin molecule include F(ab) and F(ab')2 fragments that retain the ability to bind antigen. Antibodies can be polyclonal, monoclonal, recombinant, chimeric, non-immunoglobulin or humanized, fully human, non-human (e.g., murine), or single chain antibodies. In some embodiments, antibodies have effector functions and can fix complement. In some embodiments, antibodies have reduced or no ability to bind Fc receptors. For example, antibodies can be isotypes or subtypes, antibody fragments, or variants that do not support binding to Fc receptors, e.g., have mutated or deleted Fc receptor binding regions. The term antibody also includes antibody binding molecules based on tetravalent bispecific tandem immunoglobulins (TBTI) and / or dual variable region antibody-like binding proteins (CODV) with cross-linking region orientation.

[0078] The term "fragment" or "antibody fragment" refers to a polypeptide derived from an antibody polypeptide molecule (e.g., antibody heavy and / or light chain polypeptides) that does not include the full-length antibody polypeptide, but still includes at least a portion of the full-length antibody polypeptide that is capable of binding to an antigen. An antibody fragment can include a truncated portion of a full-length antibody polypeptide, but the term is not limited to such truncated fragments. Antibody fragments that are useful in the present invention include, for example, Fab fragments, F(ab')2 fragments, scFv (single-chain Fv) fragments, linear antibodies, monospecific or multispecific antibody fragments such as bispecific, trispecific, tetraspecific and multispecific antibodies (e.g., diabodies, triabodies, tetrabodies), multivalent antibody fragments such as monovalent, bivalent, tetravalent and multivalent antibodies, minibodies, chelating recombinant antibodies, tribodies or bibodies, intrabodies, nanobodies, small modular immunopharmaceuticals (SMIPs), binding domain immunoglobulin fusion proteins, camelized antibodies, and VHH-containing antibodies. Other examples of antigen-binding antibody fragments are known in the art.

[0079] "Complementarity determining region" or "CDR" refers to short polypeptide sequences within the variable regions of both heavy and light chain polypeptides that are primarily responsible for mediating specific antigen recognition. The term "framework region" refers to amino acid sequences within the variable regions of both heavy and light chain polypeptides that are not CDR sequences but are primarily responsible for maintaining the correct positioning of the CDR sequences to allow antigen binding. Although framework regions themselves typically do not directly participate in antigen binding, as is known in the art, certain residues within the framework regions of a particular antibody may be directly involved in antigen binding or may affect the ability of one or more amino acids within the CDRs to interact with the antigen.

[0080] Examples of antibodies are anti-PCSK-9 mAb (e.g., alirocumab), anti-IL-6 mAb (e.g., sarilumab), and anti-IL-4 mAb (e.g., dupilumab).

[0081] Pharmaceutically acceptable salts of any API described herein are also contemplated for use in the drug or medicament in the drug delivery device. Pharmaceutically acceptable salts include, for example, acid addition salts and base salts.

[0082] Those skilled in the art will appreciate that modifications (additions and / or deletions) can be made to the various components of the APIs, formulations, devices, methods, systems, and embodiments described herein without departing from the full scope and spirit of the invention, and the invention encompasses such modifications and all equivalents thereof.

[0083] Exemplary drug delivery devices may include needle-based injection systems as described in Table 1 of ISO11608-1:2014(E) section 5.2. As described in ISO11608-1:2014(E), needle-based injection systems may be broadly categorized as multi-dose container systems and single-dose (partial or full discharge) container systems. The containers may be replaceable or integrated non-replaceable containers.

[0084] As further described in ISO11608-1:2014(E), a multi-dose container system may include a needle-based injection device with replaceable containers. In such systems, each container holds multiple doses and may be fixed or variable (pre-set by a user) in size. Other multi-dose container systems may include a needle-based injection device with an integrated non-replaceable container. In such systems, each container holds multiple doses and may be fixed or variable (pre-set by a user) in size.

[0085] As further described in ISO11608-1:2014(E), the single dose container system may include a needle-based injection device with replaceable containers. In one example of such a system, each container holds one dose and the entire deliverable amount is expelled (full expelled). In another example, each container holds one dose and a portion of the deliverable amount is expelled (partial expelled). As also described in ISO11608-1:2014(E), the single dose container system may include a needle-based injection device with an integrated non-replaceable container. In one example of such a system, each container holds one dose and the entire deliverable amount is expelled (full expelled). In another example, each container holds one dose and a portion of the deliverable amount is expelled (partial expelled).

Claims

1. 1. A method for driving an optical sensor (215a, 215b) of a drug delivery device (1) or a drug delivery accessory device, wherein the drug delivery device (1) includes a movable dose programming component, and the optical sensor (215a, 215b) is provided and configured to detect movement of the movable dose programming component relative to a sensor mechanism (215) during administration of a drug by generating measurement light pulses (1000) and detecting reflection of the measurement light pulses from the movable dose programming component, the method comprising configuring the optical sensor (215a, 215b) to generate the measurement light pulses (1000) at at least one predefined pulse rate and to generate at least one priming light pulse prior to one or more measurement light pulses, the at least one priming light pulse being generated at one of the at least one predefined pulse rates.

2. 2. The method of claim 1, wherein configuring the optical sensor to generate the at least one priming light pulse includes generating the at least one priming light pulse that may have one or more parameters different from corresponding parameters for generating the measurement light pulse, in particular the at least one parameter including one or more of the following: energy of the priming and measurement light pulses, duration of the priming and measurement light pulses.

3. 3. The method of claim 1, wherein the measurement light pulses are generated at either a first pulse rate or at least one second pulse rate, the first pulse rate being lower than the at least one second pulse rate, the at least one priming light pulse is generated at one of the at least one second pulse rates, the light sensor is configured to generate at least the at least one priming light pulse before generating the measurement light pulses at the first pulse rate, and each priming light pulse is generated with a time shift corresponding to the at least one second pulse rate before a subsequent measurement light pulse.

4. 4. The method of claim 3, wherein configuring the light sensor to generate the measurement light pulses at either the first pulse rate or the at least one second pulse rate comprises switching the pulse rate depending on whether an output signal of the light sensor is above or below at least one predetermined threshold.

5. 5. The method of claim 4, wherein the optical sensor is configured to generate the measurement light pulses at the first pulse rate when the output signal is below the at least one predetermined threshold and to generate the measurement light pulses at the at least one second pulse rate when the output signal is above the at least one predetermined threshold.

6. 6. The method of claim 5, wherein a second pulse rate and a threshold value are provided, and the light sensor is configured to switch the generation of the measurement light pulses between the first and second pulse rates when the output signal of the light sensor crosses the threshold value.

7. 7. The method of claim 6, wherein the light sensor is configured to generate the measurement light pulses at the first pulse rate when the output signal of the light sensor is above the threshold and to generate the measurement light pulses at the second pulse rate when the output signal of the light sensor is below the threshold, or vice versa.

8. The method according to any one of claims 4 to 7, further comprising varying said at least one threshold value, in particular depending on said detected reflections.

9. A method according to any one of claims 4 to 8, wherein the light sensor is configured to generate the measurement light pulses at the first or second pulse rate as a default.

10. The method of any one of claims 4 to 9, wherein the first pulse rate is about 2 milliseconds and the second pulse rate and the time shift are about 250 microseconds.

11. 11. The method of claim 10, further comprising at least one of the following: modulating the duration of the measurement light pulse, modifying the amplitude and / or waveform of the output signal of the optical sensor, modulating the energy of the measurement light pulse.

12. A device for driving an optical sensor (215a, 215b) of a drug delivery device (1) or of a drug delivery accessory device, configured to perform the method according to any one of claims 1 to 11, in particular comprising a controller, in particular a microcontroller, said controller being configured by a program to perform the method according to any one of claims 1 to 11.

13. 13. The device of claim 12, configured to determine the dose delivered and / or selected by the drug delivery device based on a detected reflection of a measurement light pulse from a movable dose programming component.

14. A sensor unit (700) of a drug delivery device (1) or a drug delivery accessory device, comprising one or more optical sensors (215a, 215b) driven by an apparatus according to claim 12 or 13, the sensor unit being provided and configured for incorporation into the drug delivery device or the drug delivery accessory device.

15. A drug delivery device (1) or a drug delivery accessory, said drug delivery device comprising a movable dose programming component, said drug delivery device or said drug delivery accessory comprising a sensor unit (700) as described in claim 14.