tcl/tk serial port access on PocketPC: fconfigure -mode does not work
"hs089" <[email protected]>
| Newsgroups | gmane.comp.windows.ce.freeware |
|---|---|
| Message-ID | <[email protected]> |
Dear tcl/tk experts,
I need some help in accessing the serial port on my Pocket PC
(Fujitsu Siemens Pocket Loox 410 with Windows Mobile 2003 operating
system).
I am running the tcltk846ce-arm installation from sourceforge and in
principle it works quite well.
Thanks to the tcltk community!
Now I want to connect to my GPS receiver via the serial port (over
bluetooth) with the following code:
set mode "4800,n,8,1"
set chan [open "com6:" r+]
fconfigure $chan -mode $mode
close $chan
This code works on my desktop PC running Windows98 without problems.
But on the Pocket PC it fails:
It seems that the serial port is opened successfully but then I get
the following error message:
Error in startup script:
bad option "-mode":
should be one of -blocking, -buffering, -buffersize, -encoding,
-eofchar, or -translation
while executing
"fconfigure $chan -mode $mode"
(file "\SD-MMCard\tcl\nmea.tcl" line 3)
I have found other users reporting similar problems at
http://wiki.tcl.tk/11134
and
http://aspn.activestate.com/ASPN/Mail/Message/Tcl-bugs/816708
but no solution for the problem.
Could anybody help me with a solution or a work-around?
Thank you very much in Advance,
Helmut Schmidt
------------------------ Yahoo! Groups Sponsor --------------------~-->
$4.98 domain names from Yahoo!. Register anything.
http://us.click.yahoo.com/Q7_YsB/neXJAA/yQLSAA/W4wwlB/TM
--------------------------------------------------------------------~->