hi Guys
im working on a project which prints some data on a small printer from a scale
the printer is set to 9600 8B N & my arduino Uno with max232 connected to the serial port is set the same as the printer
when using SerialPrint ("hello"); continualy the connection is established with the printer & it prints continually
i want to establish the connection for printing later with a button press
the connection is only the ground Tx Rx so i quess its software handshaking
Handshaking probably isn't necessary but if it is and you only have thise three connections it would use XON/XOFF protocol.
However, if you only want to print anything when you press a button, the communication probably isn't an issue, your software simply has to wait for the signal from the button before sending the data. You have not given us any information on your software at all.
Handshaking probably isn't necessary but if it is and you only have thise three connections it would use XON/XOFF protocol.
However, if you only want to print anything when you press a button, the communication probably isn't an issue, your software simply has to wait for the signal from the button before sending the data. You have not given us any information on your software at all.
my printer has a comminication led which keeps blinking when no connection established
when i turn on my printer connected to my Arduino with this code the connection is established & keep printing
Code:
SerialPrintln("hello");
delay(2000);
i want to establish the connection without printing anything to use print button later
my printer has a comminication led which keeps blinking when no connection established
when i turn on my printer connected to my Arduino with this code the connection is established & keep printing
Code:
SerialPrintln("hello");
delay(2000);
i want to establish the connection without printing anything to use print button later