Casio fx-9860G SD- How to read files in the sd card?
- SimonLothar
- Senior Member
- 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?
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.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?
I'll be back!
Re: Casio fx-9860G SD- How to read files in the sd card?
Oh, you have uploaded a new Insight.g3a version...
But I had to remove that funny "function disabled" thing...
But I had to remove that funny "function disabled" thing...
- SimonLothar
- Senior Member
- 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?
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...TeamFX wrote:Oh, you have uploaded a new Insight.g3a version...
But I had to remove that funny "function disabled" thing...
I'll be back!
- SimonLothar
- Senior Member
- 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?
Just kidding...SimonLothar wrote: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...TeamFX wrote:Oh, you have uploaded a new Insight.g3a version...
But I had to remove that funny "function disabled" thing...
I'll be back!
- AmazoNKA
- 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?
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
- SimonLothar
- Senior Member
- 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?
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.
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!
- AmazoNKA
- 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?
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?
- SimonLothar
- Senior Member
- 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?
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.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?
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!
- SimonLothar
- Senior Member
- 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?
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.
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!
- AmazoNKA
- 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?
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
Thank you so much for all your work - I hope you will release another insight revision for faster tests soon.
Thanks again
Who is online
Users browsing this forum: No registered users and 32 guests