Re: Serial port support in wine-1.0: What to do to make it working ?

2008-05-14 Thread Pavel Troller
 Pavel wrote:
  I have to use wine-0.9.40 to communicate with a device
  in my work (simple text-based command-reply communication),
  any wine newer than say 0.9.50 doesn't work, the communication times out.
  ... I will try to dig into the driver and search for the bugs there.
  One of the cases is I think simple, the device uses normal ASCII protocol
  and I can talk to it using kermit or minicom, but the windows program
  intended to control it simply stucks on the first command and never
   gets a reply. I think there is a good place to start.
 
 Yep.  FWIW, the fix might be tiny.  Alexandre fixed a serial bug today,
 http://bugs.winehq.org/show_bug.cgi?id=9356
 with just a single assignment.
 
 If you can come up with a simple way for others to reproduce
 the problem, that might help, too.
 
Hi!
  I have a very good news today! I tested the current wine git and I've found
that it works again in the case of a device mentioned above! It's really good,
because it didn't work in 0.9.61 and using 0.9.40 was not good because of
another problems in this version. Even better, I've also found that today's
wine fixes the last graphics glitches remaining in the program GUI, so now
it works PERFECTLY under wine, and it seems that reading/writing the device
over the serial port is even FASTER than from windows! 
  I will try another devices soon, to help to debug serial port problems
as much as possible!
  With regards, Pavel Troller




Re: Serial port support in wine-1.0: What to do to make it working ?

2008-05-14 Thread Austin English
On Wed, May 14, 2008 at 6:26 AM, Pavel Troller [EMAIL PROTECTED] wrote:
 Hi!
  I have a very good news today! I tested the current wine git and I've found
 that it works again in the case of a device mentioned above! It's really good,
 because it didn't work in 0.9.61 and using 0.9.40 was not good because of
 another problems in this version. Even better, I've also found that today's
 wine fixes the last graphics glitches remaining in the program GUI, so now
 it works PERFECTLY under wine, and it seems that reading/writing the device
 over the serial port is even FASTER than from windows!
  I will try another devices soon, to help to debug serial port problems
 as much as possible!
  With regards, Pavel Troller




Wonderful! Can you add this information to the AppDB?




Re: Serial port support in wine-1.0: What to do to make it working ?

2008-05-14 Thread Pavel Troller
 On Wed, May 14, 2008 at 6:26 AM, Pavel Troller [EMAIL PROTECTED] wrote:
  Hi!
   I have a very good news today! I tested the current wine git and I've found
  that it works again in the case of a device mentioned above! It's really 
  good,
  because it didn't work in 0.9.61 and using 0.9.40 was not good because of
  another problems in this version. Even better, I've also found that today's
  wine fixes the last graphics glitches remaining in the program GUI, so now
  it works PERFECTLY under wine, and it seems that reading/writing the device
  over the serial port is even FASTER than from windows!
   I will try another devices soon, to help to debug serial port problems
  as much as possible!
   With regards, Pavel Troller
 
 
 
 
 Wonderful! Can you add this information to the AppDB?
 
To which app ? My one is a very special program, working just with a special
telecom device. It's not available publicly anywhere. It doesn't have any entry
in AppDB, it would be useless.
  I will add remarks to other apps, which I will verify later (i.e. MapSource
souftware for Garmin GPS etc.).

With regards, Pavel Troller




re: Serial port support in wine-1.0: What to do to make it working ?

2008-05-07 Thread Dan Kegel
Pavel wrote:
 I have to use wine-0.9.40 to communicate with a device
 in my work (simple text-based command-reply communication),
 any wine newer than say 0.9.50 doesn't work, the communication times out.
 ... I will try to dig into the driver and search for the bugs there.
 One of the cases is I think simple, the device uses normal ASCII protocol
 and I can talk to it using kermit or minicom, but the windows program
 intended to control it simply stucks on the first command and never
  gets a reply. I think there is a good place to start.

Yep.  FWIW, the fix might be tiny.  Alexandre fixed a serial bug today,
http://bugs.winehq.org/show_bug.cgi?id=9356
with just a single assignment.

If you can come up with a simple way for others to reproduce
the problem, that might help, too.

Lessee... here are most of the existing serial bug reports;
some of them (eg. 4055, 8783, 9988, 10051, 10056, 11399, 11811) have
interesting info:
http://bugs.winehq.org/show_bug.cgi?id=1244 (big grab bag of apps,
some downloadable)
http://bugs.winehq.org/show_bug.cgi?id=1700 (putty, downloadable)
http://bugs.winehq.org/show_bug.cgi?id=4055 (interesting, points to kernel bug)
http://bugs.winehq.org/show_bug.cgi?id=4633 (Garmin)
http://bugs.winehq.org/show_bug.cgi?id=4753 (workaround, interesting,
mentions kernel problem)
http://bugs.winehq.org/show_bug.cgi?id=5154 (Siemens phone; 0.9.12 bad)
http://bugs.winehq.org/show_bug.cgi?id=6895 (0.9.27 bad; timeout control broken)
http://bugs.winehq.org/show_bug.cgi?id=5632  (Secure CRT behaves
funny, downloadable)
http://bugs.winehq.org/show_bug.cgi?id=8113 (0.27 good, 0.35 bad)
http://bugs.winehq.org/show_bug.cgi?id=8783 (pinpoints the very commit
that caused the problem in 0.9.23!)
http://bugs.winehq.org/show_bug.cgi?id=9988 (good analysis, example code, patch)
http://bugs.winehq.org/show_bug.cgi?id=10051 (HAL needs to create
entries for serial ports?)
http://bugs.winehq.org/show_bug.cgi?id=10056 (good source testcase!)
http://bugs.winehq.org/show_bug.cgi?id=10573 (wine's tests fail on
laptop with serial port; bisect)
http://bugs.winehq.org/show_bug.cgi?id=11077 (HAL needs to create
entries for serial ports)
http://bugs.winehq.org/show_bug.cgi?id=11339 (bugfix for serial.c)
http://bugs.winehq.org/show_bug.cgi?id=11811 (HAL support needs improvement)
http://bugs.winehq.org/show_bug.cgi?id=11829 (0.9.22 good, 0.9.56 bad)
http://bugs.winehq.org/show_bug.cgi?id=12479 (timeout problems?)

