Re: sending data to a printer over v.24 rs232 interface to a printer under windows
It was easy enough in Linux that even I could do it, and I think it works the same way in Windows. The problem is essentially one of printing to a printer without having a driver. You first set up the printer as a raw printer, which seems from googling to be possible in Windows. Then you have to invoke a command line utility to send the character stream directly to the interface. You do have to know what the control characters are. And you do have to put the control characters into a text file using a hex editor. At least I did. And there may be problems with print queue management and recognizing the printer if it is powered on after the computer. You have to be careful, if you use some way of sending the characters that has no queue management, that a failed print cannot block subsequent attempts. Which is why my Linux friends told me to use lp + raw printer name, rather than simple cat . I think you can use lp in Windows also. The way I do it is to have one text file for each command, and then I send the text file in its entirety when I want the action to take place. So for instance, printing is simply a dump of the characters to be printed. To operate the cutter is sending the file with those hex characters in it. To set the font to a given size is sending the file with those hex characters in it, and so on. Its brute force, but it should be pretty easy to get something working. Peter -- View this message in context: http://n4.nabble.com/sending-data-to-a-printer-over-v-24-rs232-interface-to-a-printer-under-windows-tp1575516p1577818.html Sent from the Revolution - User mailing list archive at Nabble.com. ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
sending data to a printer over v.24 rs232 interface to a printer under windows
Hi, 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? Is there anyone on the list, who has done something similar? Regards, Matthias ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
Re: sending data to a printer over v.24 rs232 interface to a printer under windows
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 ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution