Jump to content

cybereality

Members+
  • Posts

    9
  • Joined

  • Last visited

Contact Methods

  • Website URL
    http://www.cybereality.com
  • ICQ
    0

cybereality's Achievements

Newbie

Newbie (1/14)

0

Reputation

  1. Thanks sypherce. I meant to mention that it needed cygwin1.dll. I just totally forgot. If you need to find it you can just put 'cygwin1.dll' into google and theres a bunch of sites that have it. Then copy and paste into the windows/system32 folder.
  2. I put together this simple little udp example for testing the ds wifi. I'm sure this has been done before, but I figured a simple example would be helpful to some. The code is heavily based on the example code from the WinSock2.0 book. It compiles on cygwin/g++ and some others (but I have not tested). You'll also need the winsock dll to do the dirty work. This is not a DS app. The file contains a server app and a client app, both for the pc. With this, you can test any UDP programs using a simple command line chat program. It is single threaded, so you can only chat back and forth (like ping-pong). I have tested it with the udp-example sgstair released and also the stripped down version by sintax. It should work with any app the uses this protocol. The best part is that you can test the server-side functions in another command window instead of using the ds to test. I started this project to familiarize myself with udp with the hopes of making a wifi enabled app for the ds. Unfortunately, my professional projects have eaten all my time and I had to put the project on hold. Now that it seems like the new update will have TCP/IP and other functionality, I dont know if I will bother continuing the project. So here is the source for anyone that needs it. I have also included the executables if you just wanted to test your udp app with a command line program. Using this code as a foundation it would be possible to leverage pc libraries to do the dirty work and use the ds as a simple terminal to recieve the information. I hope someone will benefit. UDP Server/Client Example (binary & source) // cybereality
  3. As much as I'd like to help, its rather hard without knowing more about your problem. I can give you a few hints. First, try to use the wifi_lib_test app from sgstairs site. There is also a program called winsock example somewhere on the forum. If you are using windows this is a real easy way to test the wifi connection. Once you got all that, make sure you are giving your DS a static IP address. Do not allow your router to auto-assign an IP. You may need to disable the DHCP server to do this (as stated above). On the wifi_lib_test app make sure the Gateway and the DNS address point to your wireless router. This value is most likely 192.168.1.1 or maybe 192.168.2.1, although it depends on the make and model of the router. The IP you assign to the DS should be very close to your PCs IP so they fall in the same range. So, for example, if your PC was at 192.168.1.150 you should make the DS IP 192.168.1.154 or something like that. Make sure you are not using an IP that is already in use, or out of the routers set range. Then on the winsock example (or whatever server app youre running) make sure the DS ip is set to the same value you just made. Likewise, the destination ip on the UDP should be set to your PCs IP addy. Now if none of that works than it is an issue with the security on the router or your PC. Make sure you have all firewalls set up properly (including the windows firewall). Make sure your router can connect with the DS. Some security features of the firewall will block based on MAC addresses. You either have to turn this off or manually input the DS MAC address. More importantly, make sure that WEP is disabled. WEP is not currently supported and even though the test app will say "connected" it really isn't. At this point it only works on unsecured networks. Other than that you just need to use common sense and double check every IP you enter. Mis-configuring just one digit will make the connection void. I hope that helps. EDIT: To obtain the IPs of the PC and router click "Start"->"Run" type "cmd" and when the dos window opens type "ipconfig"
  4. Wow man, it actually works. Granted it is only a test release and you can't really do anything useful yet, but the potential is there. I was able to see a scaled down version of my dual desktop as well as move the mouse around (sort-of). I didn't test it, but I assume you can also input text. Like said above, you should be able to scroll using the D-pad. Also, it would be nice to have different levels of zoom. Obviously the speed could be better, but as a proof-of-concept, it works. Also, the server application is rather confusion as none of the options are labeled. I understand english isn't your first language, but it would help for the program to be a little more descriptive. Other than that, its a nice start.
  5. Once you flash the ds firmware, then you can send homebrew demos through wifi. Right now there is no method to run unsigned code on the ds without some sort of mod. While I agree it would be easier without it, this is nothing new. Almost every game system (except maybe the Dreamcast) required some additional hardware in order to play homebrew games. We are actually very fortunate that the ds only requires a simple firmware flash and not an internal mod-chip that has to be professionally installed. You can get all the required hardware for less than $100, or even have a friend flash your ds for free. Its really not that difficult. El Hobito: Actually this question has everything to do with the ds wifi and sgstair is obviously the person most qualified to answer this question. // cybereality
  6. I think thats a good idea, but the library is a little too young to be adding plugin support at this point. I think the focus should be on getting a reliable protocol working (aka TCP) in addition to a good collection of opensource examples. The problem with having a central server app is that you are going to be adding a lot of bloat to the code if you are not using all the functionality. Also, then you have to deal with multiple connection threads on different ports and all that sort of flow control issues. Maybe when the lib is a little more mature we can agree on some sort of standard, but it seems a little early IMHO. // cybereality
  7. Sounds like a cool little app. Unfortunately Im running XP so I can't test it out. I was using a PocketPC app called RemoteAmp as a remote control for winamp and that was pretty fun. Especially since I didn't have to be sitting at the computer to change the track if someone else was on it. // cybereality
  8. Thanks a bunch Sintax. This is really gonna help me out with the little app I'm writing. I just got a chance to skim through the code, but it looks very clean and well commented. I'm sure a lot of other people will appriciate a bare-bones example to learn from. Good job man. // cybereality
  9. I just downloaded the test app last night and I was amazed at the signal strength. When I loaded up the wardriving app it found at least 20 APs. Granted, I live in a big city, but still. The DS wifi would only find maybe 2 or 3 (including mine) and windows usually picks up about 5-10. Using a wardriving app on my pocketpc would usually list more, about 10-15. I guess many of these programs simply hide the signals that are below a certain threshhold. Anyway, great work Steven. Your wardriving app has managed to pick up far more wireless networks than I knew existed in my area. Good job.
×
×
  • Create New...