Search found 110 matches: readcomm

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: 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: Read Com port

... 6000 ACTION (BytesAtPort( nComm),oLbx:Refresh()) OF oWnd ACTIVATE TIMER oTmr function BytesAtPort( nComm, nStatus ) local cBuffer:=space(18) ReadComm( nComm, @cBuffer ) select RAWPOIDS append blank replace data with cBuffer return nil
by dutch
Wed Oct 03, 2018 7:51 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: Read Com port
Replies: 13
Views: 2599

Re: Read Com port

... 6000 ACTION (BytesAtPort( nComm),oLbx:Refresh()) OF oWnd ACTIVATE TIMER oTmr function BytesAtPort( nComm, nStatus ) local cBuffer:=space(18) ReadComm( nComm, @cBuffer ) select RAWPOIDS append blank replace data with cBuffer return nil
by Jack
Wed Oct 03, 2018 5:50 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: Read Com port
Replies: 13
Views: 2599

Re: Read Com port

Hi Jack, I don't use the library you're using, so let's go for trial... The Readcomm function expects Cbuffer as: A string variable supplied by reference where ReadComm() will place the read bytes. The length of the initial supplied value specifies the wished ...
by Diego Decandia
Sat Sep 29, 2018 3:39 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Read Com port
Replies: 13
Views: 2599

Re: Read Com port

>>ReadComm( nComm, @cBuffer ) // <<<<---- program will lock here
>>Msginfo( AllTrim( cBuffer ))

Excuse me, but I do not understand how from these lines, if you run only once, can result two msginfo...

In any way, what is the total string?
by Diego Decandia
Fri Sep 28, 2018 1:02 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Read Com port
Replies: 13
Views: 2599

Re: Read Com port

Hi, I have delete the MsgInfo for the status . I have only this : ReadComm( nComm, @cBuffer ) // <<<<---- program will lock here Msginfo( AllTrim( cBuffer )) But it gives me 2 times the MsgInfo , first with a part of the info and the second with ...
by Jack
Fri Sep 28, 2018 11:11 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: Read Com port
Replies: 13
Views: 2599

Read Com port

... "Error SETCOMM!" ) return .f. endif return nComm function BytesAtPort( nComm, nStatus ) local cBuffer := Space(20 ) Msginfo( nSTATUS) ReadComm( nComm, @cBuffer ) // <<<<---- program will lock here Msginfo( AllTrim( cBuffer )) return nil
by Jack
Wed Sep 26, 2018 9:45 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: Read Com port
Replies: 13
Views: 2599

Puerto to 485 with converter a USB ,Solucionado

... de informacion TX de leer el buffer completo Asi si el bloque de datos no sale completo solo incrementa el tiempo del sleep(000) */ nBytes := ReadComm( nComm, @cBloque ) ?? @cBloque Return cBloque
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: 1404

Lectura de puertos seriales Solucionado.. gracias

... de informacion TX de leer el buffer completo Asi si el bloque de datos no sale completo solo incrementa el tiempo del sleep(000) */ nBytes := ReadComm( nComm, @cBloque ) ?? @cBloque Return cBloque
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.

... Seteado") ENDIF RETURN IdPort STATIC FUNCTION leer_bloque(port,n) LOCAL bloque:= SPACE(n),bcc1,nBytes,i:=1 DO WHILE .t. nBytes := ReadComm( port,@bloque) i++ IF EMPTY(bloque) MsgWait("Esperando ENQ","Espere",3) mandar_enq(port) LOOP ENDIF IF i > 20 // .or. ...
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: 1404

Lectura de puertos seriales..

... enviado'+str(BitesSend,5),'',.5000) ENDIF cBlock=space(1024) nTry=0 do while nTry<10 // can remove this nTry if not applicable if ( nBytes := readComm( nComm, @cBlock) ) > 0 msgwait('Esperando haber si lee algo , espere'+str(nTry,5),'',.10) LogFile( "Milagros.log", cBlock) exit ...
by Busmatic_wpb
Tue Jan 30, 2018 11:36 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: Lectura de puertos seriales..
Replies: 9
Views: 2239

Re: Consulta sobre OpenComm()

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

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

Antonio... Incluí el comm.cc dentro de un prg y ya me compila. obtengo estos resultados 1.  if( pComm->CommNotifyHwnd != NULL )         SendMessage( pComm->CommNotifyHwnd, WM_COMMNOTIFY, ( WPARAM ) pComm,                      MAKELONG( CN_RECEIVE, 0 ) );      Me...
by russimicro
Sun Feb 12, 2017 8:35 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: LEER PUERTO SERIAL VIA RDP / SOLUCIONADO PARA LOCAL Y REMOTO
Replies: 28
Views: 6718

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

... with no prototype in function HB_FUN_OPENCOMM Warning W8012 .\..\\source\winapi\comm.c 333: Comparing signed and unsigned values in function ReadComm Warning W8019 .\..\\source\winapi\comm.c 334: Code has no effect in function ReadComm Turbo Incremental Link 5.69 Copyright (c) 1997-2005 Borland ...
by russimicro
Sun Feb 12, 2017 3:41 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: LEER PUERTO SERIAL VIA RDP / SOLUCIONADO PARA LOCAL Y REMOTO
Replies: 28
Views: 6718
Next

Return to advanced search