Search found 95 matches: opencomm

Return to advanced search

Re: How to read data from a serial port ?

Enrico,
IF you have COM1 in your micro, could you try this code for a COM port that doesn't exist ?
I'm having the problem when I try to do an OpenComm( cPort, 1024, 10 ), for a COM port that doesn't exist in my computer. The function returns -1, but each time I try, CPU use is increased quickly.
by vilian
Wed Jul 28, 2021 4:57 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: How to read data from a serial port ?
Replies: 10
Views: 958

Re: RS232 - dispensing equipment

Surely you need to use the function OpenComm()

nComm := OpenComm( "COM1", 1024, 128 )


I have never used it
by cnavarro
Tue Dec 03, 2019 10:10 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: RS232 - dispensing equipment
Replies: 2
Views: 371

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

Read Com port

... EnableCommNotification( nComm, oDlg:hWnd, 20, 20 ) CloseComm( nComm ) return nil function InitCOMM() local cDcb, nError, nBytes local nComm := OpenComm( "COM1", 1024, 128 ) if ! BuildCommDcb( "COM1:9600,n,8,1", @cDcb ) MsgStop( "Error BUILD!" ) return .f. endif ...
by Jack
Wed Sep 26, 2018 9:45 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: Read Com port
Replies: 13
Views: 2604

Puerto to 485 with converter a USB ,Solucionado

... := ONE5STOPBITS /*De las formas que trate encontre esta manera configurar el puerto y me funciono "COM1" ,9600, N, 8, 1, .F. */ nComm := OpenComm( "COM" + cPuerto ,nBauds, nParity, nDataByt, nStopBits, lIRmode) If nComm <= 0 nError := GetCommError( nComm ) MsgInfo( "Error ...
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: 1409

Lectura de puertos seriales Solucionado.. gracias

... := ONE5STOPBITS /*De las formas que trate encontre esta manera configurar el puerto y me funciono "COM1" ,9600, N, 8, 1, .F. */ nComm := OpenComm( "COM" + cPuerto ,nBauds, nParity, nDataByt, nStopBits, lIRmode) If nComm <= 0 nError := GetCommError( nComm ) MsgInfo( "Error ...
by Busmatic_wpb
Tue Feb 06, 2018 11:02 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: Lectura de puertos seriales..
Replies: 9
Views: 2239

Ports to 485 with converter USB, please help.

... 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 <= 0 nError = GetCommError( IdPort) MsgInfo( "Error al abrir: " + Str( nError ) ) ...
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: 1409

Lectura de puertos seriales..

... y no logro. Dejo a Continuacion el Programa. #include "Fivewin.ch" function LeErPuertos() Local cDcb, lError, nError Local nComm := OpenComm( "COM2", 4024, 1024 ) if ! BuildCommDcb( "COM2:9600,N,8,1", @cDcb ) MsgStop( "Error BUILD!" ) return .f. endif ...
by Busmatic_wpb
Tue Jan 30, 2018 11:36 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: Lectura de puertos seriales..
Replies: 9
Views: 2239

Enumerar los puertos serie

Buenos días. ¿Existe alguna forma de poder conocer los puertos serie disponibles en un equipo, sin tener que recurrir a las llamadas a opencomm()? He probado con la pequeña función que he puesto más abajo, pero no me devuelve nada STATIC FUNCTION puertocom()LOCAL  oDatosLOCAL ...
by groiss
Thu Aug 10, 2017 9:56 am
 
Forum: FiveWin para Harbour/xHarbour
Topic: Enumerar los puertos serie
Replies: 5
Views: 786

Re: Consulta sobre OpenComm()

Carlos y Antonio, muchas gracias de nuevo.
by fernandomoralesdr
Fri Jun 16, 2017 7:47 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: Consulta sobre OpenComm()
Replies: 5
Views: 1069

Re: Consulta sobre OpenComm()

Image
by carlos vargas
Fri Jun 16, 2017 6:02 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: Consulta sobre OpenComm()
Replies: 5
Views: 1069

Re: Consulta sobre OpenComm()

Carlos, muchas gracias por tu pronta respuesta y haberme aclarado el tema.
Una pregunta: ¿dónde se encuentra ese archivo func.chm al que haces referencia? He estado buscando el los directorios de FWH y Harbour y no lo veo.
by fernandomoralesdr
Fri Jun 16, 2017 6:47 am
 
Forum: FiveWin para Harbour/xHarbour
Topic: Consulta sobre OpenComm()
Replies: 5
Views: 1069

Re: Consulta sobre OpenComm()

del archivo de ayuda func.chm OpenComm() Open the communication port to start using it Syntax: OpenComm( <cCommName> [,<nSizeIn>] [,<nSizeOut>] ) --> nIdComm Parameters: <cCommName> The name of the comm device ...
by carlos vargas
Thu Jun 15, 2017 10:57 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: Consulta sobre OpenComm()
Replies: 5
Views: 1069
Next

Return to advanced search