Unit Escuchar |
Test232n -------- Commentaries and program in Ingles and Spanish Comentarios y programa en Ingles y Español Autor : (c) José María Gías. All rights reserved. Versión : 2.0 ** Freeware ** Fecha : 14.06.97 Delphi 2 and 3 Windows 95 - Windows NT ## The previous versión 1.0 'Test232' is for Delphi 1 with TMsComm component La versión anterior 1.0 'Test232' es para Delphi 1 con el componente TMsComm ------------------------------------------------------------------------------- CREDIT - COMPONENT --------------------- ComDrv32.pas (see ComDrv16.pas for Delphi 1.0) v1.02/32 - Jun 5th, 1997 COM Port Driver for Delphi 2.0 Written by Marco Cocco Copyright (c) 1996-97 by Marco Cocco. All rights reseved. Copyright (c) 1996-97 by d3k The Artisan Of Ware. All rights reseved. Please send comments to d3k@mdnet.it URL: http://www.mdlive.com/d3k/ --------------------- Mjwcrt.pas TMJWcrt component - version 1.00b Copyright 1996 (c) by Michael Wilcox Email: mwilcox@economat.demon.co.uk ------------------------------------------------------------------------------- # My gratefulness to the authors of these appraised two components Mi agradecimiento a los autores de estos dos apreciados componentes ------------------------------------------------------------------------------- - Test of communications in Ports Series and development assistance of applications in those which are employed communications series. - Test de comunicaciones en Puertos Serie y ayuda al desarrollo de aplicaciones en las que se emplean comunicaciones serie. ------------------------------------------------------------------------------- # - Program that permits to listen the simultaneous Communications by 2 ports series, and to send cables by one of 2 ports in a way simultaneous, using the component CommDrv for the control of ports. - To listen 2 ports in a way simultaneous, requires to construct a thief of 9 or 25 pin for the locus in quo is connected and 2 tappings, a for each port respectively with the Tx and Rx of the thief. Prepared for the standard Communications intercalating the thief in a cable RS232 with two-way communication. LINE RS232 PC ---------- --------- Tx Rx 0V Sub D 9 Pin 2 3 5 Pin Sub D 25 Pin 3 2 7 9 25 · · · | | | | | ·---------· | 3 2 --> Tx - Port 1 - |COM1 PC | | ·---· | 5 7 | | | | | ·------· | 3 2 --> Rx - Port 2 - |COM2 PC | | ·---· | 5 7 | | | | · · · | | Sub D 25 Pin 3 2 7 9 25 Sub D 9 Pin 2 3 5 Pin Tx Rx 0V - Configuration of initial Ports 9600,8,1,n - In the file F.Pas they are found some functions of developed common use for the author for the treatment of strings and several - Can be configured until 4 characters awaiting be received by each port, having to indicate the value in decimal. - Can be assigned text files in a way simple, for proofs of operation of the port, having to activate the control of flow by Soft, Xon-Xoff or by Hard. It is not incorporated any transfer protocol. - In this version, it has been adding a delay time between the acceptance of data by the port, guided mainly to the ports that are derived from Terminal Server of the Nets, that tend to have arrears. - In the options of "to Send" implemented, there are several examples of simulation of the send of cables by the port selected. This option is thought for design time, in the one which can simulate send it of data as if we were communicating actually with an external equipment. - Programa que permite escuchar las comunicaciones simultáneas por 2 puertos serie, y enviar telegramas por uno de los 2 puertos de forma simultanea, utilizando el componente CommDrv para el control de puertos. - Para escuchar los 2 puertos de forma simultánea, requiere construir un ladrón de 9 o 25 pines para el lugar donde se conecte y 2 derivaciones, una para cada puerto respectivamente con el Tx y Rx del ladrón. Preparado para las comunicaciones estandar intercalando el ladrón en un cable RS232 con comunicación bidireccional. LINE RS232 PC ---------- --------- Tx Rx 0V Sub D 9 Pin 2 3 5 Pin Sub D 25 Pin 3 2 7 9 25 · · · | | | | | ·---------· | 3 2 --> Tx - Puerto 1 - |COM1 PC | | ·---· | 5 7 | | | | | ·------· | 3 2 --> Rx - Puerto 2 - |COM2 PC | | ·---· | 5 7 | | | | · · · | | Sub D 25 Pin 3 2 7 9 25 Sub D 9 Pin 2 3 5 Pin Tx Rx 0V - Configuración de Puertos inicial 9600,8,1,n - En el fichero F.Pas se encuentran algunas funciones de uso común desarrolladas por el autor para el tratamiento de strings y varios. - Se pueden configurar hasta 4 caracteres en espera de ser recibidos por cada puerto, debiendo indicar el valor en decimal. - Se pueden traspasar ficheros de texto de forma simple, para pruebas de funcionamiento del puerto, debiendo activar el control de flujo por Soft, Xon-Xoff o por Hard. No se incorpora ningún protocolo de transferencia. - En esta versión, se ha añadido un tiempo de retardo entre la recepción de datos por el puerto, orientada principalmente a los puertos que se derivan de Terminal Server de las Redes, que suelen tener retrasos. - En las opciones de "Enviar" implementadas, hay varios ejemplos de simulación del envio de telegramas por el puerto seleccionado. Esta opción esta pensada para tiempo de diseño, en el cual podemos simular el envio de datos como si estuvieramos comunicando realmente con un equipo externo.
Classes |
Functions |
Types |
Constants |
ACK
BEL
BS
CAN
CharCtrl
CR
DC1
DC2
DC3
DC4
DLE
EM
ENQ
EOT
ESC
ETB
ETX
FF
FS
GS
LF
NAK
NUL
RS
SH
SI
SO
SOH
STX
SUB
SYN
US
VT
Variables |
Functions |
Types |
Constants |
Variables |