Hello Richard,

if you pass $port with value '0' the socket tries to open on port '0' if I understand the logs you passed in the previous mails. Why would you think it would select a random port?

Kind regards,
 Lieven.


On Wed, May 9, 2012 at 12:52 PM, Richard Williams <rich@richardwilliams.co.nz> wrote:
Hi,

It seems that for some reason my Misterhouse/perl does not select a free open port when given 0 as a port number to IO::Socket::INET. If I set the port number to an arbitrary value, xPL springs in to life!

 $port = 51234;
        $sock = new IO::Socket::INET->new(
            LocalPort => $port,
            Proto     => 'udp',
            LocalAddr => $listen_address,
            Broadcast => 1

I'm running perl v5.10.1 on Debian GNU/Linux 6.0.3 (squeeze) if that's any help.

Regards,
Richard


On 9 May 2012 05:09, famille <famille@famille-simon.com> wrote:
I agree you should put bnz-ownet.claudia instead of bnz-ownet.*
you cant activate debug=xpl in your mh.ini for further detail


-----Message d'origine-----
De : Lieven Hollevoet [mailto:lieven@lika.be]
Envoyé : lundi 7 mai 2012 19:43
À : The main list for the MisterHouse home automation program
Objet : Re: [mh] XPL problem

Hello Richard,

I have a comparable setup as you have, only I'm using a hardware OneWire to
ethernet device (hollie-utilmon).

The only two differences in MH configuration:
* I configure the complete name of the sensor, without using a wildcard in
the name as you do
* I configure the xpl-broadcast address to be my local subnet broadcast
address (192.168.1.255). I don't know what your netmask is, is
10.255.255.255 your local broadcast address, or should it be 10.0.0.255?

If you run the hub in verbose mode, do you actually see Misterhouse
connecting to it (first startup the hub with --verbose and then
Misterhouse). It could be that Misterhouse is able to send messages but not
receive any because it did not find the hub. A reason for this might be the
broadcast address that is not setup correctly.

Kind regards,
 Lieven.

Op 7-mei-2012, om 11:45 heeft Richard Williams het volgende geschreven:

> Hi there,
>
> I'm trying to get my 1-wire devices working with XPL after giving up a
while ago. I got them working with owfs i.e. Owfs_DS18S20() but not with XPL
which I gather is the suggested way of doing it.
>
> I have mr setup thus:
> ipaddress_xpl_broadcast = 10.255.255.255
> ipaddress_xpl = 10.0.0.9
> xpl_nohub = 1
> debug=xpl
>
> I have some table items matching my sensors.
> XPL_SENSOR, bnz-ownet.*:10.B5ED38010800, air_temp, , temp
> XPL_SENSOR, bnz-ownet.*:10.438939010800, freezer_temp, , temp
>
> I have xpl-hub running and xpl-logger logging events such as
> 10.0.0.9:40447 [xpl-stat/hbeat.app: mhouse-mh.misterhouse -> *
5/0/10.0.0.9]
> 10.0.0.9:40447 [xpl-stat/hbeat.app: bnz-ownet.claudia -> *
5/59241/10.0.0.9]
> 10.0.0.9:40447 [xpl-stat/hbeat.app: bnz-listener.claudia -> *
5/42363/10.0.0.9]
> 10.0.0.9:40447 [xpl-trig/sensor.basic: bnz-ownet.claudia -> *
10.438939010800/temp/-19.3125]
> 10.0.0.9:40447 [xpl-stat/sensor.basic: bnz-ownet.claudia -> *
10.B5ED38010800/temp/11.4375]
>
> So it appears that both mr and 1-wire are sending updates over XPL OK. But
I get nothing when I try to read the state $freezer_temp->state().
> print_log "Freezer temperature is %1.1f C\n", $freezer_temp->state() gives
me
> Freezer temperature is 0.0 C
>
> Also I have debug=xpl but see nothing in the log.
>
> One thing I had to change from the other documentation is that the
xpl-owfs perl script has changed to xpl-ownet and the XPL source has changed
accordingly.
>
> Any ideas what is wrong?
>
> Richard
>
>
----------------------------------------------------------------------------
--
> Live Security Virtual Conference
> Exclusive live event will cover all the ways today's security and
> threat landscape has changed and how IT managers can respond. Discussions
> will include endpoint security, mobile security and the latest in malware
> threats.
http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/___________________
_____________________________________
> To unsubscribe from this list, go to:
http://sourceforge.net/mail/?group_id=1365
>


----------------------------------------------------------------------------
--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
________________________________________________________
To unsubscribe from this list, go to:
http://sourceforge.net/mail/?group_id=1365


------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
________________________________________________________
To unsubscribe from this list, go to: http://sourceforge.net/mail/?group_id=1365




--
Regards,
Richard

Richard Williams
10 Chase Grove, Taupo 3330
New Zealand
Mob +64 (0)21 511 577


------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
________________________________________________________
To unsubscribe from this list, go to: http://sourceforge.net/mail/?group_id=1365