"carriage return" and "line feed" encoding

"carriage return" and "line feed" encoding

Post by Jon Loldru » Fri, 14 Apr 2006 03:23:34



Hi

I'm trying to send <CR> and <LF> signals over a serial line to a serial
GPS unit.
I was thinking about how to do this - can I just write <CR> and then
the software will interpret it as a real <CR>-sign? Or will it think
that <CR> are just another 4 letters to be transferred?

Jon

 
 
 

"carriage return" and "line feed" encoding

Post by Jon Loldru » Fri, 14 Apr 2006 03:30:18


I forgot to say:

Linux distribution: Fedora Core 5

Serial Terminal software: GTKTerm, or using:
     echo '$GPGLL<CR><LF>' >> /dev/ttyS0
GPS-unit: NXPro3   GPS-601   (using the NMEA-0183 communication
standard)

Jon

 
 
 

"carriage return" and "line feed" encoding

Post by Floyd L. Davids » Fri, 14 Apr 2006 04:04:52



>I forgot to say:

>Linux distribution: Fedora Core 5

>Serial Terminal software: GTKTerm, or using:
>     echo '$GPGLL<CR><LF>' >> /dev/ttyS0
>GPS-unit: NXPro3   GPS-601   (using the NMEA-0183 communication
>standard)

   echo -ne "$GPGLL\r\n" >> /dev/ttyS0

Read the man page for echo.

--
Floyd L. Davidson            <http://www.apaflo.com/floyd_davidson>

 
 
 

"carriage return" and "line feed" encoding

Post by John-Paul Stewar » Fri, 14 Apr 2006 04:21:07



> I forgot to say:

> Linux distribution: Fedora Core 5

> Serial Terminal software: GTKTerm, or using:
>      echo '$GPGLL<CR><LF>' >> /dev/ttyS0

Assuming you're using the Bash shell, 'help echo' will tell you what you
need to know.
 
 
 

"carriage return" and "line feed" encoding

Post by Jon Loldru » Sat, 15 Apr 2006 04:51:56



Quote:>Read the man page for echo.

ok

Jon