Jump to content

Recommended Posts

Posted

How could you use wifi_lib_test.nds?

 

Because I have a small html browser in text, and I want to add wifi.

 

I know this lib only support udp.

 

But I want to use this lib to transfer requested page from a computer to the nds, using udp.

 

Thanks

  • Replies 44
  • Created
  • Last Reply

Top Posters In This Topic

Posted
How could you use wifi_lib_test.nds?

 

Because I have a small html browser in text, and I want to add wifi.

 

I know this lib only support udp.

 

But I want to use this lib to transfer requested page from a computer to the nds, using udp.

 

Thanks

 

Hi, sounds like a nice idea to me, it may be worth waiting for the TCP part to be complete... but well why not?

The library is released by Sgstair, so as he says in the wifi page, you should email him to ask for the library.

This is really a test app, and seems to have still many problems, but if it's fine with Sgstair, I have no problem in releasing the source code of what I did, it's not that much really, and mostly based on the test app he wrote.

 

Take into account that working of UDP is not reliable, and there is a lot to implement yourself,like flow control, sessions with the client, error correction (missed or out of order packets) etc. that I am actually mostly not doing now ;)

 

Anyway, I'm curious, is the browser based on some other text based browser or did you start from new?

 

Bafio

Posted

my own browser,it only displays text between BODY marks, and remove all other html-marks

 

I know, it's a very awful method.

But it was program to read a simple web page on a embedded device with web server.

 

I know, I can do better.

 

I will ask him for lib, and you for udp file transfer!

Posted

Hi,

 

There is a new version on the program in http://www.geocities.com/bafiollo/

 

Bafio

 

Version 0.6

 

This update is using the new new 0.2a version of Sgstair library fixing

some issues with ARP requests.

new features:

* modified the transmission protocol, it's a little more resitant to errors

(retransmissions)

* transmissin seems to break less often

* the destionation IP is saved in the config file, with the AP MAC address

* You can set the transmission delay on the server. Lower mean faster transfers,more errors.

Use a higher delay if you get transfer errors.

* many small changes here and there, like better moving in the list of files,...

* (discovered tifferent problems with atutomatic server detection, don't relay

on that)

 

NB. You need to use the new version of the server with the new NDS! The

protocol has changed.

  • 2 weeks later...
Posted

*****WARNING*****

 

I tried this on my SuperCard CompactFlash and after running it, the DS froze, and then FORMATTED my CF card.

 

USE IT AT YOUR OWN RISK! Or at least if you're going to try it, BACK UP your save games.

 

--Hank

Posted
*****WARNING*****

 

I tried this on my SuperCard CompactFlash and after running it, the DS froze, and then FORMATTED my CF card.

 

USE IT AT YOUR OWN RISK! Or at least if you're going to try it, BACK UP your save games.

 

--Hank

 

I had similar problems. I use it on a GBAMP. After downloading some games, I returned to MoonShell and saw that the client app (I just ran) and some games were removed. My music, pictures, dslinux and other stuff were still ok. I don't know if MoonShell or the wifi client is doing something wrong.

 

co2

 

ps: Thanks to bafio and sgstair to make this application! :thumbsup:

Posted
*****WARNING*****

 

I tried this on my SuperCard CompactFlash and after running it, the DS froze, and then FORMATTED my CF card.

 

USE IT AT YOUR OWN RISK! Or at least if you're going to try it, BACK UP your save games.

 

--Hank

 

LOL

 

LOL? I don't see anyone laughing. If you've got nothing useful to say, then keep your posts to yourself. It's a waste of time.

Posted
*****WARNING*****

 

I tried this on my SuperCard CompactFlash and after running it, the DS froze, and then FORMATTED my CF card.

 

USE IT AT YOUR OWN RISK! Or at least if you're going to try it, BACK UP your save games.

 

--Hank

 

Ops...

Sorry abut that, there is not very much error control on the software, but I think I know what the bug may be...

Next release in the next days (maybe a week) will hopefully fix that (it happened to me too once) and make the transfer much more reliable (using the new release of the lib.

Bafio

Posted
*****WARNING*****

 

I tried this on my SuperCard CompactFlash and after running it, the DS froze, and then FORMATTED my CF card.

 

USE IT AT YOUR OWN RISK! Or at least if you're going to try it, BACK UP your save games.

 

--Hank

 

Ops...

Sorry abut that, there is not very much error control on the software, but I think I know what the bug may be...

Next release in the next days (maybe a week) will hopefully fix that (it happened to me too once) and make the transfer much more reliable (using the new release of the lib.

Bafio

well this is udp/ip! its really not designed for file transfer since its not for reliable data transfer. it may be better just to wait for tcp

Posted
*****WARNING*****

 

I tried this on my SuperCard CompactFlash and after running it, the DS froze, and then FORMATTED my CF card.

 

USE IT AT YOUR OWN RISK! Or at least if you're going to try it, BACK UP your save games.

 

--Hank

 

Ops...

Sorry abut that, there is not very much error control on the software, but I think I know what the bug may be...

Next release in the next days (maybe a week) will hopefully fix that (it happened to me too once) and make the transfer much more reliable (using the new release of the lib.

Bafio

well this is udp/ip! its really not designed for file transfer since its not for reliable data transfer. it may be better just to wait for tcp

 

Actually I meant the software itselt. UDP has nothing to do with formatting the CF. It is not a problem also to transfer files with UDP, as long as you implement some flow control and error detection.

The real problem was not to be able to transmit back once started receiving the packets.

The new release of the library fixes that, so this will make reliable transfers possible.

Obviously TCP is easyer to use and will make it much easyer to implement a transfer, but I don't see it in the really near future.

 

Bafio

Posted

Hi!

 

I just updated the program, this time it uses the latest SgStair library.

The protocol now works with syncronization, it's a bit slower now but much safer.

 

Changes:

 

Version 0.7

 

Uses the new 0.2b release of the library. This fixes the send problem there

was before, so:

 

* modified transmission protocol. Now it should be ok for file transfer even when

there is packet loss! Remember to run also the new version of the server

* Removed some debug info

* hopefuly fixed some issues that could generate file loss on the CF in certain situations

Posted

Hi!

I compiled a version using your updated drivers, so it's based on version 0.7.

As I said before, I did not test this, so

 

*************************

*** I make no guarantees. ***

*************************

 

IF you have a Supercard SD and want to try it, you can get it at:

 

http://www.geocities.com/bafiollo/wifitransfer_07SCSD.zip

 

Right now I want to make the file transfer faster, it's prettiy slowright now with version 0.7, then I'll release the code.

 

Bafio

Posted
Hi!

I compiled a version using your updated drivers, so it's based on version 0.7.

I registered just to thank you for this, this version worked perfectly on my SCSD :D

The config file was saved and loaded perfectly and a test file i tried was copied to my sd card and i could boot it from the supercard menu.

So thanks again :)

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...