How to update RFLink firmware

433Mhz opensource Receiver & Transmitter.

Moderator: Stuntteam

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

How to update RFLink firmware

Post by Stuntteam » Saturday 12 September 2015 9:24

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: 112
Joined: Monday 12 August 2013 11:15
Target OS: Raspberry Pi
Domoticz version: 3.x
Location: Finland
Contact:

Re: How to update RFLink firmware

Post by oopee » Sunday 13 September 2015 11:10

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.

siklosi
Posts: 34
Joined: Sunday 06 September 2015 10:50
Target OS: Raspberry Pi
Domoticz version:
Location: Belgrade
Contact:

Re: How to update RFLink firmware

Post by siklosi » Monday 14 September 2015 13:43

Or you could install avrdude (sudo apt-get install avrdude), copy hex file to RPi and run:

Code: Select all

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

oopee
Posts: 112
Joined: Monday 12 August 2013 11:15
Target OS: Raspberry Pi
Domoticz version: 3.x
Location: Finland
Contact:

Re: How to update RFLink firmware

Post by oopee » Monday 14 September 2015 14:12

And remember to replace /dev/ttyUSB0 with whatever port RFLink is using in your system ;)

User avatar
remb0
Posts: 836
Joined: Thursday 11 July 2013 22:21
Target OS: Raspberry Pi
Domoticz version: Beta
Location: The Netherlands
Contact:

Re: How to update RFLink firmware

Post by remb0 » Wednesday 16 September 2015 12:32

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: 415
Joined: Wednesday 06 May 2015 16:39
Target OS: Raspberry Pi
Domoticz version:
Contact:

Re: How to update RFLink firmware

Post by Stuntteam » Wednesday 16 September 2015 13:44

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: 28
Joined: Tuesday 28 October 2014 23:26
Target OS: Raspberry Pi
Domoticz version:
Contact:

Re: How to update RFLink firmware

Post by h143 » Sunday 20 September 2015 14:00

can you explane how you do that?

Dlanor
Posts: 88
Joined: Sunday 22 March 2015 17:18
Target OS: Raspberry Pi
Domoticz version:
Contact:

Re: How to update RFLink firmware

Post by Dlanor » Monday 28 September 2015 19:59

Stuntteam wrote:This topic describes an easy method to update the firmware of the RFLink.
Thats all..
It works perfectly. Thanks! :D
Status: DomoNoob
Raspberry Pi (2x) | RFXCOM RFXtrx433E USB | RFlink | Landis+Gyr ZME120ACd | USB-IR-Schreib-Lesekopf | Alecto WS1500 | Touchscreen | Yooda Sunscreen | Google Nest | Piface| kWh meter| DS18B20 | BMP180

User avatar
Derik
Posts: 1968
Joined: Friday 18 October 2013 23:33
Target OS: Raspberry Pi
Domoticz version: BETA
Location: Arnhem/Nijmegen Nederland
Contact:

Re: How to update RFLink firmware

Post by Derik » Saturday 24 October 2015 10:15

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 10:45
Target OS: NAS (Synology & others)
Domoticz version:
Contact:

Re: How to update RFLink firmware

Post by L2v2P » Friday 01 January 2016 17:10

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: 836
Joined: Thursday 11 July 2013 22:21
Target OS: Raspberry Pi
Domoticz version: Beta
Location: The Netherlands
Contact:

Re: How to update RFLink firmware

Post by remb0 » Saturday 02 January 2016 11:58

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: 415
Joined: Wednesday 06 May 2015 16:39
Target OS: Raspberry Pi
Domoticz version:
Contact:

Re: How to update RFLink firmware

Post by Stuntteam » Saturday 02 January 2016 13:54

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: 140
Joined: Sunday 11 October 2015 8:50
Target OS: Raspberry Pi
Domoticz version: V3.6224
Location: Holland
Contact:

Re: How to update RFLink firmware

Post by NietGiftig » Saturday 02 January 2016 15:02

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: 4
Joined: Wednesday 06 January 2016 12:40
Target OS: Raspberry Pi
Domoticz version:
Contact:

Re: How to update RFLink firmware

Post by Maarten112 » Wednesday 06 January 2016 13:06

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: 31
Joined: Monday 14 December 2015 23:16
Target OS: Raspberry Pi
Domoticz version:
Location: Mierlo
Contact:

Re: How to update RFLink firmware

Post by peerkersezuuker » Wednesday 13 January 2016 21:54

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 19:09
Target OS: NAS (Synology & others)
Domoticz version:
Contact:

Re: How to update RFLink firmware

Post by rokib » Tuesday 16 February 2016 19:14

hi,
can someone give me the link to latest beta firmware.

User avatar
Derik
Posts: 1968
Joined: Friday 18 October 2013 23:33
Target OS: Raspberry Pi
Domoticz version: BETA
Location: Arnhem/Nijmegen Nederland
Contact:

Re: How to update RFLink firmware

Post by Derik » Tuesday 16 February 2016 23:20

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: 415
Joined: Wednesday 06 May 2015 16:39
Target OS: Raspberry Pi
Domoticz version:
Contact:

Re: How to update RFLink firmware

Post by Stuntteam » Wednesday 17 February 2016 9:55

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: 548
Joined: Tuesday 13 January 2015 15:36
Target OS: NAS (Synology & others)
Domoticz version: Beta
Location: Oslo,Norway
Contact:

Re: How to update RFLink firmware

Post by jumbotroll » Thursday 25 February 2016 21:45

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 :-)
Regards
Jumbotroll
http://www.jadahl.com

Larsja
Posts: 38
Joined: Monday 25 January 2016 22:36
Target OS: Raspberry Pi
Domoticz version: V2.3530
Location: Bergen, Norway
Contact:

Re: How to update RFLink firmware

Post by Larsja » Tuesday 15 March 2016 21:52

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 :)

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest