stokerkontrol (woody looging of data on dd-wrt)
: 23 mar 2014 21:01
The protocol is documented here: http://www.nbe.dk/download/pc-kommunikation.html
If you just want to read data it is dead simple, the scotteprotocol python module is as complicated as it is only because it hides the fact that the serial protocol gets data in frames holding tens of data points but writes data one by one with a different frame, plus it handles thread safety so you can read and write data simultaneously from several threads without caring about it. I'm actually an embedded C-guy myself, PellMon was my first use of a really high level language and started as a learning project, and I must say it's often a lot more fun than plain old C because you get so much done with such little effort compared to the heavy lifting one often need to do in C. But of course the right tool in the right place and in my world the raspberrys RAM is enormously big and the 700MHz processor is a speed demon so it's just so much fun compared to the bit-hackery I do for a living...
If you just want to read data it is dead simple, the scotteprotocol python module is as complicated as it is only because it hides the fact that the serial protocol gets data in frames holding tens of data points but writes data one by one with a different frame, plus it handles thread safety so you can read and write data simultaneously from several threads without caring about it. I'm actually an embedded C-guy myself, PellMon was my first use of a really high level language and started as a learning project, and I must say it's often a lot more fun than plain old C because you get so much done with such little effort compared to the heavy lifting one often need to do in C. But of course the right tool in the right place and in my world the raspberrys RAM is enormously big and the 700MHz processor is a speed demon so it's just so much fun compared to the bit-hackery I do for a living...