[futurebasic] Re: [FB] Byte Bitten Problem Solved

Message: < previous - next > : Reply : Subscribe : Cleanse
Home   : December 1998 : Group Archive : Group : All Groups

From: Paul Bruneau <paul_bruneau@...>
Date: Thu, 10 Dec 1998 11:08:23 -0500
I think you need a new device! Was this thing built by Murphy?? :)

tedd@... wrote:
> 
> Hi gang:
> 
> I found the solution with the problem I previously posted. The problem
> apparently lies within the communication protocols of the peripheral device
> I'm working with.
> 
> The device sends data to my Mac. In doing so, it has an odd way about it.
> It seems to mix protocols while sending/receiving byte values and it's
> logic is hard to follow. For example, when it sends a ":", it sends a value
> of 3A (3A HEX = :). That sounds reasonable enough. It simply sends the byte
> value for the character ":", namely 3A. This is an example of a single byte
> transmission.
> 
> However, when it sends the character "a", instead of sending 61 (61 HEX =
> a), it sends a byte value of 36 and then a value of 31. As such, if one
> combines these two numbers, one finds 36 HEX = "6" and 31 HEX = "1", thus
> "61", thus "a". This is an example of how to send one byte as two.d