How to connect to lan-rfxcom with linux

Forum about Rfxcom home automation Domotica devices.

Moderator: b_weijenberg

gb1980
Member
Member
Posts: 52
Joined: Mon Dec 31, 2007 5:56 pm
Location: Netherlands

How to connect to lan-rfxcom with linux

Post by gb1980 »

Hi,

The lan-rfxcom emulates a serial connection over a tcp port.
I asume under linux it's possible to translate back the tcp port
to a virtual serial.

I've tried with: socat PTY,link=/dev/ttyR0,raw TCP4:ipadres:10001
and connect with minicom to ttyR0, but with no luck.

The device works as I've tested it also with the default windows tool.
the tcp port get's open from within linux, but I don't see the data.

Any help would be welcome.
User avatar
Snelvuur
Forum Moderator
Forum Moderator
Posts: 3156
Joined: Fri Apr 06, 2007 11:01 pm
Location: Netherlands
Contact:

How to connect to lan-rfxcom with linux

Post by Snelvuur »

Although there should be other options, i just use the xpl-perl setup. There you can say xpl-rfxcom ip:port at startup, which works fine. But if you want to use it in another way, then you might have to google a bit to get the tty connected to an ip:port. I do think its possible, but since i never had the need before i didn't use this.

// Erik (binkey.nl)
gb1980
Member
Member
Posts: 52
Joined: Mon Dec 31, 2007 5:56 pm
Location: Netherlands

How to connect to lan-rfxcom with linux

Post by gb1980 »

Great! Didn't know this. Now I don't have to use the coverting anymore.
You've saved me a few hours, but then again... I will need some for the xpl-perl :D
User avatar
Snelvuur
Forum Moderator
Forum Moderator
Posts: 3156
Joined: Fri Apr 06, 2007 11:01 pm
Location: Netherlands
Contact:

How to connect to lan-rfxcom with linux

Post by Snelvuur »

xpl-perl is still in the process of expanding, but it does give you enough information. You can check http://wiki.binkey.nl i've done must setups there although its debian, it could give you some help. If you need any help with xpl-rfxcom let me know, and i'll try and help you out.

// Erik (binkey.nl)
gb1980
Member
Member
Posts: 52
Joined: Mon Dec 31, 2007 5:56 pm
Location: Netherlands

How to connect to lan-rfxcom with linux

Post by gb1980 »

Hi Snelvuur, normally I can find my way within debian, as this is also my cup of tea.
But the java app: xPLHub.jar is not running ok.
I get the message: unable to bind to xPL port in standalone mode.
Even with an IP address specified: java -jar xPLHub.jar 10.10.10.10 it's not going to start.

I'm looking for a non graphical program that can work as a daemon.
Something tells me that xPL is a graphical way of configuring actions on rfxcom for example, right?
Maybe I'm trying the wrong program anyway to run. But help is certainly needed is this small world right now.

With some more users and documentation it surely will get a boost.
For me this is my first real experience with home-automation.
gb1980
Member
Member
Posts: 52
Joined: Mon Dec 31, 2007 5:56 pm
Location: Netherlands

How to connect to lan-rfxcom with linux

Post by gb1980 »

Am I wrong or do the links via binkey.nl not work anymore?
Also the lokation of the debian packages arn't there anymore.
User avatar
Snelvuur
Forum Moderator
Forum Moderator
Posts: 3156
Joined: Fri Apr 06, 2007 11:01 pm
Location: Netherlands
Contact:

How to connect to lan-rfxcom with linux

Post by Snelvuur »

Thats strange, the trac system seems to be down/ not functioning. An xpl-hub is included in the xpl-perl package, you dont need the java and jar stuff (ieuw)

I'll put my debian packages online tonight then, so you can grab them. Unless you want a .tgz

// Erik (binkey.nl)
gb1980
Member
Member
Posts: 52
Joined: Mon Dec 31, 2007 5:56 pm
Location: Netherlands

How to connect to lan-rfxcom with linux

Post by gb1980 »

I don't mind how it's packed, but the trac system is indeed down for a few days now.
I would appreciate if you could put the package online.
Tomorrow my day is reserved for rfxcom ;)
Thank you snelvuur!

It also sounds better that it's not (completely) based on java.
So, do I have to install this under CPAN, or is it just realy a debian package that I can install with dpkg. I assume the last option.

I also would like to document some things I've learned so far.
Where is the "central" documentation for all this stuff, as I can see lots of wiki's forums popping up everywhere.
The hardware I think is great, the results are even more for what I read on the net, but the documentation for a newbe is nok.
A few drawings can clear out a lot.

Thanks to y'all

Gaston
User avatar
Snelvuur
Forum Moderator
Forum Moderator
Posts: 3156
Joined: Fri Apr 06, 2007 11:01 pm
Location: Netherlands
Contact:

How to connect to lan-rfxcom with linux

Post by Snelvuur »

