Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Ascii conversion w/ 7 bits
Message
 
À
15/01/2003 06:35:28
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivie
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00741726
Message ID:
00742046
Vues:
21
>>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?
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform