Re: tcl/tk serial port access on PocketPC: fconfigu re -mode does not work

"hs089" <[email protected]>
Newsgroups gmane.comp.windows.ce.freeware
Message-ID <[email protected]>

Hello again,
--- In [email protected], "hs089" <hs089@y...> wrote:
> 
> --- In [email protected], "Keuchel, Rainer" <keuchel@a...>
> wrote:
> First of all: Thanks to Rainer and Jeff for the fast replies!
> 
> > AFAIK it worked in my port, althought there were some strange
> > things on the Ipaq (like RXOVER being set).
> > 
> > Try the builds from http://www.rainer-keuchel.de/wince/tcltk-ce.html
> I made a first try with your port yesterday evening and I am quite
> optimistic:
> - no error message occured
> - I was able to receive a first line of serial input
> 
> I will make more detailed tests at the weekend or maybe earlier and
> then report on the results.

... and thanks again:
Yes, it works fine with Rainer Keuchel's builds!

Happy holidays,

Helmut

P.S. Find my test program below - a simple logger for the GPS serial port:

set port com6:
set mode "4800,n,8,1"

set linecount 0
set time_start "init"

set log [open "gps_log.txt" w]
set chan [open $port r+]
fconfigure $chan -mode $mode 
fileevent $chan readable { 
 set line [gets $chan]
 set time_now [clock clicks -milliseconds]
 if [string equal $time_start "init"] { set time_start $time_now }  
 puts $log [ expr { $time_now - $time_start } ]
 puts $log $line
 incr linecount
}

button .b -text "Exit" -command {close $chan; close $log; exit}
label .cnt -textvariable linecount
pack .b .cnt 






------------------------ Yahoo! Groups Sponsor --------------------~--> 
Make a clean sweep of pop-up ads. Yahoo! Companion Toolbar.
Now with Pop-Up Blocker. Get it for free!
http://us.click.yahoo.com/L5YrjA/eSIIAA/yQLSAA/W4wwlB/TM
--------------------------------------------------------------------~->
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.