Toon firmware: issues (and solutions)

Forum about the Toon firmware, and its extensions

Moderator: marcelr

Re: Toon firmware: issues (and solutions)

Postby maomanna » Tue Mar 13, 2018 9:44 pm

is there a way to fix the vpn directory, problem is posted in https://www.domoticaforum.eu/viewtopic. ... 270#p85759

I get this error:
Code: Select all

You are currently running version 3.7.9

Which version do you want to upgrade to? You can look at the list of currently k                                          nown Toon versions at https://notepad.pw/raw/6fmm2o8ev
4.9
Please enter a valid version!
4.9.11
Please enter a valid version!
4.10.6
Alright, I will try to upgrade to 4.10.6
Waiting for tunnel to be alive and configured...
Waiting for tunnel to be alive and configured...
Waiting for tunnel to be alive and configured...
Waiting for tunnel to be alive and configured...
Waiting for tunnel to be alive and configured...
Waiting for tunnel to be alive and configured...
Could not enable VPN in a normal reasonable time.. exiting!
DEBUG information:
192.168.88.0/24 dev wlan0  src 192.168.88.19
default via 192.168.88.1 dev wlan0
# <persistent /etc/hosts content can be added to /etc/hosts.template file>
127.0.0.1               localhost.localdomain           localhost               eneco-001-282734
172.26.96.1             feed.hae.int            feed
END DEBUG information
killall: openvpn: no process killed
maomanna
Starting Member
Starting Member
 
Posts: 8
Joined: May 2014

Re: Toon firmware: issues (and solutions)

Postby TheHogNL » Tue Mar 13, 2018 10:02 pm

maomanna wrote:I'd like to update my toon from 3.7.9. to 4.x.x but it seems my VPN connection isnt working.
/etc/openvpn/vpn.conf exists and points to /etc/openvpn/vpn where my .cert & .key etc should be, but the directory vpn is missing.

How can i fix this problem?


is there a eneco-something.tar.gz file in the /etc/openvpn directory? If yes then just extract that. That file contains the keys and crt for each seperate toon.
If not, there is no way to get the vpn working anymore or ask a friend to share his keys. But remember that you can not have two vpn's running with the same key.
TheHogNL
Member
Member
 
Posts: 418
Joined: August 2017

Re: Toon firmware: issues (and solutions)

Postby maomanna » Tue Mar 13, 2018 10:10 pm

TheHogNL wrote:
maomanna wrote:I'd like to update my toon from 3.7.9. to 4.x.x but it seems my VPN connection isnt working.
/etc/openvpn/vpn.conf exists and points to /etc/openvpn/vpn where my .cert & .key etc should be, but the directory vpn is missing.

How can i fix this problem?


is there a eneco-something.tar.gz file in the /etc/openvpn directory? If yes then just extract that. That file contains the keys and crt for each seperate toon.
If not, there is no way to get the vpn working anymore or ask a friend to share his keys. But remember that you can not have two vpn's running with the same key.


there is no eneco-....tar.gz in that directory.

I've asked quby to send me those files.
maomanna
Starting Member
Starting Member
 
Posts: 8
Joined: May 2014

Re: Toon firmware: issues (and solutions)

Postby TheHogNL » Wed Mar 14, 2018 12:54 pm

maomanna wrote:I've asked quby to send me those files.


Let us know if that works.
TheHogNL
Member
Member
 
Posts: 418
Joined: August 2017

Re: Toon firmware: issues (and solutions)

Postby Fietspomp » Thu Mar 15, 2018 7:06 pm

I have few questions. On one of my Toons the time was completely wrong (Jan 2011).
Tried to figure out if Chrony was working, so I installed xinetd on my debian server to make sure I have a proper server to sync with.

Code: Select all
210 Number of sources = 1
MS Name/IP address         Stratum Poll Reach LastRx Last sample
===============================================================================
^? 192.168.1.3                   2   8     3   114    +37ms[  +37ms] +/-   81ms
eneco-001-237576:~# chronyc tracking
Reference ID    : 127.127.1.1 ()
Stratum         : 10
Ref time (UTC)  : Thu Mar 15 18:05:38 2018
System time     : 0.000000000 seconds fast of NTP time
Last offset     : 0.000000000 seconds
RMS offset      : 0.000000000 seconds
Frequency       : 5.844 ppm fast
Residual freq   : 0.000 ppm
Skew            : 0.000 ppm
Root delay      : 0.000000 seconds
Root dispersion : 0.000001 seconds
Update interval : 0.0 seconds
Leap status     : Not synchronised

