Page 1 of 2
Bluetooth dot matrix printer (star)
Posted: Thu Nov 03, 2005 12:12 am
by josevalle
Hello:
I have a converter Bluetooth - Paralel conected to the printer.
I can see the printer in the bluetooth manager, it is asigned to COM7
I have tried:
SET PRINTER TO COM7
SET PRINT ON
? "PRUEBAS"
?
SET PRINTER TO
SET PRINT OFF
It does not work.
You wrote a mail about that but I cant conect.
Thanks for your help.
Jose Valle
Posted: Thu Nov 03, 2005 11:37 am
by Antonio Linares
Jose,
We are working on a sample of using the bluetooth that we are going to publish as soon as possible.
Basically it has to be used as a COM port.
Posted: Thu Nov 03, 2005 12:13 pm
by Antonio Linares
Jose,
We have already published a new FWPPC build with Bluetooth support.
Please review samples\BlueToth.prg
Please test it and let us know how it works there.
Posted: Thu Nov 03, 2005 11:13 pm
by josevalle
Thanks Antonio.
I will try that tomorrow. With this solved I can finish my aplication only a little bit late!!!
For testing I have buy a bluetooth to printer conector (60€) and I use a dot matrix paralel printer. When sure I will buy Star in 12 Volts 60 cols 600€.
(this is a littlr off topic but this is the only place I know for speaking about this)
Jose Valle
Posted: Fri Nov 04, 2005 7:28 am
by Antonio Linares
Jose,
This is the right place to talk about this
I wait for your news,
Posted: Mon Nov 07, 2005 8:53 am
by Maurizio
I try with Zebra QL 320 but it does not work
Regards Maurizio
Posted: Mon Nov 07, 2005 9:54 am
by Antonio Linares
Maurizio,
Was the bluetooth connection properly set before testing it ?
You have to manually do the bluetooth setup.
Posted: Mon Nov 07, 2005 3:26 pm
by Maurizio
Yes the bluetooth is properly setup , I use it with another programm
and print OK
Maurizio
Posted: Mon Nov 07, 2005 4:43 pm
by josevalle
Hello:
When I use the sample program it does not detect the printer.
Using the bluetooth program I see the printer.
But I can´t print in it.
Using one program form HP I can send a file to the printer and it works
I will test more things but I know almost nothing about bluetooth
Posted: Mon Nov 07, 2005 8:06 pm
by Antonio Linares
Jose,
BlueTooth works as a standard COM port. OutPort is 8 and InPort is 7.
If you do a:
local hOut := BlueOut()
MsgInfo( Str( hOut ) )
CloseComm( hOut )
then you should see the value of the handle of the port. Please try it and let us know what numeric value you get. Thanks.
Posted: Mon Nov 07, 2005 8:16 pm
by josevalle
Hello
I get -1
Thanks Antonio
Posted: Tue Nov 08, 2005 9:14 am
by Antonio Linares
Jose,
Could you check if your bluetooth out port is located at COM8: ?
Posted: Tue Nov 08, 2005 11:17 am
by josevalle
Hello Antonio
I don´t have the pda here, but I thing that the output port was COM5:
I will call my client and confirm you that.
The pda is Symbol 8800 with codebar scanner and the printer Star with a paralel to bluetooth adaptor.
Posted: Wed Nov 09, 2005 9:02 am
by Maurizio
Hello Antonio
I get -1891664022 (change every time)
IN COM 8
OUT COM 6
Regards Maurizio
Posted: Wed Nov 09, 2005 10:13 am
by Antonio Linares
We have just published a new FWPPC build.
In samples\bluetoth.prg, please change local hOut := BlueOut() into:
#define GENERIC_WRITE 0x40000000
#define OPEN_EXISTING 3
#define FILE_ATTRIBUTE_NORMAL 0x00000080
...
local hOut := CreateFile( "COM6:",; // change the number as needed
GENERIC_WRITE, 0, 0, OPEN_EXISTING,
FILE_ATTRIBUTE_NORMAL )
MsgInfo( Str( hOut ) ) // Lets see if we get a valid handle, not -1
...
and change CloseComm( hOut ) into CloseHandle( hOut ).
Thanks for your feedback,