Search found 14 matches: rts

Return to advanced search

Re: Ports to 485 with converter USB, please help.

... != sizeof(buffer_to_send)) { printf("ERROR! write() failed \r\n"); } ti_prev.c_cflag &= ~HUPCL; // This to release the RTS after close tcsetattr(fd, TCSANOW, &ti_prev); // Restore the previous serial config close(fd); return 0; }
by Busmatic_wpb
Thu Feb 08, 2018 3:30 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: Ports to 485 with converter USB, please help.
Replies: 7
Views: 1396

Re: Cash with protocol Xon-Xoff

... nCMD1+=",TO=OFF,XON=ON,IDSR=OFF,ODSR=OFF,OCTS=OFF,DTR=OFF,RTS=OFF" RUN (nCMD1) after i send with the TYPE command the file with the command cash register nCMD2:="TYPE SCOBIG.TXT > "+nCOMPRT ...
by vensanto
Tue Mar 05, 2013 1:43 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Cash with protocol Xon-Xoff
Replies: 4
Views: 1109

Communication with ARM9

I just order FWPPC for running on S3C2440 Friendly ARM9 with Windows CE 5.0-6.0, When test the samples SetComm.prg return is .f. and TestComm.prg notthing happen. I try to use this code for capture the result but function OpenCom return value of hComm more than 9 and alway change. #include "FWC...
by Surasak
Thu Jun 30, 2011 9:36 am
 
Forum: FiveWin for Pocket PC
Topic: Communication with ARM9
Replies: 6
Views: 1863

EscapeCommFunction No funciona

Muy buenas, estoy utilizando la funcion EscapeCommFunction para activar y desactivar el RTS pero no me funciona yo utilizo lo hago así: if !BuildCommDcb( alltrim(cPort)+":"+alltrim(cBaud)+","+alltrim(cParity)+","+alltrim(cData)+","+alltrim(cStop), ...
by softruz
Wed Dec 02, 2009 9:58 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: EscapeCommFunction No funciona
Replies: 3
Views: 478

Comunicacion con dispositivos-[DTR/RTS]

Muy buenas, tengo un dispositivo y me gustaría saber como puedo activar y desactivar DTR y RTS del protocolo serie, es decir, ¿alguien tiene un ejemplo de como hacer esto cada vez que quiera escribir en el dispositivo?

Un Saludo.
by softruz
Tue Dec 01, 2009 7:01 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Comunicacion con dispositivos-[DTR/RTS]
Replies: 1
Views: 460

BuildCommDCB: flow control strings

... strings ending with "p" or "x". I'm confused. Definitely, what do I have to add to the string above to enable: 1) XON/XOFF 2) RTS/CTS 3) DSR/DTR Thanks, Davide
by Davide
Sun Nov 29, 2009 1:57 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: BuildCommDCB: flow control strings
Replies: 1
Views: 649

... I'm currently at a customers site and doing some tests using fivewin functions, however whenever i try to use the function escapecomm to set rts i get an unresolved external when i compile - i'm currently using FWH 7.12 and can't upgrade at the moment untill i get back in the office - is ...
by PeterHarmes
Tue Nov 11, 2008 1:44 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Serial Communications
Replies: 7
Views: 1287

... Rate: 1200 a 115.200 bits: WORD; // Data Bits parity: WORD; // Paridade stops: WORD; // Stop Bits handshaking: BYTE; // 0 = Sem Hand Shaking, 1 = RTS/CTS end; type ARG_COM_SETUPSERIAL = packed record com: BYTE; Setup: TSetupSerial; end; type ARG_CARD = packed record card: array [0..128] of BYTE; ...
by MGA
Wed Jul 23, 2008 4:57 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: Como chamar esta DLL ??
Replies: 10
Views: 3920

Según la documentación de Microsoft, al usar esta cadena de conexión: BuildCommDcb( "COM1:9600,n,8,1", @cDcb ) el RTS se debería activar. Aqui te copio la explicación que ellos dan: · For a string such as 96,n,8,1 or any other older-form mode string that doesn't end with an x or ...
by Antonio Linares
Thu May 08, 2008 1:01 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: Activar RTS en la Comunicacion COM
Replies: 1
Views: 485

Activar RTS en la Comunicacion COM

Muy buenas foro, estoy utilizando las funciones:

OpenComm( "COM1", 1024, 128 )
BuildCommDcb( "COM1:9600,n,8,1", @cDcb )

para conectarme con el COM pero necesito activar el RTS, ¿ me podrían decir como puedo activarlo?

Un Saludo.
by softruz
Thu May 08, 2008 9:00 am
 
Forum: FiveWin para Harbour/xHarbour
Topic: Activar RTS en la Comunicacion COM
Replies: 1
Views: 485

activa los puerto serial

... lVar will set the DTR . EXAMPLE: LOCAL l_DTR l_DTR:=SETDTR(.T.) ************************************************************************* SETRTS([lvar]) => log returns .t. if RTS has been set, otherwise false optional lVar will set the RTS . EXAMPLE: LOCAL l_RTS l_DTR:=SETRTS(.T.) ************************************************************************** ...
by orosmagno
Tue May 22, 2007 1:15 pm
 
Forum: FiveWin para CA-Clipper
Topic: ayuda por favor
Replies: 7
Views: 2309

¡¡ AYUDA COMO IMPRIMIR EN IMPRESORA POR COM !!!

... LOCAL lOK //IRQ4:=4 lOK:=INIT_PORT(nPORT,nVELOC,nDADOS,nPARIDADE,nPARADA,nIRQ,@cBUFFER) ?"lok",lok wait "lok" SETRTS(.T.) //Habilita RTS se for TL270 RETURN(lOK)
by prm_pedro
Mon Mar 05, 2007 9:39 pm
 
Forum: FiveWin para CA-Clipper
Topic: ¡¡ AYUDA COMO IMPRIMIR EN IMPRESORA POR COM !!!
Replies: 0
Views: 727

Antonio,

¿ Como se gestiona la velocidad, paridad, databytes DTR, CTS, RTS, DCD etc..?.
Es importante para mí. Necesito tener el control total de las señales presentes en el puerto RS232. De esto dependerá que me incline ha utilizar FWPPC en mi proyecto.

Saludos.

Salvador Gallardo
by Salvador
Sun Dec 18, 2005 9:41 pm
 
Forum: FiveWin para Pocket PC
Topic: Soporte para comunicacion puertos seriales.
Replies: 2
Views: 1063

Return to advanced search