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
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 Sep 04, 2016 5:33 pm

AmazoNKA wrote:What will be realistic speed of copying data from sd to storage memory please - much worse than the current speed of saving main memory to storage memory using your insight add-in?
Pure writing or reading of a file to or from the sparkfun takes 20-25 s for a 200000 byte file. Now I copied the file from the sparkfun to the SMEM. Bfile_CreateEntry takes about 30 s on a freshly optimized storage mem (nearly double the time, if the storage mem is not freshly optimized). Writing the file (Bfile_WriteFile) using 514 byte blocks takes about two minutes (25 s max. for reading from the sparkfun). Most of the time is consumed by the Bfile-syscalls.
I'll be back!

Senior Member
Posts: 100
Joined: Sun Mar 24, 2013 12:01 pm
Calculators: None

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

Postby TeamFX » Sun Sep 04, 2016 10:27 pm

Oh, you have uploaded a new Insight.g3a version...
But I had to remove that funny "function disabled" thing... :mrgreen:

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 » Mon Sep 05, 2016 4:58 am

TeamFX wrote:Oh, you have uploaded a new Insight.g3a version...
But I had to remove that funny "function disabled" thing... :mrgreen:
I hope I have all eliminated the flash erase commands, which I experimentally inserted in some of those functions. The Prizm is such a cissy...
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 » Mon Sep 05, 2016 4:58 am

SimonLothar wrote:
TeamFX wrote:Oh, you have uploaded a new Insight.g3a version...
But I had to remove that funny "function disabled" thing... :mrgreen:
I hope I have all eliminated the flash erase commands, which I experimentally inserted in some of those functions. The Prizm is such a cissy...
Just kidding... :D
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 » Wed Sep 07, 2016 4:39 pm

Thanks for the updated insight- my soldering help was postponed till the coming Sunday so hopefully i will be able to tell soon what firmware version my openlog is and if it is any better. 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 » Thu Sep 08, 2016 6:59 am

The performance of the syscall Bfile_CreateEntry as well as Bile_WriteFile is very poor.
If I copy the file in the windows file explorer, the transfer is completed in a few seconds.
I think there are some prerequisites to match, which I do not know yet.
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 » Thu Sep 08, 2016 10:13 am

Is there any improvement with bfile functions at all if you were to manually run memory manager optimisation before going into your add-in 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 » Fri Sep 09, 2016 5:21 am

AmazoNKA wrote:Is there any improvement with bfile functions at all if you were to manually run memory manager optimisation before going into your add-in please?
Bfile_CreateEntry (200000 byte) takes about 30 s on a freshly optimized storage mem (nearly double the time, if the storage mem is not freshly optimized). The very next Bfile_CreateEntry takes 50 s again.
I fear there is no other way, than tracing down the way of the LINK-function or any other system-function which does a fast SMEM-create/write.
Perhaps there is some flag, which has to be set or preliminary function, which has to be run.
That work will consume some time.
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 » Fri Sep 09, 2016 10:00 am

I think I found the reason of the bad SMEM performance.
There is a difference between fx-9860- and fx-CG-calculators.
With fx-9860G/GII-calculators Bfile_CreateEntry must be called with the final filesize (This is what I remembered and I thought it has to be applied to the fx-CG, too).
With fx-CG-calculators Bfile_CreateEntry must not be called with the final filesize, but with size==0.
Above that I now use a secondary SMEM-write-buffer as large as possible. This reduces the count of individual SMEM-writes.

Now the SMEM-thing is finished within the time, which is needed to transfer the data from the sparkfun, t. i. 20-25 s instead of three minutes in case of a 200000 byte file.
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 » Fri Sep 09, 2016 6:02 pm

That's what i like about this calculator - almost every time we need a work around for something you discover more things helpful with something else and the whole satisfaction of working with it feels even more rewarding... New ideas emerge

Thank you so much for all your work - I hope you will release another insight revision for faster tests soon.

Thanks again

PreviousNext

Return to General

Who is online

Users browsing this forum: Google [Bot] and 42 guests