Search found 54 matches: closecomm

Return to advanced search

Re: Xbrowse and Touchscreen best use

... oLocalNum:Hide(),; // If( ! lInitModem(), oDlg:End(),),; EnableCommNotification( nComm, oDlg:hWnd, IN_BUFFER, IN_BUFFER ) ); VALID ( CloseComm( nComm ), .t. ) or this demo: *+*+      "Virtual Keyboard"#include "FiveWin.ch"#include "colors.ch"//----------------------------------------------------------------//  ...
by Otto
Sun Feb 19, 2023 9:29 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: Xbrowse and Touchscreen best use
Replies: 8
Views: 615

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: 743

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: 825

Re: Consumo de CPU

... el tema que te ocupa. cR := CommOpen( cP, aSpd[ j ] ) // Aqui es cR IF Empty( cR ) aadd( aDisponible, cP ) ELSE aadd( aNoDisponible, cR ) ENDIF CloseComm( nComm ) // Aqui es nComm
by cnavarro
Mon Jun 17, 2019 6:17 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: Consumo de CPU
Replies: 9
Views: 1444

Read Com port

... = { | nComm, nStatus | BytesAtPort( nComm, nStatus ) } ACTIVATE DIALOG oDlg ; ON INIT EnableCommNotification( nComm, oDlg:hWnd, 20, 20 ) CloseComm( nComm ) return nil function InitCOMM() local cDcb, nError, nBytes local nComm := OpenComm( "COM1", 1024, 128 ) if ! BuildCommDcb( ...
by Jack
Wed Sep 26, 2018 9:45 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: Read Com port
Replies: 13
Views: 2598

Puerto to 485 with converter a USB ,Solucionado

... ) + Chr( 0x30 ) + Chr( 0x31 ) + Chr( 0x34 ) + Chr( 0x03 ) nComm := AbrePuertoCom1( "2" ) /* COM2*/ cBloque := LeePuertoCom1( nComm,128 ) CloseComm( nComm ) Return Val( SubStr( cBloque,1,7 ) ) STATIC FUNCTION AbrePuertoCom1( cPuerto ) LOCAL cDcb, nError Local nBauds := 9600, nParity := ...
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: 1402

Lectura de puertos seriales Solucionado.. gracias

... ) + Chr( 0x30 ) + Chr( 0x31 ) + Chr( 0x34 ) + Chr( 0x03 ) nComm := AbrePuertoCom1( "2" ) /* COM2*/ cBloque := LeePuertoCom1( nComm,128 ) CloseComm( nComm ) Return Val( SubStr( cBloque,1,7 ) ) STATIC FUNCTION AbrePuertoCom1( cPuerto ) LOCAL cDcb, nError Local nBauds := 9600, nParity := ...
by Busmatic_wpb
Tue Feb 06, 2018 11:02 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: Lectura de puertos seriales..
Replies: 9
Views: 2238

Ports to 485 with converter USB, please help.

... Function Comunica() Local mport := 2 // Puerto COM Local PortId, cBloque PortId := abrirport(mport) cbloque = leer_bloque(PortId,31) CloseComm(PortId) RETURN cBloque STATIC FUNCTION abrirport(n) LOCAL IdPort, cDcb, nError IdPort := OpenComm("COM"+STR(n,1),1024,256) IF IdPort ...
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: 1402

Lectura de puertos seriales..

... 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 cerror el com Error: ' ,'',.01 ) endif return nil
by Busmatic_wpb
Tue Jan 30, 2018 11:36 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: Lectura de puertos seriales..
Replies: 9
Views: 2238

Re: Consulta sobre OpenComm()

... cbOutQueue parameters are ignored and the queue size is set to 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: 1056

Comunicación de puerto COM con Impresora Fiscal

... las funciones 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: 1713

Re: Clear COM port buffer

Jeff,

FWH provides CloseComm( nPort ), not sure if you may need to close it and open it again.

Anyhow if you post an example of how you are using it we will be able to provide you a better help,
by Antonio Linares
Sat Oct 04, 2014 10:56 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: Clear COM port buffer
Replies: 9
Views: 1665

bCommNotify Problem

... function Main() DEFINE WINDOW oWnd TITLE "Serial Test" ACTIVATE WINDOW oWnd maximized on init(Serial()) IF nCom >= 0; CLOSECOMM( nCom ); ENDIF return nil //----------------------------------------------------------------------------// static function CheckSerial() local ...
by MGA
Tue Jan 28, 2014 12:42 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: bCommNotify Problem
Replies: 5
Views: 945

Re: Ayuda para leer peso de una bascula

... FUNCTION LeeBascula() LOCAL nComm, cBloque nComm := AbrePuertoCom( "3" ) cBloque := LeePuertoCom( nComm,31 ) CloseComm( nComm ) //MsgInfo( "Lectura bascula: |" + cBloque + "|",Str( Len( cBloque ) ) ) Return Val( SubStr( cBloque,1,7 ) ) ///////////////////////////////////////////////////////////////////////////////// ...
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: 3054

Ayuda para leer peso de una bascula

... i ReadComm( nComm,@cDato ) cPaso += cDato nContador ++ If Len( AllTrim( cPaso ) ) > 0 MsgInfo( cPaso,"Bascula" ) EndIf EndDo EndIf CloseComm( nComm ) MsgInfo( cPaso, "Bytes = " + Str( Len( cPaso ) ) ) Return .F. No me marca ningun error en la linea de nError := GetCommError( ...
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: 3054
Next

Return to advanced search