Wifi RFLink

433Mhz opensource Receiver & Transmitter.

Moderators: leecollings, Stuntteam

max_g
Posts: 11
Joined: Friday 11 April 2014 15:45
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Wifi RFLink

Post by max_g »

Bladerer wrote:Although mine worked flawlessly for a couple of weeks over WiFi, iT all of a sudden started having connection issues. This does not seem to be related to the mega but to the ESP and the ESPEasy firmware, I started experiencing similar issues as reported in this thread: https://github.com/esp8266/Arduino/issues/2330

I have not manager to get these issues resolved, and zo my home automation System became completely unreliable. I finally disabled The ESP on the board and linked the RFLink to my PI via USB and all problems were solved.
I'm not currently having the same issue yet but wonder if the new ESPeasy 2.0 firmware maybe helpful in any resolution?

In case of the issue occurring on my platform did you have to change any of the switch or dip settings on the wemos rflink in order to re-enable the USB connection?

Sent from my Pixel 2 XL using Tapatalk

woody4165
Posts: 476
Joined: Monday 14 March 2016 13:55
Target OS: Linux
Domoticz version: beta
Location: Rome, Italy
Contact:

Re: Wifi RFLink

Post by woody4165 »

Bladerer wrote: Tuesday 16 January 2018 19:53 Hi Guys,

Finally my parts arrived in various shipments in the last couple of days. I managed to flash the Robotdyn Mege + WiFi.

Step 1 Load the ESPEasy R120 release: I set the dip switch 5, 6, 7 to ON. The rest of the switches to OFF. Loaded to flash tool on my Windows PC, selected the appropriate COM port, set the version to 120 and the flash version size to 1024. Pushed the “Mode” button on the Mega an successfully flashed ESPEasy.

Step 2 flash RFLink R48 by setting dip switches 3 and 4 to ON and all the rest to OFF. Started the RFLink flash tool and selected the correct firmware, COM port and uploaded the firmware.

Step 3 Configure the ESPEasy: set dip switches 1 and 2 to ON and all the rest to OFF. Searched for the ESP_0 WiFi network and linked the module to the correct WiFi network. Assigned a fixed network address and under devices added the serial server as described in this thread on page 2.


After that I wired up the receiver and transmitter. Powered it up and added the Ethernet RFLink gateway to Domoticz. All done.

It took me some more time since it was my first Android experience but all and all it worked within the hour. Thanks all for the help.
Hi @Bladerer

just trying to flash the espeasy 120 on the wemos atmega esp8266 board bought on Ali

I have 5-6-7 dipswitch to ON , all others to OFF
I have NOT connected the external power supply, but just the microsub cable to the Windows PC with the esptool.exe and chose the COM port, 1024 as dimension and 120 as version, but I get errors

Image

Should I keep the Mode button pressed on the board (the small black button), or just press before flashing?
The other switch shoukd be RXD0/TXD0 or RXD3/TXD3 ?

Any suggestion?

Thanks
Cubietruck - Linux cubietruck 4.13.16 (Debian GNU/Linux 8 (jessie)) + Domoticz + RFLink, Xiaomi Gateway, Owl USB, Yeelight Color and B/W, ESP8266, Broadlink RM2, Netatmo Thermostat
Bladerer
Posts: 21
Joined: Tuesday 12 December 2017 9:07
Target OS: Raspberry Pi / ODroid
Domoticz version: 3.8153
Location: Rotterdam
Contact:

Re: Wifi RFLink

Post by Bladerer »

I can’t remember, I think I held The mode button all The time wegen I flashed The ESPEasy firmware. The error you have is not familiar to me, sorry. Anyone else perhaps?
woody4165
Posts: 476
Joined: Monday 14 March 2016 13:55
Target OS: Linux
Domoticz version: beta
Location: Rome, Italy
Contact:

Re: Wifi RFLink

Post by woody4165 »

It was my fault.
The CH340 driver was not installed properly, I had RASP as driver.
Removed and installed CH340 driver and all it's working fine in 5 minutes...
Thanks!!
Cubietruck - Linux cubietruck 4.13.16 (Debian GNU/Linux 8 (jessie)) + Domoticz + RFLink, Xiaomi Gateway, Owl USB, Yeelight Color and B/W, ESP8266, Broadlink RM2, Netatmo Thermostat
Mazzokun
Posts: 89
Joined: Thursday 28 April 2016 23:55
Target OS: Raspberry Pi / ODroid
Domoticz version: Beta
Location: Milan, Italy
Contact:

Re: Wifi RFLink

Post by Mazzokun »

MaikelK wrote: Monday 15 May 2017 19:38 So,

