Serial printer communication problem

Status
Not open for further replies.

johnny78

Full Member level 5
Joined
Jun 28, 2017
Messages
270
Helped
1
Reputation
2
Reaction score
5
Trophy points
1,298
Activity points
3,460
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

any idea please will be great

Johnny
 

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.

Brian.
 

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

thanks
--- Updated ---

something must be sent to keep the connection alive Because after each print the connection is lost again

its ok now i have disabled the Auto baudrate of the printer & it works until i understand exactly how to do it

thanks
 
Last edited:

Status
Not open for further replies.

Similar threads

Cookies are required to use this site. You must accept them to continue using the site. Learn more…