Quantcast
Channel: Processing Forum
Viewing all articles
Browse latest Browse all 1768

Reading XON/XOFF from serial communication

$
0
0
Hi.

I'm currently using an thermal printer.
It receives data via RS232, so I'm using serial library with Serial-RS232 cable.
I send data to the printer repeatedly, and I need to pause sending when XOFF is sent from the printer, and resume when I get XON.
A technician of the manufacturer said that the printer sends XOFF when it has its buffer full, but I cannot read anything via serialEvent() until I see some weird errors printing out.
In any other situations, I can receive data from printer well, including XON right after initiating the printer and status code when I ask one.

So I think there're two possibilities.
1. The printer didn't send any XOFF properly.
2. Processing cannot read XOFF(interrupt data?)

Can anyone tell me if number 2 is true?
If it's not, I can contact to the manufacturer.

Thank you for your replies in advance :)

Viewing all articles
Browse latest Browse all 1768

Trending Articles