Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

sending hex to serial port

Status
Not open for further replies.

nferreira

Programmer
Nov 21, 2001
2
PT
Hi
I'm trying to send an hex value to the serial port. I'm using the write command.
The problem is that it is sending the ascii code of the hex (I think).
Anyone can help?
Thanks

Nuno
 
Hi,
You didn't give to much info(compiler, OS etc.) and no code.
The only thing I can think of is

char buffer[10] = {0X41,0X54);

writing this to the port will send "AT"

Hope this helps.






Pappy
You learn something everyday.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top