Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for Roche Accu-Chek Smart Pix device #1432

Draft
wants to merge 12 commits into
base: master
Choose a base branch
from
Draft
3 changes: 2 additions & 1 deletion app/components/DeviceTimeModal.js
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,8 @@ export class DeviceTimeModal extends Component {
const reminder = this.getReminder();
const buttons = [];
const footnote = type.value === 'bgm' ? '*' : '';
if ( !this.isDevice('Animas') &&
if ( !this.isDevice('AccuChekSmartPix') &&
!this.isDevice('Animas') &&
!this.isDevice('InsuletOmniPod') &&
!this.isDevice('Medtronic') && // these two lines should be removed
!this.isDevice('Medtronic600') && // when we can update time on Medtronic pumps
Expand Down
10 changes: 10 additions & 0 deletions app/reducers/devices.js
Original file line number Diff line number Diff line change
Expand Up @@ -212,6 +212,16 @@ const devices = {
enabled: {mac: true, win: true, linux: true},
powerOnlyWarning: true, // shows warning for power-only USB cables
},
accucheksmartpix: {
instructions: [
i18n.t('Ensure the Smart Pix is mounted before starting.'),
i18n.t('Click send and then start the transfer from your device.'),
],
name: 'Roche Accu-Chek Smart Pix',
key: 'accucheksmartpix',
source: {type: 'device', driverId: 'AccuChekSmartPix'},
enabled: {mac: true, win: true, linux: true},
},
tandem: {
instructions: i18n.t('Plug in pump with micro-USB'),
key: 'tandem',
Expand Down
10 changes: 10 additions & 0 deletions lib/core/device.js
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ import medtronicDriver from '../drivers/medtronic/medtronicDriver';
import medtronic600Driver from '../drivers/medtronic600/medtronic600Driver';
import TrueMetrixDriver from '../drivers/trividia/trueMetrix';
import accuChekUSBDriver from '../drivers/roche/accuChekUSB';
import accuChekSmartPixDriver from '../drivers/roche/accuChekSmartPix';
import bluetoothLEDriver from '../drivers/bluetoothLE/bluetoothLEDriver';
import careSensDriver from '../drivers/i-sens/careSens';
import glucocardExpression from '../drivers/i-sens/glucocardExpression';
Expand Down Expand Up @@ -88,6 +89,7 @@ device.deviceDrivers = {
Medtronic600: medtronic600Driver,
TrueMetrix: TrueMetrixDriver,
AccuChekUSB: accuChekUSBDriver,
AccuChekSmartPix: accuChekSmartPixDriver,
BluetoothLE: bluetoothLEDriver,
CareSens: careSensDriver,
ReliOnPremier: careSensDriver,
Expand Down Expand Up @@ -116,6 +118,7 @@ device.deviceComms = {
Medtronic600: hidDevice,
TrueMetrix: hidDevice,
AccuChekUSB: usbDevice,
AccuChekSmartPix: usbDevice,
BluetoothLE: bleDevice,
CareSens: hidDevice,
ReliOnPremier: serialDevice,
Expand Down Expand Up @@ -276,6 +279,13 @@ device.driverManifests = {
{ vendorId: 5946, productId: 8662 }, // Accu-chek Guide Me
],
},
AccuChekSmartPix: {
mode: 'usb',
label: 'SMART_PIX', // XXX: Not used yet.
usb: [
{ vendorId: 5946, productId: 2106 }, // Accu-Chek Smart Pix Model 1
],
},
BluetoothLE: {
mode: 'bluetooth',
},
Expand Down
Loading