[aklug] Re: Regarding terminal input

From: Shane R. Spencer <shane@bogomip.com>
Date: Mon Mar 09 2009 - 15:37:16 AKDT

And of course.. python-serial, libdevice-serialport-perl or even using
ser2net to map a TCP/IP port to your serial port. If you have more
experiencing interfacing directly with network clients this could make
things easier.
I wrote a system back in the day for controlling robots using a Pontech
rs232 servo controller. It was written in python and used pyserial for
interfacing to the correct rs232 host device. It also ended up
implementing a very limited but speedy IRC/Channel like system. Input
was on certain channels, filters were listening to channels then
outputting requests to another channel which eventually hit the servo
controller.. It was a fun project. I'd love to have a happy little
robot to boss around again.

Shane

Christopher Howard wrote:
> At work we were able to sucessfully open terminal communication with our
> robot over bluetooth (serial emulation) and we use the screen command,
> like so:
>
> screen /dev/devicenameblablabla
>
> What we were wondering was, is there are a way we could pipe in commands
> from a file?
>
> I tried the obvious
>
> ~/testfile | screen /dev/devicenameblablabla
>
> But just got an error message like
>
> Must be connected to a terminal.
>
> I can't just write directly to the device file (and I did try) because
> (from what I understand) a terminal emulator is needed to control the
> serial communication (baud rate and all that jazz).
>
> Is there a way I can do this with screen or another term emulator? I
> really do live inside the shell, but I do very little shell scripting or
> advanced command-line work.
>

-- Attached file included as plaintext by Ecartis --
-- File: signature.asc
-- Desc: OpenPGP digital signature

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAkm1qC0ACgkQXK/vGhypreK/4wCdGRWEEguTOcSuUHn/MPX3VX/Z
9VQAoKfJut5zmBPfm4Bu0mpuXTf3NBnC
=Dbbz
-----END PGP SIGNATURE-----

---------
To unsubscribe, send email to <aklug-request@aklug.org>
with 'unsubscribe' in the message body.
Received on Mon Mar 9 15:37:31 2009

This archive was generated by hypermail 2.1.8 : Mon Mar 09 2009 - 15:37:31 AKDT