Bluetooth dot matrix printer (star)

Bluetooth dot matrix printer (star)

Postby josevalle » 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
User avatar
josevalle
 
Posts: 65
Joined: Fri Oct 14, 2005 6:20 pm
Location: Bilbao

Postby Antonio Linares » 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
User avatar
Antonio Linares
Site Admin
 
Posts: 42118
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Postby Antonio Linares » 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
User avatar
Antonio Linares
Site Admin
 
Posts: 42118
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Postby josevalle » 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
User avatar
josevalle
 
Posts: 65
Joined: Fri Oct 14, 2005 6:20 pm
Location: Bilbao

Postby Antonio Linares » Fri Nov 04, 2005 7:28 am

Jose,

This is the right place to talk about this :)

I wait for your news,
regards, saludos

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

Postby Maurizio » Mon Nov 07, 2005 8:53 am

I try with Zebra QL 320 but it does not work

Regards Maurizio
User avatar
Maurizio
 
Posts: 825
Joined: Mon Oct 10, 2005 1:29 pm

Postby Antonio Linares » Mon Nov 07, 2005 9: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
User avatar
Antonio Linares
Site Admin
 
Posts: 42118
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Postby Maurizio » Mon Nov 07, 2005 3:26 pm

Yes the bluetooth is properly setup , I use it with another programm
and print OK
Maurizio
User avatar
Maurizio
 
Posts: 825
Joined: Mon Oct 10, 2005 1:29 pm

Postby josevalle » Mon Nov 07, 2005 4: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
User avatar
josevalle
 
Posts: 65
Joined: Fri Oct 14, 2005 6:20 pm
Location: Bilbao

Postby Antonio Linares » Mon Nov 07, 2005 8: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
User avatar
Antonio Linares
Site Admin
 
Posts: 42118
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Postby josevalle » Mon Nov 07, 2005 8:16 pm

Hello

I get -1

Thanks Antonio
Jose Valle
Bilbao
Spain
User avatar
josevalle
 
Posts: 65
Joined: Fri Oct 14, 2005 6:20 pm
Location: Bilbao

Postby Antonio Linares » Tue Nov 08, 2005 9:14 am

Jose,

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

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

Postby josevalle » 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
User avatar
josevalle
 
Posts: 65
Joined: Fri Oct 14, 2005 6:20 pm
Location: Bilbao

Postby Maurizio » Wed Nov 09, 2005 9:02 am

Hello Antonio

I get -1891664022 (change every time)

IN COM 8
OUT COM 6

Regards Maurizio
User avatar
Maurizio
 
Posts: 825
Joined: Mon Oct 10, 2005 1:29 pm

Postby Antonio Linares » 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
User avatar
Antonio Linares
Site Admin
 
Posts: 42118
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Next

Return to FiveWin for Pocket PC

Who is online

Users browsing this forum: No registered users and 6 guests