Chad Bullock <[EMAIL PROTECTED]> wrote:
Yes, thanks though...forgot to write that in the post. It seems to be opened
correctly, and returns true (also the green light on the Keyspan adapter is
solid which seems to confirm an active connection).
I've also tried all of the error correction options, though my device's
specs say it should have all off - none of them have any effect anyways.
My brain is still stuck on some encoding problem, which I really know little
about, but I can't think of any other reason it wouldn't be doing it
correctly with such a simple command. I did notice in the RB lang ref, in
the "Text Converter" section there is an encoding called "MacVT100". Though,
when trying to use it to convert an editfield's string I get an
error...again, I really have no clue - and just remember VT100 from the old
(old) days.
Without doing any encoding changes by hand, do you know what the serial data
is sent out as? Is it already just plain text, or the default encoding of
the machine? Maybe it's expecting something odd; the thing that gets me is
that the other term emulators on the Mac seem to work out of the box fine
which is what makes me think it's something really simple that I'm
overlooking. Hmm :)
In all encodings (?), the first 128 characters are always the same,
so sending "HI?" really doesn't depend on encodings. At least, I
never worry about them with plain ASCII...
Without seeing your setup code, it's difficult to say what's going on.
Typically, I just set things up and go:
serial1.baud=8 // 9600bps
serial1.bits=3 // 8 data bits
serial1.parity=0 // No parity
serial1.stop=0 // 1 stop bit
serial1.SerialPort=System.SerialPort(0) // or whatever
if serial1.Open...
This is on RB5.5.5. Perhaps something has changed in the more recent versions.
Paul Rodman
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>
Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>