Einzelnen Beitrag anzeigen

Benutzerbild von Computerbabalulu
Computerbabalulu

Registriert seit: 26. Sep 2003
233 Beiträge
 
#1

ESC Sequence über COM Port

  Alt 11. Nov 2009, 19:44
Hallo ihr lieben.

Es gibt ein Problem bei dem ich grade nicht weiter komme.

Ich muss aus meiner Anwenung heraus (Delphi 2007), über den COM Port
einen Barcode Scanner umprogrammieren von EAN auf Codabar.

Bezüglich der Scannerprogrammierung habe ich sogar die Beschreibung,
welche Befehle an den Scanner gesendet werden müssen (komplette Beschreibung im Anhang):

Zitat:
HOST MODE PROGRAMMING – SW VER. 2.60
An alternative method of programming the DS2100 is by sending command strings over one of the serial
interfaces.
These strings take the form of ESCAPE sequences and are transmitted from the host system to the DS2100
on either the auxiliary RS232 or main serial interface. This is called Host Mode programming.
If Host Mode programming is performed over the RS485 polled main interface, MUX32 Protocol must be used.
Once the programming session has started on one of the interfaces, the other is disabled until programming is
over.

PROGRAMMING COMMANDS
DESCRIPTION HOST COMMAND DS2100 REPLY MESSAGE
ENTER HOST MODE ESC [ C ESC H CR LF
After entering this command, the DS2100 responds with the reply message and then waits for one of the following commands.
ENTER PROGRAMMING MODE ESC [ B ESC P CR LF ….... ESC K CR LF
After entering this command, the DS2100 responds with the first reply message and then waits for one or more escape sequences
as shown in par. “Programming strings”.
The last escape sequence defines whether the configuration will be saved in RAM or EEPROM: ESC I A space or any other
character (see par. “Save and Restore Commands” on p. 13).
If the programming is correct, the DS2100 updates the configuration and confirms with the second reply message.
If programming contents are wrong (i.e. a typing error in the file) or due to a transmission error, DS2100 replies with an error
message and programming data will not be updated in this case.
STATUS MESSAGE REQUEST ESC [ D ESC L CR LF ….... CR LF
DS2100 interprets this command as a programming data request and responds with the reply message followed by the list of data
configuration values in the same format as they are entered in programming mode. A CR LF is added at the end of the list.
RETURN PROGRAM NAME ESC [ E Information regarding the scanner’s configuration
Information about the scanner’s hardware and software configuration will be returned over the selected serial interface.
STORE VERIFIER CODE ESC [ H ESC V CR LF
After reading the desired verifier code, this command stores that code in the EEPROM memory of the scanner.
EXIT HOST MODE ESC [ A ESC X CR LF
This message must always be transmitted to end the programming session. On exit from Host Mode, DS2100 is initialized with the
new programming already saved in RAM and/or EEPROM.
NOTE
A status request is advised to verify the accuracy of the programmed data before terminating
the connection with the host.

Nur stehe ich hier grade etwas auf dem Schlauch. Ich hab keine Idee wie ich das im Programm umsetzen könnte.
Als Componenten für die kommunikation hätte ich Async Professional installiert.

Hat von euch jemand vielleicht soetwas schon einmal gemacht und kann mich wieder auf den Weg bringen


Gruß Baba
Frank

Geändert von Computerbabalulu (29. Dez 2011 um 02:34 Uhr)
  Mit Zitat antworten Zitat