Page 1 of 1

DM15L USB connection touble?

Posted: Wed Apr 11, 2018 3:12 pm
by michaelzinn
Hi,

I have a DM15L, Ubuntu 16.04, the serial drivers and minicom, but I don't understand how to read/write the calculator memory. Is there a more beginner friendly tutorial for this? How do I dump my programs?

Thanks

Re: DM15L USB connection touble?

Posted: Wed Apr 11, 2018 3:28 pm
by Michael
at the console enter the command "minicom -D /dev/ttyUSB0 -b 38400"
Then press '?' for help.

Re: DM15L USB connection touble?

Posted: Wed Apr 11, 2018 7:48 pm
by michaelzinn
Okay, but how do I get a file out? Also, the calculator stops displaying "Serial Connection" after a couple seconds, does that matter?

Re: DM15L USB connection touble?

Posted: Wed Apr 11, 2018 7:59 pm
by Michael

Re: DM15L USB connection touble?

Posted: Thu Mar 28, 2019 11:22 pm
by michaelzinn
Okay, in order to get it to work with minicom I had to disable Hardware Flow in the serial port settings. Now I got a memory dump, but is there some documentation on where is what?

Code: Select all

DM15_M1B
04  99999999999000  00000000000008  0000000000000c  00000000000eae  
08  00000000000000  3ebeffbefa2280  fbea82fbf8be8f  00000000000000  
10  00000000000000  02000000000000  00000000000000  00000000000000  
14  00000000000000  1b2d2d2d2d2d2d  000000000007fe  00000000000000  
18  00000000000000  0000000000007f  00000000a00000  06000000000000  
1c  09999999999009  00000000000000  00000000000000  00000000000000  
fc  00000000000000  00000000000000  b260ff1093faeb  c2cfa10097310d  
A: 99999999999000  B: 99999999999eae  C: 00000000000eae
S: 00000000000000
M: 00000000000000  N: 09999999999009  G: 04
I guess the code is at the end of line "fc", but what does any of the other stuff mean? N? G? Anything?

Re: DM15L USB connection touble?

Posted: Fri Mar 29, 2019 12:53 am
by cdmackay
Go to the decoder at: http://www.swissmicros.com/nut_decoder/#decoder

select calculator: DM15 M1B

if you're running firmware version > 22, clear the V22-compatible clicker

delete the text from the LHS box, and copy/paste your memory dump into it, starting with with DM15_M1B line and ending with the M, N, G register line

click Decode, which will dump out your stored programs into the RHS boxes.

The rest of the memory dump includes the contents of the DM15 memory registers and (Nut?) cpu hardware registers (I think) which aren't decoded.

You can do the reverse, to generate the text of a memory dump from program text, which you can then load into the calculator. But it will overwrite what's there, so needs to include /all/ your programs in it.

I've only used it a bit, with my DM16, and my DM15 is in the post, so I hope the above is correct. Someone will correct me if not.

does that help?

Re: DM15L USB connection touble?

Posted: Fri Mar 29, 2019 11:03 am
by michaelzinn
Thanks, the decoder works fine, but I'm asking about the format of the dump.

I know that I can see the program code using the decoder, but I'd like to know what everything in the dump means so that I can write my own decoder/encoder. Is there a spec somewhere? Given that the decoder is hosted by swissmicros I assume that no spec is available anywhere and I'd have to reverse engineer the format myself? :|

Re: DM15L USB connection touble?

Posted: Fri Mar 29, 2019 7:32 pm
by grsbanks
The encoder/decoder is written entirely in JavaScript (I wrote it), there's nothing to hide. Just download the JavaScript files linked to in the HTML and you'll have the source code for the decoders for all of the DM11/12/15/16 machines.

Re: DM15L USB connection touble?

Posted: Fri Mar 29, 2019 11:05 pm
by cdmackay
michaelzinn wrote:
Fri Mar 29, 2019 11:03 am
Thanks, the decoder works fine, but I'm asking about the format of the dump.

I know that I can see the program code using the decoder, but I'd like to know what everything in the dump means so that I can write my own decoder/encoder. Is there a spec somewhere? Given that the decoder is hosted by swissmicros I assume that no spec is available anywhere and I'd have to reverse engineer the format myself? :|
There's a good note on it here, which includes further references: http://www.lothlorien.com/kf6gpe/?p=736