[Message Prev][Message
Next][Thread Prev][Thread Next][Message
Index][Thread Index]
RE: Re: Is xPL the ideal work-around? Need to access the LPT port from
Mister House...
- Subject: RE: Re: Is xPL the ideal work-around? Need to access
the LPT port from Mister House...
- From: "Neil Wrightson" <neilw@xxxxxxxxxx>
- Date: Fri, 28 Oct 2005 22:40:44 +1000
Hi John,
I agree with your implementation of defining the port i.e. device=888 this
is not operating system specific (apart from apple of course).
In a windows environment LPT1 could be $3BC, $378 or $278. Can a Java app
write correctly to any of these ports without actually knowing what the
true
I/O address is, only knowing LPT1?
Regards,
Neil Wrightson.
> -----Original Message-----
> From: John B [mailto:home-automation@xxxxxxx]
> Sent: Wednesday, 26 October 2005 4:10 PM
> To: ukha_xpl@xxxxxxx
> Subject: RE: [ukha_xpl] Re: Is xPL the ideal work-around?
> Need to access
> the LPT port from Mister House...
>
>
> Hi Gerry,
>
> > Anyone have any thoughts on this? I feel I could knock this
> > out in a fairly short period of time, but I don't want to
> > produce something incompatible with an existing app. And yet
> > there isn't anyway via Java I can use a device identifier
> > like 888 to mean anything.
>
> 888 = 0x3F8 = hardware address of parallel port - totally abstracted
> from the OS IMO.
> (LPT1 or /dev/whatever is totally OS-dependent)
>
> You will never be able to standardise on an addressing scheme across
> multiple platforms, as they all use differing naming conventions for
> their ports.
>
> Anyway, I only knocked that little IO app together in a hurry
> - the API
> wants a hardware address to send to, so that's what the device=
> parameter asks for. Specifying LPT1 would have required
> additional work
> to map LPT1 to the base address 0x3F8.
>
> If you can put something together that is cross-platform, then that's
> great, and don't worry about being compatible with my app, as if your
> app can perform the same tasks on multiple operating systems,
> there's no
> point in me continuing to make my app available.
>
> Regards,
>
> John
>
>
> ------------------------ Yahoo! Groups Sponsor
> --------------------~-->
> Most low income households are not online. Help bridge the
> digital divide today!
> http://us.click.yahoo.com/cd_AJB/QnQLAA/TtwFAA/h6uqlB/TM
> --------------------------------------------------------------
> ------~->
>
> 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
|