Hi

I need to send a chr(255) to a serial port. When I send it, through
comm.write (chr(255)) it sends a chr(63) ... in Hex, I write chr(&FF) and it
actually sends chr(&3F) ... why does this happen, and how can I send it
right ?

I'm using vb.net 2005 express with framework 2.0

Thanks for an answear ...

Mike

Re: Sending chr(255) to serial port by David

David
Mon Jul 31 11:58:57 CDT 2006

Not sure this will help as I am pretty new to this topic as well. But what is
the value of the serial port's DataBits property? The docs say the default
should be 8. But you never know...

... wrote:

> Hi
>
> I need to send a chr(255) to a serial port. When I send it, through
> comm.write (chr(255)) it sends a chr(63) ... in Hex, I write chr(&FF) and it
> actually sends chr(&3F) ... why does this happen, and how can I send it
> right ?
>
> I'm using vb.net 2005 express with framework 2.0
>
> Thanks for an answear ...
>
> Mike
>
>