Search found 33 matches: flushcomm

Return to advanced search

Does FiveLinux support RS232 Comm Functions??

Hello, I have been able to compile most of the sample linux prg's OK and have written a few of my own that compile and run OK. I have a need to do some serial communications (RS232). These are the linking errors I get when trying to compile. vend@v1:~/fivelinux/samples$ ./build.sh qibixx compiling.....
by bradmaudlin
Tue Nov 26, 2019 2:27 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: Does FiveLinux support RS232 Comm Functions??
Replies: 1
Views: 744

Does FiveLinux support Serial Communications (RS232)

Hello, I have been able to compile most of the sample linux prg's OK and have written a few of my own that compile and run OK. I have a need to do some serial communications (RS232). These are the linking errors I get when trying to compile. vend@v1:~/fivelinux/samples$ ./build.sh qibixx compiling.....
by bradmaudlin
Mon Nov 25, 2019 10:23 pm
 
Forum: FiveLinux / FiveDroid (Android)
Topic: Does FiveLinux support Serial Communications (RS232)
Replies: 1
Views: 831

Lectura de puertos seriales..

... := WriteComm( nComm, "02 30 30 30 31 31 33 30 30 31 34 03" )) > 0 msgwait('Sen han enviado'+str(BitesSend,5),'',.900) ENDIF enddo if FlushComm( nComm, 0 ) != 0 nError = GetCommError( nComm ) Msgwait( 'Error Limpiando el COM Error:' ,'',.01 ) endif if ! CloseComm( nComm ) nError = ...
by Busmatic_wpb
Tue Jan 30, 2018 11:36 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: Lectura de puertos seriales..
Replies: 9
Views: 2244

Re: Consulta sobre OpenComm()

... zero. Sample: SAMPLES\\TestComm.prg Source Code: SOURCE\\WINAPI\\Comm.c See also: CloseComm() WriteComm() ReadComm() BuildCommDcb() SetCommState() FlushComm() GetCommError()
by carlos vargas
Thu Jun 15, 2017 10:57 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: Consulta sobre OpenComm()
Replies: 5
Views: 1072

Re: Error sobre una bascula

... lTrabajando = .T. nBytes := WriteComm(nComm,AllTrim(PARBASCULA->COMANDO)) //aquimando una "P" IF nBytes <= 0 RETURN ENDIF IF FlushComm(nComm,0) != 0 RETURN ENDIF ReadComm( nComm, @cBuffer ) IF Empty(cBuffer) .OR. Len(AllTrim(cBuffer)) <= 0 .OR. AllTrim(cBuffer) = "kg" ...
by Antonio Linares
Wed Jun 01, 2016 6:57 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: Error sobre una bascula (SOLUCIONADO)
Replies: 9
Views: 2225

Comunicación de puerto COM con Impresora Fiscal

... de ClipperTools, como COM_OPEN, COM_CLOSE, COM_FLUSH no funcionan. Si he encontrado en el foro, que existen funciones como OpenComm,CloseComm,FlushComm, el tema es que necesito algunas funciones más y saber como se utilizan éstas, otras que uso son COM_SETIO,COM_SETIRQ,COM_INIT,COM_READ,COM_COUNT. ...
by TOTOVIOTTI
Mon Jul 27, 2015 7:52 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: Comunicación de puerto COM con Impresora Fiscal
Replies: 8
Views: 1727

bCommNotify Problem

... static function CheckSerial() local cRetorno:=space(200), nBytesRead FlushComm( nCom, 0 ) SysWait( 0.4 ) nBytesRead := ReadComm( nCom, @cRetorno ) ? cRetorno return nil /**********************************************************/ ...
by MGA
Tue Jan 28, 2014 12:42 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: bCommNotify Problem
Replies: 5
Views: 946

PROBLEMAS CON COMUNICACION SERIE

... > 0 ::cBuffer := cBuffer lSalir := .T. ENDIF * tiempo de espera antes de vaciar el buffer SysWait(::nDelay) * vacia el buffer IF FlushComm(::nCom,0) <> 0 ::Error(6) RETURN (.F.) ENDIF * refresca sistema SysRefresh() ENDDO // destruye el temporizador IIF(nTime>0,oTimer:Deactivate(),) ...
by maruan14
Mon Aug 06, 2012 9:46 am
 
