Re: serial communication with tcl
- From: Ralf Fassel <ralfixx@xxxxxx>
- Date: Fri, 29 Feb 2008 16:19:30 +0100
* grp62 <grp62@xxxxxxxx>
| > That sounds like TCL did not recognize /dev/ttyS0 as a serial port but
| > as a 'real' file. Can you confirm that /dev/ttyS0 is indeed the
| > correct pathname to the port on that platform?
|
| Yes i confirm /dev/ttyS0 is the correct pathname to the serial port
| of my target.
Well, then... However, if you open /dev/ttyS0 in tcl, and then do an
fconfigure on the fd, and you don't see the -mode in the response,
this tells you that TCL is not seeing /dev/ttyS0 as a serial device:
fconfigure [open /tmp/xxx w+]
=> -blocking 1 -buffering full -buffersize 4096 -encoding iso8859-1 \
-eofchar {{} {}} -translation {auto lf}
fconfigure [open /dev/ttyS0 w+]
=> -blocking 1 -buffering full -buffersize 4096 -encoding iso8859-1 \
-eofchar {{} {}} -translation {auto crlf} \
-mode 9600,n,8,1 -xchar {^Q ^S}
Someone else pointed out that maybe it is worth to recompile TCL
yourself for that platform in question.
| If i issue the same commands on my host (ubuntu), it works !
This does not tell you anything about whether /dev/ttyS0 is the
correct path on your ARM platform.
R'
.
- References:
- serial communication with tcl
- From: grp62
- Re: serial communication with tcl
- From: Ralf Fassel
- Re: serial communication with tcl
- From: grp62
- serial communication with tcl
- Prev by Date: Re: Procedure for percent of a value
- Next by Date: Re: tk 8.5 vs 8.4: "font actual" differences
- Previous by thread: Re: serial communication with tcl
- Next by thread: need a tiny help with my SWIG'd program
- Index(es):
Relevant Pages
|