Author Topic: DIY "GREEN DOT" Data Logger  (Read 94909 times)

0 Members and 1 Guest are viewing this topic.

Offline Banshee

  • Member
  • *
  • Posts: 1
Re: DIY "GREEN DOT" Data Logger
« Reply #100 on: September 22, 2013, 10:14:06 PM »
Frozen,

Really like your concept.

I just rec'd my Davis 6152 (wireless) the other day. I want to be able solve the "Green Dot" problem so as to feed data log info to Weather Display (or similar program) via my RaspberryPi, thus eliminating the requirement for a hard wired link from the console to my iMac and freeing up the console to be used in a different room than the iMac.

I have the 3dr radio and antenna recommended from Tridge's post  http://www.wxforum.net/index.php?topic=18718.msg180492#msg180492 on order.

Thinking a version of Tridge's code, the 3dr radio, and USB RPi interface along with with Weather Display (as it supports the RPi) would do the trick.

Looking forward to any suggestions on the above setup or similar approaches.

Regards,
Banshee

Offline travisc

  • Member
  • *
  • Posts: 13
Re: DIY "GREEN DOT" Data Logger
« Reply #101 on: October 26, 2013, 02:14:05 PM »
I finally got some time to get back to this project.  I've got my rev B logger up and running in the console now.  I had to make one small change to get it working.  It's a very simple mod for anyone that's built some boards already (at least two have  :-)) .

Here's a pic of the assembled rev B board.  There's a bunch of extra headers on there for developing so ignore those.  It's got a little pull-cord on the top for easy removal.  Note the jumper in the centre where the diode should be.  That's the only change to get this working.


I've already modified the schematic and gerbers with the final change.  There's a physical jumper instead of the diode.  The jumper only needs to be installed to power the PIC if the logger is out of the console.  This is for future use should we ever need to write a bootloader so the PIC can be updated over USB.  As of right now I haven't done that yet.

Here's the renders of the final gerbers...



Attached is a zip file that contains the PIC source code, PIC hex file, updated schematic and gerbers.  The gerbers are ready to be uploaded to OSH Park should anyone else be interested in assembling their own.

Enjoy,
Travis

« Last Edit: October 26, 2013, 02:15:59 PM by travisc »

Offline JohnA

  • Member
  • *
  • Posts: 18
Re: DIY "GREEN DOT" Data Logger
« Reply #102 on: October 26, 2013, 02:28:43 PM »
Travis,

I only can say...thank you...thank you. Respect for this high quality solution  =D>

I already have 3 PBC's from OSH Park laying around that I will change as mentioned in your'e update

John

Offline torkelmj

  • Contributor
  • ***
  • Posts: 145
    • My weather station, etc.
Re: DIY "GREEN DOT" Data Logger
« Reply #103 on: October 26, 2013, 06:00:28 PM »
Travis, congratulations on an excellent piece of work. Thanks for sharing.

Offline franzz

  • Member
  • *
  • Posts: 13
Re: DIY "GREEN DOT" Data Logger
« Reply #104 on: October 28, 2013, 05:29:09 PM »
@travisc: Great Work!

I've one suggestion for implementation in PIC controler: If you want to use security registers for emulation which are not a dump of an existing Green Dot Logger but which are working with Console FW versions >= 3.0, you can use this security register content:

0xF7 , 0x00 , 0x04 , 0x08 , 0x0C , 0x10 , 0x14 , 0x18 , 0x1C , 0x21 , 0x25 , 0x29 , 0x2D , 0x31 , 0x35 , 0x39 ,
0x3D , 0x46 , 0x42 , 0x4E , 0x4A , 0x56 , 0x52 , 0x5E , 0x5A , 0x67 , 0x63 , 0x6F , 0x6B , 0x77 , 0x73 , 0x7F ,
0x7B , 0x8C , 0x88 , 0x84 , 0x80 , 0x9C , 0x98 , 0x94 , 0x90 , 0xAD , 0xA9 , 0xA5 , 0xA1 , 0xBD , 0xB9 , 0xB5 ,
0xB1 , 0xCA , 0xCE , 0xC2 , 0xC6 , 0xDA , 0xDE , 0xD2 , 0xD6 , 0xEB , 0xEF , 0xE3 , 0xE7 , 0xFB , 0xFF , 0xF3 ,
0xFF , 0xFF , 0xFF , 0xFF , 0xFF , 0xFF , 0xFF , 0xFF , 0xFF , 0xFF , 0xFF , 0xFF , 0xFF , 0xFF , 0xFF , 0xFF ,
0xFF , 0xFF , 0xFF , 0xFF , 0xFF , 0xFF , 0xFF , 0xFF , 0xFF , 0xFF , 0xFF , 0xFF , 0xFF , 0xFF , 0xFF , 0xFF ,
0xFF , 0xFF , 0xFF , 0xFF , 0xFF , 0xFF , 0xFF , 0xFF , 0xFF , 0xFF , 0xFF , 0xFF , 0xFF , 0xFF , 0xFF , 0xFF ,
0xFF , 0xFF , 0xFF , 0xFF , 0xFF , 0xFF , 0xFF , 0xFF , 0xFF , 0xFF , 0xFF , 0xFF , 0xFF , 0xFF , 0xFF , 0xFF


