Mailing List Archive: 49091 messages
  • Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search
 

[REBOL] Re: Serial Communication - Desperately Seeking...

From: dlhawley:attbi at: 25-Feb-2002 13:44

your port open command should look like: com1: open/mode/with serial://port1/4800/none/8/1 [read direct lines <other mode stuff>] "^M" while [0 <> (length? (line: first com1))] [ print line ] You don't say what line termination is - so change ^M as needed. for modes. You might play with binary and no-wait also. no-wait if you need todo other things besides wait blocked on reading the port. I was a couple of months ago that I did something similar - it was a binary protocolbut it workedOK. I seem to remember that the program would sometimes "run ready"- eating all CPU time, but don't remember crashing. Dave [webmaster--windsweptfarm--com] wrote: