[Message Prev][Message
Next][Thread Prev][Thread Next][Message
Index][Thread Index]
RE: Connecting to xPLHAL via sockets
Hi Neil,
> You may have noticed my previous post with regard to the
> possible pauses with xPLHAL.
> Because of this, I would like to do a bit more testing and
> take Misterhouse out of the equation.
OK.
> I wish to write a program to connect to xPLHAL server but I'm
> a bit confused as to how I should be talking to this.
> Should I open a connection to the port 3865 and try to talk
> to it as per the "Core Protocol" schema I used in the serial
> interface or should I be trying to talk to it via the "xPLHAL
> Control Protocol Specification"?
>
> At this stage I'm trying to duplicate the generation of the
> OSD Date & time stamp that I was producing with Misterhouse
> as per the previous post.
There are 2 ways to talk to xPLHal.
Firstly, you can send it xPL messages by sending UDP packets to port
3865 - this is the method that you should use to generate your xPL
packets every second.
Secondly, you can connect on TCP port 3865 using XHCP (xPLHal Control
Protocol).
XHCP is really only used for the high level management of xPLHal -
managing events, scripts, determinators, device config etc.
This is how the Manager app talks to the xPLHal server.
>
> In windows I program in Delphi, so if anybody has some
> examples in this language they are willing to share I would
> be grateful.
Can't help on the Delphi front, but if you're socket programming isn't
up to generating the xPL packets directly, you could write a Delphi
program that calls one of the command-line senders every second.
This could then send out your xPL packet for testing.
HTH (I'm still catching up on your other posts),
John
xPL Links: http://www.xplproject.org.uk http://www.xplhal.com http://www.xpl.myby.co.uk
To Post a Message: ukha_xpl@xxxxxxx
To Subscribe: ukha_xpl-subscribe@xxxxxxx
To Unsubscribe: ukha_xpl-unsubscribe@xxxxxxx
xPL Main Index |
xPL Thread Index |
xPL Home |
Archives Home
|