lua-users home
lua-l archive

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




On 19/02/2015 23:39, Thijs Schreijer wrote:


-----Original Message-----
From: lua-l-bounces@lists.lua.org [mailto:lua-l-bounces@lists.lua.org] On
Behalf Of Lorenzo Donati
Sent: donderdag 19 februari 2015 23:32
To: lua-l@lists.lua.org
Subject: Re: Library for easy serial communication with Arduino



On 19/02/2015 22:33, Thijs Schreijer wrote:

Any hint and suggestion will be greatly appreciated!


An old post, but you get the idea;
http://superuser.com/questions/54723/any-free-application-to-redirect-
serial-communication-to-tcp-ip

Thijs

Thanks, it is interesting, but it doesn't seem to address my problem (am
I missing something?).

I don't need TCP/IP connectivity, but simple interaction with existing
COM ports (either real, i.e. connected to a real UART chip,  or virtual,
like those created by the Arduino driver, which redirects the COM data
over the USB connection to the Arduino board).

I'm not getting the point, unless you are suggesting to redirect COM
links to TCP/IP and then using something like luasocket to perform
serial communication indirectly (which seems a bit overkill).

That's what I meant. It's easier if you're used to sockets programming.

thijs

Ah, Ok! Well, unfortunately I'm not too versed in socket programming (I only know the *very* basics). But I don't need too much sophistication in what I intend to do. I didn't mention in my post, but I'm investigating ideas to be developed at school with my students during lab hours (I'm a teacher in a technical high school), so simple COM management is more than enough (say the PC counterpart of what the Arduino library does on the Arduino side).

Anyway, your suggestion is interesting (I didn't imagine it could be an effective approach, and the other post of Jay Carlson confirms this - thanks Jay!), so it is well worth keeping that in mind, should I have more demanding needs in the future.

-- Lorenzo