Serial Cable Or Usb Serial Connection?


MadDog

Member
Joined
Mar 4, 2006
Messages
262
Age
54
Location
UK
Website
www.maddoggames.com
I've just got the USB serial thing working on my windowsXP PC. Cool i thought, i'm playing with my GP2x via bash in HyperTerminal. So I tried to run a gpe from bash and it did not work. Which makes me think why use the USB method? I want this connection to see debug spew from my apps but if I can't fire them up i'm a bit stuck. Sorry if there is a simple Linux way of doing this, bit dumb when it comes to Linux.

I have the bits to make a serial cable that connects to the EXT port, an old serial mouse is donating its cable, should work well. Is this a better route for coders? will it connect and run without having to ran a script and so leaving the gp2x menu free to fire up my apps?


Thanks,
Richard e Collins.
 
If you're trying to run an app by doing something like /mnt/sd/appname.gpe then a lot of the time it won't work. A lot of apps assume you're running them whilst in their folder (which the menu does) and then they try to find data files based on that fact. Calling an app with /mnt/sd/appname.gpe means you're not in the same folder and so it won't be able to find it's files. Use 'cd /mnt/sd/path/to/app' followed by './appname.gpe' and it will always work.
 
The only advantage of having a serial cable is being able to see the startup log. That and a serial firmware loader.
 
Ah adding ./ before tha app name worked guys, thanks. :) Is this a linux thing or because i'm connecting via another computer? HyperTerminal seems a bit poor, sometimes it adds character from a previous comand to the one I just typed. Anything better than HyperTerminal?


Thanks,
Richard e Collins
 
The "./" just means "current directory". If you want, you can add "./" to your search path so you don't need to type it, but it's considered dangerous, so isn't added to your path by default. (For example, if you typed "ls" to get a directory listing, and there just happened to be an executable in the current directory called "ls", then that would be run instead of the one you meant to run - hence why it's considered dangerous).
 
Back
Top