I'm not sure what it means but i bet the other Bruce has a pretty good idea after seeing their example of sending the command.
far easier to understand than "what are you doing wrong"
Hey man, it took me three whole days to set up the GF's cash register in the pub. The people who write these POS manuals really should be taken out and horsewhipped. This is why I'm trying to go through this step-by-step (and keep asking what seems to be inane questions like what follows).
1) What connector types are involved at your computer end here, DB25, DB9, USB, RSJ45, RSJ65?
That may seem a ridiculous question, but DataPoint use different software protocols (at the application message level) for different cables.
2) That file they sent you is self-contradictory and basically looks like something that was thrown together randomly.
a) "Weight Request: STX, Address, FC, ETX, BCC" - Let's assume that is the correct request for your scale and cables.
A bit of a look through a couple of datapoint manuals reveals that the STX character used by the scale is actually programmable[/b]. So we need to find out what is is for the scales in question (or reset them). Also if you look at the schematics of these POS systems you will find that each component has its own processor, IO controller and UARTS in it. So whats good for the barcode scanner may not be the same for the scales (or the display etc).
However, lets assume
that for your scales the STX character is
&H53 (the "S" character). Which
b) makes their
So to send STX do an alt function 002,S11,Enter,Alt Function 003
line bullshit. (But it might
be a half-garbled bit of "Hyperterminal" text and so is absolutely useless here.)
c) So looking at a couple of their technical specs it does
appear that some, but not all, of their scales do
have a default
STX value of "S". Sheesh. Some comms programmers need horsewhipping as well.
Can you determine what the STX character really is for your test scales?
Are you trying to program for only one scales model, or multiple. If the latter we are going to have to find out how to query the damn things to get the STX character they are using.
My brain is starting to hurt and we have only looked at one character in the stream
- more later/tomorrow.