W-LINK
Teltonika

ASUS sonoff
ASUS esp
ASUS neoway

TP-LINK WDR-4900 loki 2015-03-01
TP-LINK 703N 703N

USB0 = Telldus ja A 1 on A-Link modem
USB1 = GSM
USB2 = cisco usb2serial cable
USB3 = 1-wire dongle, lampotila

kts: /etc/rc.d/S62rfcmd
modem........... /mnt/usbdrive/rfcmd /dev/ttyUSB0 NEXA A 1 1 - on nyt modeemissa, kts. /etc/rc.d/S62rfcmd
A-LINK.......... /mnt/usbdrive/rfcmd /dev/ttyUSB0 NEXA A 1 1
IR/Roikkavalo... /mnt/usbdrive/rfcmd /dev/ttyUSB0 NEXA B 2 0 - /etc/rc.d/S62rfcmd ei pelaa
cam1[linksys]... /mnt/usbdrive/rfcmd /dev/ttyUSB0 NEXA C 1 1 - sahkokatkoksessa ei mene paalle, router reboot ajaa paalle
cam2............ /mnt/usbdrive/rfcmd /dev/ttyUSB0 NEXA C 2 1
cam3............ /mnt/usbdrive/rfcmd /dev/ttyUSB0 NEXA C 3 1 - todo
cam4............ /mnt/usbdrive/rfcmd /dev/ttyUSB0 NEXA C 4 1 - todo
cam7............ /mnt/usbdrive/rfcmd /dev/ttyUSB0 WAVEMAN C 7 1

TUTA S30 GSM
#01# - ON
#02# - OFF

TELLDUS - tdtool

Firmis, flasher: http://www.telldus.se/products/tellstick_net_software
How to update firmware: here
http://download.telldus.com/TellStick/Software/TellStickNetFlasher/TellStickNetFlasher.zip
TellStickNetFlasher.zip
S/N 206088 - Batch: 13131 (Paarnet)
S/N 207659 - Batch: 13342 (Koti)
S/N 206480 - Batch: 13342 (Kauas)
S/N 208442 - Batch: 14033 (Lugnet)

