{"id":10636,"date":"2015-12-28T15:05:58","date_gmt":"2015-12-28T21:05:58","guid":{"rendered":"http:\/\/www.multitech.net\/developer\/?page_id=10636"},"modified":"2018-04-18T11:38:38","modified_gmt":"2018-04-18T16:38:38","slug":"data-packet-format","status":"publish","type":"page","link":"https:\/\/www.multitech.net\/developer\/software\/dot-box-and-evb-software\/data-packet-format\/","title":{"rendered":"Data Packet Format"},"content":{"rendered":"<p>The following section describes how survey and sensor data is formatted and sent to the gateway. A data packet is sent in <a href=\"https:\/\/www.multitech.net\/developer\/software\/dot-box-and-evbsoftware\/lora-demo\/\"><strong>LoRa Demo<\/strong><\/a> Mode, <a href=\"https:\/\/www.multitech.net\/developer\/software\/dot-box-and-evbsoftware\/survey-single\/\"><strong>Survey Single<\/strong><\/a> and <a href=\"https:\/\/www.multitech.net\/developer\/software\/dot-box-and-evbsoftware\/survey-sweep\/\"><strong>Survey Sweep<\/strong><\/a> Modes if sending is enabled with the <strong>+DATA<\/strong> configuration command. The formats are different depending on the specific mode selected.<\/p>\n<p><strong>Overview<\/strong><\/p>\n<p>The Data Packet Format is a binary format. The first byte of each field is an identifier. From this, the receiver knows how long that particular field is and how to interpret it. All bytes after the identifier are data.<\/p>\n<p><strong>Note:<\/strong> If you are using Node-RED to process the data packets, change the LoRa node to binary mode (the default is UTP-8) .<br \/>\n<strong>Demo Mode Fields<\/strong><\/p>\n<table border=\"0\">\n<tbody>\n<tr>\n<td><strong>ID<\/strong><\/td>\n<td><strong>Name<\/strong><\/td>\n<td><strong>\u00a0# of Bytes<\/strong><\/td>\n<\/tr>\n<tr>\n<td>0x05<\/td>\n<td>Lux Measured<\/td>\n<td>2<\/td>\n<\/tr>\n<tr>\n<td>0x08<\/td>\n<td>Pressure Measured<\/td>\n<td>3<\/td>\n<\/tr>\n<tr>\n<td>0x0B<\/td>\n<td>Temperature Measured<\/td>\n<td>2<\/td>\n<\/tr>\n<tr>\n<td>0x0E<\/td>\n<td>Acceleration 3-Axis Measured<\/td>\n<td>3<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p><strong>Survey Single<\/strong>\u00a0and<strong>\u00a0Sweep Current Fields<\/strong><\/p>\n<table border=\"0\">\n<tbody>\n<tr>\n<td><strong>ID<\/strong><\/td>\n<td><strong>Name<\/strong><\/td>\n<td><strong>\u00a0# of Bytes<\/strong><\/td>\n<\/tr>\n<tr>\n<td>0x1D<\/td>\n<td>Data Start\/Stop<\/td>\n<td>1<\/td>\n<\/tr>\n<tr>\n<td>0x15<\/td>\n<td>GPS Latitude<\/td>\n<td>4<\/td>\n<\/tr>\n<tr>\n<td>0x16<\/td>\n<td>GPS Longitude<\/td>\n<td>5<\/td>\n<\/tr>\n<tr>\n<td>0x19<\/td>\n<td>GPS Lock Status<\/td>\n<td>1<\/td>\n<\/tr>\n<tr>\n<td>0x1A<\/td>\n<td>QOS Uplink<\/td>\n<td>4<\/td>\n<\/tr>\n<tr>\n<td>0x1B<\/td>\n<td>QOS Downlink<\/td>\n<td>3<\/td>\n<\/tr>\n<tr>\n<td>0x1D<\/td>\n<td>Data Start\/Stop<\/td>\n<td>1<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>F<strong>ield Descriptions<\/strong><\/p>\n<p>The following section provides a detailed description of each field in the Data Packet Format for<strong> LoRa Demo<\/strong> mode.<\/p>\n<p><strong>Lux Measured<\/strong><\/p>\n<table border=\"0\">\n<tbody>\n<tr>\n<td><strong>Description<\/strong><\/td>\n<td>The measured value of the light sensor.<\/td>\n<\/tr>\n<tr>\n<td><strong>ID<\/strong><\/td>\n<td>\u00a00x05<\/td>\n<\/tr>\n<tr>\n<td><strong>Size<\/strong><\/td>\n<td>\u00a02<\/td>\n<\/tr>\n<tr>\n<td><strong>Data<\/strong><\/td>\n<td>\n<table style=\"height: 54px; width: 229px;\" border=\"0\">\n<tbody>\n<tr>\n<td>Index<\/td>\n<td>\u00a0Value<\/td>\n<\/tr>\n<tr>\n<td>0-1<\/td>\n<td>Lux Value (Unsigned MSB)<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/td>\n<\/tr>\n<tr>\n<td><strong>Direction<\/strong><\/td>\n<td>\u00a0Node\u00a0 -&gt; Gateway<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p><strong>Pressure Measured<\/strong><\/p>\n<table border=\"0\">\n<tbody>\n<tr>\n<td><strong>Description<\/strong><\/td>\n<td>The measured value of the barometric pressure.<\/td>\n<\/tr>\n<tr>\n<td><strong>ID<\/strong><\/td>\n<td>\u00a00x08<\/td>\n<\/tr>\n<tr>\n<td><strong>Size<\/strong><\/td>\n<td>\u00a03<\/td>\n<\/tr>\n<tr>\n<td><strong>Data<\/strong><\/td>\n<td>\n<table border=\"0\">\n<tbody>\n<tr>\n<td>Index<\/td>\n<td>\u00a0Value<\/td>\n<\/tr>\n<tr>\n<td>0 &#8211; 2<\/td>\n<td>0.25 Pa (Signed MSB)<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/td>\n<\/tr>\n<tr>\n<td><strong>Direction<\/strong><\/td>\n<td>\u00a0Node\u00a0 -&gt; Gateway<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p><strong>Temperature Measured<\/strong><\/p>\n<table border=\"0\">\n<tbody>\n<tr>\n<td><strong>Description<\/strong><\/td>\n<td>\u00a0The measured value of the temperature.<\/td>\n<\/tr>\n<tr>\n<td><strong>ID<\/strong><\/td>\n<td>\u00a00x0B<\/td>\n<\/tr>\n<tr>\n<td><strong>Size<\/strong><\/td>\n<td>\u00a02<\/td>\n<\/tr>\n<tr>\n<td><strong>Data<\/strong><\/td>\n<td>\n<table border=\"0\">\n<tbody>\n<tr>\n<td>Index<\/td>\n<td>\u00a0Value<\/td>\n<\/tr>\n<tr>\n<td>0 &#8211; 1<\/td>\n<td>0.0625 Degrees C (Signed MSB)<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/td>\n<\/tr>\n<tr>\n<td><strong>Direction<\/strong><\/td>\n<td>\u00a0Node\u00a0 -&gt; Gateway<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p><strong>Acceleration Measured<\/strong><\/p>\n<table border=\"0\">\n<tbody>\n<tr>\n<td><strong>Description<\/strong><\/td>\n<td>\u00a0The measured value of the acceleration.<\/td>\n<\/tr>\n<tr>\n<td><strong>ID<\/strong><\/td>\n<td>\u00a0\u00a00x0E<\/td>\n<\/tr>\n<tr>\n<td><strong>Size<\/strong><\/td>\n<td>\u00a03<\/td>\n<\/tr>\n<tr>\n<td><strong>Data<\/strong><\/td>\n<td>\n<table border=\"0\">\n<tbody>\n<tr>\n<td>Index<\/td>\n<td>\u00a0Value<\/td>\n<\/tr>\n<tr>\n<td>0<\/td>\n<td>X-Axis 0.0625 g (Signed)<\/td>\n<\/tr>\n<tr>\n<td>1<\/td>\n<td>Y-Axis 0.0625 g (Signed)<\/td>\n<\/tr>\n<tr>\n<td>2<\/td>\n<td>Z-Axis 0.0625 g (Signed)<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/td>\n<\/tr>\n<tr>\n<td><strong>Direction<\/strong><\/td>\n<td>\u00a0Node\u00a0 -&gt; Gateway<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p><strong>\u00a0<\/strong>\u00a0The following section provides a detailed description of each field in the Data Packet Format for<strong> Survey Single and Survey Sweep <\/strong>mode.<\/p>\n<p><strong>GPS Latitude<\/strong><\/p>\n<table border=\"0\">\n<tbody>\n<tr>\n<td><strong>Description<\/strong><\/td>\n<td>The GPS latitude.<\/td>\n<\/tr>\n<tr>\n<td><strong>ID<\/strong><\/td>\n<td>\u00a00x15<\/td>\n<\/tr>\n<tr>\n<td><strong>Size<\/strong><\/td>\n<td>4<\/td>\n<\/tr>\n<tr>\n<td><strong>Data<\/strong><\/td>\n<td>\n<table border=\"0\">\n<tbody>\n<tr>\n<td>Index<\/td>\n<td>\u00a0Value<\/td>\n<\/tr>\n<tr>\n<td>0<\/td>\n<td>Degrees &#8211; Negative is South (Signed)<\/td>\n<\/tr>\n<tr>\n<td>1<\/td>\n<td>Minutes (Unsigned)<\/td>\n<\/tr>\n<tr>\n<td>2 &#8211; 3<\/td>\n<td>0.006 Seconds (Unsigned MSB)<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/td>\n<\/tr>\n<tr>\n<td><strong>Direction<\/strong><\/td>\n<td>\u00a0Node\u00a0 -&gt; Gateway<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p><strong>GPS Longitude<\/strong><\/p>\n<table border=\"0\">\n<tbody>\n<tr>\n<td><strong>Description<\/strong><\/td>\n<td>\u00a0The GPS longitude<\/td>\n<\/tr>\n<tr>\n<td><strong>ID<\/strong><\/td>\n<td>\u00a00x16<\/td>\n<\/tr>\n<tr>\n<td><strong>Size<\/strong><\/td>\n<td>5<\/td>\n<\/tr>\n<tr>\n<td><strong>Data<\/strong><\/td>\n<td>\n<table border=\"0\">\n<tbody>\n<tr>\n<td>Index<\/td>\n<td>\u00a0Value<\/td>\n<\/tr>\n<tr>\n<td>0 -1<\/td>\n<td>Degrees &#8211; Negative is\u00a0West (Signed MSB)<\/td>\n<\/tr>\n<tr>\n<td>2<\/td>\n<td>Minutes (Unsigned)<\/td>\n<\/tr>\n<tr>\n<td>3-4<\/td>\n<td>0.006 Seconds (Unsigned MSB)<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/td>\n<\/tr>\n<tr>\n<td><strong>Direction<\/strong><\/td>\n<td>\u00a0Node\u00a0 -&gt; Gateway<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p><strong>GPS Lock Status<\/strong><\/p>\n<table border=\"0\">\n<tbody>\n<tr>\n<td><strong>Description<\/strong><\/td>\n<td>\u00a0The GPS lock status.<br \/>\nBits 0 &#8211; 3 are the lock status:<\/p>\n<table border=\"0\">\n<tbody>\n<tr>\n<td>0<\/td>\n<td>No GPS device detected.<\/td>\n<\/tr>\n<tr>\n<td>1<\/td>\n<td>No fix<\/td>\n<\/tr>\n<tr>\n<td>2<\/td>\n<td>2D fix &#8211; only latitude, longitude, and time are valid<\/td>\n<\/tr>\n<tr>\n<td>3<\/td>\n<td>3D fix &#8211; all data valid<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>Bits 4 -7 are the number of satellites seen.<\/td>\n<\/tr>\n<tr>\n<td><strong>ID<\/strong><\/td>\n<td>\u00a00x19<\/td>\n<\/tr>\n<tr>\n<td><strong>Size<\/strong><\/td>\n<td>1<\/td>\n<\/tr>\n<tr>\n<td><strong>Data<\/strong><\/td>\n<td>\n<table border=\"0\">\n<tbody>\n<tr>\n<td>Index<\/td>\n<td>\u00a0Value<\/td>\n<\/tr>\n<tr>\n<td>0<\/td>\n<td>Compound Data (Unsigned)<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/td>\n<\/tr>\n<tr>\n<td><strong>Direction<\/strong><\/td>\n<td>\u00a0Node\u00a0 -&gt; Gateway<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p><strong>\u00a0QOS Uplink Status<\/strong><\/p>\n<table border=\"0\">\n<tbody>\n<tr>\n<td><strong>Description<\/strong><\/td>\n<td>The number of gateways that saw the link check request, the signal margin<br \/>\nabove the demodulation floor, and\u00a0the TX power.<\/td>\n<\/tr>\n<tr>\n<td><strong>ID<\/strong><\/td>\n<td>\u00a00x1A<\/td>\n<\/tr>\n<tr>\n<td><strong>Size<\/strong><\/td>\n<td>4<\/td>\n<\/tr>\n<tr>\n<td><strong>Data<\/strong><\/td>\n<td>\n<table border=\"0\">\n<tbody>\n<tr>\n<td>Index<\/td>\n<td>\u00a0Value<\/td>\n<\/tr>\n<tr>\n<td>0 &#8211; 1<\/td>\n<td>Gateways (Signed MSB)<\/td>\n<\/tr>\n<tr>\n<td>2<\/td>\n<td>Margin (Signed)<\/td>\n<\/tr>\n<tr>\n<td>3<\/td>\n<td>RF Power dBm (Signed)<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/td>\n<\/tr>\n<tr>\n<td><strong>Direction<\/strong><\/td>\n<td>\u00a0Node\u00a0 -&gt; Gateway<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p><strong>\u00a0QOS Downlink Status<\/strong><\/p>\n<table border=\"0\">\n<tbody>\n<tr>\n<td><strong>Description<\/strong><\/td>\n<td>The downlink RSSI and SNR values.<\/td>\n<\/tr>\n<tr>\n<td><strong>ID<\/strong><\/td>\n<td>0x1B<\/td>\n<\/tr>\n<tr>\n<td><strong>Size<\/strong><\/td>\n<td>3<\/td>\n<\/tr>\n<tr>\n<td><strong>Data<\/strong><\/td>\n<td>\n<table border=\"0\">\n<tbody>\n<tr>\n<td>Index<\/td>\n<td>\u00a0Value<\/td>\n<\/tr>\n<tr>\n<td>0 &#8211; 1<\/td>\n<td>RSSI\u00a0(Signed MSB)<\/td>\n<\/tr>\n<tr>\n<td>2<\/td>\n<td>SNR 0.25 dB Step\u00a0(Signed)<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/td>\n<\/tr>\n<tr>\n<td><strong>Direction<\/strong><\/td>\n<td>\u00a0Node\u00a0 -&gt; Gateway<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p><strong>\u00a0Data Start\/Stop<\/strong><\/p>\n<table border=\"0\">\n<tbody>\n<tr>\n<td><strong>Description<\/strong><\/td>\n<td>\u00a0The start and stop bytes for the packet.<\/td>\n<\/tr>\n<tr>\n<td><strong>ID<\/strong><\/td>\n<td>\u00a00x1D<\/td>\n<\/tr>\n<tr>\n<td><strong>Direction<\/strong><\/td>\n<td>\u00a0Node\u00a0 -&gt; Gateway<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n","protected":false},"excerpt":{"rendered":"<p>The following section describes how survey and sensor data is formatted and sent to the gateway. A data packet is sent in LoRa Demo Mode, Survey Single and Survey Sweep Modes if sending is enabled with the +DATA configuration command. The formats are different depending on the specific mode selected. Overview The Data Packet Format [&hellip;]<\/p>\n","protected":false},"author":1478,"featured_media":0,"parent":10894,"menu_order":10,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_bbp_topic_count":0,"_bbp_reply_count":0,"_bbp_total_topic_count":0,"_bbp_total_reply_count":0,"_bbp_voice_count":0,"_bbp_anonymous_reply_count":0,"_bbp_topic_count_hidden":0,"_bbp_reply_count_hidden":0,"_bbp_forum_subforum_count":0,"footnotes":""},"class_list":["post-10636","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/www.multitech.net\/developer\/wp-json\/wp\/v2\/pages\/10636","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.multitech.net\/developer\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/www.multitech.net\/developer\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/www.multitech.net\/developer\/wp-json\/wp\/v2\/users\/1478"}],"replies":[{"embeddable":true,"href":"https:\/\/www.multitech.net\/developer\/wp-json\/wp\/v2\/comments?post=10636"}],"version-history":[{"count":47,"href":"https:\/\/www.multitech.net\/developer\/wp-json\/wp\/v2\/pages\/10636\/revisions"}],"predecessor-version":[{"id":23163,"href":"https:\/\/www.multitech.net\/developer\/wp-json\/wp\/v2\/pages\/10636\/revisions\/23163"}],"up":[{"embeddable":true,"href":"https:\/\/www.multitech.net\/developer\/wp-json\/wp\/v2\/pages\/10894"}],"wp:attachment":[{"href":"https:\/\/www.multitech.net\/developer\/wp-json\/wp\/v2\/media?parent=10636"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}