Page 9 of 24

Re: Toon firmware: issues (and solutions)

Posted: Thu Nov 09, 2017 10:49 pm
by Ierlandfan

Code: Select all

/qmf/qml/apps/boilerMonitor
No idea what it does yet but that's easy to find out.

Re: Toon firmware: issues (and solutions)

Posted: Sat Nov 11, 2017 1:04 pm
by Toonz
*post removed*

Re: Toon firmware: issues (and solutions)

Posted: Sat Nov 11, 2017 1:48 pm
by Toonz
Another question: my dev toon is not connected to the boiler. Does anyone know if there is an opentherm boiler simulator (via a raspberry for example?) out there which I can connect to the 'keteladapter' ?

Re: Toon firmware: issues (and solutions)

Posted: Sat Nov 11, 2017 3:18 pm
by Toonz
Ierlandfan wrote: As stated probably more values exist depending on your boilertype.
It' s probably a pre-populated list of values based on boiler manufacturer and Boiler (Beta) user input.
I can also see in the strace from happ_thermstat that Toon is actively checking for exisiting ID's and throws a "Not supported" message otherwise.
Aren't all available variables not listed in qmf_project.xml?
Values are also logged and stored in rra databases (see config_hcb_rrd.xml)

Re: Toon firmware: issues (and solutions)

Posted: Sat Nov 11, 2017 4:13 pm
by marcelr
Toonz wrote:Another question: my dev toon is not connected to the boiler. Does anyone know if there is an opentherm boiler simulator (via a raspberry for example?) out there which I can connect to the 'keteladapter' ?
Yes.

