gbadev.org forum archive

This is a read-only mirror of the content originally found on forum.gbadev.org (now offline), salvaged from Wayback machine copies. A new forum can be found here.

DS Misc > Request for a silly simple app

#131522 - MasterMan - Sat Jun 16, 2007 9:12 pm

Hi all, hope it's the right forum for this.

I have this Gamecube, and i bought a BBA for it, so i can stream files from PC. Actualy i'm waiting for the package arrive.

But the GC is far from my bedroom, where my PC is. And to stream files i need to use some command line apps in DOS to send the file, receive it in GC and such.
But i have a physical defficience and can't go this way, back and forth from PC to GC to PC...
So i thought the DS is the perfect solution for me. A app in wich i can type commands and send via wi-fi to a PC side server that executes it like "cmd <command>".
The DS client would need only to have a keyboard in bottom screen and top screen showing what i type, send and outputs from the server.

As i think i shoudn't bother anyone with my matters, i resolved to learn to code it myself. Gone to PAlib site, installed everything and started to read the wiki there.
I never coded anything but "Hello world!", just am familiarized with various sintaxes, JavaScript and PHP are my hobbies.
Got to do a simple code. Just a keyboard that output texts im the upper screen.
I don't have idea on how to send the strings via wifi, write simple app in windows to listen in the port and execute it.

Also i would like to read pre-made BATs or a text file with multiple lines from the card and execute that.

What i did: http://img504.imageshack.us/img504/8254/myscreenshot108yj2.jpg (is working in my SCCF)

Could someone do it for me? I'm realy disapointed with my skills.
Or else point me to the right thing to do.

I'm out of money to donate, but i'm eager to help and be helped. Think it's fairly easy to someone who does better things.

So, what can i do?

#131524 - tepples - Sat Jun 16, 2007 9:14 pm

Would DS2Key or Win2DS work?
_________________
-- Where is he?
-- Who?
-- You know, the human.
-- I think he moved to Tilwick.

#131527 - MasterMan - Sat Jun 16, 2007 9:25 pm

tepples wrote:
Would DS2Key or Win2DS work?

Don't.
I use DS2Key everytime to play emulators on PC. It works fine, but doesn't show the PC screen, how would i know what i was doing if i couldn have a visual response?

Win2DS is to slow to be usable. It would be way faster if it worked only with DOS (cmd.exe).

And DSVNC would be my best choice, but it's even more slower than Win2DS, and its keyboard is a pain to use.

Infact, i think it would be easyer and faster to send and receive little and real time text strings than full screenshots from the PC.

#131542 - Bronto - Sun Jun 17, 2007 3:03 am

Windows 2000 and XP Pro come with a telnet server, and I think DSLinux comes with a telnet client

#131543 - MasterMan - Sun Jun 17, 2007 3:26 am

Bronto, are you ready to teach me how to set wifi in DSlinux? XD

This is my /etc/rc.conf:
Code:
# This file provides default flags for the DSLinux boot process.
# The flags defined in this file can be either set or empty.
# If a flag is empty, it will not affect the system.

# This sets the hostname. You can set this to whatever you want.
hostname="NintendoDS"

# By default, wireless networking is not started on boot.
# If you want to enable it at boot time, set this flag to "YES".
enable_network_on_boot="YES"

# You can start networking anytime by running:
#   /etc/rc.d/network start
# and stop it anytime by running:
#   /etc/rc.d/network stop

# DSLinux can use network settings from your Nintendo WiFi
# Connection (WFC) profiles. If you want to use this feature,
# set wfc_config to the number of the profile you want to use,
# either 1, 2 or 3. You don't have to configure anything else
# if you use WFC settings.
# If you don't want to use WFC settings, leave wfc_config
# empty and configure your network below instead.
wfc_config="1"

# Set the essid of your wireless router here.
# For example:
#    essid="MyEssid"
# You cannot use wireless networking without setting an essid.
# Note that DSLinux only works in managed mode, i.e. with
# an access point. Ad-hoc mode is not supported.
essid=""

# If DSLinux fails to associate with your access point,
# try setting you access point's channel here.
# For example:
#   channel="11"
channel=""

# Here you can set a wepkey. Both 64bit and 128bit keys are
# supported. For hex keys, just enter the key without prefix:
#   wepkey="9923829ea8923"
# For ascii keys, make sure you use an 's:' prefix:
#    wepkey="s:mysecretkey"
# If you do not want to use WEP, just leave this flag empty.
wepkey=""

# You can assign a static IP and gateway. If you leave IP
# empty, automatic configuration via DHCP is used instead.
#
# For example:
#   ip="192.168.1.42"
#   gateway="192.168.1.1"
ip=""
gateway=""

# If you are not using DHCP, you can supply a
# netmask and a broadcast address, if you want to.
netmask=""
broadcast=""

# You can specify up to 2 DNS servers if you don't use DHCP.
dns1=""
dns2=""

# If you want to start telnetd on boot, so you can login into
# your DS from your PC via telnet, set start_telnetd to "YES".
# Note that you should only start the telnet server in a
# trusted environment. Do not enable it if you are in a
# public network, because anyone could easily connect to
# your DSLinux installation (the default root password
# is widely known). Neither should you configure your router
# to put the DS into DMZ, because this makes your DS accessible
# to anyone on the internet!
start_telnetd="NO"

# If you want to see your DS firmware version on boot,
# set this to "YES". By default, the firmware version is shown.
show_firmware_version="YES"

#
start_nanox="NO"

# End of file.


When i boot DSlinux, it connects, but doesn't stay as such. I dont have time for anything.
I have a Datel Wi-Fi MAX USB dongle, phat DS and Supercard CF. My PC has winXP SP2 and a hardware firewall (low).

Every other software, homebrew or commercial works fine right out of the box, but not DSlinux :(

#131552 - dantheman - Sun Jun 17, 2007 5:09 am

DSLinux has particular trouble determining the channel number to use. Add that info to the rc.conf file and it should make connecting much easier/faster. It will still read the info from your WFC config but will use the channel number when connecting as well.

#131609 - MasterMan - Sun Jun 17, 2007 9:38 pm

If i use "ping www.gamefaqs.com" as soon as i boot DSlinux ou after i do "/etc/rc.d/network start", it works fine. But it disconnects too fast.
Any way to keep it connected while it's running?

Also, can i turn off or change down the keyboard's keyrepeat rate?

#131615 - dantheman - Sun Jun 17, 2007 11:13 pm

I'm not sure why it's disconnecting, as it should wait until you type "/etc/rc.d/network stop" before doing so. Therefore, the disconnection is probably a bug, and my guess is that it has to do with the use of the Datel Wifi dongle, but I'm not certain.