Page 7 of 39
Re: Toon as a domotica controller?
Posted: Mon Dec 07, 2015 4:17 pm
by al_n
Re: Toon as a domotica controller?
Posted: Mon Dec 07, 2015 8:59 pm
by Bwired
Nice work Marcel

Re: Toon as a domotica controller?
Posted: Mon Dec 07, 2015 9:47 pm
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
Re: Toon as a domotica controller?
Posted: Mon Dec 07, 2015 10:06 pm
by al_n
thanks Ierlandfan and marcelr

Re: Toon as a domotica controller?
Posted: Mon Dec 07, 2015 10:17 pm
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

Re: Toon as a domotica controller?
Posted: Mon Dec 07, 2015 10:38 pm
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

- Toon console connection
- toon-console.jpg (160.17 KiB) Viewed 19857 times
I admit it's not the clearest picture, but along with the description it should give enough confidence to proceed.
Re: Toon as a domotica controller?
Posted: Mon Dec 07, 2015 10:50 pm
by marcelr
I mean, how hard can uploading a picture be? At least it shouldn't be more difficult than hacking a Toon
Can't say that I tried very hard
grtz,
marcelr
Re: Toon as a domotica controller?
Posted: Mon Dec 07, 2015 11:36 pm
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
Re: Toon as a domotica controller?
Posted: Tue Dec 08, 2015 8:58 am
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

:
Re: Toon as a domotica controller?
Posted: Tue Dec 08, 2015 7:53 pm
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
Re: Toon as a domotica controller?
Posted: Tue Dec 08, 2015 9:12 pm
by hvxl
There's no need to edit /etc/passwd first. You can just immediately set the password with the passwd command.
Re: Toon as a domotica controller?
Posted: Tue Dec 08, 2015 11:45 pm
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
Re: Toon as a domotica controller?
Posted: Wed Dec 09, 2015 12:18 am
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.
Re: Toon as a domotica controller?
Posted: Wed Dec 09, 2015 9:40 am
by al_n
This forum is "amazing", my posts appear days after I post them

Re: Toon as a domotica controller?
Posted: Wed Dec 09, 2015 9:45 am
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