It consist of an OTGW with the interface firmware flashed onto it, a USB-to-serial adapter and a piece of software (GPL, although I haven't added the notices yet ;-) ), running on a linux box (typically my laptop computer, but a raspi will do nicely).
Just yell if you want it (the software, you will have to buy the hardware yourself).

Re: Toon firmware: issues (and solutions)

Posted: Sat Nov 11, 2017 5:17 pm
by Toonz
Yep, very interested, just need to buy the OTGW interface hardware. Any tips which one to buy?

Re: Toon firmware: issues (and solutions)

Posted: Sat Nov 11, 2017 5:52 pm
by marcelr
AFAIK the pre-soldered ones are out of stock, although Nodo apparently still manufacture them on demand (SMD type).
Serial ports are rare these days, so I'd go for the USB one, unless you have a serial converter lying around (RS232 serial, that is, not the TTL type).
Just check the OTGW site for details (or ask Schelte Bron, a.k.a. hvxl, at this forum).

Re: Toon firmware: issues (and solutions)

Posted: Sat Nov 11, 2017 8:38 pm
by Toonz
Ierlandfan wrote:

Code: Select all

/qmf/qml/apps/boilerMonitor
No idea what it does yet but that's easy to find out.
This is just the app where you can register your boiler brand/model/type and give consent to Eneco to use these data.
It also asks for the installation date, last maintenance date and maintenance interval.
Nothing else.

By the way, works fine on a rooted Toon if you open the VPN to Eneco and have added the app to globals.qml

Re: Toon firmware: issues (and solutions)

Posted: Sat Nov 11, 2017 11:34 pm
by Ierlandfan
Aren't all available variables not listed in qmf_project.xml?
Values are also logged and stored in rra databases (see config_hcb_rrd.xml)
You reminded me of a post from januari 2017 where we already saw the OT data being graphed.
See this post domoticaforum.eu/viewtopic.php?f=87& ... rrd#p81562
I just don't get why they are scanning all the OT ID's and do nothing with all the others (read: make them somehow available to us) What's the point of filling in wich Boiler brand you have if they don't use the extended ID's. Let's blame sales, marketing and big data for now.

By the way, these are the values that are being graphed. I left out the obvious ones for comparison.
I used MarcelR's hcb_rrd.php script for this (Still working Marcel, must be one of the early day scripts)

Code: Select all

boiler_burner_minutes-10yrdays.csv
boiler_burner_minutes-5yrhours.csv
thermstat_boilerBurnerHours-30days.csv
thermstat_boilerBurnerHours-year.csv
thermstat_boilerChPressure-30days.csv
thermstat_boilerChPressure-year.csv
thermstat_boilerDhwBurnerHours-30days.csv
thermstat_boilerDhwBurnerHours-year.csv
thermstat_boilerFailedBurnerStarts-30days.csv
thermstat_boilerFailedBurnerStarts-year.csv
thermstat_boilerOpMode-30days.csv
thermstat_boilerOpMode-year.csv
thermstat_boilerPumpStarts-30days.csv
thermstat_boilerPumpStarts-year.csv
thermstat_boilerRetTemp-30days.csv
thermstat_boilerRetTemp-year.csv
thermstat_boilerSetpoint-30days.csv
thermstat_boilerSetpoint-year.csv
thermstat_boilerSuccesfulBurnerStarts-30days.csv
thermstat_boilerSuccesfulBurnerStarts-year.csv
thermstat_boilerTemp-30days.csv
thermstat_boilerTemp-year.csv
thermstat_dhwBurnerStarts-30days.csv
thermstat_dhwBurnerStarts-year.csv
thermstat_heatingFactor-30days.csv
thermstat_heatingFactor-year.csv
-thermstat_outsideRate-30days.csv

Re: Toon firmware: issues (and solutions)

Posted: Sun Nov 12, 2017 10:03 pm
by Toonz
marcelr wrote:Looking at the reply to the ./bxt query, it shouldn't be too hard to squeeze the queries into a piece of qml code.
Had a quick look, it isn't as easy from QML because interaction with bxt is via the built-in module BxtClient which has a defined set of functionality.
I cannot call bxt directly from qml.
If we could write all variables in a txt file via a cron jobs with bxt calls then I can easily display it in a tile or screen.

Re: Toon firmware: issues (and solutions)

Posted: Mon Nov 13, 2017 10:34 pm
by Ierlandfan
How about something in the line of this:
(boiler/BoilerApp.qml)

Code: Select all

var msg = bxtFactory.newBxtMessage(BxtMessage.ACTION_INVOKE, p.thermstatUuid, "specific1", "GetBoilerBrands");
// Timeout is one second more than the timeout in happ_scsync
bxtClient.doAsyncBxtRequest(msg, parseBoilerBrands, 16);
return requestId;
You can construct the same messages from bxt debug:

This will probably do:

bxt debug:

Code: Select all

[bxt.c]Sending HBXT_QUERY_INVOKE from bxt.c-28534 to 7d8ef81a-b3b6-4c0c-a0f9-272                                                                             973bd7497/specific1: n=QueryStateVariable varName=BoilerChPressure
qml code:

Code: Select all

var msg = bxtFactory.newBxtMessage(BxtMessage.ACTION_INVOKE, p.thermstatUuid, "specific1", "BoilerChPressure");
// Timeout is one second more than the timeout in happ_scsync
bxtClient.doAsyncBxtRequest(msg, BoilerChPressure, 16);
return BoilerChPressure;
Bxt debug:

Code: Select all

Boxtalk Message to Send:
--------------------------------------------------------------------------------                                                                             ------------
<query class="invoke" uuid="set-by-hcom_send" destuuid="7d8ef81a-b3b6-4c0c-a0f9-                                                                             272973bd7497" serviceid="urn:hcb-hae-com:serviceId:specific1">
    <u:QueryStateVariable xmlns:u="urn:hcb-hae-com:service:specific1:1"><varName                                                                             >BoilerChPressure</varName>
    </u:QueryStateVariable>
</query>

Re: Toon firmware: issues (and solutions)

Posted: Tue Nov 14, 2017 12:01 am
by Toonz
:D will give it a go tomorrow evening....

Re: Toon firmware: issues (and solutions)

Posted: Tue Nov 14, 2017 12:57 am
by Ierlandfan
Ofcourse if all fails whe can whip up something quick&dirty in php, query bxt (remote) and scan the output for the values but what's the fun of that :P

Re: Toon firmware: issues (and solutions)

Posted: Tue Nov 14, 2017 5:30 pm
by aabre
Hi All,
I have a small problem booting my Toon, it stuck on the boot process and give a kernel panic error , is there anybody who can help me out:

..........
Bridge firewalling registered
rtc-isl1208 1-006f: setting system clock to 2011-02-10 09:47:16 UTC (1297331236)
UBIFS error (pid 1): ubifs_read_node: bad node type (255 but expected 6)
UBIFS error (pid 1): ubifs_read_node: bad node at LEB 0:0
List of all partitions:
1f00 512 mtdblock0 (driver?)
1f01 1536 mtdblock1 (driver?)
1f02 3072 mtdblock2 (driver?)
1f03 3072 mtdblock3 (driver?)
1f04 121856 mtdblock4 (driver?)
No filesystem could mount root, tried: ubifs
Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0)
[<c00273d0>] (unwind_backtrace+0x0/0xf0) from [<c029e720>] (panic+0x60/0x190)
[<c029e720>] (panic+0x60/0x190) from [<c0008f10>] (mount_block_root+0x1cc/0x20c)
[<c0008f10>] (mount_block_root+0x1cc/0x20c) from [<c00090d0>] (prepare_namespace+0x8c/0x178)
[<c00090d0>] (prepare_namespace+0x8c/0x178) from [<c0008b50>] (kernel_init+0x10c/0x14c)
[<c0008b50>] (kernel_init+0x10c/0x14c) from [<c00238ec>] (kernel_thread_exit+0x0/0x8)

Re: Toon firmware: issues (and solutions)

Posted: Tue Nov 14, 2017 8:41 pm
by marcelr
Looks like a rotten UBIFS partition. Not good.
I have had something very similar, some time ago. It was quite an operation to get everything back in working order:

viewtopic.php?f=87&t=8743&start=240#p78881