![]() On the Terminal Emulator "68656c6" is all that gets through in ASCII and "36 38 36 35 36 43 36" is all that gets through otherwise. Ie: "hello" as Hex = 68656C6C6F (TX_String_Length = 5) When SerialOutBlock goes to transmit based on the TX_String_Length is acts on each nibble as though it were a complete byte. I'm using SerialOutBlock(ComRS232,TX_String,TX_String_Length) where TX_String is a string of Hex pairs (without the whitespaces), and String_Length is the string length + a two byte checksum (also in Hex). ![]() Using the Terminal Emulator I can watch as the string gets transmitted incorrectly. I'm unsure how to format the string in a way which SerialOutBlock() can use it.ĬR1000.pdf hints at using an Array of Type Long. Now however, I need to transmit the same Hex string as Binary using SerialOutBlock. 'Add a zero to keep things neat if required TableString = Left(TableString,RecLength-2) ![]() There may be a simpler way to do this but I'm a brute force kinda CRBasic guy:
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |