Re: serial communication with tcl



* 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'
.



Relevant Pages

  • Re: serial communication with tcl
    ... That sounds like TCL did not recognize /dev/ttyS0 as a serial port but ... correct pathname to the port on that platform? ... there are Linux distribution with incorrectly configured Tcl. ...
    (comp.lang.tcl)
  • Re: serial communication with tcl
    ... That sounds like TCL did not recognize /dev/ttyS0 as a serial port but ... Yes i confirm /dev/ttyS0 is the correct pathname to the serial port of ...
    (comp.lang.tcl)
  • Re: Bluetooth Serial Port Profile and Tcl communications
    ... but it appears not to be - at least in what I am experiencing. ... dongle connected to a PC running Windows XP SP3). ... His Tcl serial port monitor ...
    (comp.lang.tcl)
  • Re: Tcl serial port under XP and W2k
    ... also with Tcl 8.3. ... There is a fundamental difference between the 8.3 and 8.4 serial port ... port driver could have a bug ... ... > Digi multiport driver or the way Tcl drive serial ports. ...
    (comp.lang.tcl)
  • Re: Ramblings of an unsatified Tcl fan ... [Long]
    ... in over 4 years nothing has changed in the ODBC world or at least a few bug patches. ... I may be simple-minded in this but, first, pick one OO extension and make it part of all the distributions in every platform. ... decided to start a Mac OS X package but make it subtly different (in packages) to the the Tcl Aqua BI distribution? ... It'd be much better I think to adopt/continue/absorb the Tcl Aqua project into ActiveState than start yet another consumer-confusing option. ...
    (comp.lang.tcl)