Ardusensor / server_backend

Ardusensor server component
BSD 3-Clause "New" or "Revised" License
0 stars 0 forks source link

Parse data from a new controller #31

Closed alari76 closed 10 years ago

alari76 commented 10 years ago

The new controller has a following data format:

<11;336;838;343;33><11;336;838;343;34><13;28;164>

<SensorID; Temperature; Battery voltage; Humidity; Sendcounter>

Each package can consist of several sensor messages, and it always ends with a controller message (3 items) -

<ControllerID; GSM coverage; Battery voltage> 
alari76 commented 10 years ago

Garbaged data can be something like this -

<11;335;838;343;200;59>><10;344;873;211;175>40>><10;344;871;211;177>41>><10;344;873;211;179>42>>~<13;23;200>
alari76 commented 10 years ago

Please note that new protocol does not include timestamps, so we have to use server's clock to timestamp data.

tanel commented 10 years ago

Can you give me a couple of example packages? For test cases

alari76 commented 10 years ago
<10;344;875;195;49>                <12;350;895;159;18>(34204)<10;344;875;195;49>                <12;350;895;159;18>(411279)<12;350;895;159;18>(525538)<13;347;888;195;57>(1101950)<17;343;883;159;51>(1229059)<16;145;379;159;17>(1253399)<11;338;879;287;16>(1416289)<15;345;1023;211;17>(1515808)<13;21;350>
alari76 commented 10 years ago
<11;337;878;287;10>(117137)<13;23;179>
alari76 commented 10 years ago
<13;347;886;199;51>(132207)<13;22;196>