@ovok/native 1.10.13 → 1.10.14
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/commonjs/modules/bt-device/components/btdevice-instruction.js +1 -1
- package/lib/commonjs/modules/bt-device/components/btdevice-instruction.js.map +1 -1
- package/lib/commonjs/modules/bt-device/constants/device-instruction-pdfs.js +4 -79
- package/lib/commonjs/modules/bt-device/constants/device-instruction-pdfs.js.map +1 -1
- package/lib/commonjs/modules/bt-management/constants/no-parsing-cases.js +12 -0
- package/lib/commonjs/modules/bt-management/constants/no-parsing-cases.js.map +1 -0
- package/lib/commonjs/modules/bt-management/services/device-classes.js +3 -4
- package/lib/commonjs/modules/bt-management/services/device-classes.js.map +1 -1
- package/lib/commonjs/modules/bt-management/services/devices/a606/a606.device.js +0 -4
- package/lib/commonjs/modules/bt-management/services/devices/a606/a606.device.js.map +1 -1
- package/lib/commonjs/modules/bt-management/services/devices/and-medical/and-medical.device.js +3 -10
- package/lib/commonjs/modules/bt-management/services/devices/and-medical/and-medical.device.js.map +1 -1
- package/lib/commonjs/modules/bt-management/services/devices/and-medical/and-medical.protocol.js +12 -12
- package/lib/commonjs/modules/bt-management/services/devices/and-medical/and-medical.protocol.js.map +1 -1
- package/lib/commonjs/modules/bt-management/services/devices/aoj/aoj-70b.device.js +2 -8
- package/lib/commonjs/modules/bt-management/services/devices/aoj/aoj-70b.device.js.map +1 -1
- package/lib/commonjs/modules/bt-management/services/devices/aoj/aoj-bp.device.js +2 -9
- package/lib/commonjs/modules/bt-management/services/devices/aoj/aoj-bp.device.js.map +1 -1
- package/lib/commonjs/modules/bt-management/services/devices/aoj/aoj-bp.protocol.js +12 -11
- package/lib/commonjs/modules/bt-management/services/devices/aoj/aoj-bp.protocol.js.map +1 -1
- package/lib/commonjs/modules/bt-management/services/devices/aoj/aoj.device.js +0 -1
- package/lib/commonjs/modules/bt-management/services/devices/aoj/aoj.device.js.map +1 -1
- package/lib/commonjs/modules/bt-management/services/devices/bc01/bc01.device.js +1 -3
- package/lib/commonjs/modules/bt-management/services/devices/bc01/bc01.device.js.map +1 -1
- package/lib/commonjs/modules/bt-management/services/devices/blood-glucose/blood-glucose.device.js.map +1 -1
- package/lib/commonjs/modules/bt-management/services/devices/bpw1/bpw1.device.js +0 -4
- package/lib/commonjs/modules/bt-management/services/devices/bpw1/bpw1.device.js.map +1 -1
- package/lib/commonjs/modules/bt-management/services/devices/bt-managed-device.js +5 -0
- package/lib/commonjs/modules/bt-management/services/devices/bt-managed-device.js.map +1 -1
- package/lib/commonjs/modules/bt-management/services/devices/checkme/checkme-ecg.device.js +2 -13
- package/lib/commonjs/modules/bt-management/services/devices/checkme/checkme-ecg.device.js.map +1 -1
- package/lib/commonjs/modules/bt-management/services/devices/checkme/checkme-pod.device.js +0 -4
- package/lib/commonjs/modules/bt-management/services/devices/checkme/checkme-pod.device.js.map +1 -1
- package/lib/commonjs/modules/bt-management/services/devices/checkme/checkme.device.js +0 -4
- package/lib/commonjs/modules/bt-management/services/devices/checkme/checkme.device.js.map +1 -1
- package/lib/commonjs/modules/bt-management/services/devices/cofoe/cofoe.device.js +2 -9
- package/lib/commonjs/modules/bt-management/services/devices/cofoe/cofoe.device.js.map +1 -1
- package/lib/commonjs/modules/bt-management/services/devices/cofoe/cofoe.protocol.js +14 -17
- package/lib/commonjs/modules/bt-management/services/devices/cofoe/cofoe.protocol.js.map +1 -1
- package/lib/commonjs/modules/bt-management/services/devices/cofoe/cofoe.records.js +2 -2
- package/lib/commonjs/modules/bt-management/services/devices/cofoe/cofoe.records.js.map +1 -1
- package/lib/commonjs/modules/bt-management/services/devices/custom/custom.device.js.map +1 -1
- package/lib/commonjs/modules/bt-management/services/devices/f4/f4.device.js.map +1 -1
- package/lib/commonjs/modules/bt-management/services/devices/f5/f5-scale.device.js +2 -9
- package/lib/commonjs/modules/bt-management/services/devices/f5/f5-scale.device.js.map +1 -1
- package/lib/commonjs/modules/bt-management/services/devices/famidoc/famidoc.device.js +3 -9
- package/lib/commonjs/modules/bt-management/services/devices/famidoc/famidoc.device.js.map +1 -1
- package/lib/commonjs/modules/bt-management/services/devices/famidoc/famidoc.protocol.js +10 -9
- package/lib/commonjs/modules/bt-management/services/devices/famidoc/famidoc.protocol.js.map +1 -1
- package/lib/commonjs/modules/bt-management/services/devices/genial-t31/genial-t31.device.js +0 -1
- package/lib/commonjs/modules/bt-management/services/devices/genial-t31/genial-t31.device.js.map +1 -1
- package/lib/commonjs/modules/bt-management/services/devices/joytech/joytech.device.js +2 -8
- package/lib/commonjs/modules/bt-management/services/devices/joytech/joytech.device.js.map +1 -1
- package/lib/commonjs/modules/bt-management/services/devices/joytech/joytech.protocol.js +10 -9
- package/lib/commonjs/modules/bt-management/services/devices/joytech/joytech.protocol.js.map +1 -1
- package/lib/commonjs/modules/bt-management/services/devices/jumper/jumper.device.js +2 -9
- package/lib/commonjs/modules/bt-management/services/devices/jumper/jumper.device.js.map +1 -1
- package/lib/commonjs/modules/bt-management/services/devices/jumper/jumper.protocol.js +10 -12
- package/lib/commonjs/modules/bt-management/services/devices/jumper/jumper.protocol.js.map +1 -1
- package/lib/commonjs/modules/bt-management/services/devices/standard-gatt/standard-gatt.glucose.js +5 -4
- package/lib/commonjs/modules/bt-management/services/devices/standard-gatt/standard-gatt.glucose.js.map +1 -1
- package/lib/commonjs/modules/bt-management/services/devices/standard-gatt/standard-gatt.profile.js +4 -6
- package/lib/commonjs/modules/bt-management/services/devices/standard-gatt/standard-gatt.profile.js.map +1 -1
- package/lib/commonjs/modules/bt-management/services/devices/taidoc/taidoc.device.js +3 -9
- package/lib/commonjs/modules/bt-management/services/devices/taidoc/taidoc.device.js.map +1 -1
- package/lib/commonjs/modules/bt-management/services/devices/taidoc/taidoc.protocol.js +4 -3
- package/lib/commonjs/modules/bt-management/services/devices/taidoc/taidoc.protocol.js.map +1 -1
- package/lib/commonjs/modules/bt-management/services/devices/transtek/a6-blood-pressure.sequencer.js +6 -55
- package/lib/commonjs/modules/bt-management/services/devices/transtek/a6-blood-pressure.sequencer.js.map +1 -1
- package/lib/commonjs/modules/bt-management/services/devices/transtek/a6-scale.sequencer.js +5 -53
- package/lib/commonjs/modules/bt-management/services/devices/transtek/a6-scale.sequencer.js.map +1 -1
- package/lib/commonjs/modules/bt-management/services/devices/transtek/a6.device.js +53 -0
- package/lib/commonjs/modules/bt-management/services/devices/transtek/a6.device.js.map +1 -0
- package/lib/commonjs/modules/bt-management/services/devices/transtek/a6.sequencer.js +70 -0
- package/lib/commonjs/modules/bt-management/services/devices/transtek/a6.sequencer.js.map +1 -0
- package/lib/commonjs/modules/bt-management/services/devices/transtek/mambo-a5.device.js +3 -10
- package/lib/commonjs/modules/bt-management/services/devices/transtek/mambo-a5.device.js.map +1 -1
- package/lib/commonjs/modules/bt-management/services/devices/transtek/transtek-command.device.js +4 -10
- package/lib/commonjs/modules/bt-management/services/devices/transtek/transtek-command.device.js.map +1 -1
- package/lib/commonjs/modules/bt-management/services/devices/transtek/transtek-command.protocol.js +21 -21
- package/lib/commonjs/modules/bt-management/services/devices/transtek/transtek-command.protocol.js.map +1 -1
- package/lib/commonjs/modules/bt-management/services/devices/trasense/s9.device.js +0 -4
- package/lib/commonjs/modules/bt-management/services/devices/trasense/s9.device.js.map +1 -1
- package/lib/commonjs/modules/bt-management/services/devices/veroval/veroval.activity-device.js +0 -4
- package/lib/commonjs/modules/bt-management/services/devices/veroval/veroval.activity-device.js.map +1 -1
- package/lib/commonjs/modules/bt-management/services/devices/veroval/veroval.duo-control-sequencer.js +2 -1
- package/lib/commonjs/modules/bt-management/services/devices/veroval/veroval.duo-control-sequencer.js.map +1 -1
- package/lib/commonjs/modules/bt-management/services/devices/veroval/veroval.ecg-device.js +0 -6
- package/lib/commonjs/modules/bt-management/services/devices/veroval/veroval.ecg-device.js.map +1 -1
- package/lib/commonjs/modules/bt-management/services/devices/viatom/ap20.device.js +2 -9
- package/lib/commonjs/modules/bt-management/services/devices/viatom/ap20.device.js.map +1 -1
- package/lib/commonjs/modules/bt-management/services/devices/viatom/baby-sleep-clip.device.js +2 -9
- package/lib/commonjs/modules/bt-management/services/devices/viatom/baby-sleep-clip.device.js.map +1 -1
- package/lib/commonjs/modules/bt-management/services/devices/viatom/bioland.bgm.device.js +2 -9
- package/lib/commonjs/modules/bt-management/services/devices/viatom/bioland.bgm.device.js.map +1 -1
- package/lib/commonjs/modules/bt-management/services/devices/viatom/oxy-s3.device.js +3 -10
- package/lib/commonjs/modules/bt-management/services/devices/viatom/oxy-s3.device.js.map +1 -1
- package/lib/commonjs/modules/bt-management/services/devices/viatom/pc68b.device.js +2 -9
- package/lib/commonjs/modules/bt-management/services/devices/viatom/pc68b.device.js.map +1 -1
- package/lib/commonjs/modules/bt-management/services/devices/viatom/pc80b.device.js +2 -9
- package/lib/commonjs/modules/bt-management/services/devices/viatom/pc80b.device.js.map +1 -1
- package/lib/commonjs/modules/bt-management/services/devices/viatom/pf10aw1.device.js +2 -9
- package/lib/commonjs/modules/bt-management/services/devices/viatom/pf10aw1.device.js.map +1 -1
- package/lib/commonjs/modules/bt-management/services/devices/viatom/poctor.m3102.device.js +2 -9
- package/lib/commonjs/modules/bt-management/services/devices/viatom/poctor.m3102.device.js.map +1 -1
- package/lib/commonjs/modules/bt-management/services/devices/viatom/sp20.device.js +2 -9
- package/lib/commonjs/modules/bt-management/services/devices/viatom/sp20.device.js.map +1 -1
- package/lib/commonjs/modules/bt-management/services/devices/viatom/viatom-r20.device.js +2 -9
- package/lib/commonjs/modules/bt-management/services/devices/viatom/viatom-r20.device.js.map +1 -1
- package/lib/commonjs/modules/bt-management/services/devices/viatom/viatom.bpm188.device.js +2 -9
- package/lib/commonjs/modules/bt-management/services/devices/viatom/viatom.bpm188.device.js.map +1 -1
- package/lib/commonjs/modules/bt-management/services/devices/viatom/viatom.pc100.device.js +2 -9
- package/lib/commonjs/modules/bt-management/services/devices/viatom/viatom.pc100.device.js.map +1 -1
- package/lib/commonjs/modules/bt-management/services/devices/viatom/viatom.pc300.device.js +2 -9
- package/lib/commonjs/modules/bt-management/services/devices/viatom/viatom.pc300.device.js.map +1 -1
- package/lib/commonjs/modules/bt-management/services/devices/viatom/viatom.pm10.device.js +3 -10
- package/lib/commonjs/modules/bt-management/services/devices/viatom/viatom.pm10.device.js.map +1 -1
- package/lib/commonjs/modules/bt-management/services/devices/viatom/viatom.wbp02.device.js +3 -10
- package/lib/commonjs/modules/bt-management/services/devices/viatom/viatom.wbp02.device.js.map +1 -1
- package/lib/commonjs/modules/bt-management/services/devices/yonker/yonker.device.js +2 -9
- package/lib/commonjs/modules/bt-management/services/devices/yonker/yonker.device.js.map +1 -1
- package/lib/commonjs/modules/bt-management/services/devices/yonker/yonker.protocol.js +16 -16
- package/lib/commonjs/modules/bt-management/services/devices/yonker/yonker.protocol.js.map +1 -1
- package/lib/commonjs/modules/bt-management/utils/bytes-to-hex.js +10 -0
- package/lib/commonjs/modules/bt-management/utils/bytes-to-hex.js.map +1 -0
- package/lib/commonjs/modules/bt-management/utils/frame-bytes.js +11 -0
- package/lib/commonjs/modules/bt-management/utils/frame-bytes.js.map +1 -0
- package/lib/commonjs/modules/bt-management/utils/sig-uuid.js +10 -0
- package/lib/commonjs/modules/bt-management/utils/sig-uuid.js.map +1 -0
- package/lib/module/modules/bt-device/components/btdevice-instruction.js +1 -1
- package/lib/module/modules/bt-device/components/btdevice-instruction.js.map +1 -1
- package/lib/module/modules/bt-device/constants/device-instruction-pdfs.js +4 -79
- package/lib/module/modules/bt-device/constants/device-instruction-pdfs.js.map +1 -1
- package/lib/module/modules/bt-management/constants/no-parsing-cases.js +8 -0
- package/lib/module/modules/bt-management/constants/no-parsing-cases.js.map +1 -0
- package/lib/module/modules/bt-management/services/device-classes.js +3 -4
- package/lib/module/modules/bt-management/services/device-classes.js.map +1 -1
- package/lib/module/modules/bt-management/services/devices/a606/a606.device.js +0 -4
- package/lib/module/modules/bt-management/services/devices/a606/a606.device.js.map +1 -1
- package/lib/module/modules/bt-management/services/devices/and-medical/and-medical.device.js +3 -10
- package/lib/module/modules/bt-management/services/devices/and-medical/and-medical.device.js.map +1 -1
- package/lib/module/modules/bt-management/services/devices/and-medical/and-medical.protocol.js +12 -12
- package/lib/module/modules/bt-management/services/devices/and-medical/and-medical.protocol.js.map +1 -1
- package/lib/module/modules/bt-management/services/devices/aoj/aoj-70b.device.js +2 -8
- package/lib/module/modules/bt-management/services/devices/aoj/aoj-70b.device.js.map +1 -1
- package/lib/module/modules/bt-management/services/devices/aoj/aoj-bp.device.js +2 -9
- package/lib/module/modules/bt-management/services/devices/aoj/aoj-bp.device.js.map +1 -1
- package/lib/module/modules/bt-management/services/devices/aoj/aoj-bp.protocol.js +12 -11
- package/lib/module/modules/bt-management/services/devices/aoj/aoj-bp.protocol.js.map +1 -1
- package/lib/module/modules/bt-management/services/devices/aoj/aoj.device.js +0 -1
- package/lib/module/modules/bt-management/services/devices/aoj/aoj.device.js.map +1 -1
- package/lib/module/modules/bt-management/services/devices/bc01/bc01.device.js +1 -3
- package/lib/module/modules/bt-management/services/devices/bc01/bc01.device.js.map +1 -1
- package/lib/module/modules/bt-management/services/devices/blood-glucose/blood-glucose.device.js.map +1 -1
- package/lib/module/modules/bt-management/services/devices/bpw1/bpw1.device.js +0 -4
- package/lib/module/modules/bt-management/services/devices/bpw1/bpw1.device.js.map +1 -1
- package/lib/module/modules/bt-management/services/devices/bt-managed-device.js +5 -0
- package/lib/module/modules/bt-management/services/devices/bt-managed-device.js.map +1 -1
- package/lib/module/modules/bt-management/services/devices/checkme/checkme-ecg.device.js +2 -13
- package/lib/module/modules/bt-management/services/devices/checkme/checkme-ecg.device.js.map +1 -1
- package/lib/module/modules/bt-management/services/devices/checkme/checkme-pod.device.js +0 -4
- package/lib/module/modules/bt-management/services/devices/checkme/checkme-pod.device.js.map +1 -1
- package/lib/module/modules/bt-management/services/devices/checkme/checkme.device.js +0 -4
- package/lib/module/modules/bt-management/services/devices/checkme/checkme.device.js.map +1 -1
- package/lib/module/modules/bt-management/services/devices/cofoe/cofoe.device.js +2 -9
- package/lib/module/modules/bt-management/services/devices/cofoe/cofoe.device.js.map +1 -1
- package/lib/module/modules/bt-management/services/devices/cofoe/cofoe.protocol.js +13 -15
- package/lib/module/modules/bt-management/services/devices/cofoe/cofoe.protocol.js.map +1 -1
- package/lib/module/modules/bt-management/services/devices/cofoe/cofoe.records.js +2 -2
- package/lib/module/modules/bt-management/services/devices/cofoe/cofoe.records.js.map +1 -1
- package/lib/module/modules/bt-management/services/devices/custom/custom.device.js.map +1 -1
- package/lib/module/modules/bt-management/services/devices/f4/f4.device.js.map +1 -1
- package/lib/module/modules/bt-management/services/devices/f5/f5-scale.device.js +2 -9
- package/lib/module/modules/bt-management/services/devices/f5/f5-scale.device.js.map +1 -1
- package/lib/module/modules/bt-management/services/devices/famidoc/famidoc.device.js +3 -9
- package/lib/module/modules/bt-management/services/devices/famidoc/famidoc.device.js.map +1 -1
- package/lib/module/modules/bt-management/services/devices/famidoc/famidoc.protocol.js +10 -9
- package/lib/module/modules/bt-management/services/devices/famidoc/famidoc.protocol.js.map +1 -1
- package/lib/module/modules/bt-management/services/devices/genial-t31/genial-t31.device.js +0 -1
- package/lib/module/modules/bt-management/services/devices/genial-t31/genial-t31.device.js.map +1 -1
- package/lib/module/modules/bt-management/services/devices/joytech/joytech.device.js +2 -8
- package/lib/module/modules/bt-management/services/devices/joytech/joytech.device.js.map +1 -1
- package/lib/module/modules/bt-management/services/devices/joytech/joytech.protocol.js +10 -9
- package/lib/module/modules/bt-management/services/devices/joytech/joytech.protocol.js.map +1 -1
- package/lib/module/modules/bt-management/services/devices/jumper/jumper.device.js +2 -9
- package/lib/module/modules/bt-management/services/devices/jumper/jumper.device.js.map +1 -1
- package/lib/module/modules/bt-management/services/devices/jumper/jumper.protocol.js +10 -12
- package/lib/module/modules/bt-management/services/devices/jumper/jumper.protocol.js.map +1 -1
- package/lib/module/modules/bt-management/services/devices/standard-gatt/standard-gatt.glucose.js +2 -1
- package/lib/module/modules/bt-management/services/devices/standard-gatt/standard-gatt.glucose.js.map +1 -1
- package/lib/module/modules/bt-management/services/devices/standard-gatt/standard-gatt.profile.js +2 -3
- package/lib/module/modules/bt-management/services/devices/standard-gatt/standard-gatt.profile.js.map +1 -1
- package/lib/module/modules/bt-management/services/devices/taidoc/taidoc.device.js +3 -9
- package/lib/module/modules/bt-management/services/devices/taidoc/taidoc.device.js.map +1 -1
- package/lib/module/modules/bt-management/services/devices/taidoc/taidoc.protocol.js +4 -3
- package/lib/module/modules/bt-management/services/devices/taidoc/taidoc.protocol.js.map +1 -1
- package/lib/module/modules/bt-management/services/devices/transtek/a6-blood-pressure.sequencer.js +7 -56
- package/lib/module/modules/bt-management/services/devices/transtek/a6-blood-pressure.sequencer.js.map +1 -1
- package/lib/module/modules/bt-management/services/devices/transtek/a6-scale.sequencer.js +6 -54
- package/lib/module/modules/bt-management/services/devices/transtek/a6-scale.sequencer.js.map +1 -1
- package/lib/module/modules/bt-management/services/devices/transtek/a6.device.js +48 -0
- package/lib/module/modules/bt-management/services/devices/transtek/a6.device.js.map +1 -0
- package/lib/module/modules/bt-management/services/devices/transtek/a6.sequencer.js +66 -0
- package/lib/module/modules/bt-management/services/devices/transtek/a6.sequencer.js.map +1 -0
- package/lib/module/modules/bt-management/services/devices/transtek/mambo-a5.device.js +3 -10
- package/lib/module/modules/bt-management/services/devices/transtek/mambo-a5.device.js.map +1 -1
- package/lib/module/modules/bt-management/services/devices/transtek/transtek-command.device.js +4 -10
- package/lib/module/modules/bt-management/services/devices/transtek/transtek-command.device.js.map +1 -1
- package/lib/module/modules/bt-management/services/devices/transtek/transtek-command.protocol.js +21 -21
- package/lib/module/modules/bt-management/services/devices/transtek/transtek-command.protocol.js.map +1 -1
- package/lib/module/modules/bt-management/services/devices/trasense/s9.device.js +0 -4
- package/lib/module/modules/bt-management/services/devices/trasense/s9.device.js.map +1 -1
- package/lib/module/modules/bt-management/services/devices/veroval/veroval.activity-device.js +0 -4
- package/lib/module/modules/bt-management/services/devices/veroval/veroval.activity-device.js.map +1 -1
- package/lib/module/modules/bt-management/services/devices/veroval/veroval.duo-control-sequencer.js +2 -1
- package/lib/module/modules/bt-management/services/devices/veroval/veroval.duo-control-sequencer.js.map +1 -1
- package/lib/module/modules/bt-management/services/devices/veroval/veroval.ecg-device.js +0 -6
- package/lib/module/modules/bt-management/services/devices/veroval/veroval.ecg-device.js.map +1 -1
- package/lib/module/modules/bt-management/services/devices/viatom/ap20.device.js +2 -9
- package/lib/module/modules/bt-management/services/devices/viatom/ap20.device.js.map +1 -1
- package/lib/module/modules/bt-management/services/devices/viatom/baby-sleep-clip.device.js +2 -9
- package/lib/module/modules/bt-management/services/devices/viatom/baby-sleep-clip.device.js.map +1 -1
- package/lib/module/modules/bt-management/services/devices/viatom/bioland.bgm.device.js +2 -9
- package/lib/module/modules/bt-management/services/devices/viatom/bioland.bgm.device.js.map +1 -1
- package/lib/module/modules/bt-management/services/devices/viatom/oxy-s3.device.js +3 -10
- package/lib/module/modules/bt-management/services/devices/viatom/oxy-s3.device.js.map +1 -1
- package/lib/module/modules/bt-management/services/devices/viatom/pc68b.device.js +2 -9
- package/lib/module/modules/bt-management/services/devices/viatom/pc68b.device.js.map +1 -1
- package/lib/module/modules/bt-management/services/devices/viatom/pc80b.device.js +2 -9
- package/lib/module/modules/bt-management/services/devices/viatom/pc80b.device.js.map +1 -1
- package/lib/module/modules/bt-management/services/devices/viatom/pf10aw1.device.js +2 -9
- package/lib/module/modules/bt-management/services/devices/viatom/pf10aw1.device.js.map +1 -1
- package/lib/module/modules/bt-management/services/devices/viatom/poctor.m3102.device.js +2 -9
- package/lib/module/modules/bt-management/services/devices/viatom/poctor.m3102.device.js.map +1 -1
- package/lib/module/modules/bt-management/services/devices/viatom/sp20.device.js +2 -9
- package/lib/module/modules/bt-management/services/devices/viatom/sp20.device.js.map +1 -1
- package/lib/module/modules/bt-management/services/devices/viatom/viatom-r20.device.js +2 -9
- package/lib/module/modules/bt-management/services/devices/viatom/viatom-r20.device.js.map +1 -1
- package/lib/module/modules/bt-management/services/devices/viatom/viatom.bpm188.device.js +2 -9
- package/lib/module/modules/bt-management/services/devices/viatom/viatom.bpm188.device.js.map +1 -1
- package/lib/module/modules/bt-management/services/devices/viatom/viatom.pc100.device.js +2 -9
- package/lib/module/modules/bt-management/services/devices/viatom/viatom.pc100.device.js.map +1 -1
- package/lib/module/modules/bt-management/services/devices/viatom/viatom.pc300.device.js +2 -9
- package/lib/module/modules/bt-management/services/devices/viatom/viatom.pc300.device.js.map +1 -1
- package/lib/module/modules/bt-management/services/devices/viatom/viatom.pm10.device.js +3 -10
- package/lib/module/modules/bt-management/services/devices/viatom/viatom.pm10.device.js.map +1 -1
- package/lib/module/modules/bt-management/services/devices/viatom/viatom.wbp02.device.js +3 -10
- package/lib/module/modules/bt-management/services/devices/viatom/viatom.wbp02.device.js.map +1 -1
- package/lib/module/modules/bt-management/services/devices/yonker/yonker.device.js +2 -9
- package/lib/module/modules/bt-management/services/devices/yonker/yonker.device.js.map +1 -1
- package/lib/module/modules/bt-management/services/devices/yonker/yonker.protocol.js +16 -16
- package/lib/module/modules/bt-management/services/devices/yonker/yonker.protocol.js.map +1 -1
- package/lib/module/modules/bt-management/utils/bytes-to-hex.js +5 -0
- package/lib/module/modules/bt-management/utils/bytes-to-hex.js.map +1 -0
- package/lib/module/modules/bt-management/utils/frame-bytes.js +7 -0
- package/lib/module/modules/bt-management/utils/frame-bytes.js.map +1 -0
- package/lib/module/modules/bt-management/utils/sig-uuid.js +5 -0
- package/lib/module/modules/bt-management/utils/sig-uuid.js.map +1 -0
- package/lib/typescript/commonjs/src/modules/bt-device/constants/device-instruction-pdfs.d.ts +2 -1
- package/lib/typescript/commonjs/src/modules/bt-device/constants/device-instruction-pdfs.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/bt-management/constants/no-parsing-cases.d.ts +4 -0
- package/lib/typescript/commonjs/src/modules/bt-management/constants/no-parsing-cases.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/modules/bt-management/services/device-classes.d.ts +3 -4
- package/lib/typescript/commonjs/src/modules/bt-management/services/device-classes.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/bt-management/services/devices/a606/a606.device.d.ts +0 -2
- package/lib/typescript/commonjs/src/modules/bt-management/services/devices/a606/a606.device.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/bt-management/services/devices/and-medical/and-medical.device.d.ts +0 -2
- package/lib/typescript/commonjs/src/modules/bt-management/services/devices/and-medical/and-medical.device.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/bt-management/services/devices/and-medical/and-medical.protocol.d.ts +9 -0
- package/lib/typescript/commonjs/src/modules/bt-management/services/devices/and-medical/and-medical.protocol.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/bt-management/services/devices/aoj/aoj-70b.device.d.ts +0 -2
- package/lib/typescript/commonjs/src/modules/bt-management/services/devices/aoj/aoj-70b.device.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/bt-management/services/devices/aoj/aoj-bp.device.d.ts +0 -2
- package/lib/typescript/commonjs/src/modules/bt-management/services/devices/aoj/aoj-bp.device.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/bt-management/services/devices/aoj/aoj-bp.protocol.d.ts +7 -0
- package/lib/typescript/commonjs/src/modules/bt-management/services/devices/aoj/aoj-bp.protocol.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/bt-management/services/devices/aoj/aoj.device.d.ts +0 -1
- package/lib/typescript/commonjs/src/modules/bt-management/services/devices/aoj/aoj.device.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/bt-management/services/devices/bc01/bc01.device.d.ts +0 -1
- package/lib/typescript/commonjs/src/modules/bt-management/services/devices/bc01/bc01.device.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/bt-management/services/devices/blood-glucose/blood-glucose.device.d.ts +0 -1
- package/lib/typescript/commonjs/src/modules/bt-management/services/devices/blood-glucose/blood-glucose.device.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/bt-management/services/devices/bpw1/bpw1.device.d.ts +0 -2
- package/lib/typescript/commonjs/src/modules/bt-management/services/devices/bpw1/bpw1.device.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/bt-management/services/devices/bt-managed-device.d.ts +3 -2
- package/lib/typescript/commonjs/src/modules/bt-management/services/devices/bt-managed-device.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/bt-management/services/devices/checkme/checkme-ecg.device.d.ts +0 -4
- package/lib/typescript/commonjs/src/modules/bt-management/services/devices/checkme/checkme-ecg.device.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/bt-management/services/devices/checkme/checkme-pod.device.d.ts +0 -2
- package/lib/typescript/commonjs/src/modules/bt-management/services/devices/checkme/checkme-pod.device.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/bt-management/services/devices/checkme/checkme.device.d.ts +0 -2
- package/lib/typescript/commonjs/src/modules/bt-management/services/devices/checkme/checkme.device.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/bt-management/services/devices/cofoe/cofoe.device.d.ts +0 -2
- package/lib/typescript/commonjs/src/modules/bt-management/services/devices/cofoe/cofoe.device.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/bt-management/services/devices/cofoe/cofoe.protocol.d.ts +0 -1
- package/lib/typescript/commonjs/src/modules/bt-management/services/devices/cofoe/cofoe.protocol.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/bt-management/services/devices/custom/custom.device.d.ts +0 -1
- package/lib/typescript/commonjs/src/modules/bt-management/services/devices/custom/custom.device.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/bt-management/services/devices/f4/f4.device.d.ts +0 -1
- package/lib/typescript/commonjs/src/modules/bt-management/services/devices/f4/f4.device.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/bt-management/services/devices/f5/f5-scale.device.d.ts +0 -2
- package/lib/typescript/commonjs/src/modules/bt-management/services/devices/f5/f5-scale.device.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/bt-management/services/devices/famidoc/famidoc.device.d.ts +0 -2
- package/lib/typescript/commonjs/src/modules/bt-management/services/devices/famidoc/famidoc.device.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/bt-management/services/devices/famidoc/famidoc.protocol.d.ts +8 -0
- package/lib/typescript/commonjs/src/modules/bt-management/services/devices/famidoc/famidoc.protocol.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/bt-management/services/devices/genial-t31/genial-t31.device.d.ts +0 -1
- package/lib/typescript/commonjs/src/modules/bt-management/services/devices/genial-t31/genial-t31.device.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/bt-management/services/devices/joytech/joytech.device.d.ts +0 -2
- package/lib/typescript/commonjs/src/modules/bt-management/services/devices/joytech/joytech.device.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/bt-management/services/devices/joytech/joytech.protocol.d.ts +8 -0
- package/lib/typescript/commonjs/src/modules/bt-management/services/devices/joytech/joytech.protocol.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/bt-management/services/devices/jumper/jumper.device.d.ts +0 -2
- package/lib/typescript/commonjs/src/modules/bt-management/services/devices/jumper/jumper.device.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/bt-management/services/devices/jumper/jumper.protocol.d.ts +4 -0
- package/lib/typescript/commonjs/src/modules/bt-management/services/devices/jumper/jumper.protocol.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/bt-management/services/devices/standard-gatt/standard-gatt.glucose.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/bt-management/services/devices/standard-gatt/standard-gatt.profile.d.ts +1 -2
- package/lib/typescript/commonjs/src/modules/bt-management/services/devices/standard-gatt/standard-gatt.profile.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/bt-management/services/devices/taidoc/taidoc.device.d.ts +0 -2
- package/lib/typescript/commonjs/src/modules/bt-management/services/devices/taidoc/taidoc.device.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/bt-management/services/devices/taidoc/taidoc.protocol.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/bt-management/services/devices/transtek/a6-blood-pressure.sequencer.d.ts +3 -9
- package/lib/typescript/commonjs/src/modules/bt-management/services/devices/transtek/a6-blood-pressure.sequencer.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/bt-management/services/devices/transtek/a6-scale.sequencer.d.ts +3 -9
- package/lib/typescript/commonjs/src/modules/bt-management/services/devices/transtek/a6-scale.sequencer.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/bt-management/services/devices/transtek/a6.device.d.ts +14 -0
- package/lib/typescript/commonjs/src/modules/bt-management/services/devices/transtek/a6.device.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/modules/bt-management/services/devices/transtek/a6.sequencer.d.ts +23 -0
- package/lib/typescript/commonjs/src/modules/bt-management/services/devices/transtek/a6.sequencer.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/modules/bt-management/services/devices/transtek/mambo-a5.device.d.ts +0 -2
- package/lib/typescript/commonjs/src/modules/bt-management/services/devices/transtek/mambo-a5.device.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/bt-management/services/devices/transtek/transtek-command.device.d.ts +0 -2
- package/lib/typescript/commonjs/src/modules/bt-management/services/devices/transtek/transtek-command.device.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/bt-management/services/devices/transtek/transtek-command.protocol.d.ts +10 -0
- package/lib/typescript/commonjs/src/modules/bt-management/services/devices/transtek/transtek-command.protocol.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/bt-management/services/devices/trasense/s9.device.d.ts +0 -2
- package/lib/typescript/commonjs/src/modules/bt-management/services/devices/trasense/s9.device.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/bt-management/services/devices/veroval/veroval.activity-device.d.ts +0 -2
- package/lib/typescript/commonjs/src/modules/bt-management/services/devices/veroval/veroval.activity-device.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/bt-management/services/devices/veroval/veroval.duo-control-sequencer.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/bt-management/services/devices/veroval/veroval.ecg-device.d.ts +0 -3
- package/lib/typescript/commonjs/src/modules/bt-management/services/devices/veroval/veroval.ecg-device.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/bt-management/services/devices/viatom/ap20.device.d.ts +0 -2
- package/lib/typescript/commonjs/src/modules/bt-management/services/devices/viatom/ap20.device.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/bt-management/services/devices/viatom/baby-sleep-clip.device.d.ts +0 -2
- package/lib/typescript/commonjs/src/modules/bt-management/services/devices/viatom/baby-sleep-clip.device.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/bt-management/services/devices/viatom/bioland.bgm.device.d.ts +0 -2
- package/lib/typescript/commonjs/src/modules/bt-management/services/devices/viatom/bioland.bgm.device.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/bt-management/services/devices/viatom/oxy-s3.device.d.ts +0 -2
- package/lib/typescript/commonjs/src/modules/bt-management/services/devices/viatom/oxy-s3.device.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/bt-management/services/devices/viatom/pc68b.device.d.ts +0 -2
- package/lib/typescript/commonjs/src/modules/bt-management/services/devices/viatom/pc68b.device.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/bt-management/services/devices/viatom/pc80b.device.d.ts +0 -2
- package/lib/typescript/commonjs/src/modules/bt-management/services/devices/viatom/pc80b.device.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/bt-management/services/devices/viatom/pf10aw1.device.d.ts +0 -2
- package/lib/typescript/commonjs/src/modules/bt-management/services/devices/viatom/pf10aw1.device.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/bt-management/services/devices/viatom/poctor.m3102.device.d.ts +0 -2
- package/lib/typescript/commonjs/src/modules/bt-management/services/devices/viatom/poctor.m3102.device.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/bt-management/services/devices/viatom/sp20.device.d.ts +0 -2
- package/lib/typescript/commonjs/src/modules/bt-management/services/devices/viatom/sp20.device.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/bt-management/services/devices/viatom/viatom-r20.device.d.ts +0 -2
- package/lib/typescript/commonjs/src/modules/bt-management/services/devices/viatom/viatom-r20.device.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/bt-management/services/devices/viatom/viatom.bpm188.device.d.ts +0 -2
- package/lib/typescript/commonjs/src/modules/bt-management/services/devices/viatom/viatom.bpm188.device.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/bt-management/services/devices/viatom/viatom.pc100.device.d.ts +0 -2
- package/lib/typescript/commonjs/src/modules/bt-management/services/devices/viatom/viatom.pc100.device.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/bt-management/services/devices/viatom/viatom.pc300.device.d.ts +0 -2
- package/lib/typescript/commonjs/src/modules/bt-management/services/devices/viatom/viatom.pc300.device.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/bt-management/services/devices/viatom/viatom.pm10.device.d.ts +0 -2
- package/lib/typescript/commonjs/src/modules/bt-management/services/devices/viatom/viatom.pm10.device.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/bt-management/services/devices/viatom/viatom.wbp02.device.d.ts +0 -2
- package/lib/typescript/commonjs/src/modules/bt-management/services/devices/viatom/viatom.wbp02.device.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/bt-management/services/devices/yonker/yonker.device.d.ts +0 -2
- package/lib/typescript/commonjs/src/modules/bt-management/services/devices/yonker/yonker.device.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/bt-management/services/devices/yonker/yonker.protocol.d.ts +8 -0
- package/lib/typescript/commonjs/src/modules/bt-management/services/devices/yonker/yonker.protocol.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/bt-management/utils/bytes-to-hex.d.ts +3 -0
- package/lib/typescript/commonjs/src/modules/bt-management/utils/bytes-to-hex.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/modules/bt-management/utils/frame-bytes.d.ts +3 -0
- package/lib/typescript/commonjs/src/modules/bt-management/utils/frame-bytes.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/modules/bt-management/utils/sig-uuid.d.ts +3 -0
- package/lib/typescript/commonjs/src/modules/bt-management/utils/sig-uuid.d.ts.map +1 -0
- package/lib/typescript/module/src/modules/bt-device/constants/device-instruction-pdfs.d.ts +2 -1
- package/lib/typescript/module/src/modules/bt-device/constants/device-instruction-pdfs.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/bt-management/constants/no-parsing-cases.d.ts +4 -0
- package/lib/typescript/module/src/modules/bt-management/constants/no-parsing-cases.d.ts.map +1 -0
- package/lib/typescript/module/src/modules/bt-management/services/device-classes.d.ts +3 -4
- package/lib/typescript/module/src/modules/bt-management/services/device-classes.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/bt-management/services/devices/a606/a606.device.d.ts +0 -2
- package/lib/typescript/module/src/modules/bt-management/services/devices/a606/a606.device.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/bt-management/services/devices/and-medical/and-medical.device.d.ts +0 -2
- package/lib/typescript/module/src/modules/bt-management/services/devices/and-medical/and-medical.device.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/bt-management/services/devices/and-medical/and-medical.protocol.d.ts +9 -0
- package/lib/typescript/module/src/modules/bt-management/services/devices/and-medical/and-medical.protocol.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/bt-management/services/devices/aoj/aoj-70b.device.d.ts +0 -2
- package/lib/typescript/module/src/modules/bt-management/services/devices/aoj/aoj-70b.device.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/bt-management/services/devices/aoj/aoj-bp.device.d.ts +0 -2
- package/lib/typescript/module/src/modules/bt-management/services/devices/aoj/aoj-bp.device.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/bt-management/services/devices/aoj/aoj-bp.protocol.d.ts +7 -0
- package/lib/typescript/module/src/modules/bt-management/services/devices/aoj/aoj-bp.protocol.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/bt-management/services/devices/aoj/aoj.device.d.ts +0 -1
- package/lib/typescript/module/src/modules/bt-management/services/devices/aoj/aoj.device.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/bt-management/services/devices/bc01/bc01.device.d.ts +0 -1
- package/lib/typescript/module/src/modules/bt-management/services/devices/bc01/bc01.device.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/bt-management/services/devices/blood-glucose/blood-glucose.device.d.ts +0 -1
- package/lib/typescript/module/src/modules/bt-management/services/devices/blood-glucose/blood-glucose.device.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/bt-management/services/devices/bpw1/bpw1.device.d.ts +0 -2
- package/lib/typescript/module/src/modules/bt-management/services/devices/bpw1/bpw1.device.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/bt-management/services/devices/bt-managed-device.d.ts +3 -2
- package/lib/typescript/module/src/modules/bt-management/services/devices/bt-managed-device.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/bt-management/services/devices/checkme/checkme-ecg.device.d.ts +0 -4
- package/lib/typescript/module/src/modules/bt-management/services/devices/checkme/checkme-ecg.device.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/bt-management/services/devices/checkme/checkme-pod.device.d.ts +0 -2
- package/lib/typescript/module/src/modules/bt-management/services/devices/checkme/checkme-pod.device.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/bt-management/services/devices/checkme/checkme.device.d.ts +0 -2
- package/lib/typescript/module/src/modules/bt-management/services/devices/checkme/checkme.device.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/bt-management/services/devices/cofoe/cofoe.device.d.ts +0 -2
- package/lib/typescript/module/src/modules/bt-management/services/devices/cofoe/cofoe.device.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/bt-management/services/devices/cofoe/cofoe.protocol.d.ts +0 -1
- package/lib/typescript/module/src/modules/bt-management/services/devices/cofoe/cofoe.protocol.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/bt-management/services/devices/custom/custom.device.d.ts +0 -1
- package/lib/typescript/module/src/modules/bt-management/services/devices/custom/custom.device.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/bt-management/services/devices/f4/f4.device.d.ts +0 -1
- package/lib/typescript/module/src/modules/bt-management/services/devices/f4/f4.device.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/bt-management/services/devices/f5/f5-scale.device.d.ts +0 -2
- package/lib/typescript/module/src/modules/bt-management/services/devices/f5/f5-scale.device.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/bt-management/services/devices/famidoc/famidoc.device.d.ts +0 -2
- package/lib/typescript/module/src/modules/bt-management/services/devices/famidoc/famidoc.device.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/bt-management/services/devices/famidoc/famidoc.protocol.d.ts +8 -0
- package/lib/typescript/module/src/modules/bt-management/services/devices/famidoc/famidoc.protocol.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/bt-management/services/devices/genial-t31/genial-t31.device.d.ts +0 -1
- package/lib/typescript/module/src/modules/bt-management/services/devices/genial-t31/genial-t31.device.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/bt-management/services/devices/joytech/joytech.device.d.ts +0 -2
- package/lib/typescript/module/src/modules/bt-management/services/devices/joytech/joytech.device.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/bt-management/services/devices/joytech/joytech.protocol.d.ts +8 -0
- package/lib/typescript/module/src/modules/bt-management/services/devices/joytech/joytech.protocol.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/bt-management/services/devices/jumper/jumper.device.d.ts +0 -2
- package/lib/typescript/module/src/modules/bt-management/services/devices/jumper/jumper.device.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/bt-management/services/devices/jumper/jumper.protocol.d.ts +4 -0
- package/lib/typescript/module/src/modules/bt-management/services/devices/jumper/jumper.protocol.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/bt-management/services/devices/standard-gatt/standard-gatt.glucose.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/bt-management/services/devices/standard-gatt/standard-gatt.profile.d.ts +1 -2
- package/lib/typescript/module/src/modules/bt-management/services/devices/standard-gatt/standard-gatt.profile.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/bt-management/services/devices/taidoc/taidoc.device.d.ts +0 -2
- package/lib/typescript/module/src/modules/bt-management/services/devices/taidoc/taidoc.device.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/bt-management/services/devices/taidoc/taidoc.protocol.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/bt-management/services/devices/transtek/a6-blood-pressure.sequencer.d.ts +3 -9
- package/lib/typescript/module/src/modules/bt-management/services/devices/transtek/a6-blood-pressure.sequencer.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/bt-management/services/devices/transtek/a6-scale.sequencer.d.ts +3 -9
- package/lib/typescript/module/src/modules/bt-management/services/devices/transtek/a6-scale.sequencer.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/bt-management/services/devices/transtek/a6.device.d.ts +14 -0
- package/lib/typescript/module/src/modules/bt-management/services/devices/transtek/a6.device.d.ts.map +1 -0
- package/lib/typescript/module/src/modules/bt-management/services/devices/transtek/a6.sequencer.d.ts +23 -0
- package/lib/typescript/module/src/modules/bt-management/services/devices/transtek/a6.sequencer.d.ts.map +1 -0
- package/lib/typescript/module/src/modules/bt-management/services/devices/transtek/mambo-a5.device.d.ts +0 -2
- package/lib/typescript/module/src/modules/bt-management/services/devices/transtek/mambo-a5.device.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/bt-management/services/devices/transtek/transtek-command.device.d.ts +0 -2
- package/lib/typescript/module/src/modules/bt-management/services/devices/transtek/transtek-command.device.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/bt-management/services/devices/transtek/transtek-command.protocol.d.ts +10 -0
- package/lib/typescript/module/src/modules/bt-management/services/devices/transtek/transtek-command.protocol.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/bt-management/services/devices/trasense/s9.device.d.ts +0 -2
- package/lib/typescript/module/src/modules/bt-management/services/devices/trasense/s9.device.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/bt-management/services/devices/veroval/veroval.activity-device.d.ts +0 -2
- package/lib/typescript/module/src/modules/bt-management/services/devices/veroval/veroval.activity-device.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/bt-management/services/devices/veroval/veroval.duo-control-sequencer.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/bt-management/services/devices/veroval/veroval.ecg-device.d.ts +0 -3
- package/lib/typescript/module/src/modules/bt-management/services/devices/veroval/veroval.ecg-device.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/bt-management/services/devices/viatom/ap20.device.d.ts +0 -2
- package/lib/typescript/module/src/modules/bt-management/services/devices/viatom/ap20.device.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/bt-management/services/devices/viatom/baby-sleep-clip.device.d.ts +0 -2
- package/lib/typescript/module/src/modules/bt-management/services/devices/viatom/baby-sleep-clip.device.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/bt-management/services/devices/viatom/bioland.bgm.device.d.ts +0 -2
- package/lib/typescript/module/src/modules/bt-management/services/devices/viatom/bioland.bgm.device.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/bt-management/services/devices/viatom/oxy-s3.device.d.ts +0 -2
- package/lib/typescript/module/src/modules/bt-management/services/devices/viatom/oxy-s3.device.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/bt-management/services/devices/viatom/pc68b.device.d.ts +0 -2
- package/lib/typescript/module/src/modules/bt-management/services/devices/viatom/pc68b.device.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/bt-management/services/devices/viatom/pc80b.device.d.ts +0 -2
- package/lib/typescript/module/src/modules/bt-management/services/devices/viatom/pc80b.device.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/bt-management/services/devices/viatom/pf10aw1.device.d.ts +0 -2
- package/lib/typescript/module/src/modules/bt-management/services/devices/viatom/pf10aw1.device.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/bt-management/services/devices/viatom/poctor.m3102.device.d.ts +0 -2
- package/lib/typescript/module/src/modules/bt-management/services/devices/viatom/poctor.m3102.device.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/bt-management/services/devices/viatom/sp20.device.d.ts +0 -2
- package/lib/typescript/module/src/modules/bt-management/services/devices/viatom/sp20.device.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/bt-management/services/devices/viatom/viatom-r20.device.d.ts +0 -2
- package/lib/typescript/module/src/modules/bt-management/services/devices/viatom/viatom-r20.device.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/bt-management/services/devices/viatom/viatom.bpm188.device.d.ts +0 -2
- package/lib/typescript/module/src/modules/bt-management/services/devices/viatom/viatom.bpm188.device.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/bt-management/services/devices/viatom/viatom.pc100.device.d.ts +0 -2
- package/lib/typescript/module/src/modules/bt-management/services/devices/viatom/viatom.pc100.device.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/bt-management/services/devices/viatom/viatom.pc300.device.d.ts +0 -2
- package/lib/typescript/module/src/modules/bt-management/services/devices/viatom/viatom.pc300.device.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/bt-management/services/devices/viatom/viatom.pm10.device.d.ts +0 -2
- package/lib/typescript/module/src/modules/bt-management/services/devices/viatom/viatom.pm10.device.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/bt-management/services/devices/viatom/viatom.wbp02.device.d.ts +0 -2
- package/lib/typescript/module/src/modules/bt-management/services/devices/viatom/viatom.wbp02.device.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/bt-management/services/devices/yonker/yonker.device.d.ts +0 -2
- package/lib/typescript/module/src/modules/bt-management/services/devices/yonker/yonker.device.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/bt-management/services/devices/yonker/yonker.protocol.d.ts +8 -0
- package/lib/typescript/module/src/modules/bt-management/services/devices/yonker/yonker.protocol.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/bt-management/utils/bytes-to-hex.d.ts +3 -0
- package/lib/typescript/module/src/modules/bt-management/utils/bytes-to-hex.d.ts.map +1 -0
- package/lib/typescript/module/src/modules/bt-management/utils/frame-bytes.d.ts +3 -0
- package/lib/typescript/module/src/modules/bt-management/utils/frame-bytes.d.ts.map +1 -0
- package/lib/typescript/module/src/modules/bt-management/utils/sig-uuid.d.ts +3 -0
- package/lib/typescript/module/src/modules/bt-management/utils/sig-uuid.d.ts.map +1 -0
- package/package.json +1 -1
- package/lib/commonjs/modules/bt-management/services/devices/transtek/a6-blood-pressure.device.js +0 -50
- package/lib/commonjs/modules/bt-management/services/devices/transtek/a6-blood-pressure.device.js.map +0 -1
- package/lib/commonjs/modules/bt-management/services/devices/transtek/a6-scale.device.js +0 -50
- package/lib/commonjs/modules/bt-management/services/devices/transtek/a6-scale.device.js.map +0 -1
- package/lib/module/modules/bt-management/services/devices/transtek/a6-blood-pressure.device.js +0 -45
- package/lib/module/modules/bt-management/services/devices/transtek/a6-blood-pressure.device.js.map +0 -1
- package/lib/module/modules/bt-management/services/devices/transtek/a6-scale.device.js +0 -45
- package/lib/module/modules/bt-management/services/devices/transtek/a6-scale.device.js.map +0 -1
- package/lib/typescript/commonjs/src/modules/bt-management/services/devices/transtek/a6-blood-pressure.device.d.ts +0 -16
- package/lib/typescript/commonjs/src/modules/bt-management/services/devices/transtek/a6-blood-pressure.device.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/modules/bt-management/services/devices/transtek/a6-scale.device.d.ts +0 -16
- package/lib/typescript/commonjs/src/modules/bt-management/services/devices/transtek/a6-scale.device.d.ts.map +0 -1
- package/lib/typescript/module/src/modules/bt-management/services/devices/transtek/a6-blood-pressure.device.d.ts +0 -16
- package/lib/typescript/module/src/modules/bt-management/services/devices/transtek/a6-blood-pressure.device.d.ts.map +0 -1
- package/lib/typescript/module/src/modules/bt-management/services/devices/transtek/a6-scale.device.d.ts +0 -16
- package/lib/typescript/module/src/modules/bt-management/services/devices/transtek/a6-scale.device.d.ts.map +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["
|
|
1
|
+
{"version":3,"names":["frameBytes","sigUuid","JUMPER_SERVICE","JUMPER_NOTIFY","JUMPER_GATT","oximeterAlternate","service","notify","thermometerAlternate","bloodPressure","readHa120","frame","b","length","undefined","systolic","diastolic","heartRate","readFr302"],"sourceRoot":"../../../../../../../src","sources":["modules/bt-management/services/devices/jumper/jumper.protocol.ts"],"mappings":";;AAAA;;AAEA,SAASA,UAAU,QAAQ,+BAA4B;AACvD,SAASC,OAAO,QAAQ,4BAAyB;;AAEjD;AACA;AACA;AACA;AACA;AACA,OAAO,MAAMC,cAAc,GAAG,sCAAsC;AACpE,OAAO,MAAMC,aAAa,GAAG,sCAAsC;AAEnE,OAAO,MAAMC,WAAW,GAAG;EACzBC,iBAAiB,EAAE;IAAEC,OAAO,EAAEL,OAAO,CAAC,MAAM,CAAC;IAAEM,MAAM,EAAEN,OAAO,CAAC,MAAM;EAAE,CAAC;EACxEO,oBAAoB,EAAE;IAAEF,OAAO,EAAEL,OAAO,CAAC,MAAM,CAAC;IAAEM,MAAM,EAAEN,OAAO,CAAC,MAAM;EAAE,CAAC;EAC3EQ,aAAa,EAAE;IAAEH,OAAO,EAAEL,OAAO,CAAC,MAAM,CAAC;IAAEM,MAAM,EAAEN,OAAO,CAAC,MAAM;EAAE;AACrE,CAAU;;AAEV;AACA;AACA;AACA;AACA,OAAO,MAAMS,SAAS,GACpBC,KAAwB,IACmD;EAC3E,MAAMC,CAAC,GAAGZ,UAAU,CAACW,KAAK,CAAC;EAE3B,IACGC,CAAC,CAACC,MAAM,KAAK,CAAC,IAAID,CAAC,CAACC,MAAM,KAAK,CAAC,IACjCD,CAAC,CAAC,CAAC,CAAC,KAAK,IAAI,IACbA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/devices/standard-gatt/standard-gatt.glucose.js
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
3
|
import { MeasurementTypeKey } from "@ovok/core";
|
|
4
|
+
import { sigUuid } from "../../../utils/sig-uuid.js";
|
|
4
5
|
import { defineCustomDevice } from "../../custom/define-custom-device.js";
|
|
5
|
-
import { littleEndian
|
|
6
|
+
import { littleEndian } from "./standard-gatt.profile.js";
|
|
6
7
|
|
|
7
8
|
/**
|
|
8
9
|
* Glucose Service 0x1808: Glucose Measurement 0x2A18 and the Record Access Control Point
|
package/lib/module/modules/bt-management/services/devices/standard-gatt/standard-gatt.glucose.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["MeasurementTypeKey","
|
|
1
|
+
{"version":3,"names":["MeasurementTypeKey","sigUuid","defineCustomDevice","littleEndian","MG_PER_DL_PER_KG_PER_L","MG_PER_DL_PER_MOL_PER_L","FLAG_TIME_OFFSET","FLAG_CONCENTRATION","FLAG_MOL_PER_L","BASE_TIME_INDEX","TIME_OFFSET_INDEX","CONTROL_SOLUTION_TYPE","CONTROL_SOLUTION_LOCATION","REPORT_ALL_STORED_RECORDS","concentrationIndex","flags","selector","toString","padStart","ALL_FLAGS","Array","from","length","_","glucoseField","index","scale","decimals","byte","frame","value","Number","parseInt","isInteger","undefined","recordedAtFromGlucoseFrame","parts","i","some","part","yearLow","yearHigh","month","day","hour","minute","second","year","recordedAt","Date","getFullYear","getMonth","getDate","getHours","getMinutes","getSeconds","low","high","offsetMinutes","setMinutes","isControlSolution","typeAndLocation","standardGlucoseDevice","params","id","bloodGlucose","nameMatch","matchByService","oneReadingPerConnection","stuckDataTimeoutMs","services","uuid","monitor","minLengthBytes","caseSelectorBytes","cases","map","kind","measurementTypeKey","fields","description","write","commandHex","when","decorateReading","reading","recordOffset","decorated"],"sourceRoot":"../../../../../../../src","sources":["modules/bt-management/services/devices/standard-gatt/standard-gatt.glucose.ts"],"m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AAC,MAAM,CAAC;MACrBiF,UAAU,EAAErE,yBAAyB;MACrCsE,IAAI,EAAE;IACR;EACF,CAAC;AAEL,CAAC,EACD;EACEC,eAAe,EAAEA,CAACC,OAAO,EAAExD,KAAK,EAAEyD,YAAY,KAAK;IACjD,IAAIzD,KAAK,IAAI+B,iBAAiB,CAAC/B,KAAK,CAAC,EAAE;MACrC,OAAO,IAAI;IACb;IAEA,MAAMmB,UAAU,GAAGnB,KAAK,GAAGM,0BAA0B,CAACN,KAAK,CAAC,GAAGK,SAAS;IACxE,MAAMqD,SAAS,GAAGvC,UAAU,GAAG;MAAE,GAAGqC,OAAO;MAAErC;IAAW,CAAC,GAAGqC,OAAO;IAEnE,OAAOtB,MAAM,CAACqB,eAAe,GACzBrB,MAAM,CAACqB,eAAe,CAACG,SAAS,EAAE1D,KAAK,EAAEyD,YAAY,CAAC,GACtDC,SAAS;EACf;AACF,CACF,CAAC;AAEH,SAASpD,0BAA0B,EAAE2B,qBAAqB","ignoreList":[]}
|
package/lib/module/modules/bt-management/services/devices/standard-gatt/standard-gatt.profile.js
CHANGED
|
@@ -1,13 +1,12 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
3
|
import { BloodPressureStates } from "../../../types/blood-pressure-states.js";
|
|
4
|
+
import { sigUuid } from "../../../utils/sig-uuid.js";
|
|
4
5
|
import { defineCustomDevice } from "../../custom/define-custom-device.js";
|
|
5
6
|
import { bloodPressureStatusFromFrame } from "./standard-gatt.blood-pressure-status.js";
|
|
6
7
|
|
|
7
8
|
/** Milliseconds a spot-check device may take to produce its reading. */
|
|
8
9
|
const SPOT_CHECK_TIMEOUT_MS = 60_000;
|
|
9
|
-
const sigUuid = assigned => `0000${assigned}-0000-1000-8000-00805f9b34fb`;
|
|
10
|
-
|
|
11
10
|
/**
|
|
12
11
|
* The flags byte selects the case, because it decides which optional fields are present and
|
|
13
12
|
* therefore where the later ones sit. Fields common to every shape are declared once; a
|
|
@@ -119,5 +118,5 @@ const decorateBloodPressureReading = (reading, frame, recordOffset) => {
|
|
|
119
118
|
...metadata
|
|
120
119
|
} : reading;
|
|
121
120
|
};
|
|
122
|
-
export { bloodPressureStatusFromFrame, decorateBloodPressureReading, declareProfile, littleEndian, recordedAtFromBloodPressureFrame
|
|
121
|
+
export { bloodPressureStatusFromFrame, decorateBloodPressureReading, declareProfile, littleEndian, recordedAtFromBloodPressureFrame };
|
|
123
122
|
//# sourceMappingURL=standard-gatt.profile.js.map
|
package/lib/module/modules/bt-management/services/devices/standard-gatt/standard-gatt.profile.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["BloodPressureStates","defineCustomDevice","bloodPressureStatusFromFrame","SPOT_CHECK_TIMEOUT_MS","
|
|
1
|
+
{"version":3,"names":["BloodPressureStates","sigUuid","defineCustomDevice","bloodPressureStatusFromFrame","SPOT_CHECK_TIMEOUT_MS","declareProfile","params","profile","id","measurementTypeKey","nameMatch","matchByService","undefined","oneReadingPerConnection","stuckDataTimeoutMs","services","uuid","service","monitor","characteristic","frame","minLengthBytes","caseSelectorBytes","cases","selectors","map","selector","optional","optionalFields","fields","fieldsBySelector","kind","decorateReading","littleEndian","name","byteIndexes","unit","encoding","byteOrder","byteAt","index","offset","value","Number","parseInt","isInteger","recordedAtFromBloodPressureFrame","flags","yearLow","yearHigh","month","day","hour","minute","second","year","recordedAt","Date","getFullYear","getMonth","getDate","getHours","getMinutes","getSeconds","decorateBloodPressureReading","reading","recordOffset","cursor","metadata","userId","memorySlot","status","DISTURB_DETECTED","LOOSE_SLEEVE","REGULAR","irregularHeartbeat","Object","keys","length"],"sourceRoot":"../../../../../../../src","sources":["modules/bt-management/services/devices/standard-gatt/standard-gatt.profile.ts"],"mappings":";;AAEA,SAASA,mBAAmB,QAAQ,yCAAsC;AAM1E,SAASC,OAAO,QAAQ,4BAAyB;AACjD,SAASC,kBAAkB,QAAQ,sCAAmC;AAEtE,SAASC,4BAA4B,QAAQ,0CAAuC;;AAEpF;AACA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M,CAACC,IAAI,CAACT,QAAQ,CAAC,CAACU,MAAM,GAAG,CAAC,GAAG;IAAE,GAAGb,OAAO;IAAE,GAAGG;EAAS,CAAC,GAAGH,OAAO;AACjF,CAAC;AAED,SACE9D,4BAA4B,EAC5B6D,4BAA4B,EAC5B3D,cAAc,EACd4B,YAAY,EACZa,gCAAgC","ignoreList":[]}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
+
import { NO_PARSING_CASES } from "../../../constants/no-parsing-cases.js";
|
|
3
4
|
import { IntegratedDevices } from "../../../types/integrated-devices.js";
|
|
4
5
|
import { BTManagedDevice } from "../bt-managed-device.js";
|
|
5
6
|
import { TAIDOC_CHARACTERISTIC, TAIDOC_SERVICE, TaidocFrameReader } from "./taidoc.protocol.js";
|
|
@@ -13,15 +14,12 @@ const KIND = {
|
|
|
13
14
|
};
|
|
14
15
|
|
|
15
16
|
/** The sequencer decodes records itself; the declarative parser only passes frames on. */
|
|
16
|
-
|
|
17
|
-
caseValuePosition: [],
|
|
18
|
-
cases: []
|
|
19
|
-
};
|
|
17
|
+
|
|
20
18
|
const taidocMainServices = [{
|
|
21
19
|
uuid: TAIDOC_SERVICE,
|
|
22
20
|
monitorUuids: [{
|
|
23
21
|
uuid: TAIDOC_CHARACTERISTIC,
|
|
24
|
-
parsingModel:
|
|
22
|
+
parsingModel: NO_PARSING_CASES
|
|
25
23
|
}]
|
|
26
24
|
}];
|
|
27
25
|
|
|
@@ -29,7 +27,6 @@ const taidocMainServices = [{
|
|
|
29
27
|
class TaidocDeviceClass extends BTManagedDevice {
|
|
30
28
|
mainServices = taidocMainServices;
|
|
31
29
|
stuckDataTimeout = 90_000;
|
|
32
|
-
onStreamStart = undefined;
|
|
33
30
|
constructor(device, params) {
|
|
34
31
|
super(device, params);
|
|
35
32
|
this.frameReader = new TaidocFrameReader();
|
|
@@ -38,9 +35,6 @@ class TaidocDeviceClass extends BTManagedDevice {
|
|
|
38
35
|
onResult: result => this.onResult?.(result)
|
|
39
36
|
});
|
|
40
37
|
}
|
|
41
|
-
handleSuccessResult() {
|
|
42
|
-
return;
|
|
43
|
-
}
|
|
44
38
|
}
|
|
45
39
|
export { TaidocDeviceClass as TaidocDevice };
|
|
46
40
|
//# sourceMappingURL=taidoc.device.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["IntegratedDevices","BTManagedDevice","TAIDOC_CHARACTERISTIC","TAIDOC_SERVICE","TaidocFrameReader","TaidocSequencer","KIND","TAIDOC_MULTI","TAIDOC_BPM","TAIDOC_THERMOMETER","TAIDOC_OXIMETER","TAIDOC_SCALE","
|
|
1
|
+
{"version":3,"names":["NO_PARSING_CASES","IntegratedDevices","BTManagedDevice","TAIDOC_CHARACTERISTIC","TAIDOC_SERVICE","TaidocFrameReader","TaidocSequencer","KIND","TAIDOC_MULTI","TAIDOC_BPM","TAIDOC_THERMOMETER","TAIDOC_OXIMETER","TAIDOC_SCALE","taidocMainServices","uuid","monitorUuids","parsingModel","TaidocDeviceClass","mainServices","stuckDataTimeout","constructor","device","params","frameReader","createCommandSequencer","kind","deviceName","onResult","result","TaidocDevice"],"sourceRoot":"../../../../../../../src","sources":["modules/bt-management/services/devices/taidoc/taidoc.device.ts"],"mappings":";;AAEA,SAASA,gBAAgB,QAAQ,wCAAqC;AAGtE,SAASC,iBAAiB,QAAQ,sCAAmC;AAGrE,SAASC,eAAe,QAAQ,yBAAsB;AAEtD,SAASC,qBAAqB,EAAEC,cAAc,EAAEC,iBAAiB,QAAQ,sBAAmB;AAE5F,SAASC,eAAe,QAAQ,uBAAoB;AASpD,MAAMC,IAAsC,GAAG;EAC7C,CAACN,iBAAiB,CAACO,YAAY,GAAG,OAAO;EACzC,CAACP,iBAAiB,CAACQ,UAAU,GAAG,KAAK;EACrC,CAACR,iBAAiB,CAACS,kBAAkB,GAAG,aAAa;EACrD,CAACT,iBAAiB,CAACU,eAAe,GAAG,UAAU;EAC/C,CAACV,iBAAiB,CAACW,YAAY,GAAG;AACpC,CAAC;;AAED;;AAEA,MAAMC,kBAA8B,GAAG,CACrC;EACEC,IAAI,EAAEV,cAAc;EACpBW,YAAY,EAAE,CAAC;IAAED,IAAI,EAAEX,qBAAqB;IAAEa,YAAY,EAAEhB;EAAiB,CAAC;AAChF,CAAC,CACF;;AAED;AACA,MAAMiB,iBAAiB,SAASf,eAAe,CAAe;EAClDgB,YAAY,GAAGL,kBAAkB;EACjCM,gBAAgB,GAAG,MAAM;EAE5BC,WAAWA,CAACC,MAAc,EAAEC,MAAwC,EAAE;IAC3E,KAAK,CAACD,MAAM,EAAEC,MAAM,CAAC;IACrB,IAAI,CAACC,WAAW,GAAG,IAAIlB,iBAAiB,CAAC,CAAC;IAC1C,IAAI,CAACmB,sBAAsB,GAAG,MAC5B,IAAIlB,eAAe,CAAC;MAClBmB,IAAI,EAAElB,IAAI,CAACe,MAAM,CAACI,UAAU,CAAC;MAC7BC,QAAQ,EAAGC,MAAM,IACf,IAAI,CAACD,QAAQ,GACXC,MAGF;IACJ,CAAC,CAAC;EACN;AAEF;AAEA,SAASX,iBAAiB,IAAIY,YAAY","ignoreList":[]}
|
|
@@ -3,6 +3,8 @@
|
|
|
3
3
|
/* eslint-disable import/group-exports */
|
|
4
4
|
|
|
5
5
|
import { FrameReadStatus } from "../../../types/frame-read-status.js";
|
|
6
|
+
import { bytesToHex } from "../../../utils/bytes-to-hex.js";
|
|
7
|
+
import { frameBytes } from "../../../utils/frame-bytes.js";
|
|
6
8
|
import { hexToByte } from "../../../utils/hex-to-byte.js";
|
|
7
9
|
|
|
8
10
|
/**
|
|
@@ -39,10 +41,9 @@ const HOST_END = 0xa3;
|
|
|
39
41
|
const DEVICE_END = 0xa5;
|
|
40
42
|
const FIXED_FRAME_BYTES = 8;
|
|
41
43
|
const VARIABLE_COMMANDS = [TAIDOC.weightRecord, TAIDOC.setUser];
|
|
42
|
-
const toHex = bytes => bytes.map(value => (value & 0xff).toString(16).padStart(2, "0"));
|
|
43
44
|
const byteAt = (frame, index) => hexToByte(frame[index] ?? "00");
|
|
44
45
|
const sum = bytes => bytes.reduce((total, value) => total + value, 0) & 0xff;
|
|
45
|
-
const withChecksum = bytes =>
|
|
46
|
+
const withChecksum = bytes => bytesToHex([...bytes, sum(bytes)]);
|
|
46
47
|
export const commandOf = frame => byteAt(frame, 1);
|
|
47
48
|
|
|
48
49
|
/** `51 cmd a b c d A3 cs`. */
|
|
@@ -86,7 +87,7 @@ export class TaidocFrameReader {
|
|
|
86
87
|
};
|
|
87
88
|
}
|
|
88
89
|
const received = buffer.slice(start, start + length);
|
|
89
|
-
const bytes = received
|
|
90
|
+
const bytes = frameBytes(received);
|
|
90
91
|
const end = bytes[length - 2];
|
|
91
92
|
if (end !== HOST_END && end !== DEVICE_END || sum(bytes.slice(0, -1)) !== bytes[length - 1]) {
|
|
92
93
|
return {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["FrameReadStatus","hexToByte","TAIDOC_SERVICE","TAIDOC_CHARACTERISTIC","TAIDOC","wakeUp","deviceTime","model","readingTime","readingResult","serial1","serial2","oximeterAfterTime","readingCount","setTime","shutdown","wakeNotice","weightRecord","setUser","busy","START","HOST_END","DEVICE_END","FIXED_FRAME_BYTES","VARIABLE_COMMANDS","
|
|
1
|
+
{"version":3,"names":["FrameReadStatus","bytesToHex","frameBytes","hexToByte","TAIDOC_SERVICE","TAIDOC_CHARACTERISTIC","TAIDOC","wakeUp","deviceTime","model","readingTime","readingResult","serial1","serial2","oximeterAfterTime","readingCount","setTime","shutdown","wakeNotice","weightRecord","setUser","busy","START","HOST_END","DEVICE_END","FIXED_FRAME_BYTES","VARIABLE_COMMANDS","byteAt","frame","index","sum","bytes","reduce","total","value","withChecksum","commandOf","taidocCommand","command","a","b","c","d","readingCountCommand","user","readingCommand","setTimeCommand","now","date","getFullYear","getMonth","getDate","getMinutes","getHours","weightRecordCommand","isHostFrame","length","TaidocFrameReader","readFrame","buffer","start","findIndex","byte","status","INCOMPLETE","consumedBytes","includes","received","slice","end","CORRUPT","COMPLETE","MULTI_USER_CODES","Set","usersFor","has","readCount"],"sourceRoot":"../../../../../../../src","sources":["modules/bt-management/services/devices/taidoc/taidoc.protocol.ts"],"mappings":";;AAAA;;AAGA,SAASA,eAAe,QAAQ,qCAAkC;AAElE,SAASC,UAAU,QAAQ,gCAA6B;AACxD,SAASC,UAAU,QAAQ,+BAA4B;AACvD,SAASC,SAAS,QAAQ,+BAA4B;;AAEtD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,MAAMC,cAAc,GAAG,sCAAsC;AACpE,OAAO,MAAMC,qBAAqB,GAAG,sCAAsC;AAE3E,OAAO,MAAMC,MAAM,GAAG;EACpBC,MAAM,EAAE,IAAI;EACZC,UAAU,EAAE,IAAI;EAChBC,KAAK,EAAE,IAAI;EACXC,WAAW,EAAE,IAAI;EACjBC,aAAa,EAAE,IAAI;EACnBC,OAAO,EAAE,IAAI;EACbC,OAAO,EAAE,IAAI;EACbC,iBAAiB,EAAE,IAAI;EACvBC,YAAY,EAAE,IAAI;EAClBC,OAAO,EAAE,IAAI;EACbC,QAAQ,EAAE,IAAI;EACdC,UAAU,EAAE,IAAI;EAChBC,YAAY,EAAE,IAAI;EAClBC,OAAO,EAAE,IAAI;EACbC,IAAI,EAAE;AACR,CAAU;AAEV,MAAMC,KAAK,GAAG,IAAI;AAClB,MAAMC,QAAQ,GAAG,IAAI;AACrB,MAAMC,UAAU,GAAG,IAAI;AACvB,MAAMC,iBAAiB,GAAG,CAAC;AAC3B,MAAMC,iBAAoC,GAAG,CAACpB,MAAM,CAACa,YAAY,EAAEb,MAAM,CAACc,OAAO,CAAC;AAElF,MAAMO,MAAM,GAAGA,CAACC,KAAwB,EAAEC,KAAa,KACrD1B,SAAS,CAACyB,KAAK,CAACC,KAAK,CAAC,IAAI,IAAI,CAAC;AAEjC,MAAMC,GAAG,GAAIC,KAAwB,IACnCA,KAAK,CAACC,MAAM,CAA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-1,22 +1,13 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
/* eslint-disable max-lines */
|
|
4
|
-
|
|
5
3
|
import { MeasurementTypeKey } from "@ovok/core";
|
|
6
4
|
import { CaseType } from "../../../types/case-type.js";
|
|
7
5
|
import { getClockParts, isClockSyncEnabled } from "../../../types/clock-sync.js";
|
|
8
6
|
import { parseA6BloodPressure } from "./a6-blood-pressure.measurements.js";
|
|
9
|
-
import { A6_BPM_MEASUREMENT, A6_BPM_SERVICE, A6_BPM_SETTING_RESPONSE, A6_BPM_START_MEASURING_RESPONSE, A6_BPM_SYNC, A6_BPM_TIME,
|
|
7
|
+
import { A6_BPM_MEASUREMENT, A6_BPM_SERVICE, A6_BPM_SETTING_RESPONSE, A6_BPM_START_MEASURING_RESPONSE, A6_BPM_SYNC, A6_BPM_TIME, A6_SCALE_WRITE, decodeA6Command, encodeA6Command, readA6Uint } from "./a6-scale.protocol.js";
|
|
8
|
+
import { A6Sequencer } from "./a6.sequencer.js";
|
|
10
9
|
const vendorEpochSeconds = Date.UTC(2010, 0, 1) / 1000;
|
|
11
10
|
const byte = value => (value & 0xff).toString(16).padStart(2, "0");
|
|
12
|
-
const command = (characteristicUuid, frame, delayBeforeWriteMs) => ({
|
|
13
|
-
serviceUuid: A6_BPM_SERVICE,
|
|
14
|
-
characteristicUuid,
|
|
15
|
-
frame,
|
|
16
|
-
...(delayBeforeWriteMs ? {
|
|
17
|
-
delayBeforeWriteMs
|
|
18
|
-
} : {})
|
|
19
|
-
});
|
|
20
11
|
|
|
21
12
|
/** Vendor BP time is wall-clock seconds from 2010-01-01, encoded big-endian. */
|
|
22
13
|
const buildA6BloodPressureTimeBody = (now, timezone = "local") => {
|
|
@@ -27,54 +18,14 @@ const buildA6BloodPressureTimeBody = (now, timezone = "local") => {
|
|
|
27
18
|
};
|
|
28
19
|
|
|
29
20
|
/** Answers A6 BP login/settings requests, then fetches the cuff's BP history. */
|
|
30
|
-
class A6BloodPressureSequencer {
|
|
31
|
-
expectedFragmentCount = 0;
|
|
21
|
+
class A6BloodPressureSequencer extends A6Sequencer {
|
|
32
22
|
userNumber = 0;
|
|
33
23
|
waitingForClockSettingResponse = false;
|
|
34
24
|
historySyncSent = false;
|
|
35
25
|
constructor(options) {
|
|
26
|
+
super(A6_BPM_SERVICE, options);
|
|
36
27
|
this.options = options;
|
|
37
|
-
this.key = a6EncryptionKey(options.deviceId, options.manufacturerData);
|
|
38
28
|
}
|
|
39
|
-
initialCommands = () => [];
|
|
40
|
-
isHistoryTransfer = () => true;
|
|
41
|
-
nextCommand = frame => {
|
|
42
|
-
const content = a6CommandBody(frame);
|
|
43
|
-
const control = Number.parseInt(frame[0] ?? "00", 16) || 0;
|
|
44
|
-
const count = control >> 4;
|
|
45
|
-
const index = control & 0x0f;
|
|
46
|
-
const replies = [];
|
|
47
|
-
if (count === 0) {
|
|
48
|
-
return replies;
|
|
49
|
-
}
|
|
50
|
-
if (!(count === 1 && content.length === 1 && content[0] === "01")) {
|
|
51
|
-
replies.push(command(A6_SCALE_ACK, ["00", "01", "01"]));
|
|
52
|
-
}
|
|
53
|
-
if (count === 1) {
|
|
54
|
-
replies.push(...this.processMessage(content));
|
|
55
|
-
return replies;
|
|
56
|
-
}
|
|
57
|
-
if (index === 0) {
|
|
58
|
-
this.fragments = Array.from({
|
|
59
|
-
length: count
|
|
60
|
-
}, () => []);
|
|
61
|
-
this.expectedFragmentCount = count;
|
|
62
|
-
}
|
|
63
|
-
if (!this.fragments || this.expectedFragmentCount !== count) {
|
|
64
|
-
this.fragments = undefined;
|
|
65
|
-
this.expectedFragmentCount = 0;
|
|
66
|
-
return replies;
|
|
67
|
-
}
|
|
68
|
-
this.fragments[index] = content;
|
|
69
|
-
if (this.fragments.some(part => part.length === 0)) {
|
|
70
|
-
return replies;
|
|
71
|
-
}
|
|
72
|
-
const assembled = this.fragments.flat();
|
|
73
|
-
this.fragments = undefined;
|
|
74
|
-
this.expectedFragmentCount = 0;
|
|
75
|
-
replies.push(...this.processMessage(assembled));
|
|
76
|
-
return replies;
|
|
77
|
-
};
|
|
78
29
|
processMessage = content => {
|
|
79
30
|
const message = decodeA6Command(content, this.key);
|
|
80
31
|
if (!message) {
|
|
@@ -89,13 +40,13 @@ class A6BloodPressureSequencer {
|
|
|
89
40
|
if (!response) {
|
|
90
41
|
return [];
|
|
91
42
|
}
|
|
92
|
-
const replies = [command(A6_SCALE_WRITE, response)];
|
|
43
|
+
const replies = [this.command(A6_SCALE_WRITE, response)];
|
|
93
44
|
if (isClockSyncEnabled(this.options.clockSync)) {
|
|
94
45
|
const now = this.options.clockSync?.now?.() ?? new Date();
|
|
95
46
|
const time = encodeA6Command(A6_BPM_TIME, buildA6BloodPressureTimeBody(now, this.options.clockSync?.timezone), this.key);
|
|
96
47
|
if (time) {
|
|
97
48
|
this.waitingForClockSettingResponse = true;
|
|
98
|
-
replies.push(command(A6_SCALE_WRITE, time, 500));
|
|
49
|
+
replies.push(this.command(A6_SCALE_WRITE, time, 500));
|
|
99
50
|
}
|
|
100
51
|
} else {
|
|
101
52
|
replies.push(...this.startHistorySync(500));
|
|
@@ -134,7 +85,7 @@ class A6BloodPressureSequencer {
|
|
|
134
85
|
return [];
|
|
135
86
|
}
|
|
136
87
|
this.historySyncSent = true;
|
|
137
|
-
return [command(A6_SCALE_WRITE, sync, delayBeforeWriteMs)];
|
|
88
|
+
return [this.command(A6_SCALE_WRITE, sync, delayBeforeWriteMs)];
|
|
138
89
|
};
|
|
139
90
|
}
|
|
140
91
|
export { A6BloodPressureSequencer, buildA6BloodPressureTimeBody };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["MeasurementTypeKey","CaseType","getClockParts","isClockSyncEnabled","parseA6BloodPressure","A6_BPM_MEASUREMENT","A6_BPM_SERVICE","A6_BPM_SETTING_RESPONSE","A6_BPM_START_MEASURING_RESPONSE","A6_BPM_SYNC","A6_BPM_TIME","
|
|
1
|
+
{"version":3,"names":["MeasurementTypeKey","CaseType","getClockParts","isClockSyncEnabled","parseA6BloodPressure","A6_BPM_MEASUREMENT","A6_BPM_SERVICE","A6_BPM_SETTING_RESPONSE","A6_BPM_START_MEASURING_RESPONSE","A6_BPM_SYNC","A6_BPM_TIME","A6_SCALE_WRITE","decodeA6Command","encodeA6Command","readA6Uint","A6Sequencer","vendorEpochSeconds","Date","UTC","byte","value","toString","padStart","buildA6BloodPressureTimeBody","now","timezone","parts","seconds","year","month","day","hours","minutes","encoded","Math","floor","A6BloodPressureSequencer","userNumber","waitingForClockSettingResponse","historySyncSent","constructor","options","processMessage","content","message","key","command","body","length","response","slice","replies","clockSync","time","push","startHistorySync","map","reading","onResult","caseType","RESULT","measurementTypeKey","bloodPressure","memorySlot","delayBeforeWriteMs","sync"],"sourceRoot":"../../../../../../../src","sources":["modules/bt-management/services/devices/transtek/a6-blood-pressure.sequencer.ts"],"mappings":";;AAEA,SAASA,kBAAkB,QAAQ,YAAY;AAE/C,SAASC,QAAQ,QAAQ,6BAA0B;AACnD,SAEEC,aAAa,EACbC,kBAAkB,QACb,8BAA2B;AAMlC,SAASC,oBAAoB,QAAQ,qCAAkC;AACvE,SACEC,kBAAkB,EAClBC,cAAc,EACdC,uBAAuB,EACvBC,+BAA+B,EAC/BC,WAAW,EACXC,WAAW,EACXC,cAAc,EACdC,eAAe,EACfC,eAAe,EACfC,UAAU,QACL,wBAAqB;AAC5B,SAASC,WAAW,QAAQ,mBAAgB;AAa5C,MAAMC,kBAAkB,GAAGC,IAAI,CAACC,GAAG,CAAC,IAAI,EAAE,CAAC,EAAE,CAAC,CAAC,GAAG,IAAI;AAEtD,MAAMC,IAAI,GAAIC,KAAa,IACzB,CAACA,KAAK,GAAG,IAAI,EAAEC,QAAQ,CAAC,EAAE,CAAC,CAACC,QAAQ,CAAC,CAAC,EAAE,GAAG,CAAC;;AAG9C;AACA,MAAMC,4BAA4B,GAAGA,CACnCC,GAAS,EACTC,QAAsC,GAAG,OAAO,KACnC;EACb,MAAMC,KAAK,GAAGx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A+B,EACnD;MACA,IACEoC,OAAO,CAACE,OAAO,KAAKtC,+BAA+B,IACnDM,UAAU,CAAC8B,OAAO,CAACG,IAAI,CAACS,GAAG,CAACrC,IAAI,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,KAAK,CAAC,EAC9C;QACA,OAAO,EAAE;MACX;MAEA,MAAMsC,OAAO,GAAGrD,oBAAoB,CAACwC,OAAO,CAACG,IAAI,CAAC;MAElD,IAAIU,OAAO,EAAE;QACX,IAAI,CAAChB,OAAO,CAACiB,QAAQ,CAAC;UACpBC,QAAQ,EAAE1D,QAAQ,CAAC2D,MAAM;UACzBC,kBAAkB,EAAE7D,kBAAkB,CAAC8D,aAAa;UACpD,GAAGL,OAAO;UACVM,UAAU,EAAEN,OAAO,CAACM,UAAU,IAAI,IAAI,CAAC1B;QACzC,CAA0B,CAAC;MAC7B;IACF;IAEA,OAAO,EAAE;EACX,CAAC;EAEOkB,gBAAgB,GAAIS,kBAA0B,IAAsB;IAC1E,IAAI,IAAI,CAACzB,eAAe,EAAE;MACxB,OAAO,EAAE;IACX;IAEA,MAAM0B,IAAI,GAAGpD,eAAe,CAC1BJ,WAAW,EACX,CAAC,IAAI,CAAC4B,UAAU,EAAE,IAAI,CAAC,EACvB,IAAI,CAACQ,GACP,CAAC;IAED,IAAI,CAACoB,IAAI,EAAE;MACT,OAAO,EAAE;IACX;IAEA,IAAI,CAAC1B,eAAe,GAAG,IAAI;IAE3B,OAAO,CAAC,IAAI,CAACO,OAAO,CAACnC,cAAc,EAAEsD,IAAI,EAAED,kBAAkB,CAAC,CAAC;EACjE,CAAC;AACH;AAEA,SAAS5B,wBAAwB,EAAEb,4BAA4B","ignoreList":[]}
|
|
@@ -3,63 +3,15 @@
|
|
|
3
3
|
import { MeasurementTypeKey } from "@ovok/core";
|
|
4
4
|
import { CaseType } from "../../../types/case-type.js";
|
|
5
5
|
import { parseA6Weight } from "./a6-scale.measurements.js";
|
|
6
|
-
import {
|
|
7
|
-
|
|
8
|
-
serviceUuid: A6_SCALE_SERVICE,
|
|
9
|
-
characteristicUuid,
|
|
10
|
-
frame,
|
|
11
|
-
...(delayBeforeWriteMs ? {
|
|
12
|
-
delayBeforeWriteMs
|
|
13
|
-
} : {})
|
|
14
|
-
});
|
|
15
|
-
|
|
6
|
+
import { A6_SCALE_SERVICE, A6_SCALE_WEIGHT, A6_SCALE_WRITE, decodeA6Command, encodeA6Command } from "./a6-scale.protocol.js";
|
|
7
|
+
import { A6Sequencer } from "./a6.sequencer.js";
|
|
16
8
|
/** Answers A6 authentication/init requests and decodes the scale's weight records. */
|
|
17
|
-
export class A6ScaleSequencer {
|
|
18
|
-
expectedFragmentCount = 0;
|
|
9
|
+
export class A6ScaleSequencer extends A6Sequencer {
|
|
19
10
|
userNumber = 0;
|
|
20
11
|
constructor(options) {
|
|
12
|
+
super(A6_SCALE_SERVICE, options);
|
|
21
13
|
this.options = options;
|
|
22
|
-
this.key = a6EncryptionKey(options.deviceId, options.manufacturerData);
|
|
23
14
|
}
|
|
24
|
-
initialCommands = () => [];
|
|
25
|
-
isHistoryTransfer = () => true;
|
|
26
|
-
nextCommand = frame => {
|
|
27
|
-
const content = a6CommandBody(frame);
|
|
28
|
-
const control = Number.parseInt(frame[0] ?? "00", 16) || 0;
|
|
29
|
-
const count = control >> 4;
|
|
30
|
-
const index = control & 0x0f;
|
|
31
|
-
const replies = [];
|
|
32
|
-
if (count === 0) {
|
|
33
|
-
return replies;
|
|
34
|
-
}
|
|
35
|
-
if (!(count === 1 && content.length === 1 && content[0] === "01")) {
|
|
36
|
-
replies.push(command(A6_SCALE_ACK, ["00", "01", "01"]));
|
|
37
|
-
}
|
|
38
|
-
if (count === 1) {
|
|
39
|
-
replies.push(...this.processMessage(content));
|
|
40
|
-
return replies;
|
|
41
|
-
}
|
|
42
|
-
if (index === 0) {
|
|
43
|
-
this.fragments = Array.from({
|
|
44
|
-
length: count
|
|
45
|
-
}, () => []);
|
|
46
|
-
this.expectedFragmentCount = count;
|
|
47
|
-
}
|
|
48
|
-
if (!this.fragments || this.expectedFragmentCount !== count) {
|
|
49
|
-
this.fragments = undefined;
|
|
50
|
-
this.expectedFragmentCount = 0;
|
|
51
|
-
return replies;
|
|
52
|
-
}
|
|
53
|
-
this.fragments[index] = content;
|
|
54
|
-
if (this.fragments.some(part => part.length === 0)) {
|
|
55
|
-
return replies;
|
|
56
|
-
}
|
|
57
|
-
const assembled = this.fragments.flat();
|
|
58
|
-
this.fragments = undefined;
|
|
59
|
-
this.expectedFragmentCount = 0;
|
|
60
|
-
replies.push(...this.processMessage(assembled));
|
|
61
|
-
return replies;
|
|
62
|
-
};
|
|
63
15
|
processMessage = content => {
|
|
64
16
|
const message = decodeA6Command(content, this.key);
|
|
65
17
|
if (!message) {
|
|
@@ -71,7 +23,7 @@ export class A6ScaleSequencer {
|
|
|
71
23
|
}
|
|
72
24
|
this.userNumber = message.body[6] ?? 0;
|
|
73
25
|
const response = encodeA6Command(0x0008, [0x01, ...message.body.slice(0, 6), 0x00, 0x02], this.key);
|
|
74
|
-
return response ? [command(A6_SCALE_WRITE, response)] : [];
|
|
26
|
+
return response ? [this.command(A6_SCALE_WRITE, response)] : [];
|
|
75
27
|
}
|
|
76
28
|
if (message.command === 0x0009) {
|
|
77
29
|
const now = this.options.clockSync?.now?.() ?? new Date();
|
|
@@ -79,7 +31,7 @@ export class A6ScaleSequencer {
|
|
|
79
31
|
const timezone = this.options.clockSync?.timezone === "utc" ? 48 : 48 - Math.round(now.getTimezoneOffset() / 15);
|
|
80
32
|
const response = encodeA6Command(0x000a, [0x18, seconds >>> 24 & 0xff, seconds >>> 16 & 0xff, seconds >>> 8 & 0xff, seconds & 0xff, timezone], this.key);
|
|
81
33
|
const sync = encodeA6Command(0x4801, [this.userNumber, 1], this.key);
|
|
82
|
-
return [...(response ? [command(A6_SCALE_WRITE, response)] : []), ...(sync ? [command(A6_SCALE_WRITE, sync, 500)] : [])];
|
|
34
|
+
return [...(response ? [this.command(A6_SCALE_WRITE, response)] : []), ...(sync ? [this.command(A6_SCALE_WRITE, sync, 500)] : [])];
|
|
83
35
|
}
|
|
84
36
|
if (message.command === A6_SCALE_WEIGHT) {
|
|
85
37
|
const weight = parseA6Weight(message.body);
|
package/lib/module/modules/bt-management/services/devices/transtek/a6-scale.sequencer.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["MeasurementTypeKey","CaseType","parseA6Weight","
|
|
1
|
+
{"version":3,"names":["MeasurementTypeKey","CaseType","parseA6Weight","A6_SCALE_SERVICE","A6_SCALE_WEIGHT","A6_SCALE_WRITE","decodeA6Command","encodeA6Command","A6Sequencer","A6ScaleSequencer","userNumber","constructor","options","processMessage","content","message","key","command","body","length","response","slice","now","clockSync","Date","seconds","Math","floor","getTime","timezone","round","getTimezoneOffset","sync","weight","onResult","caseType","RESULT","measurementTypeKey","bodyWeight"],"sourceRoot":"../../../../../../../src","sources":["modules/bt-management/services/devices/transtek/a6-scale.sequencer.ts"],"mappings":";;AAAA,SAASA,kBAAkB,QAAQ,YAAY;AAE/C,SAASC,QAAQ,QAAQ,6BAA0B;AAOnD,SAASC,aAAa,QAAQ,4BAAyB;AACvD,SACEC,gBAAgB,EAChBC,eAAe,EACfC,cAAc,EACdC,eAAe,EACfC,eAAe,QACV,wBAAqB;AAC5B,SAASC,WAAW,QAAQ,mBAAgB;AAc5C;AACA,OAAO,MAAMC,gBAAgB,SAASD,WAAW,CAAC;EACxCE,UAAU,GAAG,CAAC;EAEfC,WAAWA,CAAkBC,OAAgC,EAAE;IACpE,KAAK,CAACT,gBAAgB,EAAES,OAAO,CAAC;IAAC,KADCA,OAAgC,GAAhCA,OAAgC;EAEpE;EAEUC,cAAc,GAAIC,OAA0B,IAAsB;IAC1E,MAAMC,OAAO,GAAGT,eAAe,CAACQ,OAAO,EAAE,IAAI,CAACE,GAAG,CAAC;IAElD,IAAI,CAACD,OAAO,EAAE;MACZ,OAAO,EAAE;IACX;IAEA,IAAIA,OAAO,CAACE,OAAO,K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AE,CAAC,IAAI,CAACG,UAAU,EAAE,CAAC,CAAC,EAAE,IAAI,CAACM,GAAG,CAAC;MAEpE,OAAO,CACL,IAAII,QAAQ,GAAG,CAAC,IAAI,CAACH,OAAO,CAACZ,cAAc,EAAEe,QAAQ,CAAC,CAAC,GAAG,EAAE,CAAC,EAC7D,IAAIY,IAAI,GAAG,CAAC,IAAI,CAACf,OAAO,CAACZ,cAAc,EAAE2B,IAAI,EAAE,GAAG,CAAC,CAAC,GAAG,EAAE,CAAC,CAC3D;IACH;IAEA,IAAIjB,OAAO,CAACE,OAAO,KAAKb,eAAe,EAAE;MACvC,MAAM6B,MAAM,GAAG/B,aAAa,CAACa,OAAO,CAACG,IAAI,CAAC;MAE1C,IAAIe,MAAM,EAAE;QACV,IAAI,CAACrB,OAAO,CAACsB,QAAQ,CAAC;UACpBC,QAAQ,EAAElC,QAAQ,CAACmC,MAAM;UACzBC,kBAAkB,EAAErC,kBAAkB,CAACsC,UAAU;UACjD,GAAGL;QACL,CAAa,CAAC;MAChB;IACF;IAEA,OAAO,EAAE;EACX,CAAC;AACH","ignoreList":[]}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
import { NO_PARSING_CASES } from "../../../constants/no-parsing-cases.js";
|
|
4
|
+
import { IntegratedDevices } from "../../../types/integrated-devices.js";
|
|
5
|
+
import { BTManagedDevice } from "../bt-managed-device.js";
|
|
6
|
+
import { A6BloodPressureSequencer } from "./a6-blood-pressure.sequencer.js";
|
|
7
|
+
import { A6_BPM_SERVICE, A6_SCALE_NOTIFY, A6_SCALE_SERVICE, A6_SCALE_WRITE, A6ScaleFrameReader } from "./a6-scale.protocol.js";
|
|
8
|
+
import { A6ScaleSequencer } from "./a6-scale.sequencer.js";
|
|
9
|
+
/** What differs between the A6 scale (A602) and the A6 blood-pressure monitor (A610). */
|
|
10
|
+
const A6_DEVICES = {
|
|
11
|
+
[IntegratedDevices.RPM_SCALE]: {
|
|
12
|
+
service: A6_SCALE_SERVICE,
|
|
13
|
+
sequencer: options => new A6ScaleSequencer(options)
|
|
14
|
+
},
|
|
15
|
+
[IntegratedDevices.TRANSTEK_A6_BPM]: {
|
|
16
|
+
service: A6_BPM_SERVICE,
|
|
17
|
+
sequencer: options => new A6BloodPressureSequencer(options)
|
|
18
|
+
}
|
|
19
|
+
};
|
|
20
|
+
const servicesFor = service => [{
|
|
21
|
+
uuid: service,
|
|
22
|
+
monitorUuids: [{
|
|
23
|
+
uuid: A6_SCALE_NOTIFY,
|
|
24
|
+
parsingModel: NO_PARSING_CASES
|
|
25
|
+
}],
|
|
26
|
+
writeUuid: {
|
|
27
|
+
uuid: A6_SCALE_WRITE,
|
|
28
|
+
mainCommandUuid: "0007"
|
|
29
|
+
}
|
|
30
|
+
}];
|
|
31
|
+
|
|
32
|
+
/** Transtek A6-generation devices: the GBS-2012-B scale family and the A6 blood-pressure monitors. */
|
|
33
|
+
export class TranstekA6Device extends BTManagedDevice {
|
|
34
|
+
stuckDataTimeout = 60_000;
|
|
35
|
+
constructor(device, params) {
|
|
36
|
+
super(device, params);
|
|
37
|
+
const a6 = A6_DEVICES[params.deviceName];
|
|
38
|
+
this.mainServices = servicesFor(a6.service);
|
|
39
|
+
this.frameReader = new A6ScaleFrameReader();
|
|
40
|
+
this.createCommandSequencer = () => a6.sequencer({
|
|
41
|
+
deviceId: device.id,
|
|
42
|
+
manufacturerData: device.manufacturerData,
|
|
43
|
+
clockSync: params.clockSync,
|
|
44
|
+
onResult: result => this.onResult?.(result)
|
|
45
|
+
});
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
//# sourceMappingURL=a6.device.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["NO_PARSING_CASES","IntegratedDevices","BTManagedDevice","A6BloodPressureSequencer","A6_BPM_SERVICE","A6_SCALE_NOTIFY","A6_SCALE_SERVICE","A6_SCALE_WRITE","A6ScaleFrameReader","A6ScaleSequencer","A6_DEVICES","RPM_SCALE","service","sequencer","options","TRANSTEK_A6_BPM","servicesFor","uuid","monitorUuids","parsingModel","writeUuid","mainCommandUuid","TranstekA6Device","stuckDataTimeout","constructor","device","params","a6","deviceName","mainServices","frameReader","createCommandSequencer","deviceId","id","manufacturerData","clockSync","onResult","result"],"sourceRoot":"../../../../../../../src","sources":["modules/bt-management/services/devices/transtek/a6.device.ts"],"mappings":";;AAEA,SAASA,gBAAgB,QAAQ,wCAAqC;AAKtE,SAASC,iBAAiB,QAAQ,sCAAmC;AAGrE,SAASC,eAAe,QAAQ,yBAAsB;AAEtD,SAASC,wBAAwB,QAAQ,kCAA+B;AACxE,SACEC,cAAc,EACdC,eAAe,EACfC,gBAAgB,EAChBC,cAAc,EACdC,kBAAkB,QACb,wBAAqB;AAC5B,SAASC,gBAAgB,QAAQ,yBAAsB;AAWvD;AACA,MAAMC,UAAkH,GAAG;EACzH,CAACT,iBAAiB,CAACU,SAAS,GAAG;IAC7BC,OAAO,EAAEN,gBAAgB;IACzBO,SAAS,EAAGC,OAAO,IAAK,IAAIL,gBAAgB,CAACK,OAAO;EACtD,CAAC;EACD,CAACb,iBAAiB,CAACc,eAAe,GAAG;IACnCH,OAAO,EAAER,cAAc;IACvBS,SAAS,EAAGC,OAAO,IAAK,IAAIX,wBAAwB,CAACW,OAAO;EAC9D;AACF,CAAC;AAED,MAAME,WAAW,GAAIJ,OAAe,IAAiB,CACnD;EACEK,IAAI,EAAEL,OAAO;EACbM,YAAY,EAAE,CAAC;IAAED,IAAI,EAAEZ,eAAe;IAAEc,YAAY,EAAEnB;EAAiB,CAAC,CAAC;EACzEoB,SAAS,EAAE;IAAEH,IAAI,EAAEV,cAAc;IAAEc,eAAe,EAAE;EAAO;AAC7D,CAAC,CACF;;AAED;AACA,OAAO,MAAMC,gBAAgB,SAASpB,eAAe,CAAgB;EAEzDqB,gBAAgB,GAAG,MAAM;EAE5BC,WAAWA,CAACC,MAAc,EAAEC,MAAyC,EAAE;IAC5E,KAAK,CAACD,MAAM,EAAEC,MAAM,CAAC;IAErB,MAAMC,EAAE,GAAGjB,UAAU,CAACgB,MAAM,CAACE,UAAU,CAAC;IAExC,IAAI,CAACC,YAAY,GAAGb,WAAW,CAACW,EAAE,CAACf,OAAO,CAAC;IAC3C,IAAI,CAACkB,WAAW,GAAG,IAAItB,kBAAkB,CAAC,CAAC;IAC3C,IAAI,CAACuB,sBAAsB,GAAG,MAC5BJ,EAAE,CAACd,SAAS,CAAC;MACXmB,QAAQ,EAAEP,MAAM,CAACQ,EAAE;MACnBC,gBAAgB,EAAET,MAAM,CAACS,gBAAgB;MACzCC,SAAS,EAAET,MAAM,CAACS,SAAS;MAC3BC,QAAQ,EAAGC,MAAM,IAAK,IAAI,CAACD,QAAQ,GAAGC,MAAM;IAC9C,CAAC,CAAC;EACN;AACF","ignoreList":[]}
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
import { A6_SCALE_ACK, a6CommandBody, a6EncryptionKey } from "./a6-scale.protocol.js";
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* The A6 session both Transtek A6 devices share: control-byte framing, fragment reassembly, the
|
|
7
|
+
* acknowledgement of each frame, and the device's encryption key. Subclasses handle only the
|
|
8
|
+
* decoded messages of their own service.
|
|
9
|
+
*/
|
|
10
|
+
export class A6Sequencer {
|
|
11
|
+
expectedFragmentCount = 0;
|
|
12
|
+
constructor(serviceUuid, device) {
|
|
13
|
+
this.serviceUuid = serviceUuid;
|
|
14
|
+
this.key = a6EncryptionKey(device.deviceId, device.manufacturerData);
|
|
15
|
+
}
|
|
16
|
+
initialCommands = () => [];
|
|
17
|
+
isHistoryTransfer = () => true;
|
|
18
|
+
nextCommand = frame => {
|
|
19
|
+
const content = a6CommandBody(frame);
|
|
20
|
+
const control = Number.parseInt(frame[0] ?? "00", 16) || 0;
|
|
21
|
+
const count = control >> 4;
|
|
22
|
+
const index = control & 0x0f;
|
|
23
|
+
const replies = [];
|
|
24
|
+
if (count === 0) {
|
|
25
|
+
return replies;
|
|
26
|
+
}
|
|
27
|
+
if (!(count === 1 && content.length === 1 && content[0] === "01")) {
|
|
28
|
+
replies.push(this.command(A6_SCALE_ACK, ["00", "01", "01"]));
|
|
29
|
+
}
|
|
30
|
+
if (count === 1) {
|
|
31
|
+
replies.push(...this.processMessage(content));
|
|
32
|
+
return replies;
|
|
33
|
+
}
|
|
34
|
+
if (index === 0) {
|
|
35
|
+
this.fragments = Array.from({
|
|
36
|
+
length: count
|
|
37
|
+
}, () => []);
|
|
38
|
+
this.expectedFragmentCount = count;
|
|
39
|
+
}
|
|
40
|
+
if (!this.fragments || this.expectedFragmentCount !== count) {
|
|
41
|
+
this.fragments = undefined;
|
|
42
|
+
this.expectedFragmentCount = 0;
|
|
43
|
+
return replies;
|
|
44
|
+
}
|
|
45
|
+
this.fragments[index] = content;
|
|
46
|
+
if (this.fragments.some(part => part.length === 0)) {
|
|
47
|
+
return replies;
|
|
48
|
+
}
|
|
49
|
+
const assembled = this.fragments.flat();
|
|
50
|
+
this.fragments = undefined;
|
|
51
|
+
this.expectedFragmentCount = 0;
|
|
52
|
+
replies.push(...this.processMessage(assembled));
|
|
53
|
+
return replies;
|
|
54
|
+
};
|
|
55
|
+
command(characteristicUuid, frame, delayBeforeWriteMs) {
|
|
56
|
+
return {
|
|
57
|
+
serviceUuid: this.serviceUuid,
|
|
58
|
+
characteristicUuid,
|
|
59
|
+
frame,
|
|
60
|
+
...(delayBeforeWriteMs ? {
|
|
61
|
+
delayBeforeWriteMs
|
|
62
|
+
} : {})
|
|
63
|
+
};
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
//# sourceMappingURL=a6.sequencer.js.map
|