DM15L USB connection touble?

Forum for discussion of the DM10, DM11, DM12, DM15, DM16 and DM41 units
Post Reply
michaelzinn
Posts: 36
Joined: Tue Apr 10, 2018 9:34 pm

DM15L USB connection touble?

Post by michaelzinn » Wed Apr 11, 2018 1:12 pm

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

Michael
Site Admin
Posts: 236
Joined: Wed Apr 05, 2017 9:31 pm

Re: DM15L USB connection touble?

Post by Michael » Wed Apr 11, 2018 1:28 pm

at the console enter the command "minicom -D /dev/ttyUSB0 -b 38400"
Then press '?' for help.

michaelzinn
Posts: 36
Joined: Tue Apr 10, 2018 9:34 pm

Re: DM15L USB connection touble?

Post by michaelzinn » Wed Apr 11, 2018 5:48 pm

Okay, but how do I get a file out? Also, the calculator stops displaying "Serial Connection" after a couple seconds, does that matter?

Michael
Site Admin
Posts: 236
Joined: Wed Apr 05, 2017 9:31 pm

Re: DM15L USB connection touble?

Post by Michael » Wed Apr 11, 2018 5:59 pm


michaelzinn
Posts: 36
Joined: Tue Apr 10, 2018 9:34 pm

Re: DM15L USB connection touble?

Post by michaelzinn » Thu Mar 28, 2019 10:22 pm

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?

cdmackay
Posts: 69
Joined: Fri Oct 05, 2018 6:33 pm
Location: Cambridge, UK
Contact:

Re: DM15L USB connection touble?

Post by cdmackay » Thu Mar 28, 2019 11:53 pm

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?
Cambridge, UK
41CL, 12C/15C, DM15/16, 71B, 17B, 28S, DM42, 48GX, 17bII+, 50g (& newRPL), 35s, 30b (WP 34S), Prime G2
& Casios, Rockwell 18R :)

michaelzinn
Posts: 36
Joined: Tue Apr 10, 2018 9:34 pm

Re: DM15L USB connection touble?

Post by michaelzinn » Fri Mar 29, 2019 10: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? :|

grsbanks
Posts: 853
Joined: Tue Apr 25, 2017 9:23 am
Location: Preston, Lancs, UK
Contact:

Re: DM15L USB connection touble?

Post by grsbanks » Fri Mar 29, 2019 6:32 pm

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.
Not SwissMicros staff, just an enthusiast.

cdmackay
Posts: 69
Joined: Fri Oct 05, 2018 6:33 pm
Location: Cambridge, UK
Contact:

Re: DM15L USB connection touble?

Post by cdmackay » Fri Mar 29, 2019 10:05 pm

michaelzinn wrote:
Fri Mar 29, 2019 10: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
Cambridge, UK
41CL, 12C/15C, DM15/16, 71B, 17B, 28S, DM42, 48GX, 17bII+, 50g (& newRPL), 35s, 30b (WP 34S), Prime G2
& Casios, Rockwell 18R :)

Post Reply