Sfoglia il codice sorgente

new lora packet details

Eric Leiner 4 anni fa
parent
commit
3f6159f17b

+ 47 - 1
content/supported_hardware/DaktonMicrolabs/dk_loralevel/_index.en.md

@@ -70,6 +70,26 @@ The Dakton Lora transmitter DK-LORALEVEL is a versatile device for fuel and liqu
 <p>To modify the factory configuration you will need the configuration cable DK-LORAINTCABLE and software WonkaTool</p>
 <p><a href="WonkaTool.exe" target="_blank" title="WonkaTool">Download WonkaTool</a></p>
 
+CLI Commands via Serial Interface (baudrate:115200):
+
+|        Command        |      Description              |
+| --------------------- | ----------------------------- |
+| get_conf              | List Current Configuration    | 
+| reboot                | System Reboot                 | 
+| set_freq              | Set Frequency                 |     
+| set_bandw             | Set Bandwidth                 | 
+| set_sf                | Set Spreading Factor          | 
+| set_txpwr             | Set TX Power                  | 
+| set_sleepint          | Set Sleep Time Between Msgs   | 
+| set_msgformat         | Set Msg Format                | 
+| set_msgprefix         | Set Msg Prefix                |
+| get_stats             | Show Statistics               |
+| clear_stats           | Clear Statistics              |
+| freset                | Factory Reset                 | 
+
+
+
+
 
 #### Wireless Interface <i class="fas fa-desktop"></i> & <i class="fas fa-mobile-alt"></i>
 
@@ -96,12 +116,38 @@ Browse and change the configuration field you are looking for.
 | TX Output Power       | 20 dBm                |
 | EU Frequency          | 902.3 MHz             |
 | US Frequency          | 868.3 MHz             |
-| Message Format        | Json                  |
+| Message Format        | Json String           |
 | Message Prefix        | \<DK>                 |
 | Temperature           | Disabled              |
 | Sensor Type           | Auto-detection        |
 
 
+### Message Output Format (Lora Private)
+
+
+#### Json String Type:
+
+The ouput packet is XOR encrypted by a 6 byte Char.
+
+Packet Format:  **XOREncryption("PREFIX" + "PAYLOAD")**
+
+Payload Format:
+~~~
+{
+    "s":"SerialNumber",
+    "l":"Level Float Value",     
+    "b":"Battery Level"          (battery level range 0-254, 0=Empty 254=Full)
+}
+
+The Payload should looks like:
+
+{
+    "s":"04D1A4",
+    "l":"12.23",
+    "b":"240"
+}
+~~~
+