Register

Serial Number

Discuss issues related to the fx-9860G Software Development Kit
Junior Member
Posts: 3
Joined: Mon Mar 04, 2013 5:51 pm
Calculators: None

Serial Number

Postby canta fx » Sun Jun 16, 2013 8:32 pm

Hi

Is it possible to read the serial number of a fx9860 gII calculator with an Add-In?

Canta

Senior Member
User avatar
Posts: 603
Joined: Sat Sep 15, 2012 6:59 am
Location: Krautland ****
Calculators: Casio fx-7400GII, Casio fx-7400GII (SH4), Casio fx-9750 G II, Casio fx-9750 G II (SH4), Casio fx-9860G, Casio fx-9860 G SD, Casio fx-9860G Slim, Casio fx-9860 GII SD, Casio fx-9860 GII SD Power Graphic 2, Casio Classpad 330 plus, Casio fx-CG 20, Casio Classpad fx-cp400, Casio fx-CG 50

Re: Serial Number

Postby SimonLothar » Mon Jun 17, 2013 6:50 pm

canta fx wrote:Hi

Is it possible to read the serial number of a fx9860 gII calculator with an Add-In?

Canta

What do you mean? The serial number on the sticker at the calculator's back or the calculator ID?
I'll be back!

Junior Member
Posts: 3
Joined: Mon Mar 04, 2013 5:51 pm
Calculators: None

Re: Serial Number

Postby canta fx » Tue Jun 18, 2013 8:36 pm

SimonLothar wrote:
What do you mean? The serial number on the sticker at the calculator's back or the calculator ID?


Yes the serial number on the sticker or any other fixed number/code with which you can differ multiple calculators.

Senior Member
User avatar
Posts: 603
Joined: Sat Sep 15, 2012 6:59 am
Location: Krautland ****
Calculators: Casio fx-7400GII, Casio fx-7400GII (SH4), Casio fx-9750 G II, Casio fx-9750 G II (SH4), Casio fx-9860G, Casio fx-9860 G SD, Casio fx-9860G Slim, Casio fx-9860 GII SD, Casio fx-9860 GII SD Power Graphic 2, Casio Classpad 330 plus, Casio fx-CG 20, Casio Classpad fx-cp400, Casio fx-CG 50

Re: Serial Number

Postby SimonLothar » Wed Jun 19, 2013 6:07 am

canta fx wrote:
SimonLothar wrote:
What do you mean? The serial number on the sticker at the calculator's back or the calculator ID?


Yes the serial number on the sticker or any other fixed number/code with which you can differ multiple calculators.

That would be the calculator ID, which is 8 bytes starting at 0x8000FFD0.
But there seems to be no relationship between calculator ID and the serial-number on the sticker
I'll be back!

Junior Member
Posts: 3
Joined: Mon Mar 04, 2013 5:51 pm
Calculators: None

Re: Serial Number

Postby canta fx » Wed Jun 19, 2013 4:56 pm

Ok, then the ID is what I was looking for. How can i read the
8 bytes starting at 0x8000FFD0
?

Senior Member
User avatar
Posts: 603
Joined: Sat Sep 15, 2012 6:59 am
Location: Krautland ****
Calculators: Casio fx-7400GII, Casio fx-7400GII (SH4), Casio fx-9750 G II, Casio fx-9750 G II (SH4), Casio fx-9860G, Casio fx-9860 G SD, Casio fx-9860G Slim, Casio fx-9860 GII SD, Casio fx-9860 GII SD Power Graphic 2, Casio Classpad 330 plus, Casio fx-CG 20, Casio Classpad fx-cp400, Casio fx-CG 50

Re: Serial Number

Postby SimonLothar » Wed Jun 19, 2013 7:30 pm

canta fx wrote:Ok, then the ID is what I was looking for. How can i read the
8 bytes starting at 0x8000FFD0
?

Try something like this
memcpy( (void*)0x8000FFD0, (void*)workbuffer, sizeof( workbuffer ) );

f. i. with
char workbuffer[8]
I'll be back!

Senior Member
Posts: 141
Joined: Wed May 16, 2012 2:50 pm
Location: Portugal
Calculators: Casio fx-CG 20

Re: Serial Number

Postby gbl08ma » Wed Jun 19, 2013 9:31 pm

Do you know where one can find such a ID on the Prizm?

Senior Member
User avatar
Posts: 603
Joined: Sat Sep 15, 2012 6:59 am
Location: Krautland ****
Calculators: Casio fx-7400GII, Casio fx-7400GII (SH4), Casio fx-9750 G II, Casio fx-9750 G II (SH4), Casio fx-9860G, Casio fx-9860 G SD, Casio fx-9860G Slim, Casio fx-9860 GII SD, Casio fx-9860 GII SD Power Graphic 2, Casio Classpad 330 plus, Casio fx-CG 20, Casio Classpad fx-cp400, Casio fx-CG 50

Re: Serial Number

Postby SimonLothar » Thu Jun 20, 2013 5:38 am

gbl08ma wrote:Do you know where one can find such a ID on the Prizm?

8 bytes starting at 0x8001FFD0.
I'll be back!

Senior Member
Posts: 141
Joined: Wed May 16, 2012 2:50 pm
Location: Portugal
Calculators: Casio fx-CG 20

Re: Serial Number

Postby gbl08ma » Thu Jun 20, 2013 4:02 pm

Thank you! On the emulator those bytes are all set to 0xFF, on my real calculator it really is something more random. This is great for using as a password hash salt in case one wants to develop something password protected in an add-in. Also great for developing serial key systems and limiting add-in execution to a few select calculators, not that I'll be using it that way :)

Junior Member
Posts: 17
Joined: Sun May 27, 2012 4:38 pm
Location: Germany
Calculators: Casio fx-9860 GII

Re: Serial Number

Postby Canta » Thu Jun 20, 2013 7:53 pm

ok, that would be great if i had the skills to make it work. How does it work correctly?

Code: Select all
#include "fxlib.h"
#include "stdlib.h"

unsigned int key;
char buffer[3];
char workbuffer[8];
memcpy( (void*)0x8000FFD0, (void*)workbuffer, sizeof( workbuffer ) );

int AddIn_main(int isAppli, unsigned short OptionNum)
{
   sprintf(buffer,"%d",workbuffer);
   locate(1,4);
   Print((unsigned char*)buffer);

    while(1){
        GetKey(&key);
    }

    return 1;
}

Code: Select all
 C2500 (E) Illegal token "("
C2131 (E) No type nor storage class
CC2500 (E) Illegal token "void"
C2500 (E) Illegal token "sizeof"

Next

Return to Casio fx-9860 SDK

Who is online

Users browsing this forum: No registered users and 5 guests