Author Topic: RFXTRX433e to VeraPlus via USB to ethernet  (Read 461 times)

Offline Forzaalfa

  • Full Member
  • ***
  • Posts: 141
  • Karma: +4/-0
RFXTRX433e to VeraPlus via USB to ethernet
« on: May 07, 2018, 01:40:18 am »
I need a "satelite"RFX in the garage, har anyone hooked one to the Vera using ethernet to USB device?
Vera Plus - RFXtrx433e

Offline wilme2

  • Hero Member
  • *****
  • Posts: 1173
  • Karma: +23/-13
Re: RFXTRX433e to VeraPlus via USB to ethernet
« Reply #1 on: May 07, 2018, 02:49:25 pm »
I need a "satelite"RFX in the garage, har anyone hooked one to the Vera using ethernet to USB device?

Should work.  I had an Enocean wireless USB stick connected to my Vera over set of USB over ethernet adapters at one point...
Long Live UI5!  (OK finally made the switch to UI7 in January 2018, and am pretty happy....)

Offline Forzaalfa

  • Full Member
  • ***
  • Posts: 141
  • Karma: +4/-0
Re: RFXTRX433e to VeraPlus via USB to ethernet
« Reply #2 on: May 08, 2018, 02:09:15 am »
Cool!

I see the IP Address field in the serial port configuration, is that all i need to enter (together with the correct port), og do i need "Path" as well?

I'll test it later today and report, but if anyone have a screenshot with working serial port settings, please post them. :)
Vera Plus - RFXtrx433e

Offline wilme2

  • Hero Member
  • *****
  • Posts: 1173
  • Karma: +23/-13
Re: RFXTRX433e to VeraPlus via USB to ethernet
« Reply #3 on: May 09, 2018, 01:01:52 pm »
Cool!

I see the IP Address field in the serial port configuration, is that all i need to enter (together with the correct port), og do i need "Path" as well?

I'll test it later today and report, but if anyone have a screenshot with working serial port settings, please post them. :)

Wait - I thought you were just using an ethernet cable with USB adapters on each end.  So no IP needed - you are just using a dedicated ethernet run to make a realllly long USB cable?
Long Live UI5!  (OK finally made the switch to UI7 in January 2018, and am pretty happy....)

Offline Forzaalfa

  • Full Member
  • ***
  • Posts: 141
  • Karma: +4/-0
Re: RFXTRX433e to VeraPlus via USB to ethernet
« Reply #4 on: May 09, 2018, 05:43:10 pm »
I have a wifi router out there connected to the main router by cable, and a ESP8266 running ESP Link to facilitate IP to Serial bridge. What i need in Vera is to simulate a Serial port that telnets to the ESP and talks serial.
I tested the old IPSerial plugin, and I entered IP and port 23 in the variables, but I can't open the telnet link..

I'm already using this ESP link bridge to control my projector (RS232 to TTL in between ESP and projector), using LUA code to telnet to the ESP and send commands.

I see the "Path" and "IP Address" fields in the serial configuration in vera, anyone know how to use them?
« Last Edit: May 09, 2018, 05:45:16 pm by Forzaalfa »
Vera Plus - RFXtrx433e

Offline Forzaalfa

  • Full Member
  • ***
  • Posts: 141
  • Karma: +4/-0
Re: RFXTRX433e to VeraPlus via USB to ethernet
« Reply #5 on: May 11, 2018, 04:32:59 am »
Can anyone confirm that the IPSerial plugin works in UI7?

Just receieved confirmation from Vera that this functionality is not implemented yet, they just put in the IP field for the plugin to use!

I see in SSH log that its trying to connect to "IP:3487" which is the port of the IPSerial unit, an i can't change that port for some reason..
Vera Plus - RFXtrx433e

Offline Forzaalfa

  • Full Member
  • ***
  • Posts: 141
  • Karma: +4/-0
Re: RFXTRX433e to VeraPlus via USB to ethernet
« Reply #6 on: May 14, 2018, 04:19:00 am »
BUMP: Anyone out there that uses IPSerial successfully? I need to know where the IP, and PORT variables go so the plugin connects using the right parameters.. It seems to me that it uses the 3487 port that its given in serial config, and i can't change it?
Vera Plus - RFXtrx433e

Offline Forzaalfa

  • Full Member
  • ***
  • Posts: 141
  • Karma: +4/-0
Re: RFXTRX433e to VeraPlus via USB to ethernet
« Reply #7 on: June 06, 2018, 01:51:32 am »
Slight update here: The RFXtrx433 is now hooked up to a beagleboard xM running Ser2net, and i discovered by coinsidence that the RFX plugin has some code for connecting to ser2net devices built in. If it's given an IP before it i assigned to a serial port, it will try to connect to the IP instead.

The Port value is hard coded to 10000 though, this would be nice to have as a variable in "Advanced" GUI together with IP..

The problem now is that the plugin complains about bad messages from the IP RFX. Some devices were auto generated, but the data seems somewhat off. Anyone here who has tried this type of connection with the plugin?

I connected to the IP RFX using Domoticz and RFX Manager, and all works perfect there, so the Ser2net and RFX is working.
Vera Plus - RFXtrx433e

Offline tinman

  • Full Member
  • ***
  • Posts: 132
  • Karma: +5/-0
Re: RFXTRX433e to VeraPlus via USB to ethernet
« Reply #8 on: June 06, 2018, 11:14:24 am »
It's possible that a port variable could be added to the plugin.
The problem may be with the protocol setting in the D_RFXtrx.xml file. This is set to raw. According to the wiki, possible values for protocol are cr, crlf, stxetx, or raw. I really don't know if changing this will help. You'd have to make the change to the file and upload it to the Vera and then reboot? Maybe just removing the protocol parameter will help. Are there similar settings in Domoticz?

Offline Forzaalfa

  • Full Member
  • ***
  • Posts: 141
  • Karma: +4/-0
Re: RFXTRX433e to VeraPlus via USB to ethernet
« Reply #9 on: June 07, 2018, 03:22:34 am »
In Domoticz you just set IP and port, i'll see if I can dig into which protocol it's using. ser2net is set up to raw, as per the description i got from Bert:

Code: [Select]
3481:raw:0:/dev/ttyUSB0:38400 8DATABITS NONE 1STOPBIT
RFXManager is also working, so i think it should've worked from vera too?

I did change the hardcoded port to 3081 in D_RFXtrx.xml, so it connected OK.
Vera Plus - RFXtrx433e

Offline Forzaalfa

  • Full Member
  • ***
  • Posts: 141
  • Karma: +4/-0
Re: RFXTRX433e to VeraPlus via USB to ethernet
« Reply #10 on: June 07, 2018, 05:40:51 pm »
Update: Im running openluup on the same beagleboard, and the plugin works fine running there into ALTUI. (I just put 127.0.0.1 as IP).

The plugin is in other words fine, so i'll try again from Vera too.
« Last Edit: June 15, 2018, 01:23:30 am by Forzaalfa »
Vera Plus - RFXtrx433e

Offline Forzaalfa

  • Full Member
  • ***
  • Posts: 141
  • Karma: +4/-0
Re: RFXTRX433e to VeraPlus via USB to ethernet
« Reply #11 on: June 08, 2018, 07:53:08 am »
It works! I guess i have to be a bit more patient. after a while with some errors, all is well.

My compliments to the ppl behind the RFX plugin!  :)
Vera Plus - RFXtrx433e