Forfatter Emne: V7/V13 UDP protocol client in python  (Læst 107388 gange)

0 Medlemmer og 1 Gæst læser dette emne.

Offline g82

  • Øvet
  • **
  • Indlæg: 20
  • Respekt optjent: +0/-0
Sv: V7/V13 UDP protocol client in python
« Svar #15 Dato: Jan 19, 2016, 21:02 »
Hmm, it still times out after a power cycle on the boiler.
Maybe I should find the IP instead of using discover...

Offline motoz

  • Top of the pop
  • *****
  • Indlæg: 255
  • Respekt optjent: +18/-0
Sv: V7/V13 UDP protocol client in python
« Svar #16 Dato: Jan 20, 2016, 07:36 »
That is strange... I have no idea. You could try without discovery, but the controller does not differentiate between broadcast packets and unicast packets so it should not make any difference. You could power cycle your router, maybe downgrade and then upgrade the controller firmware if nothing else helps. Since it worked before it should be possible to return to a working state somehow.

Bio Comfort 30kW, compressor cleaning, lambda. Termax 25cr boiler. Matene vertical pellet conveyor. PellMon open source pellet logger: https://github.com/motoz/PellMon

Offline BoinkUser

  • Administrator
  • Top of the pop
  • *****
  • Indlæg: 2148
  • Respekt optjent: +83/-4
    • StokerKontrol - Software til dit pillefyr
Sv: V7/V13 UDP protocol client in python
« Svar #17 Dato: Jan 20, 2016, 20:25 »
Hi,

You need 7.0626 to be sure everything is running smoothly, yes in 7.0612 there are some glitches regarding the communication, so i am quite sure thats the problem. The version is not at the moment of writing available, but you can get it on request.

Regards Jens
Version 13 styring, styret fra 22" tablet, Opop 418 kedel
Opvarmer 238 m2 (heraf 119 kælder)

Offline g82

  • Øvet
  • **
  • Indlæg: 20
  • Respekt optjent: +0/-0
Sv: V7/V13 UDP protocol client in python
« Svar #18 Dato: Jan 20, 2016, 20:42 »
Is there a timeframe for the new version?
Anyways do I just request here? if so ... I hereby request :)

Offline motoz

  • Top of the pop
  • *****
  • Indlæg: 255
  • Respekt optjent: +18/-0