Still working at the moment, but i wanted to upload the packages but it seems my pc at home is down too. I'll do it as soon as i'am able. I'll just give you the .deb package. Then you can follow the instructions on the wiki.binkey.nl page. If you have new findings/documentation please update it when needed on the wiki. I try to keep this wiki a "home automation" wiki as a starting point some day and as good reference for tools. Btw, xpl-perl is included with apt-get i think (dont know if its mainstream) you could also try the sources.list modification, but if the trac is down i think the other things are too.

// Erik (binkey.nl)
gb1980
Member
Member
Posts: 52
Joined: Mon Dec 31, 2007 5:56 pm
Location: Netherlands

How to connect to lan-rfxcom with linux

Post by gb1980 »

Yup, the sources are down for a few days now.
if the files aren't that big you can also email them, or I can add you to my gtalk/msn world :)
Anyway, good luck with rebuilding your pc at home for now.
User avatar
Snelvuur
Forum Moderator
Forum Moderator
Posts: 3156
Joined: Fri Apr 06, 2007 11:01 pm
Location: Netherlands
Contact:

How to connect to lan-rfxcom with linux

Post by Snelvuur »

http://files.binkey.nl/Xpl-Perl/ here you go.

// Erik (binkey.nl)
gb1980
Member
Member
Posts: 52
Joined: Mon Dec 31, 2007 5:56 pm
Location: Netherlands

How to connect to lan-rfxcom with linux

Post by gb1980 »

Great stuff Snelvuur, you're very snel ;)
I'm checking it out right now, and made a backup-online @ http://www.bougie.nu/xpl-perl/
gb1980
Member
Member
Posts: 52
Joined: Mon Dec 31, 2007 5:56 pm
Location: Netherlands

How to connect to lan-rfxcom with linux

Post by gb1980 »

At least I know that the box works by executing the commands:
export XPL_HOSTNAME=[server-ip]
xpl-rfxcom -v [rfxcom-ip]

I can see click-on/off and visonic passing by.

So far so good, now to get zenah working, as this gives some headbanging due to compilation errors.
Is this really the best there is? But first of all, I'm going to check how this xpl works manually

The debian package works great snelvuur!
User avatar
Snelvuur
Forum Moderator
Forum Moderator
Posts: 3156
Joined: Fri Apr 06, 2007 11:01 pm
Location: Netherlands
Contact:

How to connect to lan-rfxcom with linux

Post by Snelvuur »

Well zenah is a tool that works with xpl-perl. You could use other tools, but for the moment i think this is the best you can get. It needs more tweaking and more functions and easier control / documents but all the xpl-perl and zenah is done by 1 person so thats a lot of work.

// Erik (binkey.nl)
francisb
Member
Member
Posts: 54
Joined: Sat Sep 29, 2007 8:53 pm
Location: Netherlands
Contact:

How to connect to lan-rfxcom with linux

Post by francisb »

Hello,

I too try to use linux (buntu) with xpl-perl using rfxcom, but i seem not to get it working. I installed the libxpl-perl using the synaptic-manager. After that is tried to run the setup and i am getting this as output:

Code: Select all

francis@francis-laptop:~$ sudo xpl-perl-setup
[: 64: ==: unexpected operator
Using /usr/bin as directory for xpl-perl scripts

group xplperl already exists
user xplperl already exists
user xplperllog already exists
/etc/xplperl/devices.txt exists but its use is no longer recommended
There appears to already be something listening on udp port 3865.
Not configuring the xpl-hub service.

Setting up xpl-rrd service
/etc/xplperl/service/xpl-rrd/run already exists
[: 248: ==: unexpected operator
/etc/xplperl/service/xpl-rrd/log/run already exists
/etc/xplperl/service/xpl-rrd/log/config already exists
/etc/service/xpl-rrd already exists

Setting up xpl-rrd crontab
/etc/cron.d/xpl-rrd already exists

heyu not install not setting up xpl-x10

DateTime::Event::Sunrise not available, not configuring xpl-dawndusk

1-wire filesystem, /ow, not available, not configuring xpl-owfs
set XPL_OWFS environment variable to mount point if it is not /ow

XPL_RFXCOM_TTY not defined, not configuring xpl-rfxcom

XPL_RFXCOM_TRANS_TTY not defined, not configuring xpl-rfxcom-trans

XPL_VIOM_TTY not defined, not configuring xpl-viom

XPL_W800_TTY not defined, not configuring xpl-w800

hddtemp daemon not running, not configuring xpl-hddtemp

francis@francis-laptop:~$ 

i am stuck here do not know what to do next.

When i try to configure the rfx module i get this:

Code: Select all

francis@francis-laptop:~$ xpl-rfxcom -i eth0 -v
The device parameter is required
Usage:
      xpl-rfxcom [flags] [options] <device>
      where valid flags are:
        -h - show this help text
        -v - verbose mode
      and valid options are (default shown in brackets):
        -i if0  - the interface for xPL messages (first non-loopback or loopback)
        -B baud - the baud rate (4800)

      # start the rfxcom application on first ethernet interface in verbose mode
      xpl-rfxcom -i eth0 -v
How can i configure an ip address, in short how can i get this working, i looked on the internet but the information is small.

regards,

Francis
Post Reply

Return to “Rfxcom Receivers & Transmitters Forum”