Register

Casio fx-9860G SD- How to read files in the sd card?

Discuss anything related to calculators. For specific help on certain games/programs check the Released Projects subforum.
Senior Member
Posts: 116
Joined: Mon Mar 02, 2015 10:53 am
Calculators: Casio fx-CG20

Re: Casio fx-9860G SD- How to read files in the sd card?

Postby AmazoNKA » Fri Jul 29, 2016 11:58 pm

Thanks Simon. I'm very happy you ordered the same device - in fact i'm very excited about you considering using it whichever way possible.

By the way in your documentation in history there is the following
Code: Select all
Version 14:
Communication Protocol: AHelper (omnimaga) successfully accessed the Protocol 7.00 with the fx-CG from USB.
but at first glance that chapter has no USB routines if I'm not mistaken - so I'm wondering if it was some mix up or if not if extending prizm's memory via some USB card reader etc will also be possible and perhaps offer speed advantage vs serial port...

Senior Member
User avatar
Posts: 605
Joined: Sat Sep 15, 2012 6:59 am
Location: Krautland ****
Calculators: Casio fx-7400GII, Casio fx-7400GII (SH4), Casio fx-9750GII, Casio fx-9750GII (SH4), Casio fx-9860G, Casio fx-9860G SD, Casio fx-9860G Slim, Casio fx-9860GII SD, Casio fx-9860GII SD Power Graphic 2, Casio Classpad 330 plus, Casio fx-CG20, Casio fx-CG50, Casio Classpad fx-CP400

Re: Casio fx-9860G SD- How to read files in the sd card?

Postby SimonLothar » Sat Jul 30, 2016 1:27 am

USB-transfer would be about 4 times faster than 115 kBaud serial transfer.
According to the SH7724-manual, the USB-module can act as host. But the Prizm acts as USB-device.
As far as I am concerned, writing a USB-host-software for the Prizm would be too much an effort, if possible at all. I wouldn't be able to do that.
I even doubt that the necessary hardware-lines are reachable from outside.

I'd prefer to see, what we can achieve with this sparkfun openlog serial thing.
I'll be back!

Senior Member
Posts: 116
Joined: Mon Mar 02, 2015 10:53 am
Calculators: Casio fx-CG20

Re: Casio fx-9860G SD- How to read files in the sd card?

Postby AmazoNKA » Sat Jul 30, 2016 8:39 am

Thank you very much for this.

Regarding main memory - is the maximum capacity of it 512kb please - not that it is advisable to use it all, just for my understanding. Also is this the maximum single file size please? Thanks again

Senior Member
User avatar
Posts: 605
Joined: Sat Sep 15, 2012 6:59 am
Location: Krautland ****
Calculators: Casio fx-7400GII, Casio fx-7400GII (SH4), Casio fx-9750GII, Casio fx-9750GII (SH4), Casio fx-9860G, Casio fx-9860G SD, Casio fx-9860G Slim, Casio fx-9860GII SD, Casio fx-9860GII SD Power Graphic 2, Casio Classpad 330 plus, Casio fx-CG20, Casio fx-CG50, Casio Classpad fx-CP400

Re: Casio fx-9860G SD- How to read files in the sd card?

Postby SimonLothar » Sat Jul 30, 2016 11:20 am

AmazoNKA wrote:Regarding main memory - is the maximum capacity of it 512kb please - not that it is advisable to use it all, just for my understanding. Also is this the maximum single file size please?
The maximum capacity of the main memory is slightly below 64 kB. I think, the max. filesize in the storage memory is limited by the available space, which is about 15 MB max..
The Prizm's filesystem resembles FAT16.
I'll be back!

Senior Member
User avatar
Posts: 605
Joined: Sat Sep 15, 2012 6:59 am
Location: Krautland ****
Calculators: Casio fx-7400GII, Casio fx-7400GII (SH4), Casio fx-9750GII, Casio fx-9750GII (SH4), Casio fx-9860G, Casio fx-9860G SD, Casio fx-9860G Slim, Casio fx-9860GII SD, Casio fx-9860GII SD Power Graphic 2, Casio Classpad 330 plus, Casio fx-CG20, Casio fx-CG50, Casio Classpad fx-CP400

Re: Casio fx-9860G SD- How to read files in the sd card?

Postby SimonLothar » Sun Jul 31, 2016 3:55 pm

