Page 3 of 3
Re: RFLink Gateway via Synology with Domoticz
Posted: Thursday 15 October 2015 22:20
by idonl
Got my RFLink today, installed it and connected it to my Synology and it worked right out of the box, yes!
No need for any hardware changes.
I have a cheap-ass (clone) arduino mega btw
And I am surprised about the good reception within the house
Re: RFLink Gateway via Synology with Domoticz
Posted: Thursday 15 October 2015 23:27
by jumbotroll
idonl wrote:Got my RFLink today, installed it and connected it to my Synology and it worked right out of the box, yes!
No need for any hardware changes.
I have a cheap-ass (clone) arduino mega btw
And I am surprised about the good reception within the house
Nice
My cheap-ass Arduino working also very well and has been 100% stable on my Synology.
This is my Kit:

- 14.jpg (175.55 KiB) Viewed 4473 times
Re: RFLink Gateway via Synology with Domoticz
Posted: Thursday 15 October 2015 23:51
by Stuntteam
and support for more and more protocols on its way

Re: RFLink Gateway via Synology with Domoticz
Posted: Friday 16 October 2015 0:03
by jumbotroll
Stuntteam wrote:and support for more and more protocols on its way

Great!
Nice work!
Re: RFLink Gateway via Synology with Domoticz
Posted: Saturday 31 October 2015 15:45
by gkroone
I think the reason the internal reset on synology doesn't work correctly is due to a script that gets run whenever a cdc-acm compatible device is attached.
I suspect this results in some modem scripts starting up and keeping the serial port open even when domoticz closes it.
/lib/udev/script/usb-modem-util.sh
I commented out the original line on my synology and replaced it with the usb vendor&product ID with the one from my arduino.
This resulsts in the cdc-acm driver not being automatically loaded anymore, but that can be fixed by loading it from inside /var/packages/domoticz/scripts/start-stop-status: insmod /lib/modules/cdc-acm.ko
check_device_to_skip ()
{
# Vendor=04d8 ProdID=000a
# this is LCD monitor used by bromolow, driver is cdc-acm, but it is not usbmodem
#local lcd_exist=`/bin/cat /proc/bus/usb/devices | /bin/grep "Vendor=04d8 ProdID=000a" | /usr/bin/wc -l`
local lcd_exist=`/bin/cat /proc/bus/usb/devices | /bin/grep "Vendor=2341 ProdID=0010" | /usr/bin/wc -l`
local driver_is_acm=`/bin/echo "$@" | /bin/grep ${CDC_ACM_MODULE} | /usr/bin/wc -l`
if [ 0 -lt ${lcd_exist} -a 0 -lt ${driver_is_acm} ]; then
return 1
fi
return 0
}
I do agree it's good to add a software forced reset function for the rflink from domoticz.
Re: RFLink Gateway via Synology with Domoticz
Posted: Sunday 29 November 2015 10:01
by L2v2P
Guys,
I'm somewhat at a loss here. I got
this hardware setup and loaded the latest RFLink software on it. I also have the latest Domoticz package from Jumbotroll on a DS212j. I've added the RFLink hardware on
/dev/ttyACM0.
In the Domoticz log I see this:
Code: Select all
2015-11-29 09:53:59.307 RFLink: Controller Initialized!...
2015-11-29 09:54:21.807 RFLink: Controller Initialized!...
After 15 minutes or so a KaKu device appeared. When I try to send a command to it I get:
Code: Select all
2015-11-29 09:52:56.779 RFLink Sending: 10;NewKaku;c83466;a;OFF
2015-11-29 09:53:01.000 Error: RFLink: TX time out...
2015-11-29 09:53:25.558 RFLink: Controller Initialized!...
So basically nothing happens.
I'm not sure where to start troubleshooting this. Also not sure if it is relevant, but the Arduino is on USB power. The green power light is always on, so I'm assuming there's enough power.
Re: RFLink Gateway via Synology with Domoticz
Posted: Sunday 29 November 2015 10:08
by L2v2P
Also, perhaps the above KaKu device might be the motion sensor which would explain why things fail. The motion sensor is linked to a switch which hasn't appeared yet in Domoticz. Is there any way to tell?
Re: RFLink Gateway via Synology with Domoticz
Posted: Sunday 29 November 2015 20:54
by jumbotroll
L2v2P wrote:Also, perhaps the above KaKu device might be the motion sensor which would explain why things fail. The motion sensor is linked to a switch which hasn't appeared yet in Domoticz. Is there any way to tell?
Maybe reset problem?
Synology NAS:
If you want to use RFLink with a Synology NAS you can use:
- an Arduino Mega clone based on CH340 USB/serial chip
In all other cases:
- connect a 10 uF capacitor between reset and ground on the Arduino.
Simply stick the pins of the capacitor in the power connector socket.
When you want to update the firmware of the Arduino, remove the capacitor and reconnect it when done.
http://www.nemcon.nl/blog2/2015/07/bb
Regards
Jumbotroll
Re: RFLink Gateway via Synology with Domoticz
Posted: Sunday 29 November 2015 21:11
by L2v2P
jumbotroll wrote:L2v2P wrote:Also, perhaps the above KaKu device might be the motion sensor which would explain why things fail. The motion sensor is linked to a switch which hasn't appeared yet in Domoticz. Is there any way to tell?
Maybe reset problem?
Synology NAS:
If you want to use RFLink with a Synology NAS you can use:
- an Arduino Mega clone based on CH340 USB/serial chip
In all other cases:
- connect a 10 uF capacitor between reset and ground on the Arduino.
Simply stick the pins of the capacitor in the power connector socket.
When you want to update the firmware of the Arduino, remove the capacitor and reconnect it when done.
http://www.nemcon.nl/blog2/2015/07/bb
Regards
Jumbotroll
Just to be clear, since I have a genuine Mega, I need a capacitor?
Re: RFLink Gateway via Synology with Domoticz
Posted: Sunday 29 November 2015 21:23
by Stuntteam
Yes..
Re: RFLink Gateway via Synology with Domoticz
Posted: Sunday 29 November 2015 21:24
by jumbotroll
Just to be clear, since I have a genuine Mega, I need a capacitor?
Yes!
or you can remove the solder jumper on the print after programming.
Regards
Jumbotroll
Re: RFLink Gateway via Synology with Domoticz
Posted: Friday 01 January 2016 12:04
by L2v2P
The capacitor did the trick!
Re: RFLink Gateway via Synology with Domoticz
Posted: Sunday 31 January 2016 15:15
by Groeneman
Hi,
I have the RFlink/Arduino/Antenna kit from Nodoshop. It is connected to USB port on my Synology NAS and using the latest version Domoticz from Jumbotroll.
It is working, but I am bit dissapointed by the range. The RFlink/Arduino is in the hall (meterkast) and my receivers (KaKu) are in the living room (few meters and one wall). The on/off commands are not always seen.
Could it be the power supply, it is not clear if I need a separate power supply for the Arduino? Or should it work on the USB power from the NAS?
Re: RFLink Gateway via Synology with Domoticz
Posted: Sunday 31 January 2016 15:52
by L2v2P
I have powered it via the NAS' USB and no range issues (e.g. I have a receiver 20 meters away and three walls in between).
Re: RFLink Gateway via Synology with Domoticz
Posted: Sunday 16 April 2017 21:16
by steege2
Hi since the last DSM update i get a tx time-out everytime i run a scene. I have uploaded the latest firmware and i am on Domoticz Version: 3.7212. Anyone have the same issue ? or know how to solve it ? Before the update it was running fine.