??? 06/23/09 15:36 Read: times |
#166393 - HyperTerminal and microcontroller - please help! Responding to: ???'s previous message |
Hi guys,
1. I have been able to use printf command to send string and data to PC HyperTerminal: e.g. printf("This is a testn") --> terminal display: This is a test (then go to next line) 2. I also use "RS232 Hex Com Tool v6.01" to receive the data send to PC on ASCII format. The result showed: This is a test[0D][0A] 3. I also connect the CMP-10 thermal printer to PC and set as 9600,n,8,1,n I do not use Xon/Xoff. Whatever I type in, the printer will print out after I hit ENTER key. e.g. This is a test --> printing: This is a test 4. However, when I connected the micro controller serial port to the printer and send: printf("This is a testn") --> the printer did not print So my question is what type of data the HyperTerminal sent to the printer to cause it to print, but not the micro controller? Having said that I will still need to check the connection in between the micro controller and printer, because both of them have the serial cables end with female socket, so I have to use a male to male cable to connect in between them. Please advice me ASAP. Many thanks! |