Jump to content

knight0fdragon

Members+
  • Posts

    26
  • Joined

  • Last visited

Posts posted by knight0fdragon

  1. This is kind of hard to explain so I will try to create a scenario for better understanding

     

    Lets say in my WFC i have 2 spots saves

     

    spot 1 has linksys

     

    spot 2 has SoftAP

     

    now I am out on the road

     

    I would like to connect to SoftAP using Autoconnect

     

    BUT

     

    in the area I am in, someone has an SSID of linksys, and I can not connect to this router

     

    so the wifi then fails to connect, and thus I can not do any networking.

     

     

    What I am asking, is that if the DS fails to connect to spot 1 because of this issue, that instead of dieing, try to check out spot 2, then spot 3

     

     

    right now what i did was just change the SSID in my settings

  2. Yes, I got the questiopn right !

     

    Blubb was tested with two NDS's, both in the SAME network (one AP, both NDS's connected to it, communicating with each other)

     

    KnightOfDragon, did you use different ports on each NDS ? (that's very important, if you are on the same network !)

     

     

    the problem lies with my router, for some reason it wont even let the DS chat with itself

     

    as for your port thing, I dont know what the hell you do, nor do I want to. My method works just fine and I only declare the port to send, the router creates the recv

  3. Has anyone ever succesfully connected 2 DS's to the same AP and tried using the wifi test to communicate???

     

    I have no clue on what I am doing wrong

     

    I can chat from DS1 to PC and vice versa

    I can chat from DS2 to PC and vice versa

     

    BUT

     

    I can 't chat from DS1 to DS2 and vice versa

     

     

    I am on a Versalink router also btw

  4. i dont know if anyone is experiencing this, but when I FAT_fopen(..."r") then close it, then FAT_fopen(..."w") dualis seems to crash when i want to write to the file

     

    on the DS, i believe that it just freezes on the DS, but that may just be because its having the issues with the writing to begin with,

     

    just something that should be looked into perhaps ??? thanks for ur time

     

     

    fixed ds bug, seems like an emu issue

     

    what the code looks like....

    #include <nds.h>
    #include "../../general/command.h"
    #include <nds/arm9/console.h> //basic print funcionality
    #include <stdio.h>
    #include <stdlib.h>
    #include <gbfs.h>    // filesystem functions
    #include "gba_nds_fat/gba_nds_fat.h"
    FAT_FILE *fps;
    int main(void)
    {
    //irqs are nice
     
    
     lcdMainOnBottom();
    
     FAT_InitFiles();
     
     fps = FAT_fopen("a.txt","r");
     FAT_fclose(fps);
     fps = FAT_fopen("a.txt","w");
     int wasWritten = FAT_fwrite("0",1, 1, fps); 
     FAT_fclose(fps);
    }

  5. d i wondered if anyone knows wheather this is a problem with the DS and Homeportal or with the DSwifi lib and Homeportal...

     

    Have you tested with official NDS software like mario kart or AC, if you are able to connect then you know its not a DS issue

  6. i know how you feel sgstairs, dont let comments like these discourage you, do what u seem fit to make this project work, because its the only way its going to get done, Id rather you doing something u love doing the way u love doing it then any other way, gives us a better quality product in the end. I too would like to see a new version, just like the rest of the communiry, but we are finding ways to deal with it till that day comes, so best of luck to ya

  7. select() is a function that check if there is data that can be read on a socket, but it's not implemented in sgstair's lib.

    But why don't using non-blocking sockets ? It isn't a problem on a non-OS system like the DS...

     

     

    if i had TCP i wouldnt mind, but UDP unfortunalty drops data, so there is a less of a chance that i would get it if it were non blocked, plus im keeping networking out of the game loop because its just neater and more versitile when dealing with tons of functions

  8. You can do small thing in Vblank interrupt (like animations). I don't think it's in the lib, but you can also use select().

    I also remember someone on Gbadev has implemented a king of threading...

     

     

    the one on GBADEV does not work as of yet, that i know of, and if i interrupt, it gets locked inside.

     

    what is this select()? have any documentation or an example i can use?

  9. is there some kind of way to do simple threading??

    the only thing that i can do right now is set up a timer and have a nonblocking recv, but i would like it to be blicked when the next lib comes out and have my program wait for it while it is also doing other things

  10. Im trying to show a wifi bar on my screen, so I figure i have to use the data from RSSI, now is there a command or something to show the updates of the RSSI, I tried global_connectAP.rssi*100/0xD0 but that is not keeping my RSSI up to date, and I cant find anywhere in the lib to get the RSSI so Im thinking im overlooking something here

  11. Ok I have found the locations of the DS WIFI IP in the firmware,  perhaps we can use this when grabbing AP info for setup.  I wrote, but for those wondering:

    ...

     

    Hi! I already made some code to read them in a struct, you can see here:

    http://forum.gbadev.org/viewtopic.php?t=82...er=asc&start=15

     

    Bafio

     

    lol wow i wish i knew that existed, would of saved me a lot of time from doing multiple firmware dumps to find it

    This has been well documented for some time so you should really have done a search first.

     

     

    searchin the firmware for 192.168.1.1 is a lot faster then searching a crap load of web pages and forum pages

  12. Ok I have found the locations of the DS WIFI IP in the firmware,  perhaps we can use this when grabbing AP info for setup.  I wrote, but for those wondering:

    ...

     

    Hi! I already made some code to read them in a struct, you can see here:

    http://forum.gbadev.org/viewtopic.php?t=82...er=asc&start=15

     

    Bafio

     

    lol wow i wish i knew that existed, would of saved me a lot of time from doing multiple firmware dumps to find it

  13. Ok I have found the locations of the DS WIFI IP in the firmware, perhaps we can use this when grabbing AP info for setup. I wrote, but for those wondering:

     

     

    wifi data starts at

    Slot 1:

    0x3FA40

    Slot 2:

    0x3FB40

    Slot 3:

    0x3FC40

     

    IP Address located at

     

    Slot 1:

    0x3FAC0

    Slot 2:

    0x3FBC0

    Slot 3:

    0x3FCC0

     

     

    struct WFCArea

    {

    char APName[32];

    char Unknown1[32];

    char WEPKey[32];

    char Unknown2[32];

    char IP[4];

    char Gateway[4];

    char DNS1[4];

    char DNS2[4];

     

    };

    E.g.

    WFCArea WFCbuffer;

    readFirmware(0x3FA40,WFCbuffer,sizeof(WFCArea));

  14. Correct, this version doesn't support blocking mode (all sockets are non-blocking) - next version will start sockets in blocking mode and allow you to turn it off (with ioctl)

     

    -Stephen

     

     

    ok thanks for all the info, since i made a networking class for his stuff, I will just wait till the next version of the lib, and update the classes, i can still use what i got, - the server portion as of now

  15. yea that is what I am using now, I just thought that I was missing something here, but I guess not. Ok then thanks a lot, I just need some answer on the server, perhaps thats not gonna happen till the next installment of the lib

  16. i want blocking, not non blocking. I do not use that code you said, but for some reason, recvfrom is not waiting for data like its suppose to

     

    as for the second question, has anyone placed the DS into server mode??? I ask this because it is like my PC does not recognize the IP when i access it

  17. WHAT??????????

     

     

    what dont u understand?????

     

     

    i want to use sync sockets not async, but for some reason it seems its async by default

     

    and i like to use the DS as a server, so that other DS's could communicate via wifi but the function gethostbyaddr will not recognize the IP on the DS, itll act as if the IP doesnt exist

×
×
  • Create New...