sending data to a printer over v.24 rs232 interface to a printer under windows

Sarah Reichelt sarah.reichelt at gmail.com
Tue Mar 2 19:32:30 EST 2010


> today i got a call from a customer. He is using a special (programmable) keyboard, which is connected via v.24 interface directly to a barcode printer. the keyboard runs a 12 line basic program, which waits for an input from the keybord. This input then is sent with severeal controlcodes via V.24 to the printer. Now the keyboard is broken and  it takes about 12 weeks before the new one arrives here.
>
> So my question is, how complicated is it to write some code in rev to communicate with the V.24 interface to sent the data from the rev app?


If you can know the control codes and can connect to the printer using
a serial interface, then you can configure the serial port, open it
and send commands.
Check out my serial test stack for some ideas on getting started:
<http://www.troz.net/rev/stacks/SerialTest.rev>.

HTH,
Sarah



More information about the use-livecode mailing list