🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: alt.lang.basic
Article #542

Re: HELP: Data extraction from HP34901/34970 meter/loggers - how?

#542
From: Tom Werry
Date: Sun, 10 Feb 2002 07:49
53 lines
3354 bytes
budgie <budgie@nowhere.cantech.net.au> wrote:

>UPDATE:

>It turns out that to get the HP instrument to actually interpret and
>act on commands, the OPEN COM has to include the LF parameter.

Peter,

What?  You mean you weren't adding a CRLF pair of bytes to the end of
each command you sent?  I'll have to add this to my list of silly
things not to omit which I went thru with you before, hahaha - if I'd
thot of it before it would have been there in my list, but I just do
this so automatically for any controlled device that I forgot it.

I find it never screws things up if you put it in and it is not
needed.  My output statements ALWAYS have CRLF added explicitly and
end with a semi-colon - then there's no doubt about what's going down
the wire.  You also have to be careful, some dipshit devices actually
want to see these 2 chars. the other way round!!!???

Just a note about another way I sometimes use to sort out the
undocumented or misdocumented stuff sometimes:

If there is a sample controller program that comes with a unit that
you can run on a PC, and it starts the unit okay but you cannot do the
same with your own code which you wrote to improve upon the
controller, then you use a "piggy-in-the-middle" program and another
PC with 2 serial ports to scope out what their program is doing.

(If you check their web site you might find such a test program from
HP if there wasn't one in the box).

You wire this second PC in between the PC running the supplied sotware
and the device with a second cable that duplicates the one supplied.

This PITM program transfers every byte in one port out the other, for
both ports.  On the way by, it records all bytes going both ways in a
file or two, depending on how you feel about interspersed bytes on
bi-directional comms.  You might want to wait for a CRLF on each port
before recording the accumulated line for that machine.

If you also wosh to display the bytes/msgs on screen on the way by,
you must filter the control codes that will beep & scroll the scree -
or just ignore these as it is running, depending on how much screwing
around you want to do as opposed to just solving thew immediate
problem.

I've sorted out a few troublesome situations with the
"piggy-in-the-middle" and gotten a few raised eyebrows from smartass
manufacturers reps. in the process.

 - Tom
Technical Details
Message-ID: <a455r2$gi2$1@newton3.pacific.net.sg>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!canoe.uoregon.edu!logbridge.uoregon.edu!xmission!news.stealth.net!newsserver.pacific.net.sg!not-for-mail
References: <3c63c419.3768865@news.cantech.net.au> <3c6613b0.397872@news.cantech.net.au>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10ab99,cb9fb01f867bc3e
X-Google-Attributes: gid10ab99,public
X-Google-Thread: 103407,cb9fb01f867bc3e
X-Google-Attributes: gid103407,public
X-Google-ArrivalTime: 2002-02-10 00:00:09 PST
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!canoe.uoregon.edu!logbridge.uoregon.edu!xmission!news.stealth.net!newsserver.pacific.net.sg!not-for-mail
From: DeductThisPart.gpsnav@pacific.net.sg (Tom Werry)
Newsgroups: alt.lang.basic,aus.electronics
Subject: Re: HELP:  Data extraction from HP34901/34970 meter/loggers - how?
Date: Sun, 10 Feb 2002 07:49:59 GMT
Organization: GPS Navigation Systems
Lines: 56
Message-ID: <a455r2$gi2$1@newton3.pacific.net.sg>
References: <3c63c419.3768865@news.cantech.net.au> <3c6613b0.397872@news.cantech.net.au>
Reply-To: DeductThisPart.gpsnav@pacific.net.sg
NNTP-Posting-Host: ppp97.dyn88.pacific.net.sg
X-Newsreader: Forte Free Agent 1.0.82