Search found 53 matches: getcommerror

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

Puerto to 485 with converter a USB ,Solucionado

... ,9600, N, 8, 1, .F. */ nComm := OpenComm( "COM" + cPuerto ,nBauds, nParity, nDataByt, nStopBits, lIRmode) If nComm <= 0 nError := GetCommError( nComm ) MsgInfo( "Error al abrir puerto: " + Str( nError ) ) EndIf If ! BuildCommDcb( "COM" + cPuerto + ":9600,N,8,1" ...
by Busmatic_wpb
Thu Feb 08, 2018 11:36 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Ports to 485 with converter USB, please help.
Replies: 7
Views: 1424

Lectura de puertos seriales Solucionado.. gracias

... ,9600, N, 8, 1, .F. */ nComm := OpenComm( "COM" + cPuerto ,nBauds, nParity, nDataByt, nStopBits, lIRmode) If nComm <= 0 nError := GetCommError( nComm ) MsgInfo( "Error al abrir puerto: " + Str( nError ) ) EndIf If ! BuildCommDcb( "COM" + cPuerto + ":9600,N,8,1" ...
by Busmatic_wpb
Tue Feb 06, 2018 11:02 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: Lectura de puertos seriales..
Replies: 9
Views: 2250

Ports to 485 with converter USB, please help.

... cBloque STATIC FUNCTION abrirport(n) LOCAL IdPort, cDcb, nError IdPort := OpenComm("COM"+STR(n,1),1024,256) IF IdPort <= 0 nError = GetCommError( IdPort) MsgInfo( "Error al abrir: " + Str( nError ) ) ELSE MsgRun("Puerto abierto como " + STR(IdPort)) ENDIF IF ! ...
by Busmatic_wpb
Mon Feb 05, 2018 11:33 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Ports to 485 with converter USB, please help.
Replies: 7
Views: 1424

Lectura de puertos seriales..

... 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 = GetCommError( nComm ) Msgwait( 'No Pude ...
by Busmatic_wpb
Tue Jan 30, 2018 11:36 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: Lectura de puertos seriales..
Replies: 9
Views: 2250

Re: Consulta sobre OpenComm()

... 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: 1079

Re: LEER PUERTO SERIAL VIA RDP / readComm ?? Para Antonio


n := ReadComm( nComm, @cBuffer)
alert( GetCommError( nComm ) ) // = 0.00 valor retornado
alert(n) // = 0.00 valor retornado
alert(cBuffer) // retorno vacio

by russimicro
Fri Feb 03, 2017 1:02 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: LEER PUERTO SERIAL VIA RDP / SOLUCIONADO PARA LOCAL Y REMOTO
Replies: 28
Views: 6790

Re: LEER PUERTO SERIAL VIA RDP / readComm ?? Para Antonio

Comprueba que valor devuelve GetCommError( nComm ) a continuación de llamar a ReadComm()
by Antonio Linares
Fri Feb 03, 2017 10:41 am
 
Forum: FiveWin para Harbour/xHarbour
Topic: LEER PUERTO SERIAL VIA RDP / SOLUCIONADO PARA LOCAL Y REMOTO
Replies: 28
Views: 6790

Re: Ayuda para leer peso de una bascula

... cPuerto ) LOCAL nComm, cDcb, nError nComm := OpenComm( "COM" + cPuerto + ":9600,N,8,1",2048,512) If nComm <= 0 nError := GetCommError( nComm ) MsgInfo( "Error al abrir bascula: " + Str( nError ) ) EndIf If ! BuildCommDcb( "COM" + cPuerto + ":9600,n,8,1" ...
by EBM
Sun Jul 14, 2013 3:28 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: Ayuda para leer peso de una bascula
Replies: 9
Views: 3059

Ayuda para leer peso de una bascula

... nComm := OpenComm("COM3:9600,N,8,1",2048,512) cDato := Space(80) If !BuildCommDcb( "COM3:9600,e,8,1", @cDcb ) nError := GetCommError( nComm ) MsgInfo( "Error de bascula: " + Str( nError ) ) else Do While nContador < 10 For i := 1 to 3000 Next i ReadComm( ...
by EBM
Fri Jul 05, 2013 12:20 am
 
Forum: FiveWin para Harbour/xHarbour
Topic: Ayuda para leer peso de una bascula
Replies: 9
Views: 3059

Porque no aparece la Lectura del Codigo

... of my equipment, check your scanner for correct parameters hPORT:= OpenComm( pNAME, 1024, 128 ) If ! BuildCommDcb( pNAME+cSPEED, @cDcb ) nError = GetCommError( hPORT ) MsgInfo( "BuildCommDcb Error: " + Str( nError ) ) xRESZTA:=.F. EndIf If ! SetCommState( hPORT, cDcb ) nError = GetCommError( ...
by Andres Barillas
Sun Dec 18, 2011 5:35 am
 
Forum: FiveWin para Harbour/xHarbour
Topic: Porque no aparece la Lectura del Codigo
Replies: 0
Views: 599

Foro Help! lector de codigo de barras serial

... 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 alguien ya tiene ...
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

codigo de barras serial (com1) ayuda urgente

... del Foro **************** FUNCTION abrirport LOCAL IdPort,cDcb,nError IdPort := OpenComm("COM1",1024,1024) IF IdPort <= 0 nError = GetCommError( IdPort) MsgInfo( "Error al abrir: " + Str( nError ) ) ELSE MsgRun("Puerto abierto como " + STR(IdPort)) ENDIF IF ! ...
by Andres Barillas
Mon Dec 12, 2011 7:13 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: codigo de barras serial (com1) ayuda urgente
Replies: 6
Views: 2336

lector de codigo de barras com ayuda urgente

... del Foro **************** FUNCTION abrirport LOCAL IdPort,cDcb,nError IdPort := OpenComm("COM1",1024,1024) IF IdPort <= 0 nError = GetCommError( IdPort) MsgInfo( "Error al abrir: " + Str( nError ) ) ELSE MsgRun("Puerto abierto como " + STR(IdPort)) ENDIF IF ! ...
by Andres Barillas
Mon Dec 12, 2011 7:05 pm
 
Forum: FiveWin para CA-Clipper
Topic: lector de codigo de barras com ayuda urgente
Replies: 0
Views: 1035
Next

Return to advanced search