FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Pocket PC Bluetooth dot matrix printer (star)
Posts: 65
Joined: Fri Oct 14, 2005 06:20 PM
Bluetooth dot matrix printer (star)
Posted: Thu Nov 03, 2005 12:12 AM

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
Posts: 44162
Joined: Thu Oct 06, 2005 05:47 PM
Bluetooth dot matrix printer (star)
Posted: Thu Nov 03, 2005 11:37 AM

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
Posts: 44162
Joined: Thu Oct 06, 2005 05:47 PM
Bluetooth dot matrix printer (star)
Posted: Thu Nov 03, 2005 12:13 PM

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
Posts: 65
Joined: Fri Oct 14, 2005 06:20 PM
Bluetooth dot matrix printer (star)
Posted: Thu Nov 03, 2005 11:13 PM

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
Posts: 44162
Joined: Thu Oct 06, 2005 05:47 PM
Bluetooth dot matrix printer (star)
Posted: Fri Nov 04, 2005 07:28 AM

Jose,

This is the right place to talk about this :)

I wait for your news,

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 842
Joined: Mon Oct 10, 2005 01:29 PM
Bluetooth dot matrix printer (star)
Posted: Mon Nov 07, 2005 08:53 AM

I try with Zebra QL 320 but it does not work

Regards Maurizio

Posts: 44162
Joined: Thu Oct 06, 2005 05:47 PM
Bluetooth dot matrix printer (star)
Posted: Mon Nov 07, 2005 09:54 AM

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
Posts: 842
Joined: Mon Oct 10, 2005 01:29 PM
Bluetooth dot matrix printer (star)
Posted: Mon Nov 07, 2005 03:26 PM

Yes the bluetooth is properly setup , I use it with another programm
and print OK
Maurizio

Posts: 65
Joined: Fri Oct 14, 2005 06:20 PM
Bluetooth dot matrix printer (star)
Posted: Mon Nov 07, 2005 04:43 PM

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
Posts: 44162
Joined: Thu Oct 06, 2005 05:47 PM
Bluetooth dot matrix printer (star)
Posted: Mon Nov 07, 2005 08:06 PM

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
Posts: 65
Joined: Fri Oct 14, 2005 06:20 PM
Bluetooth dot matrix printer (star)
Posted: Mon Nov 07, 2005 08:16 PM

Hello

I get -1

Thanks Antonio

Jose Valle

Bilbao

Spain
Posts: 44162
Joined: Thu Oct 06, 2005 05:47 PM
Bluetooth dot matrix printer (star)
Posted: Tue Nov 08, 2005 09:14 AM

Jose,

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

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 65
Joined: Fri Oct 14, 2005 06:20 PM
Bluetooth dot matrix printer (star)
Posted: Tue Nov 08, 2005 11:17 AM

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
Posts: 842
Joined: Mon Oct 10, 2005 01:29 PM
Bluetooth dot matrix printer (star)
Posted: Wed Nov 09, 2005 09:02 AM

Hello Antonio

I get -1891664022 (change every time)

IN COM 8
OUT COM 6

Regards Maurizio

Posts: 44162
Joined: Thu Oct 06, 2005 05:47 PM
Bluetooth dot matrix printer (star)
Posted: Wed Nov 09, 2005 10:13 AM

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