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

[REBOL] Re: Help with serial port

From: parki:whatevernot at: 31-Aug-2003 18:47

Serial problem solved. Turns out that if I use 'open/binary/direct serial://port2/4800/8/none/1' and send down a command string, I don't see a reponse (the call hangs). So, I changed to 'open/binary/direct/no-wait serial://port2/4800/8/none/1' and while I got a reply back from the first (command) string, I was never able to get a reply from the execute string (the elusive 0x00). In a last ditch effort (which I perhaps should have thought of sooner) I put in a polling loop for the reply value, with a break when the "value not#{}" and lo and behold - it all works. I'll likely clean up the polling loop to sleep, but all is well. So, will be crufting up some Rebol utility scripts to control X.10 devices, which should be nice. Being new to Rebol, I have to gush - the code to control the X.10 device is clearly going to be wicked small, with no external libs needed (like Perl or Python). The more I use Rebol, the more I am impressed. Cheery days, parki...