As you can see the unique ID range (byte 64-123) is 0xFF which is for sure not implemented in any davis flash memory. The first range of the security registers (byte 0-63) is tuned to work with security checks of Davis Console. I've tested this configuration with Console FW 3.0 and Attiny85 (emulation software from torkelmj)

BR
franzz

Offline torkelmj

  • Contributor
  • ***
  • Posts: 145
    • My weather station, etc.
Re: DIY "GREEN DOT" Data Logger
« Reply #105 on: October 28, 2013, 05:34:37 PM »
Very interesting. Thanks!

Offline DeKay

  • Forecaster
  • *****
  • Posts: 399
    • Mad Scientist Labs
Re: DIY "GREEN DOT" Data Logger
« Reply #106 on: October 29, 2013, 06:45:21 AM »
@travisc: Great Work!

I've one suggestion for implementation in PIC controler: If you want to use security registers for emulation which are not a dump of an existing Green Dot Logger but which are working with Console FW versions >= 3.0, you can use this security register content:

0xF7 , 0x00 , 0x04 , 0x08 , 0x0C , 0x10 , 0x14 , 0x18 , 0x1C , 0x21 , 0x25 , 0x29 , 0x2D , 0x31 , 0x35 , 0x39 ,
0x3D , 0x46 , 0x42 , 0x4E , 0x4A , 0x56 , 0x52 , 0x5E , 0x5A , 0x67 , 0x63 , 0x6F , 0x6B , 0x77 , 0x73 , 0x7F ,
0x7B , 0x8C , 0x88 , 0x84 , 0x80 , 0x9C , 0x98 , 0x94 , 0x90 , 0xAD , 0xA9 , 0xA5 , 0xA1 , 0xBD , 0xB9 , 0xB5 ,
0xB1 , 0xCA , 0xCE , 0xC2 , 0xC6 , 0xDA , 0xDE , 0xD2 , 0xD6 , 0xEB , 0xEF , 0xE3 , 0xE7 , 0xFB , 0xFF , 0xF3 ,
0xFF , 0xFF , 0xFF , 0xFF , 0xFF , 0xFF , 0xFF , 0xFF , 0xFF , 0xFF , 0xFF , 0xFF , 0xFF , 0xFF , 0xFF , 0xFF ,
0xFF , 0xFF , 0xFF , 0xFF , 0xFF , 0xFF , 0xFF , 0xFF , 0xFF , 0xFF , 0xFF , 0xFF , 0xFF , 0xFF , 0xFF , 0xFF ,
0xFF , 0xFF , 0xFF , 0xFF , 0xFF , 0xFF , 0xFF , 0xFF , 0xFF , 0xFF , 0xFF , 0xFF , 0xFF , 0xFF , 0xFF , 0xFF ,
0xFF , 0xFF , 0xFF , 0xFF , 0xFF , 0xFF , 0xFF , 0xFF , 0xFF , 0xFF , 0xFF , 0xFF , 0xFF , 0xFF , 0xFF , 0xFF


As you can see the unique ID range (byte 64-123) is 0xFF which is for sure not implemented in any davis flash memory. The first range of the security registers (byte 0-63) is tuned to work with security checks of Davis Console. I've tested this configuration with Console FW 3.0 and Attiny85 (emulation software from torkelmj)

BR
franzz

@Franzz: could you share how you figured this out?  Have you determined the algorithm Davis uses to determine the security register?

Offline franzz

  • Member
  • *
  • Posts: 13
Re: DIY "GREEN DOT" Data Logger
« Reply #107 on: October 29, 2013, 02:17:08 PM »
@Franzz: could you share how you figured this out?  Have you determined the algorithm Davis uses to determine the security register?

I've just used my pattern which I've mentioned on the second page of this thread. I don't have determined the full algorithm Davis uses. I've tried many things based on my "0xFF" table, but I can't decode all secrets of Davis. One try was to shift the corresponding security register based on the 0xFF table with the value of unique ID register and so on. But this gives only success on about half of the registers.
I haven't spend any time into further decoding because of too less time and I'm still satisfied with torkelmj solution (emulation with attiny85) to get access to the serial interface. My next step regarding Davis Vantage Console will be to program a gateway (Raspberry PI) between the Davis world and my home automation system. I'm not sure if I should interface Davis with my datalogger emulation hardware or if I should take the smart way by using 3DR Radio hardware. (The 2nd one is the smarter one but I'm sure it needs much more time because of porting the software of tridge to 868Mhz band and using of 2nd transmitter).

BR
franzz

Offline JohnA

  • Member
  • *
  • Posts: 18
Re: DIY "GREEN DOT" Data Logger
« Reply #108 on: October 29, 2013, 03:53:48 PM »
Franzz,

I'm using the Torkel solution on a Vantage Vue in combination with a RaspberryPi, it is working perfectly.
There was a minor issue in the programming, the Vantage Vue didn't work with the code Torkel supplied, but I solved that and Torkel confirmed that this solution worked also on his Pro2.
I asked myself...If the serial solution that Torkel supplied is working fine (without memory) and also the solution that Travs supplied is working, why do I need the extra sucurity registers?


John

Offline franzz

  • Member
  • *
  • Posts: 13
Re: DIY "GREEN DOT" Data Logger
« Reply #109 on: October 29, 2013, 04:16:16 PM »
Franzz,

I'm using the Torkel solution on a Vantage Vue in combination with a RaspberryPi, it is working perfectly.
There was a minor issue in the programming, the Vantage Vue didn't work with the code Torkel supplied, but I solved that and Torkel confirmed that this solution worked also on his Pro2.
I asked myself...If the serial solution that Torkel supplied is working fine (without memory) and also the solution that Travs supplied is working, why do I need the extra sucurity registers?


John


@JohnA: I think there's a misunderstanding. What I proposed was that travisc could change the security register settings from his PIC program to my published secrity register table, because security register emulation of travisc is just a dump of an existing Davis logger (= copy of). ...nevertheless both will work. :-)

BR
franzz

Offline JohnA

  • Member
  • *
  • Posts: 18
Re: DIY "GREEN DOT" Data Logger
« Reply #110 on: October 29, 2013, 04:34:42 PM »
Ahh, that's it  :idea:

I'm still waiting for my new PicKit programmer.. After arrival I'll try your suggestion.

John

Offline travisc

  • Member
  • *
  • Posts: 13
Re: DIY "GREEN DOT" Data Logger
« Reply #111 on: November 25, 2013, 03:12:28 PM »
I've got one more logger available if anyone is interested.  They've been tested to work on Vantage Vue and VP2.  If anyone's interested send me a PM.  The price is $40 plus $9.50 shipping to anywhere in the USA.

A pic of the finished product is attached.

Offline watson

  • Member
  • *
  • Posts: 8
Re: DIY "GREEN DOT" Data Logger
« Reply #112 on: November 25, 2013, 04:39:03 PM »
Hi guys.

I found the algorithm to get the "Davis programmed" 64 bytes starting from the Adesto chip "Factory Programmed" 64 bytes.
Do you want to know it?  8-)

To show you that I'm not kidding, if you give me any combination of 64 bytes I can post the corresponding 64 bytes obtained by the algorithm.

Cheers  ;)

Offline torkelmj

  • Contributor
  • ***
  • Posts: 145
    • My weather station, etc.
Re: DIY "GREEN DOT" Data Logger
« Reply #113 on: November 25, 2013, 07:03:30 PM »
Awesome. Awaiting a description of the algorithm. And just as interesting: how you found it.

Cheers,

T.

Offline torkelmj

  • Contributor
  • ***
  • Posts: 145
    • My weather station, etc.
Re: DIY "GREEN DOT" Data Logger
« Reply #114 on: November 26, 2013, 06:10:26 AM »
To show you that I'm not kidding, if you give me any combination of 64 bytes I can post the corresponding 64 bytes obtained by the algorithm.

0x01 , 0xFF , 0xFF , 0xFF , 0xFF , 0xFF , 0xFF , 0xFF , 0xFF , 0xFF , 0xFF , 0xFF , 0xFF , 0xFF , 0xFF , 0xFF ,
0xFF , 0xFF , 0xFF , 0xFF , 0xFF , 0xFF , 0xFF , 0xFF , 0xFF , 0xFF , 0xFF , 0xFF , 0xFF , 0xFF , 0xFF , 0xFF ,
0xFF , 0xFF , 0xFF , 0xFF , 0xFF , 0xFF , 0xFF , 0xFF , 0xFF , 0xFF , 0xFF , 0xFF , 0xFF , 0xFF , 0xFF , 0xFF ,
0xFF , 0xFF , 0xFF , 0xFF , 0xFF , 0xFF , 0xFF , 0xFF , 0xFF , 0xFF , 0xFF , 0xFF , 0xFF , 0xFF , 0xFF , 0xFF

