Need to write a character directly to LPT1 port
- Biel EA6DD
- Posts: 680
- Joined: Tue Feb 14, 2006 9:48 am
- Location: Mallorca
- Contact:
- Rafael Clemente
- Posts: 365
- Joined: Sat Oct 08, 2005 7:59 pm
- Location: Barcelona, Spain
or try BuildCommDcb( "LPT1:", @cDcb )
or try BuildCommDcb( "LPT1:9600,n,8,1", @cDcb )
By right we don't need the baud rate for LPT1.
Check also if the delay happens on SetCommState(), msgwait(), etc.
Try to remove the line causes delay.
Check also if anti-virus software causes the delay.
I used to print to 4" receipt printer without problem in FW195.
Never try with XP
or try BuildCommDcb( "LPT1:9600,n,8,1", @cDcb )
By right we don't need the baud rate for LPT1.
Check also if the delay happens on SetCommState(), msgwait(), etc.
Try to remove the line causes delay.
Check also if anti-virus software causes the delay.
I used to print to 4" receipt printer without problem in FW195.
Never try with XP
- James Bott
- Posts: 4654
- Joined: Fri Nov 18, 2005 4:52 pm
- Location: San Diego, California, USA
- Contact:
- Rafael Clemente
- Posts: 365
- Joined: Sat Oct 08, 2005 7:59 pm
- Location: Barcelona, Spain
I sent the board to the factory for checking and I got it back with a note saying that it works Ok, but only under W98 and Me.
I was testing it with W2000 and Xp. Tried all the suggestions by Enrico, Thnoe, Randal, Biel and James. None of them worked which is not surprising after reading the note the manufacturer included.
What I can not imagine is why a simple paralell port board should not work under Xp... Any explanation?.
I guess I will set up an old W98 and try the damn board with it. In the meanwhile, thanks to all of you for your help and support.
Rafael
I was testing it with W2000 and Xp. Tried all the suggestions by Enrico, Thnoe, Randal, Biel and James. None of them worked which is not surprising after reading the note the manufacturer included.
What I can not imagine is why a simple paralell port board should not work under Xp... Any explanation?.
I guess I will set up an old W98 and try the damn board with it. In the meanwhile, thanks to all of you for your help and support.
Rafael
SALUDOS ENRICO
Enrico: Has una prueba sencilla y elemental, bootea con un diskete de algun sistema operativo MS-DOS cualquier version que tengas, enseguida redirecciones el puerto "MODE LPT!=com1" A partir de alli cualquier instruccion que tipees por el teclado se emprimira por el puerto com1.
quizas esto te sonar un poco confuso, pero si no has solucionado todavia tu problema enviame un mensaje a mi correo y con gusto te enviare las instrucciones con mas exactitud, con esta prueba lo que consigues es verificar que los puertos de la computadora y el impresor inclusive el cable esta en operativos y en buen estado.
Saludos RODOLFO
sildata@cantv.net
quizas esto te sonar un poco confuso, pero si no has solucionado todavia tu problema enviame un mensaje a mi correo y con gusto te enviare las instrucciones con mas exactitud, con esta prueba lo que consigues es verificar que los puertos de la computadora y el impresor inclusive el cable esta en operativos y en buen estado.
Saludos RODOLFO
sildata@cantv.net
- Rafael Clemente
- Posts: 365
- Joined: Sat Oct 08, 2005 7:59 pm
- Location: Barcelona, Spain
- Badara Thiam
- Posts: 160
- Joined: Tue Oct 18, 2005 10:21 am
- Location: France
- Contact:
You can also try this command DOS :I need just to send one ASCII character to LPT1 to activate the desired relay. The problem is that I can not find how to do it:
copy MyAscCar.tmp lpt1.bmp
Regards,
Badara Thiam
http://www.icim.fr
http://www.icim.fr