RS232 with lua

classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|

RS232 with lua

meino.cramer
Hi,

I want to access the RS232 port via lua as platform
independantly as possible.

Is such a support already included in lua or do I need
an extension/module/rock for this?

Thank you very much in advance for any help! :)

Best regards,
mcc





Reply | Threaded
Open this post in threaded view
|

Re: RS232 with lua

David Manura
On Tue, Jun 19, 2012 at 9:58 PM,  <[hidden email]> wrote:
> I want to access the RS232 port via lua as platform
> independantly as possible.

See http://lua-users.org/wiki/SerialCommunication .  The librs232lua
binding works fine.

Reply | Threaded
Open this post in threaded view
|

Re: RS232 with lua

meino.cramer
David Manura <[hidden email]> [12-06-20 04:40]:
> On Tue, Jun 19, 2012 at 9:58 PM,  <[hidden email]> wrote:
> > I want to access the RS232 port via lua as platform
> > independantly as possible.
>
> See http://lua-users.org/wiki/SerialCommunication .  The librs232lua
> binding works fine.
>

Hi,


GREAT! That helps me more than you may think  :)))))

Thank you very much!

Best regards,
mcc




Reply | Threaded
Open this post in threaded view
|

Re: RS232 with lua

Stelios M.
Depending on the requirements you may also try to use the serial port like a file. It will block though while listening for input.
This project might be useful also: http://luaforge.net/projects/ulserial/

I have been using the serial port on an embedded device through Lua using the first method I described. I didn't have any issues.


~stelios


On Wed, Jun 20, 2012 at 5:45 AM, <[hidden email]> wrote:
David Manura <[hidden email]> [12-06-20 04:40]:
> On Tue, Jun 19, 2012 at 9:58 PM,  <[hidden email]> wrote:
> > I want to access the RS232 port via lua as platform
> > independantly as possible.
>
> See http://lua-users.org/wiki/SerialCommunication .  The librs232lua
> binding works fine.
>

Hi,


GREAT! That helps me more than you may think  :)))))

Thank you very much!

Best regards,
mcc





Reply | Threaded
Open this post in threaded view
|

RE: RS232 with lua

Thijs Schreijer

And yet more links; http://lua-list.2524044.n2.nabble.com/termios-lua-a-binding-to-the-POSIX-APIs-for-terminal-and-serial-devices-td6926830.html

 

 

 

From: [hidden email] [mailto:[hidden email]] On Behalf Of Stelios M.
Sent: woensdag 20 juni 2012 8:18
To: Lua mailing list
Subject: Re: RS232 with lua

 

Depending on the requirements you may also try to use the serial port like a file. It will block though while listening for input.
This project might be useful also: http://luaforge.net/projects/ulserial/

I have been using the serial port on an embedded device through Lua using the first method I described. I didn't have any issues.


~stelios

On Wed, Jun 20, 2012 at 5:45 AM, <[hidden email]> wrote:

David Manura <[hidden email]> [12-06-20 04:40]:

> On Tue, Jun 19, 2012 at 9:58 PM,  <[hidden email]> wrote:
> > I want to access the RS232 port via lua as platform
> > independantly as possible.
>
> See http://lua-users.org/wiki/SerialCommunication .  The librs232lua
> binding works fine.
>

Hi,


GREAT! That helps me more than you may think  :)))))

Thank you very much!

Best regards,
mcc