Club Delphi  
    Paypal   FTP   CCD     Buscar   Trucos   Trabajo   Foros

Retroceder   Foros Club Delphi > Principal > Varios
Registrarse FAQ Miembros Calendario Guía de estilo Buscar Temas de Hoy Marcar Foros Como Leídos

Coloboración Paypal con ClubDelphi

 
 
Herramientas Buscar en Tema Desplegado
  #4  
Antiguo 17-09-2006
rusadir rusadir is offline
Miembro
 
Registrado: sep 2006
Posts: 13
Poder: 0
rusadir Va por buen camino
Adjunto fichero del protocolo metrologic para rs-232

Adjunto pongo el txt bajado de metrologic sobre el que estoy trabajando
con el protocolo del terminal para recibir fichero de datos y el protocolo de subir datos,

Por si alguien se anima y me hecha una manita,


Je Je Je,

Un Saludo, Rusadir


Fichero txt:

****************************************************************************
***** Protocol for downloading lookup files to ScanPal2 terminals *****
****************************************************************************
Note : All commands or records sent to /or received from the ScanPal2
terminals should be ended with a return character (0x0d).
1. Send the "CIPHER" command to ScanPal2 terminal and wait for return.
2. If the terminal returns "ACK", then it is ready for receiving lookup data
from the PC.
3. Send lookup data to terminal record by record. Each record should be ended
with 2 bytes of checksum. The checksum is calculated according to the
following rules:
A. Sum up the record data byte by byte.
B. Devide the sum by 256 to get the first byte checksum value. If this
value happens to be 13 (the return character: 0x0d), change it to 14
(0x0e).
C. The remaining of the above calculation is the second byte checksum
value. If it happens to be 13, change it to 14.
4. If the terminal returns "ACK", send next record to the terminal,
otherwise, re-send the same record to the terminal. Repeat the same
procedures until all the data is successfully transmitted.
5. Send the "OVER" command to the ScanPal2 terminal to stop this communication.

****************************************************************************
***** Protocol for receiving transaction data from ScanPal2 terminals *****
****************************************************************************
Note : All commands or records sent to or received from the ScanPal2
terminals should be ended with a return character (0x0d).
1. Send the "READ" command to the ScanPal2 terminal and wait for return.
2. If the terminal returns "ACK", then it is ready to send data to PC.
3. The format of each record received from the terminal is as follows,
A. The first byte is a sequence count rotated from 0 to 9. It's purpose
is to ensure the correct order of data transmission.
B. The last two bytes are the checksum values. The checksum is calculated
by adding up the sequence count and all the data bytes.
C. Devide the sum calculated above by 256 will get the last byte checksum
value. If this value happens to be 13 (the return character: 0x0d),
change it to 14 (0x0e).
D. The remaining of the above calculation is the first byte checksum
value. If it happens to be 13, change it to 14.
E. Please note that the checksum byte-order for this protocol is different
to that of downloading lookup files.
Responder Con Cita
 


Herramientas Buscar en Tema
Buscar en Tema:

Búsqueda Avanzada
Desplegado

Normas de Publicación
no Puedes crear nuevos temas
no Puedes responder a temas
no Puedes adjuntar archivos
no Puedes editar tus mensajes

El código vB está habilitado
Las caritas están habilitado
Código [IMG] está habilitado
Código HTML está deshabilitado
Saltar a Foro

Temas Similares
Tema Autor Foro Respuestas Último mensaje
verificar fichero de texto arley_molina Varios 2 12-06-2006 20:52:40
fichero de texto con tabulaciones davidgaldo Varios 5 30-11-2005 16:23:38
leer fichero de texto davidgaldo Varios 1 08-11-2005 15:05:12
Ayuda con fichero de texto jadelphi Varios 4 07-10-2004 09:43:14
Recibir parámetros al ejecutar el fichero .EXE en Delphi Tony_G Varios 2 01-12-2003 13:08:57


La franja horaria es GMT +2. Ahora son las 19:47:31.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.
Traducción al castellano por el equipo de moderadores del Club Delphi
Copyright 1996-2007 Club Delphi