The UK Home Automation Archive

Archive Home
Group Home
Search Archive


Advanced Search

The UKHA-ARCHIVE IS CEASING OPERATIONS 31 DEC 2024


[Message Prev][Message Next][Thread Prev][Thread Next][Message Index][Thread Index]

RE: Communicatiing with xplHal


  • Subject: RE: Communicatiing with xplHal
  • From: "Tony Tofts" <tony@xxxxxxxxxx>
  • Date: Tue, 31 Aug 2004 11:41:59 +0100

> Ok, so this is what I'm doing at the moment.  I create a
> socket, connect to port 3865, send my config.app heartbeat,
> and then close the socket.
> This appears to work, but is it the right way to do it?

Nope, no need to connect, you just broadcast to port 3865 (though this may
be a difference in phrasing)

The connection to the hub (50000+) should just stay open all the time,
otherwise you won't receive messages.

> I also create another socket, and set it to listen for
> incoming connections, but nothing happens.  I let Windows
> choose the port number, and send whatever it comes up with in
> my config.app message - it may be that it is less than 50000
> - does this actually matter?

Any port is _can_ be used, just prefer 50000+

UDP is connectionless so there won't be any incoming 'connections' only
'data'

As long as you send a valid config.app or hbeat.app as a broadcast to port
3865 then the hub will pick it up and then start relaying messages from
port
3865 to it from the local ip/locahost on the port specified in port=

> Following the existing convention, I suppose it should be
> MALL, but that makes me look like a shopping centre, so
> perhaps just MAL would be better, if that's enough letters!

MAL is fine, I don't have the latest vendor list - anyone know if this is
taken?

Regards
Tony




xPL Main Index | xPL Thread Index | xPL Home | Archives Home

Comments to the Webmaster are always welcomed, please use this contact form . Note that as this site is a mailing list archive, the Webmaster has no control over the contents of the messages. Comments about message content should be directed to the relevant mailing list.