Search found 95 matches: opencomm

Return to advanced search

Re: ReadComm( )

... Case xPORT=7 pNAME:="COM7" Case xPORT=8 pNAME:="COM8" Case xPORT=9 pNAME:="COM9" EndCase hPORT:= OpenComm( pNAME, 2048, 2048 ) If ! BuildCommDcb( pNAME+cSPEED, @cDcb ) nError = GetCommError( hPORT ) MsgInfo( "BuildCommDcb Error: " + Str( ...
by Robert Frank
Fri Oct 22, 2010 9:55 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: ReadComm( )
Replies: 4
Views: 1900

Re: Comm with USB device

All examples use OPENCOMM and WRITECOMM, but no examples show READCOMM.

It is supposed to place the value from the pointer in the referenced field, and return the number of bytes in the string. I get a return value of 8, which is correct, but no string placed in the buffer.

Thoughts ?
by TimStone
Tue Oct 19, 2010 9:46 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Comm with USB device
Replies: 4
Views: 1303

Re: Capturar numero telefonico con fivewin

... nil //----------------------------------------------------------------------------// function lInitModem() local cDcb, nError, nBytes nComm = OpenComm( "COM1", 1024, 128 ) if ! BuildCommDcb( "COM1:19200,n,8,1", @cDcb ) nError = GetCommError( nComm ) MsgStop( "Error ...
by Erick Almanza
Tue Oct 19, 2010 2:57 am
 
Forum: FiveWin para Harbour/xHarbour
Topic: Capturar numero telefonico con fivewin
Replies: 12
Views: 4904

Re: Comm with USB device

... Case xPORT=7 pNAME:="COM7" Case xPORT=8 pNAME:="COM8" Case xPORT=9 pNAME:="COM9" EndCase hPORT:= OpenComm( pNAME, 2048, 2048 ) If ! BuildCommDcb( pNAME+cSPEED, @cDcb ) nError = GetCommError( hPORT ) MsgInfo( "BuildCommDcb Error: " + Str( ...
by Robert Frank
Mon Oct 11, 2010 6:22 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Comm with USB device
Replies: 4
Views: 1303

Comm with USB device

Can someone point me to a reference for using Comm communications with a USB port ? All samples of OpenComm are with Com1-4. Thanks.
by TimStone
Fri Oct 08, 2010 6:17 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Comm with USB device
Replies: 4
Views: 1303

Re: Se necesita ayuda en el wiki !

... clipper> y <code> . No está formateando cuando hay código en los ejemplos. Cambiaron estos tags ? Oclone() OemToAnsi() OpenClipboard() OpenComm() ORead() OSend() OutportByte() OutportWord() OutputDebugString() oWndFromhWnd() PageBegin() PalBmpDraw() PalBmpLoad() PalBmpRead() PalBtnPaint() ...
by Cgallegoa
Tue Feb 23, 2010 3:32 am
 
Forum: FiveWin para Harbour/xHarbour
Topic: Se necesita ayuda en el wiki !
Replies: 12
Views: 5576

Saber si el puerto COM está abierto

Muy buenas, despues de muchas pruebas me doy cuenta que cuando abro el puerto COM con OpenComm siempre me devuelve un número positivo y nunca me da uno negativo ni 0, entonces mi pregunta es. ¿Como puedo saber si el puerto está abierto o cerrado?

Un Saludo.
by softruz
Wed Jul 01, 2009 12:12 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: Saber si el puerto COM está abierto
Replies: 0
Views: 224

First FWPPC App - Help :-)

... oDlg1 ) if ! empty( oTimerWalk ) oTimerWalk:Deactivate() endif lFirstRun := .t. WinExec("\EzSat\DLL\SetComm4.bat",0) nComm:= OpenComm( "Com4", 1024, 128 ) Syswait(.01) if ! BuildCommDcb( "COM4:9600,n,8,1", @cDcb ) lLoop := .f. oDlg1:End() RETURN NIL endif ...
by Jeff Barnes
Wed Jan 07, 2009 1:45 pm
 
Forum: FiveWin for Pocket PC
Topic: First FWPPC App - Help :-)
Replies: 31
Views: 5413

Sr. Antonio - Ler COM !

Sr. Antonio, eu vinha utilizando sem problemas as funções do fivewin para ler a porta serial: local cDcb, nBytes local nComm := OpenComm( "COM1", 1024, 128 ) local nError,x,cmsg,CTES,cret,npos,cretbalan if ! BuildCommDcb( "COM1:19200,n,8,1", @cDcb ) nError = GetCommError( nComm ) MsgInfo( ...
by MGA
Fri Dec 19, 2008 1:24 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: Sr. Antonio - Ler COM !
Replies: 6
Views: 1062

Pelo o que pude entender no link abaixo diz que isso é limitado mesmo na OPENCOMM() sobre a COM9 em diante.
http://support.microsoft.com/kb/105010/pt-br
by sygecom
Mon Dec 01, 2008 9:09 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: Comunicação Serial usando a Fivewin
Replies: 6
Views: 1641

Não testei com TS. uso estas funções: local cDcb, nBytes,A local nComm := OpenComm( "COM1", 1024, 128 ) local nError,x,cmsg,CTES,cret,npos,cretbalan if ! BuildCommDcb( "COM1:19200,n,8,1", @cDcb ) nError = GetCommError( nComm ) MsgInfo( "BuildCommDcb Error: " ...
by MGA
Mon Dec 01, 2008 7:51 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: Comunicação Serial usando a Fivewin
Replies: 6
Views: 1641

E nesse link abaixo pelo que entendi explica como usar portas acima da COM9, porem testei com esse MYOPENCOMM e também não deu certo.
http://www.fivetechsoft.com/forums/view ... t=opencomm
by sygecom
Mon Dec 01, 2008 7:47 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: Comunicação Serial usando a Fivewin
Replies: 6
Views: 1641

Jeff, Please define this function in your PRG and use this one instead of OpenComm(): #pragma BEGINDUMP #include <hbapi.> #include <windows.h> unsigned long OpenComm( char *, WORD, WORD ); HB_FUNC( MYOPENCOMM ) { WORD ...
by Antonio Linares
Sat Sep 20, 2008 11:35 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Comm Port Settings
Replies: 8
Views: 1861

Jeff,

It means "invalid handle". Maybe there is a sign issue.

Lets review the source code for OpenComm()
by Antonio Linares
Sat Sep 20, 2008 11:25 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Comm Port Settings
Replies: 8
Views: 1861

Ahora Si funciono-

... D se traen las suyas. Bien Aqui esta. #include "fiveWin.ch" function fReadPort local cDcb, lError, nError cErrCode := space( 15 ) if !( gnComm := OpenComm( 'COM1', 1024, 16 ) ) == 0 if !(BuildCommDcb( "COM1:9600,E,8,1", @cDcb ) .and. SetCommState( @cDcb ) ) nError := GetCommError( gnComm, @cErrCode ...
by busmatic
Mon Sep 15, 2008 3:03 am
 
Forum: FiveWin para Harbour/xHarbour
Topic: como obtener la lectura del buffer en COM
Replies: 3
Views: 1058
PreviousNext

Return to advanced search