Email: Password: Remember Me | Create Account (Free)

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
11/04/07 13:38
Read: times


 
#146574 - C format string
Responding to: ???'s previous message
Alan Dorman said:
I have to send data in the following formats:
*S\r\n, *N\r\n, *W <ASCII Number>\r\n, *X <data>\r\n

Russell Bull said:
The strings you have posted are from 'c' code by the looks .

Alan Dorman said:
looking at a ASCII to HEX conversion table I see that a ... small "r" is 72 in hex. Are these the values I would load into the transmit buffer?

Yes, 72 hex is the ASCII code value for a lowercase 'r'

However, as Russel said, the strings you showed are in 'C' format, where "\r" indicates a Carriage Return (CR), and "\n" indicates a Linefeed (LF)...

List of 16 messages in thread
TopicAuthorDate
DB-9 Connector to 8052 protocol            01/01/70 00:00      
   HEX Values?            01/01/70 00:00      
      grunt work            01/01/70 00:00      
         Nope            01/01/70 00:00      
            and how about the asterick?            01/01/70 00:00      
               Asterix the Gaul            01/01/70 00:00      
         Stop Bit            01/01/70 00:00      
         Something like this            01/01/70 00:00      
         C format string            01/01/70 00:00      
            CR LF hex values            01/01/70 00:00      
         Experience?            01/01/70 00:00      
            old hermit            01/01/70 00:00      
               These days...            01/01/70 00:00      
                  LP programming            01/01/70 00:00      
               maybe            01/01/70 00:00      
                  Needhams            01/01/70 00:00      

Back to Subject List