[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Lua, and accessing nodes in /dev/ (Lua in Linux)...
- From: Matthew Percival <matthew@...>
- Date: Thu, 09 Feb 2006 15:19:10 +1100
G'Day,
I think I have sort of worked out why I am not reading anything back:
it does not seem the script is sending anything in the first place. If
I do `print (tty)', I get back `file (0x8051688)', so it seems OK at
that point, but if I wrap a print() around the write() call I get this:
nil Bad file descriptor 9
> I use Lua with the UMR Robotics Team to interface with several
> different devices such as GPS receivers, microcontrollers, etc. So
> long as you don't want it to be portable, it is easy in Linux with
> stty:
I am trying to check the status of a GPS Modem, and the script will
only ever be run from Linux, so it sounds like you are doing something
very similar to what I am trying to do (which also suggests it does
work). I tried copying your code (with minor changes for my setup), and
added a write at the end, but it returned the same error.
-- Matthew