Forum: FiveWin para CA-Clipper
Topic: PROBLEMAS CON COMUNICACION SERIE
Replies: 10
Views: 5613

Re: problem with communication (RS232)

Try to call SysRefresh() between these two calls:

FlushComm(nComRam,1)

SysRefresh()

WriteComm(nComRam, "$01"+"6"+chr(13))
by Antonio Linares
Sat Jul 28, 2012 11:40 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: problem with communication (RS232)
Replies: 6
Views: 1166

Foro Help! lector de codigo de barras serial

... como lo hace un lector para teclado; en samples hay prgs para el uso del puerto comm con estas instrucciones OpenComm(), Closecomm(), ReadComm(), FlushComm(), GetCommError(), BuildCommDCB(), WriteComm(), EnableCommNot() y SetCommState(). Utilizo una versiom fw24 con ajm, hay alguna libreria o ...
by Andres Barillas
Tue Dec 13, 2011 1:47 am
 
Forum: FiveWin para Harbour/xHarbour
Topic: Foro Help! lector de codigo de barras serial
Replies: 2
Views: 714

Re: CAPTURAR LAMADA DE CENTRAL TELEFONICA

... ','',1) endif enddo numero := substr(cBlock,47,10) *?? numero *Lector() //*/* Lueog lo procesamos. *graba_llamada(numero) *numero := space(8) if FlushComm( gnComm, 0 ) != 0 nError = GetCommError( gnComm ) Msgwait( 'Error Limpiando el COM Error:' ,'',.01 ) endif cBlock=space(702) if MsgYesno('Desea ...
by luisduque
Sun Mar 13, 2011 6:31 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: CAPTURAR LAMADA DE CENTRAL TELEFONICA
Replies: 2
Views: 833

CAPTURAR LAMADA DE CENTRAL TELEFONICA

... ','',1) endif enddo numero := substr(cBlock,47,10) *?? numero *Lector() //*/* Lueog lo procesamos. *graba_llamada(numero) *numero := space(8) if FlushComm( gnComm, 0 ) != 0 nError = GetCommError( gnComm ) Msgwait( 'Error Limpiando el COM Error:' ,'',.01 ) endif if ! CloseComm( gnComm ) nError ...
by EASYSOFT
Sun Mar 13, 2011 1:02 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: CAPTURAR LAMADA DE CENTRAL TELEFONICA
Replies: 2
Views: 833

Re: FlushComm()

Jeff, HB_FUNC( FLUSHCOMM ){  hb_retl( PurgeComm( ( HANDLE ) hb_parnl( 1 ), ( DWORD ) hb_parnl( 2 ) ) );}  The second parameter can be one or a combination of the following ...
by Antonio Linares
Sun Feb 28, 2010 3:12 pm
 
Forum: FiveWin for Pocket PC
Topic: FlushComm()
Replies: 1
Views: 579

FlushComm()

... to get ReadComm() and WriteComm() to work he had me add the following code to the end of my .prg file. I now need the same type of thing for FlushComm(). HB_FUNC( READCOMM ){  DWORD dw = 0;  ReadFile( ( HANDLE ) hb_parnl( 1 ), ( LPVOID ) ...
by Jeff Barnes
Sat Feb 27, 2010 11:29 pm
 
Forum: FiveWin for Pocket PC
Topic: FlushComm()
Replies: 1
Views: 579

Re: Ayuda Con Puertos COMM

Hola ha Todos Despues de tantas Pruebas he resuleto esto de los puertos, anexe la funcion de flushcomm(), pero continuaba el problema que no procesaba los comandos enviados al indicador de la bascula, esto se vino a solucionar de forma temporal y rapaida anexando un ciclo ...
by carloslmm
Tue Feb 23, 2010 4:30 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: Ayuda Con Puertos COMM
Replies: 7
Views: 1392
Next

Return to advanced search