Seems to have reached my NAS (192.168.1.3), but still Leap status is not sync'd? Anybody got different results?

Also with the latest firmware the stupid message that Service center can't be reached keeps popping up even tho I modified the correct file.
Fietspomp
Starting Member
Starting Member
 
Posts: 15
Joined: January 2018

Re: Toon firmware: issues (and solutions)

Postby TheHogNL » Thu Mar 15, 2018 8:00 pm

I have
Code: Select all
210 Number of sources = 1
MS Name/IP address         Stratum Poll Reach LastRx Last sample
===============================================================================
^* ntp4.bit.nl                   1  10   377   126   +708us[ +996us] +/- 3722us


Reference ID    : 213.136.0.252 (ntp4.bit.nl)
Stratum         : 2
Ref time (UTC)  : Thu Mar 15 18:42:38 2018
System time     : 0.000017758 seconds fast of NTP time
Last offset     : 0.000101874 seconds
RMS offset      : 0.000324824 seconds
Frequency       : 9.368 ppm fast
Residual freq   : 0.002 ppm
Skew            : 0.113 ppm
Root delay      : 0.006678 seconds
Root dispersion : 0.001394 seconds
Update interval : 1032.4 seconds
Leap status     : Normal


So it seems that your chrony isn't working; not reaching your nas.
TheHogNL
Member
Member
 
Posts: 418
Joined: August 2017

Re: Toon firmware: issues (and solutions)

Postby Toonz » Thu Mar 15, 2018 8:28 pm

I had to put this into /etc/chrony.conf to get the clock synchronized:

Code: Select all
# ntp servers in the Netherlands (main application area of toon)
server 0.nl.pool.ntp.org minpoll 8
server 1.nl.pool.ntp.org minpoll 8
server 2.nl.pool.ntp.org minpoll 8
server 3.nl.pool.ntp.org minpoll 8
# driftfile location
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
# 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 0.nl.pool.ntp.org
# Stop bad estimates upsetting machine clock
maxupdateskew 100.0
Toonz
Advanced Member
Advanced Member
 
Posts: 690
Joined: December 2016

Re: Toon firmware: issues (and solutions)

Postby Fietspomp » Fri Mar 16, 2018 6:39 am

Thanks for the replies guys!

Used Toonz' config and now it works, even tho I though I read in the rooting manual NTP servers didn't work.

Now to search and remove the nagging "no connection to service center" banner.
Strange thing is when I click it it says Im connected to Eneco so the spoof in the InternetSettingsApp.qml works sort of...
Fietspomp
Starting Member
Starting Member
 
Posts: 15
Joined: January 2018

Re: Toon firmware: issues (and solutions)

Postby marcelr » Fri Mar 16, 2018 8:48 am

Fietspomp wrote:Used Toonz' config and now it works, even tho I though I read in the rooting manual NTP servers didn't work.

I know, that should be updated in the manual.
marcelr
Advanced Member
Advanced Member
 
Posts: 910
Joined: May 2012
Location: Ehv

Re: Toon firmware: issues (and solutions)

Postby TheHogNL » Fri Mar 16, 2018 10:48 am

Fietspomp wrote:Thanks for the replies guys!

Used Toonz' config and now it works, even tho I though I read in the rooting manual NTP servers didn't work.

Now to search and remove the nagging "no connection to service center" banner.
Strange thing is when I click it it says Im connected to Eneco so the spoof in the InternetSettingsApp.qml works sort of...


This is because BXT (boxtalk, the internals of the toon) has the status set that there is no connection to the service center.
The modification in internetsettings is only to fool that app (the screen you see) and to fool the wifi icon.

But the banner itself is being fed from BXT itself. So everytime a connection to the internet is made, but the service center is unavailable this message reappears. This is normally only after a startup. But if your internet is broken, or your wifi disconnects all the time, the message reappears also while the Toon is running.

