CCS C Software and Maintenance Offers
FAQFAQ   FAQForum Help   FAQOfficial CCS Support   SearchSearch  RegisterRegister 

ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CCS does not monitor this forum on a regular basis.

Please do not post bug reports on this forum. Send them to CCS Technical Support

SIOW: how to send an ASCII string terminated with a CR ?

 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
kender



Joined: 09 Aug 2004
Posts: 768
Location: Silicon Valley

View user's profile Send private message Send e-mail Visit poster's website Yahoo Messenger

SIOW: how to send an ASCII string terminated with a CR ?
PostPosted: Sun Nov 08, 2015 11:45 pm     Reply with quote

I'm a big fan of our terminal program SIOW. But I can't seem to figure out how to send an ASCII string terminated with carriage return (CR). When I type 24 24 24 into Hex send and press enter, the CR is sent at the end. When I type $$$ into ASCII send and press enter, the CR is not sent at the end. The protocol** which I'm talking to is in ASCII.

Is the a way to send the CR after ASCII? I have tried \r, but no effect.

** for RN4020, if anyone is curious
_________________
Read the label, before opening a can of worms.
Ttelmah



Joined: 11 Mar 2010
Posts: 19529

View user's profile Send private message

PostPosted: Mon Nov 09, 2015 1:47 am     Reply with quote

ASCII is not really a protocol....
It is just a description of what bytes represent what characters.

However what makes you think that CR is not being sent?.

Try the experiment, if you have two serial ports or port adapters, of wiring them together (null modem wiring), so you can see what is being sent. Run two copies of SIOW talking to both ports. Then you can see on the second, exactly what has been sent on the first.

Hit enter on your keyboard, and '0D' hex will be sent (carriage return).

I suspect you have the 'seeing' of this turned off, so your system is not displaying it:
View, ASCII options, pull down arrow to the right, 'Display CR/LF/BS'.
If this is not selected, SIOW (in ASCII display mode), will not display the CR character, just silently going back to the start of the line....
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group