[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Réf. : RE: Send data on serial port!
I have do the same with no problems on a devboard LX
- you can see the hwtestserial.c source file given with the DEV KIT
- you must open the device with open (not fopen)
- If you send the character to a printer ,you need probably to send \n to
- do you use a line analyser to control the character ??
Envoyé par : cc :
owner-dev-etrax@xxxxxxx. Objet : RE: Send data on serial port!
I've done that but I still need to send '\n' to have the character sent
from the send buffer. Any other idea?
From: Johan Adolfsson [mailto:email@example.com]
Sent: 09 January 2003 14:05
To: G?an Hillebrink; dev-etrax
Subject: Re: Send data on serial port!
Make sure you set the terminal settings to "raw" on both the
sender and the receiver, e.g. by using the cfmakeraw() function.
See 'man cfmakeraw'
----- Original Message -----
From: "Goran Hillebrink" <Goran.Hillebrink@xxxxxxx.se>
To: "dev-etrax" <firstname.lastname@example.org>
Sent: Thursday, January 09, 2003 12:34
Subject: Send data on serial port!
> I need to send data character by character over a serial port(/dev/ttyS0)
on a LX board. To achieve as high speed
as possible I want to send as little overhead as possible. When I send data
now I always need to add a line feed to
have the data sent immediately. Is it possible to send just a byte without
a line feed?