Skip to content

Commit

Permalink
Merge pull request #1647 from tidepool-org/embrace-support
Browse files Browse the repository at this point in the history
Support for Embrace TALK meter (UPLOAD-1270)
  • Loading branch information
gniezen authored Sep 16, 2024
2 parents bae70ae + 7705e87 commit b3e8eb1
Show file tree
Hide file tree
Showing 6 changed files with 28 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "tidepool-uploader",
"productName": "tidepool-uploader",
"version": "2.58.0-update-deps.1",
"version": "2.58.0-embrace-support.1",
"description": "Tidepool Project Universal Uploader",
"main": "./main.prod.js",
"author": {
Expand Down
11 changes: 11 additions & 0 deletions app/reducers/devices.js
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down
2 changes: 2 additions & 0 deletions lib/core/device.js
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,7 @@ device.deviceDrivers = {
AbbottLibreView: libreViewDriver,
GlucoRx: glucoRxDriver,
ReliOnPlatinum: accuChekUSBDriver,
EmbraceTALK: glucocardExpression,
};

device.deviceComms = {
Expand Down Expand Up @@ -142,6 +143,7 @@ device.deviceComms = {
AbbottLibreView: libreViewDriver,
GlucoRx: hidDevice,
ReliOnPlatinum: usbDevice,
EmbraceTALK: serialDevice,
};

_.forEach(_.keys(device.deviceComms), (driverId) => {
Expand Down
8 changes: 8 additions & 0 deletions lib/core/driverManifests.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
5 changes: 5 additions & 0 deletions lib/drivers/i-sens/glucocardExpression.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "tidepool-uploader",
"version": "2.58.0-update-deps.1",
"version": "2.58.0-embrace-support.1",
"description": "Tidepool Project Universal Uploader",
"private": true,
"main": "main.prod.js",
Expand Down

0 comments on commit b3e8eb1

Please sign in to comment.