• Post Reply Bookmark Topic Watch Topic
  • New Topic

ASCII to Binary  RSS feed

 
Sean OShea
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hello,
i have started working on a project that will open up a socket to a casecoder and then send data to it. the casecoder accepts ASCII characters (IE. when i connect to it with winsock i would send a ctrl-t to get the casecoder ready to accept what we wish to print, type what needs to be printed, then send with ctrl-m). this is project utilizes java (just started learning for this project) and coldfusion.

in between the casecoder and our webserver we have a serial ethernet converter that is setup with passthrough. with winsock working the converter is working appropriatelly.

my question is this: i am banking that i need to convert the strings to binary for the casecoder to read what i am trying to input, how do i do that? my code does connect and send, but the casecoder does not know what to do with the data. Hope someone has some ideas for me!!!

 
Ben Wood
Ranch Hand
Posts: 342
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i am banking that i need to convert the strings to binary for the casecoder to read what i am trying to input, how do i do that?


hi Sean. You could look at String.getBytes() like...



maybe this is what you need?
 
Sean OShea
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
thanx for the early morning reply, good suggestion, but i went with this and it is working:

 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!