I did some searching etc. and wired up my ESP-01 to the RFLink.
I have set everything up with ESPeasy and everything is working.
I do have a small remark to make on the wiring schedule below:
--The yellow line on the MEGA board should be connected to the TX0-->1 connection(as it is in the picture it cant because it's occupied by the RFLink)
--The blue line on the MEGA board should be connected to the RX0<--0 connection instead of the one in the image(as it is in the picture it cant because it's occupied by the RFLink)
--Be sure to connect the red wire to the 3.3 volt output of the Arduino Mega(look on the board)
--Connect the following pins to 3.3 volt, VCC, RST, CH_PD and GPIO0. This should ensure that the ESP-01 boots in the correct mode.

The resistors ensure that the 5 volt TX0-->1 output of the Arduino MEGA is stept down to 3.3 volt where the RX is made for.
Image

ESP-01 pin description
Image

If have setup ESPeasy with the following Controller settings:
Protocol: Domoticz HTTP
Locate controller: Use IP Address
Controller IP: your domoticz IP
Controller port: your domoticz Port
Controller user: empty/nothing
Controller Password: empty/nothing
Enabled: Box ticked

If have setup ESPeasy with the following Device settings:
Device: Serial Server
Name: Choose one
TCP Port: 9999
Baudrate: 57600
Data bits: 8
Parity: No parity
Stop bits: 1
Reset target after boot; Empty/nothing
RX Recieve timeout(msec): 0
Event processing: None
Enabled: Box ticked.

In Domoticz i already had the RFLink Gateway with USB and like someone wrote i just changed it to RFLink Gateway with LAN interface, this saves us from re-adding all the devices we already had.
Datatime out i have put to 1 minute, i have read that it would be better(dont know why anymore)
Remote address: IP of you ESP-01 module
Port: the TCP Port that you set under Device settings of the ESPeasy.

Otherwise you can just add it instead of changing it.
Hi! Sorry for this question, but I'm a noob..
Why you didn't put a resistance between blue RX line?
If I measure the Arduino rx0 gives me 4,9V that damages the esp8266..
Or I'm wrong?
max_g
Posts: 11
Joined: Friday 11 April 2014 15:45
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Wifi RFLink

Post by max_g »

the reason MaikelK used resisters as a voltage divider is to adjust levels on data sent to the ESPeasy (3.3v) by the auduino (5v)
ithe RX signal you measured may be held high by defauly but as its an input to the aurduino not an output it should not be so dangerous

Either way the safest option is to use a level converter circuit as people have discussed later in the thread or if you dont already have the required componants it may be worth looking at the combined wemos atmega esp826 as suggested by Bladerer
max_g
Posts: 11
Joined: Friday 11 April 2014 15:45
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Wifi RFLink

Post by max_g »

If anyone else tried this and had instability with the WIFI settings its worth considering the following.

1) ESPeasy firmware is evolving rapidly as they home in on a significant new release milestone
the new "mega" version 2.0/2.1 has a lot of wifi code and keepalive fixes in and the 25th June release works well on the Wemos+ESP+ATmega


2) The power supply for thease modules are quite important and although a DVM might show a clean 5V on the right rails a small scope can show fluctuations and noise that could lead to reboots or lockups. a decent 2Amp SMPS psu from a router or similar generally works well.


3) RFlink is currently on R48 but their is a R49 test version around that is likely to be included within the next major release "STuntteam" are working on this includes quite a few fixes and new devices covered as it seems although the releases have slowed down in frequency their is a lot of activity ongoing.
kniazio
Posts: 200
Joined: Thursday 06 October 2016 8:14
Target OS: Raspberry Pi / ODroid
Domoticz version: 3.7243
Contact:

Re: Wifi RFLink

Post by kniazio »

I have a problem with running RFLink
The plugin reads my remotes.
receive.jpg
receive.jpg (232.49 KiB) Viewed 3203 times
Adds them to the device list.
device.jpg
device.jpg (146.77 KiB) Viewed 3221 times
Devices added do not work.
send.jpg
send.jpg (108.69 KiB) Viewed 3221 times
max_g
Posts: 11
Joined: Friday 11 April 2014 15:45
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Wifi RFLink

Post by max_g »

Hi kniazio

what hardware are you using

Are you using and all in one board like the Wemos or are you using seperate ESB and RFlink and converting the voltage levels independently.

Does it work if you are directly connected to the RFlink/atmega via usb ( IE as a serial port )

Is it a WifI issue specifically as some devices such as doorbells often have trouble acting bi-directionally but often work fine to only receive one way.
kniazio
Posts: 200
Joined: Thursday 06 October 2016 8:14
Target OS: Raspberry Pi / ODroid
Domoticz version: 3.7243
Contact:

Re: Wifi RFLink

Post by kniazio »

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest