Search found 83 matches: buildcommdcb

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

Read Com port

... 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 #ifdef __CLIPPER__ if ! SetCommState( cDcb ) ...
by Jack
Wed Sep 26, 2018 9:45 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: Read Com port
Replies: 13
Views: 2606

Puerto to 485 with converter a USB ,Solucionado

... nStopBits, lIRmode) If nComm <= 0 nError := GetCommError( nComm ) MsgInfo( "Error al abrir puerto: " + Str( nError ) ) EndIf If ! BuildCommDcb( "COM" + cPuerto + ":9600,N,8,1" , @cDcb ) nError := GetCommError( nComm ) MsgInfo( "Error al Configurar puerto: ...
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: 1421

Lectura de puertos seriales Solucionado.. gracias

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

Ports to 485 with converter USB, please help.

... IdPort) MsgInfo( "Error al abrir: " + Str( nError ) ) ELSE MsgRun("Puerto abierto como " + STR(IdPort)) ENDIF IF ! BuildCommDcb("COM"+STR(n,1)+":9600,n,8,1" , @cDcb) nError = GetCommError( IdPort) MsgInfo( "Error al Configurar: " + Str( ...
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: 1421

Lectura de puertos seriales..

... #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 #ifdef __CLIPPER__ if ! SetCommState( cDcb ) ...
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()

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

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

Antonio ... Buena tarde

El retorno es mayor a cero ...

local nComm := OpenComm( "COM5", 1024, 128 )

ALERTA(nComm) // 65007860.00

if ! BuildCommDcb( "COM5:9600,n,8,1", @cDcb )
MsgStop( "Error BUILD!" )
return .f.
endif
by russimicro
Thu Feb 09, 2017 11:20 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: LEER PUERTO SERIAL VIA RDP / SOLUCIONADO PARA LOCAL Y REMOTO
Replies: 28
Views: 6776

Re: WriteComm()

I remember back a while ago I ran into this BuildCommDcb issue... It appears that with the Toshiba Bluetooth Stack BuilcCommDcb will return .t. With no code changes, BuildCommDcb returns .f. with the Microsoft Bluetooth Stack. The unfortunate part ...
by Jeff Barnes
Tue Feb 25, 2014 12:17 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: WriteComm()
Replies: 36
Views: 7698

Re: WriteComm()

Jeff,

Jeff Barnes wrote:BuildCommDcb() still returns .f.


If BuildCommDcb() returns .f. there is something wrong for sure...

EMG
by Enrico Maria Giordano
Tue Feb 25, 2014 9:41 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: WriteComm()
Replies: 36
Views: 7698

Re: WriteComm()

Ok guys, I am officially losing my mind on this one.... Nothing has changed since yesterday. I haven't even rebooted my laptop. BuildCommDcb() still returns .f. and SetComState() still returns .t. BUT now WriteComm() does timeout. I swear I didn't do anything different since yesterday. ...
by Jeff Barnes
Tue Feb 25, 2014 12:09 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: WriteComm()
Replies: 36
Views: 7698

Re: WriteComm()

Jeff, Now I try it this way and BuildCommDcb will show the error message but still connects when the device is available. How can it fail but still read/write to the com port ???? IF ! BuildCommDcb( "COM4:9600,N,8,1", @cDcb ...
by Enrico Maria Giordano
Sun Feb 23, 2014 9:30 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: WriteComm()
Replies: 36
Views: 7698

Re: WriteComm()

Enrico, Now I'm confused... I was doing the following and if the device is available it worked: BuildCommDcb( "COM4:9600,N,8,1", @cDcb )   Now I try it this way and BuildCommDcb will show the error message but still connects when the device is available. ...
by Jeff Barnes
Sun Feb 23, 2014 7:46 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: WriteComm()
Replies: 36
Views: 7698

bCommNotify Problem

... static function Serial() LOCAL cDcb BEGIN SEQUENCE nCom := OPENCOMM( "COM1", 16384, 16384 ) IF nCom < 0 BREAK ENDIF BUILDCOMMDCB( "COM1:9600,N,8,1", @cDcb ) IF !SETCOMMSTATE( nCom, cDcb ) BREAK ENDIF EnableCommNotification( nCom, oWnd:hWnd, 1, -1 ) oWnd:bCommNotify ...
by MGA
Tue Jan 28, 2014 12:42 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: bCommNotify Problem
Replies: 5
Views: 946
Next

Return to advanced search