AmazoNKA wrote:I'm very happy you ordered the same device - in fact i'm very excited about you considering using it whichever way possible.
It arrived yesterday. Did a bit of soldering, connected it to a fx-9860GII SD (as well as to a fx-9750GII-2) and it seems to work as expected.
I'll be back!

Senior Member
Posts: 116
Joined: Mon Mar 02, 2015 10:53 am
Calculators: Casio fx-CG20

Re: Casio fx-9860G SD- How to read files in the sd card?

Postby AmazoNKA » Sun Jul 31, 2016 6:04 pm

Great news, very happy for you. Strange that mine has not arrived still. Did you order directly from sparkfun please?

Senior Member
User avatar
Posts: 605
Joined: Sat Sep 15, 2012 6:59 am
Location: Krautland ****
Calculators: Casio fx-7400GII, Casio fx-7400GII (SH4), Casio fx-9750GII, Casio fx-9750GII (SH4), Casio fx-9860G, Casio fx-9860G SD, Casio fx-9860G Slim, Casio fx-9860GII SD, Casio fx-9860GII SD Power Graphic 2, Casio Classpad 330 plus, Casio fx-CG20, Casio fx-CG50, Casio Classpad fx-CP400

Re: Casio fx-9860G SD- How to read files in the sd card?

Postby SimonLothar » Sun Jul 31, 2016 8:57 pm

AmazoNKA wrote:...Did you order directly from sparkfun please?
No. I ordered from a local retailer. Just about 30 km from where I live.
I'll be back!

Senior Member
Posts: 116
Joined: Mon Mar 02, 2015 10:53 am
Calculators: Casio fx-CG20

Re: Casio fx-9860G SD- How to read files in the sd card?

Postby AmazoNKA » Sun Jul 31, 2016 11:32 pm

Thanks, I should have done the same - on the other hand I had extra time to start developing a small Prizm add-in for Pokemon Go... I will upload a taster on cemetech soon if anyone wishes to try,

Senior Member
User avatar
Posts: 605
Joined: Sat Sep 15, 2012 6:59 am
Location: Krautland ****
Calculators: Casio fx-7400GII, Casio fx-7400GII (SH4), Casio fx-9750GII, Casio fx-9750GII (SH4), Casio fx-9860G, Casio fx-9860G SD, Casio fx-9860G Slim, Casio fx-9860GII SD, Casio fx-9860GII SD Power Graphic 2, Casio Classpad 330 plus, Casio fx-CG20, Casio fx-CG50, Casio Classpad fx-CP400

Re: Casio fx-9860G SD- How to read files in the sd card?

Postby SimonLothar » Sun Aug 07, 2016 5:58 pm

Most functions work as expected (more or less).
sample interface: Show
class TSparkFunOpenLog {
public:
// constructor
TSparkFunOpenLog( void ){
FAppending = FWriting = 0;
}
// destructor
virtual ~TSparkFunOpenLog();

int Open( void );
int WaitReplay( void );
int Close( void );
int Query( void ); // ?
int List( void ); // ls
int Disk( void ); // disk
int Init( void ); // init
int Sync( void ); // sync
int Reset( void ); // reset
int NewFile( char*filename_8_3 ); // new file
int AppendFile( char*filename_8_3 ); // append file
int CloseAppendFile( void ); // send escape
int CommandMode( void );
int SendData( void*buffer, int len );
int Write( char*string );
int WriteLn( char*string );
int Baud( char*string ); // baud
int WriteFile( char*filename_8_3, char*offset );
int WriteFileLn( char*string );
int CloseWriteFile( void ); // WriteFileLn( "" )
int CatFile( char*filename_8_3 ); // read file ... HEX (cat is not supported any more since version 2.0)
int SizeFile( char*filename_8_3 ); // size file
int RemoveFile( char*filename_8_3 ); // rm file

protected:

private:
int FAppending, FWriting;

int FSendCommand( char*_command );
int FSendData( void*buffer, int len );
};
A little drawback: It doesn't seem to be possible to process binary files.
The system seems to be designed to process text-files.
Of course it is possible to convert any binary file to a text-file and vice versa. But this doubles the size.
I'll be back!

Senior Member
Posts: 116
Joined: Mon Mar 02, 2015 10:53 am
Calculators: Casio fx-CG20

Re: Casio fx-9860G SD- How to read files in the sd card?

Postby AmazoNKA » Sun Aug 07, 2016 8:07 pm

That's so strange they dropped hex support, maybe their bootloader can be downgraded to support binary files directly?

PreviousNext

Return to General

Who is online

Users browsing this forum: No registered users and 44 guests