diff --git a/app/reducers/devices.js b/app/reducers/devices.js index 8b0536a54..fd534b663 100644 --- a/app/reducers/devices.js +++ b/app/reducers/devices.js @@ -90,6 +90,17 @@ const devices = { source: {type: 'device', driverId: 'Dexcom'}, enabled: {mac: true, win: true, linux: true} }, + embracetalk: { + instructions: { + text: i18n.t('Plug in meter with cable and set meter to'), + linkText: i18n.t('PC Link Mode'), + link: 'https://support.tidepool.org/hc/en-us/articles/27971030950804', + }, + name: 'EmbraceTALK', + key: 'embracetalk', + source: {type: 'device', driverId: 'EmbraceTALK'}, + enabled: {mac: true, win: true, linux: true} + }, weitai: { instructions: 'Plug in PDA with micro-USB', name: 'Equil Insulin Patch/Micro Pump', diff --git a/lib/core/device.js b/lib/core/device.js index a2533b8f1..b7d74e975 100644 --- a/lib/core/device.js +++ b/lib/core/device.js @@ -107,6 +107,7 @@ device.deviceDrivers = { AbbottLibreView: libreViewDriver, GlucoRx: glucoRxDriver, ReliOnPlatinum: accuChekUSBDriver, + EmbraceTALK: glucocardExpression, }; device.deviceComms = { @@ -142,6 +143,7 @@ device.deviceComms = { AbbottLibreView: libreViewDriver, GlucoRx: hidDevice, ReliOnPlatinum: usbDevice, + EmbraceTALK: serialDevice, }; _.forEach(_.keys(device.deviceComms), (driverId) => { diff --git a/lib/core/driverManifests.js b/lib/core/driverManifests.js index 8e695b3e8..4debe98c6 100644 --- a/lib/core/driverManifests.js +++ b/lib/core/driverManifests.js @@ -227,6 +227,14 @@ const driverManifests = { { vendorId: 5946, productId: 8664 }, ], }, + EmbraceTALK: { + mode: 'serial', + bitrate: 19200, + usb: [ + { vendorId: 1659, productId: 8963, driver: 'pl2303' }, + { vendorId: 1027, productId: 24577, driver: 'ftdi' }, // FTDI cable + ], + }, }; export default driverManifests; diff --git a/lib/drivers/i-sens/glucocardExpression.js b/lib/drivers/i-sens/glucocardExpression.js index a4bc874d3..1568a90d9 100644 --- a/lib/drivers/i-sens/glucocardExpression.js +++ b/lib/drivers/i-sens/glucocardExpression.js @@ -272,6 +272,11 @@ module.exports = (config) => { model: 'GlucocardExpression', }); + if (cfg.deviceInfo.driverId === 'EmbraceTALK') { + cfg.deviceInfo.model = 'EmbraceTALK'; + cfg.deviceInfo.manufacturers = ['Omnis Health']; + } + const serialDevice = config.deviceComms; const driver = new GlucocardExpression(cfg);