RFLink Gateway via Synology with Domoticz
Moderators: leecollings, Stuntteam
-
- Posts: 13
- Joined: Sunday 16 August 2015 20:05
- Target OS: NAS (Synology & others)
- Domoticz version:
- Contact:
Re: RFLink Gateway via Synology with Domoticz
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
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
- jumbotroll
- Posts: 793
- Joined: Tuesday 13 January 2015 14:36
- Target OS: NAS (Synology & others)
- Domoticz version: Beta
- Location: Oslo,Norway
- Contact:
Re: RFLink Gateway via Synology with Domoticz
Niceidonl 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

My cheap-ass Arduino working also very well and has been 100% stable on my Synology.
This is my Kit:
If you like the work I do for synology and domoticz, I appreciate a donation.
https://paypal.me/Jumbotroll
Regards
Jumbotroll
http://www.jadahl.com
https://paypal.me/Jumbotroll
Regards
Jumbotroll
http://www.jadahl.com
- Stuntteam
- Posts: 399
- Joined: Wednesday 06 May 2015 16:39
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: RFLink Gateway via Synology with Domoticz
and support for more and more protocols on its way 

-=# RFLink Gateway Development Team #=-
Introduction: http://www.nemcon.nl/blog2/
Generic RFLink Support forum: http://www.esp8266.nu/forum/viewforum.php?f=8
Introduction: http://www.nemcon.nl/blog2/
Generic RFLink Support forum: http://www.esp8266.nu/forum/viewforum.php?f=8
- jumbotroll
- Posts: 793
- Joined: Tuesday 13 January 2015 14:36
- Target OS: NAS (Synology & others)
- Domoticz version: Beta
- Location: Oslo,Norway
- Contact:
Re: RFLink Gateway via Synology with Domoticz
Great!Stuntteam wrote:and support for more and more protocols on its way
Nice work!
If you like the work I do for synology and domoticz, I appreciate a donation.
https://paypal.me/Jumbotroll
Regards
Jumbotroll
http://www.jadahl.com
https://paypal.me/Jumbotroll
Regards
Jumbotroll
http://www.jadahl.com
-
- Posts: 1
- Joined: Monday 06 April 2015 14:52
- Target OS: NAS (Synology & others)
- Domoticz version:
- Contact:
Re: RFLink Gateway via Synology with Domoticz
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.
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.
-
- Posts: 19
- Joined: Sunday 29 November 2015 9:45
- Target OS: NAS (Synology & others)
- Domoticz version:
- Contact:
Re: RFLink Gateway via Synology with Domoticz
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:
After 15 minutes or so a KaKu device appeared. When I try to send a command to it I get:
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.
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!...
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!...
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.
-
- Posts: 19
- Joined: Sunday 29 November 2015 9:45
- Target OS: NAS (Synology & others)
- Domoticz version:
- Contact:
Re: RFLink Gateway via Synology with Domoticz
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?
- jumbotroll
- Posts: 793
- Joined: Tuesday 13 January 2015 14:36
- Target OS: NAS (Synology & others)
- Domoticz version: Beta
- Location: Oslo,Norway
- Contact:
Re: RFLink Gateway via Synology with Domoticz
Maybe reset problem?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?
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
If you like the work I do for synology and domoticz, I appreciate a donation.
https://paypal.me/Jumbotroll
Regards
Jumbotroll
http://www.jadahl.com
https://paypal.me/Jumbotroll
Regards
Jumbotroll
http://www.jadahl.com
-
- Posts: 19
- Joined: Sunday 29 November 2015 9:45
- Target OS: NAS (Synology & others)
- Domoticz version:
- Contact:
Re: RFLink Gateway via Synology with Domoticz
Just to be clear, since I have a genuine Mega, I need a capacitor?jumbotroll wrote:Maybe reset problem?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?
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
- Stuntteam
- Posts: 399
- Joined: Wednesday 06 May 2015 16:39
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: RFLink Gateway via Synology with Domoticz
Yes..
-=# RFLink Gateway Development Team #=-
Introduction: http://www.nemcon.nl/blog2/
Generic RFLink Support forum: http://www.esp8266.nu/forum/viewforum.php?f=8
Introduction: http://www.nemcon.nl/blog2/
Generic RFLink Support forum: http://www.esp8266.nu/forum/viewforum.php?f=8
- jumbotroll
- Posts: 793
- Joined: Tuesday 13 January 2015 14:36
- Target OS: NAS (Synology & others)
- Domoticz version: Beta
- Location: Oslo,Norway
- Contact:
Re: RFLink Gateway via Synology with Domoticz
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
Yes!
or you can remove the solder jumper on the print after programming.
Regards
Jumbotroll
If you like the work I do for synology and domoticz, I appreciate a donation.
https://paypal.me/Jumbotroll
Regards
Jumbotroll
http://www.jadahl.com
https://paypal.me/Jumbotroll
Regards
Jumbotroll
http://www.jadahl.com
-
- Posts: 19
- Joined: Sunday 29 November 2015 9:45
- Target OS: NAS (Synology & others)
- Domoticz version:
- Contact:
Re: RFLink Gateway via Synology with Domoticz
The capacitor did the trick!
-
- Posts: 3
- Joined: Sunday 31 January 2016 14:56
- Target OS: Windows
- Domoticz version:
- Contact:
Re: RFLink Gateway via Synology with Domoticz
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?
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?
Last edited by Groeneman on Sunday 31 January 2016 20:54, edited 1 time in total.
-
- Posts: 19
- Joined: Sunday 29 November 2015 9:45
- Target OS: NAS (Synology & others)
- Domoticz version:
- Contact:
Re: RFLink Gateway via Synology with Domoticz
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).
-
- Posts: 3
- Joined: Wednesday 13 January 2016 0:14
- Target OS: NAS (Synology & others)
- Domoticz version:
- Contact:
Re: RFLink Gateway via Synology with Domoticz
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.
Who is online
Users browsing this forum: No registered users and 1 guest