General information
Category:
Coding, syntax & commands
>>Hi,
>>I need to convert ascii to hex in a 7 data bits/1 parity bit/even parity format.
>>When I use: cHexval=RIGHT(TRANSFORM(ASC(cValue),"@0"),2)
>>I don't get the value formatted properly. My guess it that it's an 8 data bits format.
>>Does someone know how I can change the format to give me the results I need?
>>Thanks
>>Allen
>
>I suspect the parity bit is missing, or always zero. The parity bit is supposed to be a primitive version of a checksum - the 8th. bit is set so that the number of binary ones is even. I am not sure whether the parity bit is typically the first one or the last one, and I don't think there is a fast shortcut to code this.
>
>Hilmar.
Hi Hilmar,
I'm not sure what that means. I am in need of transmitting a sequence of ascii characters to a web server that requires the message be as such (from their doc):
The raw binary packet must be formatted in 7 data bits/1 parity/even parity.
This seems to be similar to the older methods of data communications that one would have needed to use of com port transmissions to a modem. Isn't that something that would be possible and resources of information on it's creation be available?
Previous
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only