Toon firmware: issues (and solutions)

Forum about the Toon firmware, and its extensions

Moderators: marcelr, TheHogNL, Toonz

marcelr
Global Moderator
Global Moderator
Posts: 1153
Joined: Thu May 10, 2012 10:58 pm
Location: Ehv

Re: Toon firmware: issues (and solutions)

Post by marcelr »

Final question: can you make a list of installed packages on your toon?

Code: Select all

opkg list-installed > opkg_list.txt 
and post (or PM to me) the output file opkg_list.txt?
Martin101010
Starting Member
Starting Member
Posts: 38
Joined: Thu Nov 23, 2017 10:12 pm

Re: Toon firmware: issues (and solutions)

Post by Martin101010 »

Marcel,

Thanks for your help. The gui interface is working again. :)

Martin
Ierlandfan
Member
Member
Posts: 151
Joined: Thu Oct 03, 2013 7:53 pm

Re: Toon firmware: issues (and solutions)

Post by Ierlandfan »

@Toonz @ MarcelR

You think something like this will give us a start to show the BoilerInfo? I am not shure if it updates in the background or if we need to do some init. (Nothing in console.log)
if we get this function to work we can extend it with the other values and we only need to update (App) boilerstatus a little.

Code: Select all

 import QtQuick 1.1

import qb.components 1.0
import qb.base 1.0
import BxtClient 1.0

App {
	id: boilerStatus

//Do we need a property declaration here
       
		function retrieveBoilerData() {		

		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, retrieveBoilerData, 16);
		console.log("BoilerStatus requested");
                return BoilerChPressure; //Or for debug just whatever it returns, if it returns something
	}

Timer {
	id: datetimeTimer
	interval: 60000  // update every minute 
	triggeredOnStart: true
	running: true
	repeat: true
	onTriggered: retrieveBoilerData()
        console.log("BoilerStatus Updated");
    }

}
Toonz
Forum Moderator
Forum Moderator
Posts: 1873
Joined: Mon Dec 19, 2016 1:58 pm

Re: Toon firmware: issues (and solutions)

Post by Toonz »

This will not work. They have not implemented this call in the bxtFactory.
Use our http calls with XMLHttpRequest instead to retrieve data via the webserver.

And needs some coding to parse it properly I think (not tested yet)
member of the Toon Software Collective
Ierlandfan
Member
Member
Posts: 151
Joined: Thu Oct 03, 2013 7:53 pm

Re: Toon firmware: issues (and solutions)

Post by Ierlandfan »

How to know wich calls are suported in bxtfactory?
Toonz
Forum Moderator
Forum Moderator
Posts: 1873
Joined: Mon Dec 19, 2016 1:58 pm

Re: Toon firmware: issues (and solutions)

Post by Toonz »

Ierlandfan wrote:How to know wich calls are suported in bxtfactory?
reverse engineering with notepad ++ :-) :-)

You can safely assume that all you can see on Toon's screens today is supported but nothing else.
member of the Toon Software Collective
Ierlandfan
Member
Member
Posts: 151
Joined: Thu Oct 03, 2013 7:53 pm

Re: Toon firmware: issues (and solutions)

Post by Ierlandfan »

Could you enlighten me on the bxtfactory part? As in where to find the commands to use?

I am trying to understand the relationship or differences between the binary bxt and bxtfactory calls.
gijsje
Starting Member
Starting Member
Posts: 25
Joined: Sun Dec 03, 2017 12:52 am

Temperature offset

Post by gijsje »

I now have my toon rooted bu terroursource and i did change the offset of the temperature because it was a few decrees off
But now it is way of and i can not change it with the button down as it does do nothing
How can make it correct again??
Image
michel30
Member
Member
Posts: 286
Joined: Fri Aug 25, 2017 4:42 pm

Re: Toon firmware: issues (and solutions)

Post by michel30 »

What happens if you click on the small reset button under the Toon?
you need to use a pencel to push it in.
gijsje
Starting Member
Starting Member
Posts: 25
Joined: Sun Dec 03, 2017 12:52 am

Re: Toon firmware: issues (and solutions)

Post by gijsje »

It stays the same :(
gijsje
Starting Member
Starting Member
Posts: 25
Joined: Sun Dec 03, 2017 12:52 am

Re: Toon firmware: issues (and solutions)

Post by gijsje »

I did a factory reset and did take my some time get it back up again but the temp looks ok now.
There is still a issue with getting the correct date and time.
It stays at January 2011 and the time and date is not updated
It says it has internet connection and i can login to it but not update of the time
Any suggestions?
marcelr
Global Moderator
Global Moderator
Posts: 1153
Joined: Thu May 10, 2012 10:58 pm
Location: Ehv

Re: Toon firmware: issues (and solutions)

Post by marcelr »

To get time updates, the chrony daemon needs to be up and running. You can test this by:

Code: Select all

 ps | grep chron

This should give output like this:

Code: Select all

1091 root      2616 S    /usr/sbin/chronyd -r
 3210 root      2964 S    grep chron
The top line indicates that the daemon runs, with process ID 1091 (YMMV).
Then of course, the configuration of the chrony daemon needs to be set as described in the rooting manual.
gijsje
Starting Member
Starting Member
Posts: 25
Joined: Sun Dec 03, 2017 12:52 am

Re: Toon firmware: issues (and solutions)

Post by gijsje »

Stil learning so i will search what it means what you say but in the mean time this was the result but no clue if thats ok or not

Code: Select all

 1208 root      2616 S    /usr/sbin/chronyd -r
25697 root      2960 S    grep chron
gijsje
Starting Member
Starting Member
Posts: 25
Joined: Sun Dec 03, 2017 12:52 am

Re: Toon firmware: issues (and solutions)

Post by gijsje »

If i check the manual it seems that it is setup correctly
This is the chrony.conf

Code: Select all

#server time.quby.nl minpoll 8
server www.nist.gov minpoll 8
#keyfile /etc/chrony/chrony.keys
#commandkey 1
driftfile /var/lib/chrony/chrony.drift
#log tracking measurements statistics
logdir /var/log/chrony
dumponexit
dumpdir /var/lib/chrony
local stratum 10
allow 10/8
allow 192.168/16
allow 172.16/12
# Generate syslog messages if large offsets occur (> x secs)
logchange 10
# Specify that the real time clock keeps UTC not local time
rtconutc
#rtcfile /var/lib/chrony/chrony.rtc
# Step system clock if large correction is needed (> x secs within y clkupdates)
makestep 1000 100
# Trim the system clock on boot-up. (> x secs from host)
#initstepslew 30 time.quby.nl
initstepslew 30 www.nist.gov
# Stop bad estimates upsetting machine clock
maxupdateskew 100.0
gijsje
Starting Member
Starting Member
Posts: 25
Joined: Sun Dec 03, 2017 12:52 am

Re: Toon firmware: issues (and solutions)

Post by gijsje »

I did some more study and installed the traffic app on the toon and it is not able to update the traffic and it says it has no internet connection.
If i look at the www status it says it is connected to the internet and i am also able to access it from my computer and the data is coming into domoticz so it is connected to my local network.
It looks like no date from the outside is coming to the toon and then it can of course also not update the time.

Image

Image
Post Reply

Return to “Toon Firmware”