-
Notifications
You must be signed in to change notification settings - Fork 46
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Otodata RC1010 propane tank transponder decoder (#546)
- Loading branch information
Showing
6 changed files
with
79 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
# Otodata RC1010 Rotarex-compatible Monitor | ||
|
||
|Model Id|[RC1010](https://github.com/theengs/decoder/blob/development/src/devices/OTOD_json.h)| | ||
|-|-| | ||
|Brand|Otodata| | ||
|Model|RC1010 Rotarex-compatible Monitor| | ||
|Short Description|BLE monitor for Rotarex Level Gauges| | ||
|Communication|BLE broadcast| | ||
|Frequency|2.4Ghz| | ||
|Power Source|sealed in non-changeable| | ||
|Exchanged Data|level, status, serial, model type| | ||
|Encrypted|No| |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -128,6 +128,7 @@ class TheengsDecoder { | |
AMPHIRO, | ||
ORALB_BT, | ||
ORAS, | ||
OTOD, | ||
PH10, | ||
XOSSX2, | ||
TPTH, | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
const char* _OTOD_json = "{\"brand\":\"Otodata\",\"model\":\"Rotarex-compatible Monitor\",\"model_id\":\"RC1010\",\"tag\":\"ff\",\"condition\":[\"manufacturerdata\",\"=\",42,\"index\",0,\"b103\",\"|\",\"manufacturerdata\",\"=\",48,\"index\",0,\"b103\"],\"properties\":{\"level\":{\"condition\":[\"manufacturerdata\",\"=\",42],\"decoder\":[\"value_from_hex_data\",\"manufacturerdata\",22,4,true,false],\"post_proc\":[\"/\",100]},\"status\":{\"condition\":[\"manufacturerdata\",\"=\",42],\"decoder\":[\"value_from_hex_data\",\"manufacturerdata\",26,4,true,false]},\"serial\":{\"condition\":[\"manufacturerdata\",\"=\",48],\"decoder\":[\"value_from_hex_data\",\"manufacturerdata\",18,8,true,false],\"post_proc\":[\"abs\"]},\"modeltype\":{\"condition\":[\"manufacturerdata\",\"=\",48],\"decoder\":[\"value_from_hex_data\",\"manufacturerdata\",40,8,true,false],\"post_proc\":[\"abs\"]}}}"; | ||
/*R""""( | ||
{ | ||
"brand":"Otodata", | ||
"model":"Rotarex-compatible Monitor", | ||
"model_id":"RC1010", | ||
"tag":"ff", | ||
"condition":["manufacturerdata", "=", 42, "index", 0, "b103", "|", "manufacturerdata", "=", 48, "index", 0, "b103"], | ||
"properties":{ | ||
"level":{ | ||
"condition":["manufacturerdata", "=", 42], | ||
"decoder":["value_from_hex_data", "manufacturerdata", 22, 4, true, false], | ||
"post_proc":["/", 100] | ||
}, | ||
"status":{ | ||
"condition":["manufacturerdata", "=", 42], | ||
"decoder":["value_from_hex_data", "manufacturerdata", 26, 4, true, false] | ||
}, | ||
"serial":{ | ||
"condition":["manufacturerdata", "=", 48], | ||
"decoder":["value_from_hex_data", "manufacturerdata", 18, 8, true, false], | ||
"post_proc":["abs"] | ||
}, | ||
"modeltype":{ | ||
"condition":["manufacturerdata", "=", 48], | ||
"decoder":["value_from_hex_data", "manufacturerdata", 40, 8, true, false], | ||
"post_proc":["abs"] | ||
} | ||
} | ||
})"""";*/ | ||
|
||
const char* _OTOD_json_props = "{\"properties\":{\"level\":{\"unit\":\"%\",\"name\":\"level\"},\"status\":{\"unit\":\"int\",\"name\":\"status\"},\"serial\":{\"unit\":\"int\",\"name\":\"serial\"},\"modeltype\":{\"unit\":\"int\",\"name\":\"model type\"}}}"; | ||
/*R""""( | ||
{ | ||
"properties":{ | ||
"level":{ | ||
"unit":"%", | ||
"name":"level" | ||
}, | ||
"status":{ | ||
"unit":"int", | ||
"name":"status" | ||
}, | ||
"serial":{ | ||
"unit":"int", | ||
"name":"serial" | ||
}, | ||
"modeltype":{ | ||
"unit":"int", | ||
"name":"model type" | ||
} | ||
} | ||
})"""";*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters