Search found 16 matches: com8

Return to advanced search

Re: how to open multiple ports

... Case xPORT=5 pNAME:="COM5" Case xPORT=6 pNAME:="COM6" Case xPORT=7 pNAME:="COM7" Case xPORT=8 pNAME:="COM8" Case xPORT=9 pNAME:="COM9" EndCase hPORT:= OpenComm( pNAME, 2048, 2048 ) If ! BuildCommDcb( pNAME+cSPEED, @cDcb ) nError = GetCommError( ...
by Robert Frank
Thu May 12, 2011 8:25 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: how to open multiple ports
Replies: 5
Views: 1081

Re: ReadComm( )

... Case xPORT=5 pNAME:="COM5" Case xPORT=6 pNAME:="COM6" Case xPORT=7 pNAME:="COM7" Case xPORT=8 pNAME:="COM8" Case xPORT=9 pNAME:="COM9" EndCase hPORT:= OpenComm( pNAME, 2048, 2048 ) If ! BuildCommDcb( pNAME+cSPEED, @cDcb ) nError = GetCommError( ...
by Robert Frank
Fri Oct 22, 2010 9:55 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: ReadComm( )
Replies: 4
Views: 1881

Re: Comm with USB device

... Case xPORT=5 pNAME:="COM5" Case xPORT=6 pNAME:="COM6" Case xPORT=7 pNAME:="COM7" Case xPORT=8 pNAME:="COM8" Case xPORT=9 pNAME:="COM9" EndCase hPORT:= OpenComm( pNAME, 2048, 2048 ) If ! BuildCommDcb( pNAME+cSPEED, @cDcb ) nError = GetCommError( ...
by Robert Frank
Mon Oct 11, 2010 6:22 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Comm with USB device
Replies: 4
Views: 1283

Re: Carpetas imborrables

Siguiendo con el tema ninguno de estos nombre se pueden utilizar tampoco CON, PRN, AUX, NUL, COM1, COM2, COM3, COM4, COM5, COM6, COM7, COM8, COM9, LPT1, LPT2, LPT3, LPT4, LPT5, LPT6, LPT7, LPT8, and LPT9. Pero mediante LMKDIR('\\.\\E:\AUX') si podemos, ademas tambien es valido lo siguiente ...
by JoseGS
Sun Oct 25, 2009 6:06 am
 
Forum: FiveWin para Harbour/xHarbour
Topic: Carpetas imborrables
Replies: 2
Views: 576

Bluetooth Printing

... of the characters get lost (always other characters, sometimes only one, sometimes 2, 3 or 4). The printer is connected via Bluetooth seriell at COM8. Must i configure something for bluetooth seriell communication at COM8 ? Would it help, if i put a sleep in the WriteByte loop ? If yes, with ...
by Wolfgang Ciriack
Tue Oct 28, 2008 4:43 pm
 
Forum: FiveWin for Pocket PC
Topic: Bluetooth Printing
Replies: 10
Views: 2629

... are not allowed in DOS file names. Also certain names are reserved for devices: CON, PRN, AUX, NUL, COM1, COM2, COM3, COM4, COM5, COM6, COM7, COM8, COM9, LPT1, LPT2, LPT3, LPT4, LPT5, LPT6, LPT7, LPT8, and LPT9. Microsoft warns against using these names even with extensions. These restrictions ...
by xProgrammer
Thu Aug 21, 2008 1:30 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: How to check for valid filename
Replies: 11
Views: 2093

Conexion Bluetooth

... puerto serie a un impresora bluetooth y me gustaría saber si la impresora ha recibido el fichero o no, se que con: local cConexion := CreateFile( "COM8:",GENERIC_WRITE, 0, 0, OPEN_EXISTING, FILE_ATTRIBUTE_NORMAL ) cConexion si no hay te devuelve 1 pero a mi si no tiene conexion no devuelve 1. Me ...
by softruz
Wed Mar 07, 2007 9:32 am
 
Forum: FiveWin para Pocket PC
Topic: Conexion Bluetooth
Replies: 2
Views: 1043

... mira yo creo un fichero y en la primera línea pongo: WriteByte( cConexion,Chr(27)+"C*") es decir, mi codigo es: local cConexion := CreateFile( "COM8:",GENERIC_WRITE, 0, 0, OPEN_EXISTING, FILE_ATTRIBUTE_NORMAL ) if (cConexion==-1) MsgStop('No hay conexion con la impresora',vTitulo) else WriteByte( ...
by softruz
Fri Mar 02, 2007 5:44 pm
 
Forum: FiveWin para Pocket PC
Topic: Caracteres de escape para la impresora
Replies: 12
Views: 3468

Desconexion bluetooth e impresion

... de la PDA se desconecta cuando lleva un tiempo, el codigo que uso es: static function ImprimeLinea(cTexto) local n local cConexion := CreateFile( "COM8:",GENERIC_WRITE, 0, 0, OPEN_EXISTING, FILE_ATTRIBUTE_NORMAL ) cText:=cTexto+chr(10)+chr(13)+chr(12) for n = 1 to Len( cTexto ) WriteByte( cConexion, ...
by softruz
Thu Mar 01, 2007 11:23 am
 
Forum: FiveWin para Pocket PC
Topic: Desconexion bluetooth e impresion
Replies: 0
Views: 677

Básicamente, yo utilizo un receptor GPS con conexión Bluetooth y un iPaq Pocket PC. El enlace entre el GPS y el iPaq se hace abriendo el puerto COM8 y no tienes más que ir leyendo por él los strings que envía el GPS. Tienes un buen ejemplo en \Samples\Bluetooth.prg Mi receptor GPS envía un juego ...
by Rafael Clemente
Thu Jan 04, 2007 9:55 pm
 
Forum: FiveWin para Pocket PC
Topic: conexion con gps
Replies: 17
Views: 6251

... hOut := CreateFile( "LPT1:",; // change the number as needed GENERIC_WRITE, 0, 0, OPEN_EXISTING, FILE_ATTRIBUTE_NORMAL ) local hIn := CreateFile( "COM8:",; // change the number as needed GENERIC_READ, 0, 0, OPEN_EXISTING, FILE_ATTRIBUTE_NORMAL ) DEFINE WINDOW oWnd TITLE "BlueTooth" @ 2, 2 BUTTON ...
by josevalle
Thu Jul 27, 2006 1:13 pm
 
Forum: FiveWin para Pocket PC
Topic: UN PEQUEÑO GRAN FAVOR
Replies: 6
Views: 1832

DUDA

... con mi pocket (tengo una HP iPAQ serie hx2100 con windows mobile 5.0) y una impresora STAR DP8340 con un adaptador bluetooth conectado a ella. (com8: -> puerto de salida de la pocket y com5:->puerto de entrada) Utilizo la forma de imprimir que aparece en el ejemplo bluetoth.prg El problema ...
by mamartin
Fri Jun 09, 2006 3:14 pm
 
Forum: FiveWin para Pocket PC
Topic: DUDA
Replies: 3
Views: 1355

DUDA

... con mi pocket (tengo una HP iPAQ serie hx2100 con windows mobile 5.0) y una impresora STAR DP8340 con un adaptador bluetooth conectado a ella. (com8: -> puerto de salida de la pocket y com5:->puerto de entrada) Utilizo la forma de imprimir que aparece en el ejemplo bluetoth.prg El problema ...
by mamartin
Fri Jun 09, 2006 3:11 pm
 
Forum: FiveWin for Pocket PC
Topic: DUDA
Replies: 1
Views: 971

PROBLEMA IMPRESIÓN

... Local nTotal:=0 Local hOut USE (cRutaFic+"\PARAPK") NEW GO TOP cPuerto:="COM"+str(PARAPK->PSALIDA,1)+":" CLOSE PARAPK //EL PUERTO ES EL COM8: hOut := CreateFile( rtrim(cPuerto),; GENERIC_WRITE, 0, 0, OPEN_EXISTING, FILE_ATTRIBUTE_NORMAL ) DO WHILE hOut < 0 .AND. nVeces <= 30 hOut ...
by mamartin
Thu Jun 08, 2006 1:16 pm
 
Forum: FiveWin para Pocket PC
Topic: PROBLEMA IMPRESIÓN
Replies: 0
Views: 753

Maurizio,

Try this:

#define GENERIC_READ 0x80000000
#define OPEN_EXISTING 3
#define FILE_ATTRIBUTE_NORMAL 0x00000080

...

local hIn := CreateFile( "COM8:",; // change the number as needed
GENERIC_READ, 0, 0, OPEN_EXISTING, FILE_ATTRIBUTE_NORMAL )
by Antonio Linares
Wed Nov 09, 2005 4:44 pm
 
Forum: FiveWin for Pocket PC
Topic: Bluetooth dot matrix printer (star)
Replies: 18
Views: 6804
Next

Return to advanced search