Path: chuka.playstation.co.uk!news From: Philippe Lorin Newsgroups: scee.yaroze.freetalk.english Subject: Re: Siocons under Linux Date: Sun, 04 Dec 2005 23:18:29 +0100 Organization: PlayStation Net Yaroze (SCEE) Lines: 80 Message-ID: References: NNTP-Posting-Host: amarseille-153-1-11-233.w86-194.abo.wanadoo.fr Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit User-Agent: Mozilla Thunderbird 1.0.7 (X11/20051011) X-Accept-Language: en-us, en In-Reply-To: Thank you for all the advice Andrew :) . It helped me make some progress. Andrew Partington wrote: > I don't get any problems with PSComUtil under wine freezing when trying > to send programs/data across - could your executable be corrupted > somehow, or perhaps you have a damaged or loose serial cable/port? I > remember when I had my Yaroze connected up to my old shed of a laptop, > serial comms were a bit unreliable - I found out eventually that the > serial port was not holding the cable in properly and I had to balance > stuff underneath the plug to get it working. I checked my exe and connection under Windows. I tried several programs, and each of my two serial ports. I can run a simple "hello world", as well as some small game, with PsComUtil under Wine (at 9600 bps). The halting problem seems to occur only after a certain amount of data has been uploaded (with Invs, at 9600 bps, it happens about at the same place as at 115200 bps). > From what you've written it sounds like you can connect and PSComUtil > can see the Yaroze. If you can connect then this shouldn't make any > difference, but try checking the ownership of /dev/ttyS0 (if your Yaroze > is connected to com1) - PSComUtil will only connect for me if I own the > device, ie: > > $ ls -l /dev/ttyS0 > > crw-rw---- 1 aparting uucp 4, 64 Nov 29 18:35 /dev/ttyS0 > > works for me, but doesn't when root owns the port: > > crw-rw---- 1 root uucp 4, 64 Nov 29 18:35 /dev/ttyS0 I checked that, and root owns the port. As some communication does happen, this is presumably not a problem. However, I notice that where you get "uucp" I get "dialout" -- I have no idea what this mean, but could it be a clue? > Another thing you might want to check is if there are links to the > serial port in your wine config directory (I can't remember if wine > creates these for you): > > $ cd ~/.wine/dosdevices > $ ls -l > > lrwxrwxrwx 1 aparting users 10 Feb 2 2005 com1 -> /dev/ttyS0 > lrwxrwxrwx 1 aparting users 10 Feb 2 2005 com2 -> /dev/ttyS1 Ok, I checked that. > I've just tried the binary version of dosemu (http://www.dosemu.org) and > siocons works under that when you enable serial ports, but serial comms > are *really* slow. If you want to try it then you'll need both > dosemu-1.2.2-bin.tgz and dosemu-freedos-b9r5-bin.tgz, then modify > dosemurc to enable serial support, then copy dosemurc to ~/.dosemurc - I > think i'll stick with PSComUtil for now. I installed Dosemu and set the serial ports up. Siocons begins the transmission but ends immediately with a "sync error". Btw there's an option to speed up the communications, I think it goes something like this: $_ports = "device /dev/ttyS1 fast" (see http://dosemu.sourceforge.net/docs/HOWTO/x246.html, and dosemu.conf) > I built HSSUtils to try it out (and also built the cross compiler) - I > found that unless I ran mipsel-ecoff-strip on the .pxe produced by the > compiler it wouldn't launch, just as you describe. Do you mean that you got HSSUtils to work provided you used mipsel-ecoff-strip? Next I'm going to try Kenny Millar's PsxComm (there are a lot of Siocons replacements out there!); I'll post my results here... (http://www.netyaroze-europe.com/~kmillar/)