…and…

0xFF , 0x01 , 0xFF , 0xFF , 0xFF , 0xFF , 0xFF , 0xFF , 0xFF , 0xFF , 0xFF , 0xFF , 0xFF , 0xFF , 0xFF , 0xFF ,
0xFF , 0xFF , 0xFF , 0xFF , 0xFF , 0xFF , 0xFF , 0xFF , 0xFF , 0xFF , 0xFF , 0xFF , 0xFF , 0xFF , 0xFF , 0xFF ,
0xFF , 0xFF , 0xFF , 0xFF , 0xFF , 0xFF , 0xFF , 0xFF , 0xFF , 0xFF , 0xFF , 0xFF , 0xFF , 0xFF , 0xFF , 0xFF ,
0xFF , 0xFF , 0xFF , 0xFF , 0xFF , 0xFF , 0xFF , 0xFF , 0xFF , 0xFF , 0xFF , 0xFF , 0xFF , 0xFF , 0xFF , 0xFF

…and…

0x01 , 0x01 , 0xFF , 0xFF , 0xFF , 0xFF , 0xFF , 0xFF , 0xFF , 0xFF , 0xFF , 0xFF , 0xFF , 0xFF , 0xFF , 0xFF ,
0xFF , 0xFF , 0xFF , 0xFF , 0xFF , 0xFF , 0xFF , 0xFF , 0xFF , 0xFF , 0xFF , 0xFF , 0xFF , 0xFF , 0xFF , 0xFF ,
0xFF , 0xFF , 0xFF , 0xFF , 0xFF , 0xFF , 0xFF , 0xFF , 0xFF , 0xFF , 0xFF , 0xFF , 0xFF , 0xFF , 0xFF , 0xFF ,
0xFF , 0xFF , 0xFF , 0xFF , 0xFF , 0xFF , 0xFF , 0xFF , 0xFF , 0xFF , 0xFF , 0xFF , 0xFF , 0xFF , 0xFF , 0xFF

…and…

0x01 , 0xFF , 0xFF , 0xFF , 0xFF , 0xFF , 0xFF , 0xFF , 0xFF , 0xFF , 0xFF , 0xFF , 0xFF , 0xFF , 0xFF , 0xFF ,
0xFF , 0xFF , 0xFF , 0xFF , 0xFF , 0xFF , 0xFF , 0xFF , 0xFF , 0xFF , 0xFF , 0xFF , 0xFF , 0xFF , 0xFF , 0xFF ,
0xFF , 0xFF , 0xFF , 0xFF , 0xFF , 0xFF , 0xFF , 0xFF , 0xFF , 0xFF , 0xFF , 0xFF , 0xFF , 0xFF , 0xFF , 0xFF ,
0xFF , 0xFF , 0xFF , 0xFF , 0xFF , 0xFF , 0xFF , 0xFF , 0xFF , 0xFF , 0xFF , 0xFF , 0xFF , 0xFF , 0xFF , 0x01

…?

Offline DeKay

  • Forecaster
  • *****
  • Posts: 399
    • Mad Scientist Labs
Re: DIY "GREEN DOT" Data Logger
« Reply #115 on: November 26, 2013, 08:11:26 AM »
Awesome. Awaiting a description of the algorithm. And just as interesting: how you found it.

Cheers,

T.

Ditto.  Please share!

Offline torkelmj

  • Contributor
  • ***
  • Posts: 145
    • My weather station, etc.
Re: DIY "GREEN DOT" Data Logger
« Reply #116 on: November 27, 2013, 05:54:18 PM »
...the audience is waiting...

Offline Bushman

  • Forecaster
  • *****
  • Posts: 7549
    • Eagle Bay Weather
Re: DIY "GREEN DOT" Data Logger
« Reply #117 on: November 27, 2013, 08:08:45 PM »
Maybe he's a OPW?
Need low cost IP monitoring?  http://wirelesstag.net/wta.aspx?link=NisJxz6FhUa4V67/cwCRWA or PM me for 50% off Wirelesstags!!

Offline JohnA

  • Member
  • *
  • Posts: 18