Haven't found out how to block the message myself. I am only seeing the message after a reboot. My internet is flawless :P But I'll take a look at the message part of the code this weekend to check if there is a way to block it. On the forum there are some people who did block the message bar completly but this is maybe something you don't want because you will miss other messages also.
TheHogNL
Member
Member
 
Posts: 418
Joined: August 2017

Re: Toon firmware: issues (and solutions)

Postby Fietspomp » Fri Mar 16, 2018 10:56 am

TheHogNL wrote:
Fietspomp wrote:Thanks for the replies guys!

Used Toonz' config and now it works, even tho I though I read in the rooting manual NTP servers didn't work.

Now to search and remove the nagging "no connection to service center" banner.
Strange thing is when I click it it says Im connected to Eneco so the spoof in the InternetSettingsApp.qml works sort of...


This is because BXT (boxtalk, the internals of the toon) has the status set that there is no connection to the service center.
The modification in internetsettings is only to fool that app (the screen you see) and to fool the wifi icon.

But the banner itself is being fed from BXT itself. So everytime a connection to the internet is made, but the service center is unavailable this message reappears. This is normally only after a startup. But if your internet is broken, or your wifi disconnects all the time, the message reappears also while the Toon is running.

Haven't found out how to block the message myself. I am only seeing the message after a reboot. My internet is flawless :P But I'll take a look at the message part of the code this weekend to check if there is a way to block it. On the forum there are some people who did block the message bar completly but this is maybe something you don't want because you will miss other messages also.


Makes some sense, I was rebooting Toon all the time, left it on all night and now the message is not returning indeed.
Internet here is also quite stable, as long as Ziggo stays stable :roll:
Fietspomp
Starting Member
Starting Member
 
Posts: 15
Joined: January 2018

Re: Toon firmware: issues (and solutions)

Postby Toonz » Fri Mar 16, 2018 1:15 pm

Fietspomp wrote:Now to search and remove the nagging "no connection to service center" banner.


My approach is to comment (or remove) the line 'notifications.init' in ..\qml\Canvas.qml
Code: Select all
Component.onCompleted: {
......
//      notifications.init();
......
}

This will remove the banner completely without impacting other functionality.
Banner is pretty useless anyway if you ask me
Toonz
Advanced Member
Advanced Member
 
Posts: 690
Joined: December 2016

Re: Toon firmware: issues (and solutions)

Postby TheHogNL » Sat Mar 17, 2018 1:22 pm

Alright, I managed to remove the annoying network error notification without disabling the notification completly.

Find the "function show" in /qmf/qml/qb/notifications/NotificationBar.qml and add the line shown below (the line between the two comment lines) as the first line after the opening of the show function:

Code: Select all
        function show(expanded) {
//mod to remove network errors in notification bar
                notifications.removeByTypeSubType("error","network");
//end mod
                if (notifications.count === 0 || blockConditions)



This will delete each network error notifcations just before they are shown.
Last edited by TheHogNL on Mon Mar 19, 2018 11:14 am, edited 4 times in total.
TheHogNL
Member
Member
 
Posts: 418
Joined: August 2017

Re: Toon firmware: issues (and solutions)

Postby PowerAce » Sat Mar 17, 2018 11:16 pm

Hi TheHogNL,

I've tried your mod for the NotificationBar.qml file. Unfortunately for my Toon (FW 4.10.6) this is not working. When i reboot Toon it stops somewhere halfway and ends with a 'white' screen. Luckily i was still able to log in using SSH.

I had the mod inserted around line 27 is that correct? It looks by the way that your file is different anyway, when i look at the very last line of your code just after '#end mod'. Yours says something about blockConditions which i don't see in my NotificationBar.qml

Regards
PowerAce
Starting Member
Starting Member
 
Posts: 9
Joined: August 2017

Re: Toon firmware: issues (and solutions)

Postby Fietspomp » Sun Mar 18, 2018 5:10 pm

Nice, I'll try it tonight!
Fietspomp
Starting Member
Starting Member
 
Posts: 15
Joined: January 2018

PreviousNext

Return to Toon Firmware

Who is online

Users browsing this forum: No registered users and 1 guest