lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


Hi Asko and all the others,


Thanks for the hints to and from Asko.

Using the COM interface perhaps is the most pragmatical solution now.
If there is a machine with USB only, I'll use an USB/RS232 converter.

Best regards
Goetz





-----Ursprüngliche Nachricht-----
Von: lua-bounces@bazar2.conectiva.com.br [mailto:lua-bounces@bazar2.conectiva.com.br] Im Auftrag von Asko Kauppi
Gesendet: Samstag, 24. April 2004 03:48
An: Lua list
Betreff: Re: Controlling hardware with lua (via USB interface)?



Use LuaX and the serial port control bits.  They can be programmed 
individually, and your script will work as well on both Windows and 
Linux.

http://www.testbox.fi

-ak

23.4.2004 kello 15:05, <Goetz.Kluge@infineon.com> kirjoitti:


> I need bidirectional access (unfortunately under Windows) to a port of
> a
> PC in order to control 2 pins.
> This is for emulating an I2C-interface.
>
> As the parallel interface has no long term future, I would like to use 
> USB. Here are these alternatives:
> (1) Direct bitbanging (violating the USB spec),
> (2) Driving via USB an IC which does USB/parallel-IO conversion,
> (3) Driving via USB an IC which does USB/I2C conversion.
>
> Any hints on how to do that with Lua under Windows?
>
> Goetz
>