comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Sending data to the serial port (Linux)?
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: Sending data to the serial port (Linux)? [message #37611 is a reply to message #37529] Wed, 07 January 2004 10:44 Go to previous messageGo to previous message
Olaf Stetzer is currently offline  Olaf Stetzer
Messages: 39
Registered: September 2001
Member
Pepijn Kenter wrote:
>
>> Yes I solved it with awk yesterday. I still have to try if
>> cat foobar /dev/ttyS0 does the right thing, I will try that
>> this evening. Will perl be an easy alternative if this simple
>> solution fails?
>>
>
> Reformatting the data can also be done in perl but since you have solved
> that problem in awk, there is no need to use perl.
>
> Sending your formatted data to the serial port can be done in the (bash)
> shell. If you encounter problems (e.g. wrong file permissions) try to
> solve it from the shell; I don't think using perl will help you.
>
> Don't forget the '>' character:
> cat foobar > /dev/ttyS0

I just tried it and it works partly. Problem:
The projector echoes each character. The sender needs to wait until
the echo is there before sending the next char. I think that is not
possible with the above simple solution. I will try to learn some perl
to solve this... :-(

Olaf
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: loading startup file
Next Topic: Maximum likelihood question (ENVI)

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Fri Oct 10 07:31:13 PDT 2025

Total time taken to generate the page: 0.48145 seconds