RFLink Gateway via Synology with Domoticz

433Mhz opensource Receiver & Transmitter.

Moderators: leecollings, Stuntteam

idonl
Posts: 13
Joined: Sunday 16 August 2015 20:05
Target OS: NAS (Synology & others)
Domoticz version:
Contact:

Re: RFLink Gateway via Synology with Domoticz

Post 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
User avatar
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

Post 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
14.jpg (175.55 KiB) Viewed 4411 times
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
User avatar
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

Post by Stuntteam »

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
User avatar
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

Post by jumbotroll »

Stuntteam wrote:and support for more and more protocols on its way :)
Great!
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
gkroone
Posts: 1
Joined: Monday 06 April 2015 14:52
Target OS: NAS (Synology & others)
Domoticz version:
Contact:

Re: RFLink Gateway via Synology with Domoticz

Post 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.
L2v2P
Posts: 19
Joined: Sunday 29 November 2015 9:45
Target OS: NAS (Synology & others)
Domoticz version:
Contact:

Re: RFLink Gateway via Synology with Domoticz

Post 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.
L2v2P
Posts: 19
Joined: Sunday 29 November 2015 9:45
Target OS: NAS (Synology & others)
Domoticz version:
Contact:

Re: RFLink Gateway via Synology with Domoticz

Post 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?
User avatar
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

Post 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
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
L2v2P
Posts: 19
Joined: Sunday 29 November 2015 9:45
Target OS: NAS (Synology & others)
Domoticz version:
Contact:

Re: RFLink Gateway via Synology with Domoticz

Post 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?
User avatar
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

Post by Stuntteam »

Yes..
-=# RFLink Gateway Development Team #=-
Introduction: http://www.nemcon.nl/blog2/
Generic RFLink Support forum: http://www.esp8266.nu/forum/viewforum.php?f=8
User avatar
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

Post 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
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
L2v2P
Posts: 19
Joined: Sunday 29 November 2015 9:45
Target OS: NAS (Synology & others)
Domoticz version:
Contact:

Re: RFLink Gateway via Synology with Domoticz

Post by L2v2P »

The capacitor did the trick!
Groeneman
Posts: 3
Joined: Sunday 31 January 2016 14:56
Target OS: Windows
Domoticz version:
Contact:

Re: RFLink Gateway via Synology with Domoticz

Post 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?
Last edited by Groeneman on Sunday 31 January 2016 20:54, edited 1 time in total.
L2v2P
Posts: 19
Joined: Sunday 29 November 2015 9:45
Target OS: NAS (Synology & others)
Domoticz version:
Contact:

Re: RFLink Gateway via Synology with Domoticz

Post 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).
steege2
Posts: 3
Joined: Wednesday 13 January 2016 0:14
Target OS: NAS (Synology & others)
Domoticz version:
Contact:

Re: RFLink Gateway via Synology with Domoticz

Post 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.
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest