EZ-Flash USA Forum

Forum for the EZ-Flash I, II, III, IV & V Gameboy Advance & Nintendo DS USA Forum (Unofficial) Open since 2004!
It is currently Sat May 18, 2013 11:57 pm

All times are UTC - 6 hours




Post new topic Reply to topic  [ 109 posts ]  Go to page Previous  1 ... 3, 4, 5, 6, 7, 8  Next
Author Message
Sponsor
 Post subject:
PostPosted: Mon Nov 27, 2006 4:57 pm 
Offline
 WWW  Profile

Joined: Sun Apr 30, 2006 5:39 am
Posts: 1560
Location: Canada, eh?
Code:
SD_cal_crc16(pbuf, 512, crc);

calculates the CRC16 of the data at *pbuf, 512 bytes long, and puts the result into *crc
Code:
if((*(vu32*)crc == *(vu32*)(pbuf+512)) && (*(vu32*)(crc+4) == *(vu32*)(pbuf+512+4)))
   rd = true;

crc = the crc generated by the asm code
pbuf = the data received from the SD card (first 512 bytes are data, the rest is crc and other stuff that the SD card itself generates)

the crc's seem to be stored in a 32 bit "register" (vu32), so its comparing 2 CRC16 values to be certain they match. In DSFTP's case you might be safe to use the read routine dirctly from the previous version (that doesnt care about the crc).

But,. try this (though you may be right and timing could be an issue):
[hide]
Code:
bool    SD_ReadSingleBlock(unsigned int address , unsigned char *ppbuf, int len)
{
   bool   ret; //, rd;
   u8   pbuf[528];
//   u8   crc[8];
   int   i, k;

//   rd = false;
   do {
      ret = SD_SendCommandRS(17, address);   // single block read , parm = address
      if(ret) {
         SD_ReadData(pbuf, 520, 0x10000);
         for(i = 0; i < 10; i++)
            k = *(vu16*)0x9fea000;
//         SD_cal_crc16(pbuf, 512, crc);
//         if((*(vu32*)crc == *(vu32*)(pbuf+512)) && (*(vu32*)(crc+4) == *(vu32*)(pbuf+512+4)))
//            rd = true;
      }
   } while(ret); //&& (!rd));

//   if(rd)   
   memcpy(ppbuf, pbuf, 512); // not sure why this is here

   return ret;
}
[/hide]


Top
 
Sponsor
 Post subject:
PostPosted: Mon Nov 27, 2006 8:54 pm 
Offline
 WWW  Profile

Joined: Sun Apr 30, 2006 5:39 am
Posts: 1560
Location: Canada, eh?
Rudolph just sent me a bit more updated code:
EZ4_061128.zip
No sample included this time, though the previous one’s sample can use these files as direct replacements.

What he had to say:

Quote:
This correction point is an error check at the correction of a start-up initialization routine and reading.The error check at the time of reading was made from the CRC check to a very simple method.

CRC can be checked by the #define of “READ_CRC_CHECK”. The reading speed increases by a factor of 1.7 by a new check method.

Uncommenting the #define in SDoperator.cpp uses the previous read routine with CRC checking, leaving it as-is is a faster read with only a check to see that all the data was read. I am getting much faster reads using the CRC checked reading.


Top
 
 Post subject:
PostPosted: Wed Nov 29, 2006 1:49 am 
Offline
 Profile

Joined: Wed Aug 09, 2006 7:49 pm
Posts: 39
hey cory thanks for the update. i am convinced now that dsftp has some timing issues which limit the reading speed from the cart. i might try and write a ftp library once i finish exams next week... gotta brush up on my sockets programming.

anyways, what kind of speeds are you getting from the dsbench? i get ~1400ms/MByte on my card


Top
 
 Post subject:
PostPosted: Wed Nov 29, 2006 5:14 am 
Offline
 Profile

Joined: Mon Jul 31, 2006 6:19 am
Posts: 73
@jrobot:
If you are, can I request a feature? ;p
I haven't looked at DSFTP yet, because I think it _needs_ to write to the FAT card.
My current project (an RTS) is expected to not get bigger than 1 MB, as it loads in _everything_ from FAT. It currently hovers around 200 KB.

Due to it being so small, I'd definitely like a feature where the (FTP downloaded) program is just loaded into RAM and then executed... no file writing whatsoever. It'd be faster for my project tests, and wouldn't clutter up my SD-card.

_________________
AmplituDS website - The latest news, information and downloads of the game.
AmplituDS forums - Chat, sneak previews, track creation, and more.


Top
 
 Post subject:
PostPosted: Wed Nov 29, 2006 6:59 am 
Offline
 WWW  Profile

Joined: Sun Apr 30, 2006 5:39 am
Posts: 1560
Location: Canada, eh?
jrobot wrote:
anyways, what kind of speeds are you getting from the dsbench? i get ~1400ms/MByte on my card
I'm getting alot lower than that, so much in fact its making me wonder if I didn't mess it up somewhere, I'm getting some zero values for sequential too... (I'm pretty out of it today, one of those days where I probably shouldn't attempt anything I actually expect to go "right")

