Re: serial communication with tcl
- From: derek.philip@xxxxxxx
- Date: Thu, 28 Feb 2008 09:36:10 -0800 (PST)
On 28 Feb, 15:12, grp62 <gr...@xxxxxxxx> wrote:
Hello,Hi
I'd like to program with tcl language the serial ports of my arm
target (sam9260).
I built a rootfilesystem including the tcl package (tcl-8.4.9) with
buildroot.
On my target (kernel-2.6.23) when i tried to execute the following
commands
set serial [open /dev/ttyS0 RDWR]
fconfigure $serial -mode "115200,n,8,1"
here's the message i get:
bad option "-mode": should be one of -blocking, -buffering, -
buffersize, -encoding, -eofchar, or -
translation
while
executing
"fconfigure $serial -mode "115200,n,8,1" "
Any ideas ?
regards
Seems to work for me on Ubuntu 7.10
TkCon screen dump
loading history file ... 48 events added
buffer line limit: 512 max line length: unlimited
Main console display active (Tcl8.4.15 / Tk8.4.15)
(dp01) 49 % set fd [ open /dev/ttyS0 r+]
file6
(dp01) 50 % fconfigure $fd -mode "9600,n,8,1"
(dp01) 51 % close $fd
(dp01) 52 % set fd [ open /dev/ttyS0 RDWR]
file6
(dp01) 53 % fconfigure $fd -mode "9600,n,8,1"
(dp01) 54 % close $fd
(dp01) 57 % set fd [ open /dev/ttyS0 RDWR]
file6
(dp01) 58 % fconfigure $fd -mode "115200,n,8,1"
(dp01) 59 %
.
- References:
- serial communication with tcl
- From: grp62
- serial communication with tcl
- Prev by Date: Re: serial communication with tcl
- Next by Date: Re: serial communication with tcl
- Previous by thread: Re: serial communication with tcl
- Next by thread: Re: serial communication with tcl
- Index(es):
Relevant Pages
|