OMG that's a lot of bugs.   There has been a LOT of analysis done
by various folks; now it's time to grind through it all and fix the problems.
As I mentioned, Alexandre has fixed one already; perhaps
he has time to look at a few more of these.

FWIW, I have some win32 serial i/o example source code here, along with
an archive of comments about problems  (from back in the day when
multiplayer games talked to modems):
http://alumnus.caltech.edu/~dank/overlap.htm
- Dan




Re: Serial port support in wine-1.0: What to do to make it working ?

2008-05-06 Thread Vitaliy Margolen
Pavel Troller wrote:
   So, what can I do to help fixing these problems ? Should I open a bug for
To solve most/all problems related to hardware one needs to have such 
hardware. It's nearly impossible to simulate the behavior while reading logs.

 every such a program ? Or just open one bug and state all the programs there ?
 I think that bugzilla contains a lot of bugs related to serial port; is it
 good to add a new ones ? 
No, creating duplicates never helps. You are correct there are already 
pliantly of bugs for serial communications.

   I'm afraid I can't bisect a problem between 0.9.40 and current wine, but I
 can make a serial trace for both of them and look at the difference. Would it
 help to find at least this one particular problem ? Or what more can I do
 to make the serial port working ? I can code in C in the Linux environment, 
 but

There are few bugs identified and are set as target for 1.0.0. You can look 
at those bugs. Few even list the commit that caused the regression. While 
those patches should have been no-ops.

So what you can do is to figure out what really changed and what part of the 
change broke the serial port functionality (in relation to each bug/patch). 
For this part you will need your hardware. Hopefully this will be enough to 
come up with a fix.

Vitaliy.




Re: Serial port support in wine-1.0: What to do to make it working ?

2008-05-06 Thread Uwe Bonnes
 Pavel == Pavel Troller [EMAIL PROTECTED] writes:

Pavel Hi!  I have really BIG problems running any application, which
Pavel needs to comm over a serial port: - My ham TCVR - My GPS - My
Pavel multimeter - A lot of my mobiles - A lot of devices used in my
Pavel work (special telco equipment, comms varying from simple AT-style
Pavel commands up to complex proprietary binary protocols).  In all the
Pavel cases there are very similar problems - either the program
Pavel doesn't detect the device properly, or the device doesn't
Pavel respond, or in some cases the device does, what the program
Pavel wants, but it then can't read it back.  It looks that some
Pavel archaic wine versions are better, for example I have to use
Pavel wine-0.9.40 to communicate with a device in my work (simple
Pavel text-based command-reply communication), any wine newer than say
Pavel 0.9.50 doesn't work, the communication times out.  Because I'm a
Pavel telco engineer and serial comm is my daily work, and there are
Pavel only windows versions of many tools I have to use, proper and
Pavel mature serial port support is essential for me.  So, what can I
Pavel do to help fixing these problems ? Should I open a bug for every
Pavel such a program ? Or just open one bug and state all the programs
Pavel there ?  I think that bugzilla contains a lot of bugs related to
Pavel serial port; is it good to add a new ones ?  I'm afraid I can't
Pavel bisect a problem between 0.9.40 and current wine, but I can make
Pavel a serial trace for both of them and look at the difference. Would
Pavel it help to find at least this one particular problem ? Or what
Pavel more can I do to make the serial port working ? I can code in C
Pavel in the Linux environment, but I know NOTHING about windows...
Pavel With regards, Pavel Troller

Pavel,

perhaps compile wine yourself and instrument the serial code with debugging
output. Try to see what's going wrong. Look at the codes where this happens
and read the old changelogs, where somebody fiddled witrh the code. Ask
about what people thought (or smoked) when implementing or offer a better
implementation.

There is a big problem with those special devices, as only few if any wine
developpers have it...

Bye
-- 
Uwe Bonnes[EMAIL PROTECTED]

Institut fuer Kernphysik  Schlossgartenstrasse 9  64289 Darmstadt
- Tel. 06151 162516  Fax. 06151 164321 --




Re: Serial port support in wine-1.0: What to do to make it working ?

2008-05-06 Thread Pavel Troller
Hi Uwe,

 Pavel,
 
 perhaps compile wine yourself and instrument the serial code with debugging
 output. Try to see what's going wrong. Look at the codes where this happens
 and read the old changelogs, where somebody fiddled witrh the code. Ask
 about what people thought (or smoked) when implementing or offer a better
 implementation.

OK, will do. I'm always compiling wine from source, so I will try to dig into
the driver and search for the bugs there. One of the cases is I think simple,
the device uses normal ASCII protocol and I can talk to it using kermit or
minicom, but the windows program intended to control it simply stucks on the
first command and never gets a reply. I think there is a good place to start.

 
 There is a big problem with those special devices, as only few if any wine
 developpers have it...

Yes, I know. I hope that there is just a limited number of bugs, but they
affect many such devices, so it looks that the driver is totally broken.

With regards, Pavel Troller