Using a kingston 512 (the slower of the two micro's I have here):
Random 4kb block read
129.1940ms/1MByte
Sequential 4kb block read
0.0300ms/1MByte


Top
 
 Post subject:
PostPosted: Wed Nov 29, 2006 11:26 pm 
Offline
 WWW  Profile

Joined: Sun Apr 30, 2006 5:39 am
Posts: 1560
Location: Canada, eh?
Updated again, CRC is handled differently. It is faster than previous CRC version, and seems faster than disabling CRC in the last version.

Quote:
CRC was checked only when there was a possibility that
the data reading fails.
It is the one that the last new data check was combined with the CRC check.

EZ4_061129.zip

Thank you Rudolph!
(do you guys think he gets the point that I am grateful yet? ) :lol:


Top
 
 Post subject:
PostPosted: Thu Nov 30, 2006 1:41 am 
Offline
 Profile

Joined: Wed Aug 09, 2006 7:49 pm
Posts: 39
Dark Knight ez wrote:
@jrobot:
If you are, can I request a feature? ;p
I haven't looked at DSFTP yet, because I think it _needs_ to write to the FAT card.
My current project (an RTS) is expected to not get bigger than 1 MB, as it loads in _everything_ from FAT. It currently hovers around 200 KB.

Due to it being so small, I'd definitely like a feature where the (FTP downloaded) program is just loaded into RAM and then executed... no file writing whatsoever. It'd be faster for my project tests, and wouldn't clutter up my SD-card.


yea that might be possible... though you can accomplish what you want with the existing DSFTP by uploading (and overwriting the existing app) then there's a command to launch an application which is
Code:
quote BOOT /mydsfile.nds


*note* i haven't really tested the boot command..


also, check out bafios wifi transfer app
http://bafio.drunkencoders.com/


Top
 
 Post subject:
PostPosted: Sat Dec 02, 2006 8:25 am 
Offline
 ICQ  Profile

Joined: Mon May 08, 2006 9:19 am
Posts: 84
awesome work guys.. I'm definatly taking up DS development now! :D

_________________
ok :D


Top
 
 Post subject:
PostPosted: Sat Dec 02, 2006 7:18 pm 
Offline
 Profile

Joined: Sat Jul 01, 2006 10:57 pm
Posts: 835
Here's something interesting:

When I configure my Wifi settings with an original Mario-kart cartridge, DS-FTP will successfully connect to my LAN on every second reset. Every other reset, it gets stuck at "Searching for access point"

When I configure my Wifi settings with a Mario-kart ROM, DS-FTP seems to only connect to my LAN once every blue moon.

I think I'm going paranoid... anyone able to confirm if I'm going mad?


Top
 
 Post subject: Image Viewer 0.4=working writes (REIN, DSO builds inside)
PostPosted: Sun Dec 03, 2006 12:12 pm 
Offline
 Profile

Joined: Sat Oct 21, 2006 3:54 pm
Posts: 333
scrawl wrote:
Here's something interesting:

When I configure my Wifi settings with an original Mario-kart cartridge, DS-FTP will successfully connect to my LAN on every second reset. Every other reset, it gets stuck at "Searching for access point"

When I configure my Wifi settings with a Mario-kart ROM, DS-FTP seems to only connect to my LAN once every blue moon.

I think I'm going paranoid... anyone able to confirm if I'm going mad?


fill out your internet settings through mario kart manually (type IPCONFIG at command script) and it should work


Top
 
 Post subject:
PostPosted: Mon Dec 04, 2006 2:07 am 
Offline
 Profile

Joined: Fri Nov 24, 2006 7:24 pm
Posts: 10
DSFTP V2.3 was rebuilt.

It cannot seem to be helped that DS->PC is slow in DSFTP in DSwifi0.3b.

When the patch thought to be application with DSFTP V2.3 is applied, DS->PC
is a speedup in each steps.
However, PC->DS has slowed extremely.

Version that has applied patch
http://www009.upp.so-net.ne.jp/rudolph/ ... TP_EZ4.zip

PC -> DS 2.5KByte/sec
DS -> PC 75KByte/sec


Version changed a little without permission by DS speed priority
(WIFI_UPDATE_FREQ was only changed to 20)
http://www009.upp.so-net.ne.jp/rudolph/ ... EZ4_SP.zip

PC -> DS 100KByte/sec
DS -> PC 15KByte/sec


Last edited by Rudolph on Mon Dec 04, 2006 7:25 pm, edited 1 time in total.

Top
 
 Post subject:
PostPosted: Mon Dec 04, 2006 11:33 am 
Offline
 Profile

Joined: Wed Aug 16, 2006 4:54 pm
Posts: 33
Are we getting to the point where we won't need to remove the card to fill it with content?
You amaze me. You are amazing, folks.


Top
 
 Post subject:
PostPosted: Mon Dec 04, 2006 7:09 pm 
Offline
 Profile

Joined: Wed Aug 09, 2006 7:49 pm
Posts: 39
good job rudoplh!


Top
 
 Post subject:
PostPosted: Thu Dec 07, 2006 6:01 am 
Offline
 Profile

Joined: Sat Jul 01, 2006 10:57 pm
Posts: 835
This is my first foray into devkitpro and compiling source and sadly I couldn't work out how to load the files from a Doom directory.

Anyway, until something better comes along, here is a version of dsdoom for the EZ4 with working savegame support.

To install:

Download the original EZ4 version of dsDoom

Extract doom.wad, prboom.cfg and prboom.wad to the root of your memory card

Download the updated ds.gba file

Extract dsdoom-EZ4.ds.gba to your memory card


Top
 
 Post subject:
PostPosted: Fri Dec 08, 2006 12:39 am 
Offline
 Profile

Joined: Tue Nov 14, 2006 2:49 pm
Posts: 13
How do you run dsftp, I have put the file on the ds and it runs fine, although it says that the config file was not found, but how do I transfer files onto the ds. What ftp client do I need to download, Im pretty much lost here so any help would be appreciated.


Top
 
Sponsor
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 109 posts ]  Go to page Previous  1 ... 3, 4, 5, 6, 7, 8  Next

All times are UTC - 6 hours


Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group  
Design By Poker Bandits