Hello
I am programming some program for serial printer.
And communication between comp and printer is good...
For example when sending 0x0A hex value to printer result of that is linefeed...
But I have problem when ask for status of printer...
Code:
.....
char reset_printer[] = "\x1b\x53";
......
write(fd,&reset_printer,2);

/* read the input buffer and print it */
  result = read(fd,buffer,255);
  printf("%c\n",result);
  buffer[result] = 0; // zero terminate so printf works
  printf("%s\n",buffer);
}
This examle collecting recived strings (serial howto example @ google) but printer sends hex value of and computer reciving nothing.

Then I connected two computers reciving and transmiting are going well.
When I send 31 Hex value I resived 1 32 2 .... and so one (ASCII)
But how recive for example b10000001(binary) or 0x81 value?
Is conversion is need to be done?
Could anyone help me?

Regards
Joker