Path: chuka.playstation.co.uk!news From: "Peter Armstrong" Newsgroups: scee.yaroze.freetalk.english Subject: Re: printf misses some data Date: Wed, 20 Feb 2002 00:12:39 -0000 Organization: PlayStation Net Yaroze (SCEE) Lines: 54 Message-ID: References: <01c1b80a$054869a0$3371933e@pal-s-omnibook> <3C70D827.DEABCAFE@peregrine.com> <01c1b8d8$48bbd2c0$f584933e@pal-s-omnibook> <3C723C68.C436EE62@peregrine.com> <01c1b983$bcd4c6c0$40a3933e@pal-s-omnibook> NNTP-Posting-Host: modem-27.aeglos.dialup.pol.co.uk X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.50.4133.2400 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400 Hi Pal, I gather you don't know whether the problem is at the PC or yaroze end? If it's at the PC end and you can try increasing cpu time for siocons by setting its idle sensitivity to lowest, or running in ms dos mode to see if that makes any difference. On the yaroze side there are a few things you can try (some more ugly than others): wrapping your printfs in EnterCriticalSection/ExitCriticalSection send no more than 8 bytes at a time (I believe this is the psx's serial fifo buffer size) sprintf your data into one string before sending, use putc/putchar/puts to send the data after sprintf write() the data directly to the port after sprintf To use write() you need to know the ports file descriptor, iirc 0 and 1 are both for the port, one being read/write and other read or write only, I can't recall which is which now, I really should write things like that down. I can't say which if any of those suggestions will work, but you'll try anything if you're desperate. :) Other than that, you could log all the sends you make in psx memory and then upload the memory block after your game exits. Bear in mind you could be putting in a lot of effort on the yaroze side to improve a problem caused at the PC end. Touch wood I've not had any problems sending data to the PC from the yaroze, probably not been sending as much data to siocons as you have though. If you like you can send me what your testing and I'll attempt to log it and see i I have any more luck with my connection than you've had. Peter "pal" wrote: > > PSComUtil is part of CodeWarrior. > > I should have known that. Although I bought that CW i never really bothered > using it :( > > > Codewarrior sometimes drops bytes. The solution is to use SIOCONS. > > Dropping the baud rate helps, but does not eliminate the problem." > > I guess this is final... > I'll have to find some way to reduce my data amount then. > > Thanks for your help Andy & Jon >