192.168.50.51
/mnt/usbdrive/2/tc/tc/telldus-core-2.1.2/service/telldusd
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/mnt/usbdrive/2/LIB/
opkg install libstdcpp
/var/state/telldus-core.conf
/etc/tellstick.conf
lisatty script hakemistot: /usr/local/share/telldus/scripts/*
-> kts /tmp/log.raw
-> kts /tmp/log.sensor
MUISTA! - script.sh~ ajetaan samanveroisena kuin itse script.sh

root@OpenWrt:/mnt/usbdrive/2/tc/telldus-core-2.1.2/tdtool# ./tdtool --list-devices
type=device id=3 name=printteri lastsent command=OFF
type=device id=2 name=OH-valo lastsent command=OFF
type=device id=4 name=OH-speakers lastsent command=OFF
type=device id=10 name=Ovi - kiinni - turnoff lastsent command=OFF
type=device id=13 name=Ovi - auki - turnon lastsent command=ON
root@OpenWrt:/mnt/usbdrive/2/tc/telldus-core-2.1.2/tdtool# ./tdtool --on OH-valo
Turning on device 2, OH-valo - Success

tdadmin controller connect --pid=0x0c31 --vid=0x1781 --serial=serialnum
lsusb -d 1781: -v | grep iSerial

~/htdocs/paarhw/openwrt-tp-link/src.telldus/telldus-core-2.1.2/python/tellcore-py-1.1.1
./bin/tellcore_events --all

TELLDUS - telldus-core-2.1.2 - openwrt

https://www.kickass.se/?p=83
cd /zp/openwrt/build_dir/target-powerpc_8540_uClibc-0.9.33.2/telldus-core-2.1.2
cmake -DFTDI_LIBRARY=../libftdi1-1.2/ipkg-mpc85xx/libftdi1/usr/lib/libftdi1.so.2 -DCONFUSE_LIBRARY=../confuse-2.7/ipkg-mpc85xx/confuse/usr/lib/libconfuse.so.0
cmake -DFTDI_LIBRARY=../libftdi1-1.2/ipkg-mpc85xx/libftdi1/usr/lib/libftdi1.so.2 -DCONFUSE_LIBRARY=../confuse-2.7/ipkg-mpc85xx/confuse/usr/lib/libconfuse.so.0 -DICONV_LIBRARY=../libiconv-1.11.1/ipkg-install/usr/lib/libiconv.so not wroking

perls

IP{ system("cp $housekeeping/adsl/SMS.ip $outgoing"); }
TEMP { system("cp $housekeeping/temp/SMS.temperature $outgoing"); }
MODEM OFF { system("/mnt/usbdrive/rfcmd $rfUSB NEXA B 1 0"); }
MODEM ON { system("/mnt/usbdrive/rfcmd $rfUSB NEXA B 1 1"); }
NEXA B 1 0 { system("/mnt/usbdrive/rfcmd $rfUSB NEXA B 1 0"); }
NEXA B 1 1 { system("/mnt/usbdrive/rfcmd $rfUSB NEXA B 1 1"); }
LAMPO OFF { system("/mnt/usbdrive/rfcmd $rfUSB NEXA A 1 0"); }
LAMPO ON { system("/mnt/usbdrive/rfcmd $rfUSB NEXA A 1 1"); }
NEXA A 3 0 { system("/mnt/usbdrive/rfcmd $rfUSB NEXA A 3 0"); }
NEXA A 3 1 { system("/mnt/usbdrive/rfcmd $rfUSB NEXA A 3 1"); }
IR ON { system("/mnt/usbdrive/rfcmd $rfUSB NEXA B 2 1"); } Not in use
IR OFF { system("/mnt/usbdrive/rfcmd $rfUSB NEXA B 2 0"); } Not in use
NEXA B 2 1 { system("/mnt/usbdrive/rfcmd $rfUSB NEXA B 2 1"); } Not in use
NEXA B 2 0 { system("/mnt/usbdrive/rfcmd $rfUSB NEXA B 2 0"); } Not in use
CAM1 OFF { system("/mnt/usbdrive/rfcmd $rfUSB WAVEMAN C 1 0"); }TODO
CAM1 ON { system("/mnt/usbdrive/rfcmd $rfUSB WAVEMAN C 1 1"); }TODO
CAM2 OFF { system("/mnt/usbdrive/rfcmd $rfUSB WAVEMAN C 2 0"); }TODO
CAM2 OFF { system("/mnt/usbdrive/rfcmd $rfUSB WAVEMAN C 2 1"); }TODO
RST ADSL { system("/mnt/usbdrice/adsl/reset_alink.sh"); }
RESET ADSL { system("/mnt/usbdrice/adsl/reset_alink.sh"); }
ADSL STATUS { system("cp $housekeeping/adsl/SMS.status $outgoing"); }
KUVA todo
RESET ASUS { system("/sbin/reboot"); }
RST ASUS { system("/sbin/reboot"); }
REBOOT ASUS { system("/sbin/reboot"); }
PARK { system("/mnt/usbdrive/housekeeping/cam/opticam_park_all.sh $nro $name"); }
UNPARK { system("/mnt/usbdrive/housekeeping/cam/opticam_alkuasento_all.sh $nro $name"); }
MOTION ON { system("/mnt/usbdrive/housekeeping/cam/motion_on.sh $nro $name"); } TODO
MON { system("/mnt/usbdrive/housekeeping/cam/motion_on.sh $nro $name"); } TODO
MOTION OFF { system("/mnt/usbdrive/housekeeping/cam/motion_off.sh $nro $name"); }TODO
MOFF { system("/mnt/usbdrive/housekeeping/cam/motion_on.sh $nro $name"); } TODO
/mnt/usbdrive/sms/perl/koe.pl v0.6 2009-07-04

WS1
ASUS loki
TP-LINK WDR-4900 loki 2015-03-01

Last modified: Mon Nov 12 00:20:21 EET 2018