Toon as a domotica controller?

Everything about rooting Toons 1 and 2.

Moderators: marcelr, TheHogNL, Toonz

Post Reply
al_n
Member
Member
Posts: 52
Joined: Tue Jun 02, 2015 7:51 pm

Re: Toon as a domotica controller?

Post by al_n »

Bwired
Administrator
Administrator
Posts: 4704
Joined: Sat Mar 25, 2006 1:07 am
Location: Netherlands
Contact:

Re: Toon as a domotica controller?

Post by Bwired »

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

Re: Toon as a domotica controller?

Post by marcelr »

can I just use an older laptop with a serial port with direct wiring of Rx, TX and GND? Or are the voltage levels different?
It's a 3.3V signal level serial port, so no. Wouldn't try to put proper RS232 signal levels on that port.
It should, specs state that it's a 3.3V device. I'm not very fond of this particular chipset, but that's a matter of taste.
Can someone attach a photo of the connector side just to be damn sure about this and not screw anything?
Nope, after more than three years on this forum I still have no clue how to upload pictures and make them visible in a post. Sorry about that.

The good News is that pin 1 on the 14-pin connector is marked with a 1. The same row of 7 holds all the odd pin numbers, counting up monotoneously. The other row starts with pin 2 next to pin 1 and counts up in the same direction as the odd row. Make sense?
Nice work Marcel :)
Thanks. But don't forget to mention Ierlandfan. The pin-shorting rooting process, u-boot, init and iptables stuff, and lots more were all his ideas.

grtz,

marcelr
al_n
Member
Member
Posts: 52
Joined: Tue Jun 02, 2015 7:51 pm

Re: Toon as a domotica controller?

Post by al_n »

thanks Ierlandfan and marcelr :)
al_n
Member
Member
Posts: 52
Joined: Tue Jun 02, 2015 7:51 pm

Re: Toon as a domotica controller?

Post by al_n »

marcelr wrote:Nope, after more than three years on this forum I still have no clue how to upload pictures and make them visible in a post. Sorry about that.
You can use picoolio to host images
Image
hvxl
Senior Member
Senior Member
Posts: 1966
Joined: Sat Jun 05, 2010 11:59 am
Contact:

Re: Toon as a domotica controller?

Post by hvxl »

marcelr wrote:
Can someone attach a photo of the connector side just to be damn sure about this and not screw anything?
Nope, after more than three years on this forum I still have no clue how to upload pictures and make them visible in a post. Sorry about that.
I'll give it a shot. I mean, how hard can uploading a picture be? At least it shouldn't be more difficult than hacking a Toon :wink:
Toon console connection
Toon console connection
toon-console.jpg (160.17 KiB) Viewed 17053 times
I admit it's not the clearest picture, but along with the description it should give enough confidence to proceed.
Schelte
marcelr
Global Moderator
Global Moderator
Posts: 1153
Joined: Thu May 10, 2012 10:58 pm
Location: Ehv

Re: Toon as a domotica controller?

Post by marcelr »

I mean, how hard can uploading a picture be? At least it shouldn't be more difficult than hacking a Toon :wink:
Can't say that I tried very hard 8)

grtz,

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

Re: Toon as a domotica controller?

Post by marcelr »

The topic of this thread is "Toon as a domotica controller?".

Now that the word about rooting is spreading, it's time to move on.

I have been tapping into the z-wave communication, but my z-wave knowledge is next to nothing. As a test, I want to get readings from the P1-zwave interface. So, attached to this post is a log from openZSniffer (basically interceptty with a twist). This program logs all serial IO between the z-wave interface and the processor (until stopped). Can any of you make sense of this file?
Will proceed with running hcb_zwave through strace, but not yet. I can only do that during weekends or longer periods of spare time, when my wood stove is heating the house. Don't want to leave my family in the cold.

grtz,

marcelr
Attachments
openzsniffer.log.zip
log of serial IO with zwave interface
(5.73 KiB) Downloaded 492 times
marcelr
Global Moderator
Global Moderator
Posts: 1153
Joined: Thu May 10, 2012 10:58 pm
Location: Ehv

Re: Toon as a domotica controller?

Post by marcelr »

OK, I'll give it a shot (attachment, not an inline image :-( ):
If you don't like the root window of toon, it's easily changed :-) :
Attachments
Big_Brother_is_watching_YOU.jpg
Big_Brother_is_watching_YOU.jpg (42.53 KiB) Viewed 17004 times
User avatar
RDNZL
Forum Moderator
Forum Moderator
Posts: 1008
Joined: Sun Sep 24, 2006 1:45 pm
Location: Dordrecht, The Netherlands
Contact:

Re: Toon as a domotica controller?

Post by RDNZL »

A few additions:

My Toon (version 3.1.x) seems to use port 10080 instead of 7080 for webserver.
The 7080 param in hcb_project.xml is ignored.
So use that port in iptables.conf.

You can reload new rules by running 'iptable-restore </etc/default/iptables.conf'
So you don't need to reboot

You must set a new root password otherwise sshd doesn't let you login.
So use passwd command after editing /etc/passwd
Regards, Ron.
hvxl
Senior Member
Senior Member
Posts: 1966
Joined: Sat Jun 05, 2010 11:59 am
Contact:

Re: Toon as a domotica controller?

Post by hvxl »

There's no need to edit /etc/passwd first. You can just immediately set the password with the passwd command.
Schelte
marcelr
Global Moderator
Global Moderator
Posts: 1153
Joined: Thu May 10, 2012 10:58 pm
Location: Ehv

Re: Toon as a domotica controller?

Post by marcelr »

You can just immediately set the password with the passwd command.
Not sure, in general, passwd asks for the current password first, before changing to a new one. Unless your password field is empty OR you happen to know the password, you cannot set it to a new value. Toon's busybox could be so broken that you're actually right (Can't test, I'm far far away from my toon right now).

Then again, with your input and from other people, I will update the rooting recipe (probably this weekend).

grtz,

marcelr
hvxl
Senior Member
Senior Member
Posts: 1966
Joined: Sat Jun 05, 2010 11:59 am
Contact:

Re: Toon as a domotica controller?

Post by hvxl »

marcelr wrote:Not sure, in general, passwd asks for the current password first, before changing to a new one.
Not when you're root.
Schelte
al_n
Member
Member
Posts: 52
Joined: Tue Jun 02, 2015 7:51 pm

Re: Toon as a domotica controller?

Post by al_n »

This forum is "amazing", my posts appear days after I post them :?
al_n
Member
Member
Posts: 52
Joined: Tue Jun 02, 2015 7:51 pm

Re: Toon as a domotica controller?

Post by al_n »

al_n wrote:This forum is "amazing", my posts appear days after I post them :?
I think I just broke the ten posts barrier so I don't need a moderator to approve every post :D
Post Reply

Return to “Toon Rooting”