The Shop > Electronics & IC Programing
de'tokenising'
DavidA:
Here is one for the programers.
Many years ago I purchased a small device that plugs into my serial port and takes temperature readings every second.
The problem is that once a second is too frequent. I only need one per minute.
Now, the obvious thing to me is to look at the program that came with it, find the timing loop and change it.
But when I look at it using DOS Edit it appears as a list of 'tokenised' text. Might as well be hieroglyphs. So it is not readable.
Can anyone tell me how I find out what language the program was written in ?
And how to set about making it readable. I suppose it means getting hold of a de-compiling program of some sort. But I'm only used to BASIC and some x86 Assembler.
Dave. :scratch:
Joules:
How does it present its output ? ascii or a way of getting the reading into a spreadsheet ?
Anymore details on the hardware or the software it came with ?
RussellT:
It sounds to me as though it might be easier to write a new program.
If the timing is controlled from the software then presumably it's sending a few bytes to the serial port and then reading the reply.
Is it a common device? If so it's quite likely that the protocol will be cocumented somewhere on the internet.
Russell
awemawson:
David,
It could be machine code. Can you save it as a binary file and post it here for us to look at?
Possibly also a picture of the device - (may be able to deduce something from any markings on it)
DavidA:
The item comes as a kit and takes four Dallas DS18S20 temperature sensors.
It then uses a programed 12C509/P04 chip to convert these four inputs and pass them via rs232 serial to the computer.
The computer runs a program called TERM and this pols each input in turn once a second and displays the results on the screen as degrees centigrade.
I'm not sure how much of the processing is done with the Eprom, whether it is just a multiplexor and A to D convertor.
I recently bought another of these devices and have just opened the packet to see what is there.
Just having a look at the paper work.
As well as saying that the TERM.EXE program is available from their website (Quasarelectronics.com) it also refers to the designer having provided the C source code. Must try and find that.
Also a reference to using BASIC's INPUT command to capture the data as it comes in. That may be my best bet.
I'm going off to search for this source code.
Back later.
Dave.
Quasar project kit # 3145v2.3 temperature data logger.
New code.
www.quasarelectronics.co.uk/Item/3145-ds18s20-computer-serial-temperature-data-logger
Navigation
[0] Message Index
[#] Next page
Go to full version