How to update RFLink firmware

433Mhz opensource Receiver & Transmitter.

Moderators: leecollings, Stuntteam

User avatar
Stuntteam
Posts: 399
Joined: Wednesday 06 May 2015 16:39
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

How to update RFLink firmware

Post by Stuntteam »

This topic describes an easy method to update the firmware of the RFLink.

Using the RFLink Loader tool:
- Download the latest firmware package from http://sourceforge.net/projects/rflink/ ... urce=files
- Connect the Arduino Mega to a USB port.
- Unpack the zip file to a directory
- Launch the RFLInkLoader.exe program
- Select the file you want to program (which will be the included "rflink.cpp.hex" file)
- Select the serial (USB) port to which the Arduino is connected.
- Hit the "Program" button and wait for the process to finish.
Thats all..

We will try to add firmware updating functionality to Domoticz..
-=# RFLink Gateway Development Team #=-
Introduction: http://www.nemcon.nl/blog2/
Generic RFLink Support forum: http://www.esp8266.nu/forum/viewforum.php?f=8
oopee
Posts: 40
Joined: Monday 12 August 2013 11:15
Target OS: Raspberry Pi / ODroid
Domoticz version: 3.x
Location: Finland
Contact:

Re: How to update RFLink firmware

Post by oopee »

Remember that you have to install Arduino usb drivers to get Windows to recognize Arduino board and assign COM port. After that you can use the RFLinkLoader. Drivers are part of the Arduino software package https://www.arduino.cc/en/Main/Software.
oopee
Posts: 40
Joined: Monday 12 August 2013 11:15
Target OS: Raspberry Pi / ODroid
Domoticz version: 3.x
Location: Finland
Contact:

Re: How to update RFLink firmware

Post by oopee »

And remember to replace /dev/ttyUSB0 with whatever port RFLink is using in your system ;)
User avatar
remb0
Posts: 499
Joined: Thursday 11 July 2013 22:21
Target OS: Raspberry Pi / ODroid
Domoticz version: Beta
Location: The Netherlands
Contact:

Re: How to update RFLink firmware

Post by remb0 »

so it's possible to make an sh script.
and make script executable
then a virtual switch which fire that script.

nice ;)
User avatar
Stuntteam
Posts: 399
Joined: Wednesday 06 May 2015 16:39
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: How to update RFLink firmware

Post by Stuntteam »

Yes, my rflink loader tool is also using avrdude..
-=# RFLink Gateway Development Team #=-
Introduction: http://www.nemcon.nl/blog2/
Generic RFLink Support forum: http://www.esp8266.nu/forum/viewforum.php?f=8
h143
Posts: 27
Joined: Tuesday 28 October 2014 22:26
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: How to update RFLink firmware

Post by h143 »

can you explane how you do that?
Dlanor
Posts: 67
Joined: Sunday 22 March 2015 16:18
Target OS: NAS (Synology & others)
Domoticz version:
Contact:

Re: How to update RFLink firmware

Post by Dlanor »

Stuntteam wrote:This topic describes an easy method to update the firmware of the RFLink.
Thats all..
It works perfectly. Thanks! :D
Domoticz| Zigbee | SONOFF
Derik
Posts: 1601
Joined: Friday 18 October 2013 23:33
Target OS: Raspberry Pi / ODroid
Domoticz version: BETA
Location: Arnhem/Nijmegen Nederland
Contact:

Re: How to update RFLink firmware

Post by Derik »

Great hardware the RFlink

Perhaps a option to upgrade the RFlink like the RFXcom..
Xu4: Beta Extreme antenna RFXcomE,WU Fi Ping ip P1 Gen5 PVOutput Harmony HUE SolarmanPv OTG Winddelen Alive ESP Buienradar MySensors WOL Winddelen counting RPi: Beta SMAspot RFlinkTest Domoticz ...Different backups
L2v2P
Posts: 19
Joined: Sunday 29 November 2015 9:45
Target OS: NAS (Synology & others)
Domoticz version:
Contact:

Re: How to update RFLink firmware

Post by L2v2P »

On OS X you can do it as follows:
  1. Download the Arduino App from https://www.arduino.cc and install it.
  2. Open a terminal session.
  3. From the directory where the Arduino App is located run the commands below whereby replacing /dev/cu.usbmodem411 and RFLink_v1-2/RFLink.cpp.hex with your own values.

    Code: Select all

    Arduino.app/Contents/Java/hardware/tools/avr/bin/avrdude -v -p atmega2560 -c stk500 -P /dev/cu.usbmodem411 -b 115200 -D -U flash:w:RFLink_v1-2/RFLink.cpp.hex:i -C Arduino.app/Contents/Java/hardware/tools/avr/etc/avrdude.conf
User avatar
remb0
Posts: 499
Joined: Thursday 11 July 2013 22:21
Target OS: Raspberry Pi / ODroid
Domoticz version: Beta
Location: The Netherlands
Contact:

Re: How to update RFLink firmware

Post by remb0 »

i got now:
avrdude -v -p atmega2560 -c stk500 -P /dev/ACM0 -b 115200 -D -U flash:w:/home/pi/RFLink.cpp.hex:i

Code: Select all

 Programmer Type : STK500V2
         Description     : Atmel STK500
         Programmer Model: Unknown
avrdude: stk500v2_ReceiveMessage(): timeout
avrdude: stk500v2_ReceiveMessage(): timeout
avrdude: stk500v2_ReceiveMessage(): timeout
avrdude: stk500v2_ReceiveMessage(): timeout
avrdude: stk500v2_ReceiveMessage(): timeout
avrdude: stk500v2_ReceiveMessage(): timeout
avrdude: stk500v2_ReceiveMessage(): timeout
avrdude: stk500v2_getsync(): timeout communicating with programmer

User avatar
Stuntteam
Posts: 399
Joined: Wednesday 06 May 2015 16:39
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: How to update RFLink firmware

Post by Stuntteam »

Why the -D ?
-=# RFLink Gateway Development Team #=-
Introduction: http://www.nemcon.nl/blog2/
Generic RFLink Support forum: http://www.esp8266.nu/forum/viewforum.php?f=8
NietGiftig
Posts: 121
Joined: Sunday 11 October 2015 8:50
Target OS: Raspberry Pi / ODroid
Domoticz version: V3.6224
Location: Holland
Contact:

Re: How to update RFLink firmware

Post by NietGiftig »

Do you have to stop Domoticz that is using Rflink?
RPI-2 + SSD / ESPEasy Sensors & Switches / Sonoff / RFLink / Action Switches / TP-Link switch / Node-Red / Reacticz
Maarten112
Posts: 6
Joined: Wednesday 06 January 2016 11:40
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: How to update RFLink firmware

Post by Maarten112 »

Hi Guys,

I'm a new Domoticz and RFLink user since a week now....Thanks for all the great work on both the RFLink hardware and Software. So far it's working great, despite the fact that i'm living in a heavily 433MHz crowded location.

Firmware updating is plain simple for everyone that has ever worked with arduino:)
peerkersezuuker
Posts: 70
Joined: Monday 14 December 2015 22:16
Target OS: Raspberry Pi / ODroid
Domoticz version:
Location: Mierlo
Contact:

Re: How to update RFLink firmware

Post by peerkersezuuker »

Hi,
Same message as remb0.
So updated with my windows machine, would be nice indeed to have an working updater for linux/Pi
rokib
Posts: 1
Joined: Tuesday 16 February 2016 18:09
Target OS: NAS (Synology & others)
Domoticz version:
Contact:

Re: How to update RFLink firmware

Post by rokib »

hi,
can someone give me the link to latest beta firmware.
Derik
Posts: 1601
Joined: Friday 18 October 2013 23:33
Target OS: Raspberry Pi / ODroid
Domoticz version: BETA
Location: Arnhem/Nijmegen Nederland
Contact:

Re: How to update RFLink firmware

Post by Derik »

rokib wrote:hi,
can someone give me the link to latest beta firmware.
Perhaps...
https://sourceforge.net/projects/rflink ... =directory
Or:
http://www.nemcon.nl/blog2/2015/07/bb ;) ;) ;) ;)

Or:
https://www.google.nl/?gws_rd=ssl :lol: :lol: :lol: :lol:
Xu4: Beta Extreme antenna RFXcomE,WU Fi Ping ip P1 Gen5 PVOutput Harmony HUE SolarmanPv OTG Winddelen Alive ESP Buienradar MySensors WOL Winddelen counting RPi: Beta SMAspot RFlinkTest Domoticz ...Different backups
User avatar
Stuntteam
Posts: 399
Joined: Wednesday 06 May 2015 16:39
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: How to update RFLink firmware

Post by Stuntteam »

He probably means Domoticz beta.. For Pi you can enable the betas under settings.
-=# 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: How to update RFLink firmware

Post by jumbotroll »

How to update RFLink on Synology NAS:
1. Download and install avrdude.spk for your synology from my server: http://www.jadahl.com/synology/
2. Copy the newest RFLink.cpp.hex file to a folder on your NAS, for example /volume1/web
3. Go to Hardware settings in Domoticz and temporary disable (not delete) RFLink.
4. Telnet or ssh your NAS and type:
avrdude -v -p atmega2560 -c stk500 -P /dev/ttyUSB1 -b 115200 -D -U flash:w:/volume1/web/RFLink.cpp.hex:i
Remember to edit correct directory and USB port you using!

5. Go to Hardware settings in Domoticz and enable RFLink.
The end :-)
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
Larsja
Posts: 37
Joined: Monday 25 January 2016 21:36
Target OS: Raspberry Pi / ODroid
Domoticz version: V2.3530
Location: Bergen, Norway
Contact:

Re: How to update RFLink firmware

Post by Larsja »

remb0 wrote:i got now:
avrdude -v -p atmega2560 -c stk500 -P /dev/ACM0 -b 115200 -D -U flash:w:/home/pi/RFLink.cpp.hex:i

Code: Select all

 Programmer Type : STK500V2
         Description     : Atmel STK500
         Programmer Model: Unknown
avrdude: stk500v2_ReceiveMessage(): timeout
avrdude: stk500v2_ReceiveMessage(): timeout
avrdude: stk500v2_ReceiveMessage(): timeout
avrdude: stk500v2_ReceiveMessage(): timeout
avrdude: stk500v2_ReceiveMessage(): timeout
avrdude: stk500v2_ReceiveMessage(): timeout
avrdude: stk500v2_ReceiveMessage(): timeout
avrdude: stk500v2_getsync(): timeout communicating with programmer

Hi, did you find out about this remb0? Im getting the same problem.

My RFLink is just 2 meters away, but in near future, im gonna put it in a cabinet, and thus it would be sweet to update it via RPi and skip the usb to windows machine :)
User avatar
remb0
Posts: 499
Joined: Thursday 11 July 2013 22:21
Target OS: Raspberry Pi / ODroid
Domoticz version: Beta
Location: The Netherlands
Contact:

Re: How to update RFLink firmware

Post by remb0 »

no solution found and tested. I used USB that time. so stil trying (only it's not here but @ my brothers house.
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests