Page 4 of 4
Re: How to update RFLink firmware
Posted: Sunday 30 October 2016 11:41
by marcels
Thanks, was already trying to update the firmware using the CL command mentioned in the 3rd post.
This working flawlessly!
Re: How to update RFLink firmware
Posted: Wednesday 04 January 2017 12:26
by blauwebuis
If you own a Mac, then installing is a bit of a search at the moment. Is it possible to add the explanation on how to do it to this topic start, or even add it to the RFLink website?
On OS X you can do it as follows:
Download the Arduino App from
https://www.arduino.cc and install it.
Open a terminal session.
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:
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
Here's some text that may be useful:
--
How to flash RFLink to your Arduino Mega if you have a mac
1.
If you have a cheap Arduino clone from China with the CH340 chip, you will also need the new signed drivers for Mac OS. The new Mac OS Sierra is a bit more difficult about what drivers it allows to be installed. Download the PKG file here, open it, and follow the installation instructions.
https://github.com/adrianmihalko/ch340g ... s-x-driver
2.
Download the firmware zip form the RFLink website. Unpack it, and look for the hex file that is inside it. Then copy that to the exact same directory as your Arduino app. My advice: (temporarily) place both in a folder in your downloads directory. Navigate to that directory via the terminal app. If you don't know how to do this, look it up. (or just open Terminal and type "cd Downloads/name-of-the-folder-you-just-created")
3.
Run this form the folder where the Arduino app is also located. In the command below (which should all be typed on a single line), you may need to change the "RFLink.cpp.hex" filename to the name of the file that you have. You may also need to change the "/dev/cu.wchusbserial1421" bit to whatever the Arduino app shows you as the USB serial port under its tools menu.
Arduino.app/Contents/Java/hardware/tools/avr/bin/avrdude -v -p atmega2560 -c stk500 -P /dev/cu.wchusbserial1421 -b 115200 -D -U flash:w:RFLink.cpp.hex:i -C Arduino.app/Contents/Java/hardware/tools/avr/etc/avrdude.conf
4.
You are done. You can now move the Arduino app to your apps folder, or delete it, whatever you want. You also don't need the hex file anymore.
--
It would also be cool if Domoticz could flash an Arduino for the first time, besides being able to update it.
Re: How to update RFLink firmware
Posted: Monday 30 January 2017 22:38
by tparvais
Hello
I just receive my RFLINK kit. I connect Arduino Mega to my Win10 64b (last arduino IDE installed).
COM port is 6, via USB. I didn't use external power supply (should I) ? RFLink board not connected
I launch RFLinkLoader.exe
The autoscan does not detect that Arduino is on com6. I do it manually. I select D:\temp\rflink\RFLink.cpp.hex and I press Upload.
Error message: it cannot detect RFLink gateway.
By using logging window, I don't have much more info: it's like there is nothing behind COM6. (in device mgr, I see correctly COM6 Arduino MEGA)
I tried on 2 different PC's, same behavior
Any idea ?
Re: How to update RFLink firmware
Posted: Wednesday 15 February 2017 11:08
by Ewaldharmsen
I have more or less the same problem as tparvais
I have an UDOO QUAD, which has an Arduino DUE onboard.
I have a working connection to it via COM3 (at least I can upload sketches to it.).
Before I buy the RFLINK I want to make sure that it is working, so I connected the FS1000A transmitter and it receiver to the device.
I connected as on
http://www.nemcon.nl/blog2/wiring
So:
device arduino DUE
Transmitter
Ground Ground
VCC Pin 15
Data Pin 14
Receiver
Ground Ground
VCC 5V
Data Pin 19
However when I open up the tool it sees the COM3 port, bu when I hit the upload butto the program stops responding.
When I hit the "Serial port logging" I get the "Error message: it cannot detect RFLink gateway." message.
ANyone can help?
Re: How to update RFLink firmware
Posted: Wednesday 15 February 2017 11:15
by Stuntteam
RFLink needs an Arduino Mega, available for as low as 5 euros..
Re: How to update RFLink firmware
Posted: Tuesday 21 February 2017 15:16
by Ewaldharmsen
ah ok thanks
Re: How to update RFLink firmware
Posted: Friday 27 October 2017 21:29
by HFman
I wrote next small script :
Code: Select all
#!/bin/bash
clear
echo "RFlink update script"
cd
mkdir RFlink
cd RFlink
mkdir RFlink48
cd RFlink48
wget -O RFlink48.zip "https://drive.google.com/uc?export=download&id=0BwEYW5Q6bg_ZLWFJUkY4bDZacms"
unzip \*.zip
service domoticz stop
avrdude -v -p atmega2560 -c stk500 -P /dev/ttyACM0 -b 115200 -D -U flash:w:/home/pi/RFlink/RFlink48/RFLink.cpp.hex:i
service domoticz start
works for me..
Re: How to update RFLink firmware
Posted: Friday 27 October 2017 23:50
by freijn
WhaAAAA LOVE your script!! Many thanks !
Frank
Re: How to update RFLink firmware
Posted: Wednesday 01 November 2017 21:57
by To0wnn
Where can i find avrdude.spk for synology?
Re: How to update RFLink firmware
Posted: Thursday 02 November 2017 18:30
by jumbotroll
To0wnn wrote: ↑Wednesday 01 November 2017 21:57
Where can i find avrdude.spk for synology?
Try here
http://www.jadahl.com/avrdude/
Re: How to update RFLink firmware
Posted: Friday 10 November 2017 11:22
by To0wnn
Re: How to update RFLink firmware
Posted: Friday 21 June 2019 14:30
by FearNaBoinne
Vey nice! Now to find a way to program it over the ESP8266...

Re: How to update RFLink firmware
Posted: Saturday 09 April 2022 13:59
by migila