DM15L USB connection touble?

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

DM15L USB connection touble?

Post 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
Michael
Site Admin
Posts: 261
Joined: Wed Apr 05, 2017 11:31 pm

Re: DM15L USB connection touble?

Post by Michael »

at the console enter the command "minicom -D /dev/ttyUSB0 -b 38400"
Then press '?' for help.
michaelzinn
Posts: 41
Joined: Tue Apr 10, 2018 11:34 pm

Re: DM15L USB connection touble?

Post 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?
Michael
Site Admin
Posts: 261
Joined: Wed Apr 05, 2017 11:31 pm

Re: DM15L USB connection touble?

Post by Michael »

michaelzinn
Posts: 41
Joined: Tue Apr 10, 2018 11:34 pm

Re: DM15L USB connection touble?

Post 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?
cdmackay
Posts: 281
Joined: Fri Oct 05, 2018 8:33 pm
Location: Cambridge, UK
Contact:

Re: DM15L USB connection touble?

Post 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?
Cambridge, UK
41CL/DM41X 12/15C/16C DM15/16 17B/II/II+ 28S 42S/DM42 32SII 48GX 50g 35s WP34S PrimeG2 WP43S/pilot
Casio, Rockwell 18R
michaelzinn
Posts: 41
Joined: Tue Apr 10, 2018 11:34 pm

Re: DM15L USB connection touble?

Post 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? :|
grsbanks
Posts: 1122
Joined: Tue Apr 25, 2017 11:23 am
Location: Preston, Lancs, UK
Contact:

Re: DM15L USB connection touble?

Post 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.
There are only 10 kinds of people in the world: those who understand binary and those who do not.
cdmackay
Posts: 281
Joined: Fri Oct 05, 2018 8:33 pm
Location: Cambridge, UK
Contact:

Re: DM15L USB connection touble?

Post 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
Cambridge, UK
41CL/DM41X 12/15C/16C DM15/16 17B/II/II+ 28S 42S/DM42 32SII 48GX 50g 35s WP34S PrimeG2 WP43S/pilot
Casio, Rockwell 18R
Post Reply