Re: P1 Data injector
Posted: Mon Aug 13, 2018 11:59 am
Not sure if this version of the openzwave lib supports the meter adapter.
Domotica - Home Automation Forum
https://www.domoticaforum.eu/
Thanks! I'll find out soonmarcelr wrote:Not sure if this version of the openzwave lib supports the meter adapter.
Perfect thanks! I'll try it hopefully later todaymarcelr wrote:Done.
And I moved everything to ./ipk/qb2, because that's where it lands after the build on my machine. I have a feeling that there will be more to come, and this way the top subdir for Toon-related stuff doesn't get filled up, keeps everything a bit more tidy.
openzwave won't install because of the unmet requirement of udev_162, which I installed.marcelr wrote:Done.
And I moved everything to ./ipk/qb2, because that's where it lands after the build on my machine. I have a feeling that there will be more to come, and this way the top subdir for Toon-related stuff doesn't get filled up, keeps everything a bit more tidy.
marcelr wrote:Can you post the console output of the install command?
Code: Select all
eneco:~# opkg install openzwave_1.4.164-r0_qb2.ipk
Installing openzwave (1.4.164-r0) to root...
Collected errors:
* satisfy_dependencies_for: Cannot satisfy the following dependencies for openzwave:
* libudev (>= 162) *
* opkg_install_cmd: Cannot install package openzwave.
eneco:~#
opkg install udev_162-r12_qb2.ipk
Installing udev (162-r12) to root...
Configuring udev.
System startup links for /etc/init.d/udev-cache already exist.
Adding system startup for /etc/init.d/udev.
eneco:~# opkg install openzwave_1.4.164-r0_qb2.ipk
Installing openzwave (1.4.164-r0) to root...
Collected errors:
* satisfy_dependencies_for: Cannot satisfy the following dependencies for openzwave:
* libudev (>= 162) *
* opkg_install_cmd: Cannot install package openzwave.
eneco:~# df -h
Filesystem Size Used Available Use% Mounted on
ubi0:rootfs 103.3M 61.5M 41.8M 60% /
none 61.6M 32.0K 61.6M 0% /dev
tmpfs 40.0K 0 40.0K 0% /mnt/.psplash
tmpfs 61.6M 3.4M 58.2M 6% /var/volatile
It installed! Thanksmarcelr wrote:Nope, libudev is different from udev. I just uploaded it. With a little luck it's the last missing package.
Code: Select all
-A HCB-INPUT -p tcp -m tcp --dport 8090 --tcp-flags SYN,RST,ACK SYN -j ACCEPT
Code: Select all
/etc/init.d/iptables restart
I get an -sh: ozwcp: Permission denied error when executing ozwcpmarcelr wrote:Not sure through which port ozwcp is serving. You may have to make an extra hole in the firewall. Will check later today.
EDIT:
go to /usr/local/bin/ozwcp ans start ozwcp manually:
./ozwcp
The server will tell you that it's serving to port 8090, so you will have to open this in the firewall:
add:to /etc/default/iptables.conf and restart the firewall:Code: Select all
-A HCB-INPUT -p tcp -m tcp --dport 8090 --tcp-flags SYN,RST,ACK SYN -j ACCEPT
Then, open a browser on another machine on your local network and go to:Code: Select all
/etc/init.d/iptables restart
http://<toons.IP>:8090
This opens the ozwcp console and now you can readout/modify/whatever your zwave network.
Could you send me the build environment you have for building packages for the Toon? I am going to give gdb a try in order to hopefully debug the hdrv_p1 package so I can have a better understanding of how the code works.marcelr wrote:Not that I'm aware of. You can check the packets that are sent to and fro. That's about it. And you can add and control zwave stuff that Toon doesn't support yet.