Home All Groups Group Topic Archive Search About

Sending chr(255) to serial port

Author
31 Jul 2006 11:49 AM
...
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

Author
31 Jul 2006 4:58 PM
David White
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:

Show quote
> 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
>
>

AddThis Social Bookmark Button