Bluetooth dot matrix printer (star)

User avatar
josevalle
Posts: 65
Joined: Fri Oct 14, 2005 6:20 pm
Location: Bilbao

Bluetooth dot matrix printer (star)

Post 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
Jose Valle
Bilbao
Spain
User avatar
Antonio Linares
Site Admin
Posts: 37481
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Contact:

Post 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.
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
Posts: 37481
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Contact:

Post 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.
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
josevalle
Posts: 65
Joined: Fri Oct 14, 2005 6:20 pm
Location: Bilbao

Post 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
Jose Valle
Bilbao
Spain
User avatar
Antonio Linares
Site Admin
Posts: 37481
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Contact:

Post by Antonio Linares »

Jose,

This is the right place to talk about this :)

I wait for your news,
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Maurizio
Posts: 705
Joined: Mon Oct 10, 2005 1:29 pm
Contact:

Post by Maurizio »

I try with Zebra QL 320 but it does not work

Regards Maurizio
User avatar
Antonio Linares
Site Admin
Posts: 37481
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Contact:

Post by Antonio Linares »

Maurizio,

Was the bluetooth connection properly set before testing it ?

You have to manually do the bluetooth setup.
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Maurizio
Posts: 705
Joined: Mon Oct 10, 2005 1:29 pm
Contact:

Post by Maurizio »

Yes the bluetooth is properly setup , I use it with another programm
and print OK
Maurizio
User avatar
josevalle
Posts: 65
Joined: Fri Oct 14, 2005 6:20 pm
Location: Bilbao

Post 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
Jose Valle
Bilbao
Spain
User avatar
Antonio Linares
Site Admin
Posts: 37481
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Contact:

Post 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.
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
josevalle
Posts: 65
Joined: Fri Oct 14, 2005 6:20 pm
Location: Bilbao

Post by josevalle »

Hello

I get -1

Thanks Antonio
Jose Valle
Bilbao
Spain
User avatar
Antonio Linares
Site Admin
Posts: 37481
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Contact:

Post by Antonio Linares »

Jose,

Could you check if your bluetooth out port is located at COM8: ?
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
josevalle
Posts: 65
Joined: Fri Oct 14, 2005 6:20 pm
Location: Bilbao

Post 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.
Jose Valle
Bilbao
Spain
User avatar
Maurizio
Posts: 705
Joined: Mon Oct 10, 2005 1:29 pm
Contact:

Post by Maurizio »

Hello Antonio

I get -1891664022 (change every time)

IN COM 8
OUT COM 6

Regards Maurizio
User avatar
Antonio Linares
Site Admin
Posts: 37481
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Contact:

Post 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,
regards, saludos

Antonio Linares
www.fivetechsoft.com
Post Reply