Re: DIY "GREEN DOT" Data Logger
« Reply #118 on: November 28, 2013, 03:28:15 AM »
For some kind of reason I expected this... :roll:


Offline watson

  • Member
  • *
  • Posts: 8
Re: DIY "GREEN DOT" Data Logger
« Reply #119 on: November 28, 2013, 06:42:59 AM »
@ torkelmj:

Well, your first three 64 bytes patterns works with this one:

0xHH, 0xHH, 0xHH, 0x08, 0x0C, 0x10, 0x14, 0x18, 0x1C, 0x21, 0x25, 0x29, 0x2D, 0x31, 0x35, 0x39,
0x3D, 0x46, 0x42, 0x4E, 0x4A, 0x56, 0x52, 0x5E, 0x5A, 0x67, 0x63, 0x6F, 0x6B, 0x77, 0x73, 0x7F,
0x7B, 0x8C, 0x88, 0x84, 0x80, 0x9C, 0x98, 0x94, 0x90, 0xAD, 0xA9, 0xA5, 0xA1, 0xBD, 0xB9, 0xB5,
0xB1, 0xCA, 0xCE, 0xC2, 0xC6, 0xDA, 0xDE, 0xD2, 0xD6, 0xEB, 0xEF, 0xE3, 0xE7, 0xFB, 0xFF, 0xF3

Last pattern works with this one:

0xHH, 0xHH, 0xHH, 0x08, 0x0C, 0x10, 0x14, 0x18, 0x1C, 0x21, 0x25, 0x29, 0x2D, 0x31, 0x35, 0x39,
0x3D, 0x46, 0x42, 0x4E, 0x4A, 0x56, 0x52, 0x5E, 0x5A, 0x67, 0x63, 0x6F, 0x6B, 0x77, 0x73, 0x7F,
0x7B, 0x8C, 0x88, 0x84, 0x80, 0x9C, 0x98, 0x94, 0x90, 0xAD, 0xA9, 0xA5, 0xA1, 0xBD, 0xB9, 0xB5,
0xB1, 0xCA, 0xCE, 0xC2, 0xC6, 0xDA, 0xDE, 0xD2, 0xD6, 0xEB, 0xEF, 0xE3, 0xE7, 0xFB, 0xFF, 0x18

NOTE:  "0xHH" means "whatever you want".
Davis places a serial num at the first three bytes, which are not relevant at auth stage.


Offline JohnA

  • Member
  • *
  • Posts: 18
Re: DIY "GREEN DOT" Data Logger
« Reply #120 on: November 28, 2013, 07:03:39 AM »
So this pattern should be working with the pattern Torkel supplied.
But is there also a universal pattern that we can always use or do I not understand this matter

Offline watson

  • Member
  • *
  • Posts: 8
Re: DIY "GREEN DOT" Data Logger
« Reply #121 on: November 28, 2013, 07:20:00 AM »
Quote
is there also a universal pattern that we can always use

No. The "Davis programmed" 64 bytes (first 64 bytes of Adesto Chip "Security Register") are always obtained from the Adesto chip "Factory Programmed" 64 bytes.

Accordingly to this, a sequence of universally valid "Davis programmed" 64 bytes can not exist.

Of course you can use any valid 128 bytes pattern (made of Davis algorithm-matched 64+64 bytes).

Offline torkelmj

  • Contributor
  • ***
  • Posts: 145
    • My weather station, etc.
Re: DIY "GREEN DOT" Data Logger
« Reply #122 on: November 28, 2013, 07:39:09 AM »
This is interesting. May I ask how you figured out the algorithm? ...and when the world will actually get to see it?  :roll:

Offline JohnA

  • Member
  • *
  • Posts: 18
Re: DIY "GREEN DOT" Data Logger
« Reply #123 on: November 28, 2013, 08:08:19 AM »
I'm also interested in how you figured this out.

If I understand it right... every Davis console comes out of the factory with a predefined algorithm that is different fore every device.
We now have one algorithm and programmed it in either the Torkel or Travis solution. It is working on the devices we've tested but it could also happen that this algorihm will not work on many other devices or if they change the firmware again, right ?
 

Offline torkelmj

  • Contributor
  • ***
  • Posts: 145
    • My weather station, etc.
Re: DIY "GREEN DOT" Data Logger
« Reply #124 on: November 28, 2013, 08:11:20 AM »
JohnA, how do you conclude there's a different algorithm involved for each console unit?
With all respect, I find that *totally* unlikely.

Also, why would a certain company want to risk rendering a large number of green dot-loggers useless by changing the authentication algorithm once again?  :shock:

 

anything