From 32c7b140e9bb9231d5a6d83f30e1650064107066 Mon Sep 17 00:00:00 2001 From: Andrej Rolih Date: Tue, 25 Dec 2018 23:27:58 +0100 Subject: [PATCH 1/2] Added xmls for custom r00li devices --- ...i.bluetooth.characteristic.bleio_input.xml | 61 ++++++++++++++++++ ....bluetooth.characteristic.bleio_output.xml | 63 ++++++++++++++++++ ...0li.bluetooth.characteristic.rswitchv2.xml | 20 ++++++ ...luetooth.characteristic.rtemp_humidity.xml | 16 +++++ ...tooth.characteristic.rtemp_temperature.xml | 14 ++++ .../com.r00li.bluetooth.service.bleio.xml | 64 +++++++++++++++++++ .../com.r00li.bluetooth.service.rswitchv2.xml | 46 +++++++++++++ .../com.r00li.bluetooth.service.rtemp.xml | 63 ++++++++++++++++++ 8 files changed, 347 insertions(+) create mode 100755 src/main/resources/gatt/characteristic/com.r00li.bluetooth.characteristic.bleio_input.xml create mode 100755 src/main/resources/gatt/characteristic/com.r00li.bluetooth.characteristic.bleio_output.xml create mode 100755 src/main/resources/gatt/characteristic/com.r00li.bluetooth.characteristic.rswitchv2.xml create mode 100755 src/main/resources/gatt/characteristic/com.r00li.bluetooth.characteristic.rtemp_humidity.xml create mode 100755 src/main/resources/gatt/characteristic/com.r00li.bluetooth.characteristic.rtemp_temperature.xml create mode 100755 src/main/resources/gatt/service/com.r00li.bluetooth.service.bleio.xml create mode 100755 src/main/resources/gatt/service/com.r00li.bluetooth.service.rswitchv2.xml create mode 100755 src/main/resources/gatt/service/com.r00li.bluetooth.service.rtemp.xml diff --git a/src/main/resources/gatt/characteristic/com.r00li.bluetooth.characteristic.bleio_input.xml b/src/main/resources/gatt/characteristic/com.r00li.bluetooth.characteristic.bleio_input.xml new file mode 100755 index 0000000..61ded2a --- /dev/null +++ b/src/main/resources/gatt/characteristic/com.r00li.bluetooth.characteristic.bleio_input.xml @@ -0,0 +1,61 @@ + + + + + + Mandatory + 8bit + + + boolean + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/src/main/resources/gatt/characteristic/com.r00li.bluetooth.characteristic.bleio_output.xml b/src/main/resources/gatt/characteristic/com.r00li.bluetooth.characteristic.bleio_output.xml new file mode 100755 index 0000000..ec481dd --- /dev/null +++ b/src/main/resources/gatt/characteristic/com.r00li.bluetooth.characteristic.bleio_output.xml @@ -0,0 +1,63 @@ + + + + + + Mandatory + 8bit + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/src/main/resources/gatt/characteristic/com.r00li.bluetooth.characteristic.rswitchv2.xml b/src/main/resources/gatt/characteristic/com.r00li.bluetooth.characteristic.rswitchv2.xml new file mode 100755 index 0000000..3793508 --- /dev/null +++ b/src/main/resources/gatt/characteristic/com.r00li.bluetooth.characteristic.rswitchv2.xml @@ -0,0 +1,20 @@ + + + + + + Mandatory + uint8 + org.bluetooth.unit.percentage + 0 + 100 + + + + + + + diff --git a/src/main/resources/gatt/characteristic/com.r00li.bluetooth.characteristic.rtemp_humidity.xml b/src/main/resources/gatt/characteristic/com.r00li.bluetooth.characteristic.rtemp_humidity.xml new file mode 100755 index 0000000..83956c0 --- /dev/null +++ b/src/main/resources/gatt/characteristic/com.r00li.bluetooth.characteristic.rtemp_humidity.xml @@ -0,0 +1,16 @@ + + + + + + Mandatory + uint8 + org.bluetooth.unit.percentage + 0 + + + + diff --git a/src/main/resources/gatt/characteristic/com.r00li.bluetooth.characteristic.rtemp_temperature.xml b/src/main/resources/gatt/characteristic/com.r00li.bluetooth.characteristic.rtemp_temperature.xml new file mode 100755 index 0000000..33bfe71 --- /dev/null +++ b/src/main/resources/gatt/characteristic/com.r00li.bluetooth.characteristic.rtemp_temperature.xml @@ -0,0 +1,14 @@ + + + + + + Mandatory + uint32 + + + + diff --git a/src/main/resources/gatt/service/com.r00li.bluetooth.service.bleio.xml b/src/main/resources/gatt/service/com.r00li.bluetooth.service.bleio.xml new file mode 100755 index 0000000..26b1ef4 --- /dev/null +++ b/src/main/resources/gatt/service/com.r00li.bluetooth.service.bleio.xml @@ -0,0 +1,64 @@ + + + + + IO Service + + + IO Service + + + + This service is not dependent upon any other services. + + + Mandatory + Mandatory + Mandatory + + + false + true + + + + + + + Input state + + Mandatory + + Mandatory + Excluded + Excluded + Excluded + Excluded + Mandatory + Excluded + Excluded + Excluded + + + + + Output state + + Mandatory + + Mandatory + Mandatory + Excluded + Excluded + Excluded + Excluded + Excluded + Excluded + Excluded + + + + + diff --git a/src/main/resources/gatt/service/com.r00li.bluetooth.service.rswitchv2.xml b/src/main/resources/gatt/service/com.r00li.bluetooth.service.rswitchv2.xml new file mode 100755 index 0000000..240b68b --- /dev/null +++ b/src/main/resources/gatt/service/com.r00li.bluetooth.service.rswitchv2.xml @@ -0,0 +1,46 @@ + + + + + Dimmer service + + + Dimmer service + + + + This service is not dependent upon any other services. + + + Mandatory + Mandatory + + + false + true + + + + + + + Dimmer state + + Mandatory + + Mandatory + Mandatory + Excluded + Excluded + Excluded + Excluded + Excluded + Excluded + Excluded + + + + + diff --git a/src/main/resources/gatt/service/com.r00li.bluetooth.service.rtemp.xml b/src/main/resources/gatt/service/com.r00li.bluetooth.service.rtemp.xml new file mode 100755 index 0000000..6e9948f --- /dev/null +++ b/src/main/resources/gatt/service/com.r00li.bluetooth.service.rtemp.xml @@ -0,0 +1,63 @@ + + + + + Temperature sensor service + + + Temperature sensor service + + + + This service is not dependent upon any other services. + + + Mandatory + Mandatory + + + false + true + + + + + + + Temperature value + + Mandatory + + Mandatory + Excluded + Excluded + Excluded + Excluded + Mandatory + Excluded + Excluded + Excluded + + + + + Humidity value + + Mandatory + + Mandatory + Excluded + Excluded + Excluded + Excluded + Mandatory + Excluded + Excluded + Excluded + + + + + From e37d3a9054a5e90edec645ffdc23735d58cca199 Mon Sep 17 00:00:00 2001 From: Andrej Rolih Date: Tue, 25 Dec 2018 23:30:28 +0100 Subject: [PATCH 2/2] Fixed an inconsistency in one of the characteristics --- .../com.r00li.bluetooth.characteristic.bleio_input.xml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/main/resources/gatt/characteristic/com.r00li.bluetooth.characteristic.bleio_input.xml b/src/main/resources/gatt/characteristic/com.r00li.bluetooth.characteristic.bleio_input.xml index 61ded2a..d8a2762 100755 --- a/src/main/resources/gatt/characteristic/com.r00li.bluetooth.characteristic.bleio_input.xml +++ b/src/main/resources/gatt/characteristic/com.r00li.bluetooth.characteristic.bleio_input.xml @@ -10,7 +10,10 @@ 8bit - boolean + + + +