Sv: V7/V13 UDP protocol client in python
« Svar #19 Dato: Mar 07, 2016, 08:06 »
Firmware version 7.0629 (7.0929, 10.0929) and up has some changes in the protocol. For now the changes are in a separate branch (that doesn't work with the old protocol): https://github.com/motoz/nbetest/tree/fwversionx29
Bio Comfort 30kW, compressor cleaning, lambda. Termax 25cr boiler. Matene vertical pellet conveyor. PellMon open source pellet logger: https://github.com/motoz/PellMon

Offline motoz

  • Top of the pop
  • *****
  • Indlæg: 255
  • Respekt optjent: +18/-0
Sv: V7/V13 UDP protocol client in python
« Svar #20 Dato: Mar 08, 2016, 20:32 »
Now there is support all three protocol versions so far.

V1 works for 7.0612 and 7.0613
V2 is default and works for 7.0614 up to 7.0627
V3 works for 7.0629 and up

eg:
Kode: [Vælg]
python client.py -V 3 get boiler/settings
V3 needs a correct password to be able to change settings, reading still works without password.

It would be nicer to autodetect the protocol version but since you can't ask the controller for the correct protocol version, it just doesn't answer at all if it's wrong, I figured this is simpler. Anyway who would stay on an old firmware...

« Senest Redigeret: Mar 09, 2016, 17:18 af motoz »
Bio Comfort 30kW, compressor cleaning, lambda. Termax 25cr boiler. Matene vertical pellet conveyor. PellMon open source pellet logger: https://github.com/motoz/PellMon

Offline motoz

  • Top of the pop
  • *****
  • Indlæg: 255
  • Respekt optjent: +18/-0
Sv: V7/V13 UDP protocol client in python
« Svar #21 Dato: Mar 15, 2016, 07:18 »
I started working on a PellMon plugin for V7/V13:


« Senest Redigeret: Mar 15, 2016, 07:19 af motoz »
Bio Comfort 30kW, compressor cleaning, lambda. Termax 25cr boiler. Matene vertical pellet conveyor. PellMon open source pellet logger: https://github.com/motoz/PellMon

Offline BoinkUser

  • Administrator
  • Top of the pop
  • *****
  • Indlæg: 2148
  • Respekt optjent: +83/-4
    • StokerKontrol - Software til dit pillefyr
Sv: V7/V13 UDP protocol client in python
« Svar #22 Dato: Mar 15, 2016, 17:16 »
I started working on a PellMon plugin for V7/V13:



Hi Motoz

Thats cool  O0

Regards Jens
Version 13 styring, styret fra 22" tablet, Opop 418 kedel
Opvarmer 238 m2 (heraf 119 kælder)

Offline motoz

  • Top of the pop
  • *****
  • Indlæg: 255
  • Respekt optjent: +18/-0
Sv: V7/V13 UDP protocol client in python
« Svar #23 Dato: Mar 17, 2016, 19:02 »
PellMon with V7/V13 support  is is this branch: https://github.com/motoz/PellMon/tree/feature/nbeprotocol

All settings and operating data are available in the webinterface and can be graphed, used in automation scripts, included in the system image and accessed by the command line program pellmoncli. Pellet consumption and silo level graphs should work. PellmonMQTT can be used to publish everything to any decent home automation system with MQTT support. Missing for now is support for the build in log and info messages and a lot of polishing...


 
Bio Comfort 30kW, compressor cleaning, lambda. Termax 25cr boiler. Matene vertical pellet conveyor. PellMon open source pellet logger: https://github.com/motoz/PellMon

Offline lassewt

  • Begynder
  • *
  • Indlæg: 8
  • Respekt optjent: +0/-0
Sv: V7/V13 UDP protocol client in python
« Svar #24 Dato: Jul 31, 2017, 17:38 »
Hej

Noget nyt på denne front.

vil gerne hente data fra min scottie direkte fra fyret og ikke via stokercloud. samt tænde og slukke fyret via visual basic enten fra stockercloud eller direkte via upd

Offline motoz

  • Top of the pop
  • *****
  • Indlæg: 255
  • Respekt optjent: +18/-0
Sv: V7/V13 UDP protocol client in python
« Svar #25 Dato: Aug 01, 2017, 08:49 »
What new stuff are you expecting? The python test program this thread is about has been working fully for a long time and wont get any updates (by me) anymore. If you want to use visual basic you can either implement the protocol yourself in visual basic and then the python code will be a good reference, or you could simply call the python program from visual basic to read/write data from/to your burner with Process.Start. See eg: https://stackoverflow.com/questions/16152531/how-to-run-a-command-prompt-command-with-visual-basic-code

Bio Comfort 30kW, compressor cleaning, lambda. Termax 25cr boiler. Matene vertical pellet conveyor. PellMon open source pellet logger: https://github.com/motoz/PellMon

Offline lassewt

  • Begynder
  • *
  • Indlæg: 8
  • Respekt optjent: +0/-0
Sv: V7/V13 UDP protocol client in python
« Svar #26 Dato: Aug 01, 2017, 20:20 »
Guess ill have to figure this python out.. didnt work in my first attemp..

Offline lassewt

  • Begynder
  • *
  • Indlæg: 8
  • Respekt optjent: +0/-0
Sv: V7/V13 UDP protocol client in python
« Svar #27 Dato: Aug 01, 2017, 20:46 »
im getting a protocol error from Crypto.publickey import rsa
modulenotfounderror: no module named crypto


Offline motoz

  • Top of the pop
  • *****
  • Indlæg: 255
  • Respekt optjent: +18/-0
Sv: V7/V13 UDP protocol client in python
« Svar #28 Dato: Aug 02, 2017, 06:25 »
You need to install the pycrypto python package which is missing from your system. Unfortunately that's a bit cumbersome since you are probably on windows, because that package contains C extensions which needs to be compiled with a c compiler which microsoft doesn't provide by default. Fortunately they made things easier lately by packaging a stripped down version of their compiler that can be downloaded from here: https://www.microsoft.com/en-us/download/details.aspx?id=44266 (Microsoft Visual C++ Compiler for Python 2.7)

After the compiler is installed you should be able to install the pycrypto module with the command:
Kode: [Vælg]
python -m pip install pycrypto
Bio Comfort 30kW, compressor cleaning, lambda. Termax 25cr boiler. Matene vertical pellet conveyor. PellMon open source pellet logger: https://github.com/motoz/PellMon

Offline lassewt

  • Begynder
  • *
  • Indlæg: 8
  • Respekt optjent: +0/-0
Sv: V7/V13 UDP protocol client in python
« Svar #29 Dato: Aug 05, 2017, 07:36 »
still dont get it.. but thanks for the efford.

Just made at visua.net udp handler. but cant figure out what to send.


im trying to send to this
my controllers ip thoug port 8483

im sending

Get

how does the command expected from the controller look like ? (fx like..     password, get)

is the port right, im listning on the same port as im sending.

hope these simpel questions make sence