lua-users home
lua-l archive

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


On 28.09.2012 13:38, David Collier wrote:
> Pardon my confusion.
> 
> I've written a program that uses luars232 to drive serial ports on a PC.
> 
> Is this also applicable without change if I run under Linux, or is there
> a different library for that?

The answer is in your previous mail:

On 28.09.2012 13:38, David Collier wrote:
>
> There are 2 functions -
>     open                  -- rs232Library = require("luars232")
> -- error, port  = rs232Library.open(device) --
> device can be "/dev/ttyUSB0" or "COM1"

COM1 is for windows, /dev/ttyUSB0 is for linux (and can be something
else for another unixes). Of course it can be COM2, COM3, COM4 or
/dev/ttyUSB1, /dev/ttyUSB2 etc. Check your OS documentation.

Try to connect to your device with other program (minicom on linux,
teraterm or hyperterminal on windows) first so you know which device to use.

Regards,
miko