Problem with COM
drusmir at gmx.ch
Mon Feb 11 09:17:19 CST 2002
Dear sir Lawson Whitney
Dana ponedeljak 11. februar 2002. 01:16 napisali ste:
> On Sun, 10 Feb 2002, [iso-8859-2] Duško Rusmir wrote:
> > > baudrates 5760 and 5726 are not physically possible with
> > > normal comm hardware. Where is the app getting them? 57600
> > > is, 5760 is not.
> > I use this Baudrates wery well in Windows with those app. I
> > don't will load everytime if I will use these app.
> > I must use 5726, 5760 and 9600. My app need this to work. On
> > 4800 and 9600 (Oops) I got error.
> Oops, 5760 is physically possible with a custom divisor of 20, I
> think. 5726 is not. You set the speed of a UART by loading an
> integer valus into the divisor regisgter. The UART then divides
> its maximum speed by that number. If the divisor is 2, it runs
> at 57600. There is no integer you can divide 115200 by to get
> 5726. There is also no provision in Wine to use a custom
> divisor, I think, but combined with linux system commands, there
> is. Set the app to use 38400. Beforstarting the app, do
> setserial /dev/ttyS<n> spd_cust divisor 20
> when the app asks for 38400, it should actually get 5760. If it
> doesn't work, show me the output of:
No at all 38400 : 20 = 1920
Right is 115200 : 20 = 5760
5760 don't work although it is a possible dividor 20!
> setserial -a /dev/ttyS<n>
> <n> is the number of the comm port -1, unless you have
> ~/.wine/config set oddly. You can make "Com1" =
> "/any/damn/thing" but it might not work, or "Com1" =
> "/dev/ttyS3" (if the serial port you mean to use is on com4,
> that will work, but it will confuse me unless I see your
> wine --debugmsg +file,+comm blah.exe 2>&1 |tee ~/logfile
> (a copy of the debug messages will be in ~/logfile)
> gzip it before putting it in the mail, please.
> > With other app I can use 38400, 57600 and 115200 wery well.
9600 works also fine.
115200 : 12 = 9600 but it works whit 115200 and divisor 0!!!
> > I thing the handling of COM Port on these BaudRate is't good.
> I'm telling you, 5726 isn't _possible_ with a standard UART.
Yes, I can't get 5726 from 38400, 57600 or 115200 at all, but it
works in Windoze very well. I think it is a Way to get 5726, but
Gates don't give the source.
> > Thanks
> Dam'. I've lost track of the other 2 Wine developers who work
> on serial comms. I'll find them and forward some of this to
> them. I've been acting sort of as Wine comms gopher lately.
> Guess I should look into that fixme too.
I have tryied some possibility.
Take a Look on Attachment Wine-COM.tgz, please.
Thanks much, I am waiting for resolution.
MfG / With best Regards
Registered Linux user: #130654 http://counter.li.org
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 9665 bytes
Desc: not available
Url : http://www.winehq.org/pipermail/wine-users/attachments/20020211/0b352fab/Wine_COM.bin
More information about the wine-users