I am trying to get an home automation system called Thinkboxx to run on a linux system, Thinkboxx has a windoze program that controls the Thinkboxx over the com port. the program seems to be running well, but when it tries to open the com ports it say that it has an "Unknown Communications problem". I think my configuration of wine and the com port is ok, i have spent some time reading manuals and howtos but cant seem to find the flaw. can somone help. Here folows some output i got using -debugmsg +comm,+file trace:file:CreateFileA COM2 GENERIC_READ GENERIC_WRITE OPEN_EXISTING trace:file:CreateFileA opening device 'COM2' trace:file:DOSFS_CreateCommPort COM2 c0000000 40000000 trace:comm:SetCommTimeouts (60,0x405c521c) trace:comm:BuildCommDCBAndTimeoutsA (COM2 96,n,8,1,0x405c51d8,(nil)) trace:comm:EscapeCommFunction handle 96, function=6 trace:comm:EscapeCommFunction CLRDTR trace:comm:EscapeCommFunction handle 96, function=4 trace:comm:EscapeCommFunction CLRRTS Does anyone know what the error might be? The1trex _________________________________________________________________ Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp
T REX <the1trex@hotmail.com> wrote:> I am trying to get an home automation system called Thinkboxx > to run on a linux system, Thinkboxx has a windoze program that controls > the Thinkboxx over the com port. the program seems to be running well, but > when it tries to open the com ports it say that it has an "Unknown > Communications problem". I think my configuration of wine and the com port > is ok, i have spent > some time reading manuals and howtos but cant seem to find the flaw. > can somone help.Make sure to use Wine CVS !! Tons if fixes in there. If it still doesn't work, then ask the guys currently working on serial support. -- Andreas Mohr, Renningen, Germany In case you need to contact me after expiry of temporary email address: my eternal (hopefully) email address is frqr2001 at the domain sneakemail.com
On Fri, 23 Nov 2001, T REX wrote:> I am trying to get an home automation system called Thinkboxx > to run on a linux system, Thinkboxx has a windoze program that controls > the Thinkboxx over the com port. the program seems to be running well, but > when it tries to open the com ports it say that it has an "Unknown > Communications problem". I think my configuration of wine and the com port > is ok, i have spent > some time reading manuals and howtos but cant seem to find the flaw. > can somone help. > > Here folows some output i got using -debugmsg +comm,+file > > trace:file:CreateFileA COM2 GENERIC_READ GENERIC_WRITE OPEN_EXISTING > trace:file:CreateFileA opening device 'COM2' > trace:file:DOSFS_CreateCommPort COM2 c0000000 40000000 > trace:comm:SetCommTimeouts (60,0x405c521c) > trace:comm:BuildCommDCBAndTimeoutsA (COM2 96,n,8,1,0x405c51d8,(nil)) > trace:comm:EscapeCommFunction handle 96, function=6 > trace:comm:EscapeCommFunction CLRDTR > trace:comm:EscapeCommFunction handle 96, function=4 > trace:comm:EscapeCommFunction CLRRTS > > Does anyone know what the error might be? > > The1trexNot from that. Is there not any more? AFAICT, it hasn't tried to _do_ anything yet. I guess you have snipped off the trace too soon, we don't see it close the comm port. If that is all there is, maybe +comm,+file,+relay would give an idea what it doesn't like. Lawson ---oof---
>Not from that. Is there not any more? AFAICT, it hasn't tried to _do_ >anything yet. I guess you have snipped off the trace too soon, we don't >see it close the comm port. If that is all there is, maybe >+comm,+file,+relay would give an idea what it doesn't like. Lawson >---oof---There is little else, right after this it opens an windows error boks that say "unknovn comunications problem" It closes the comm port right after you press the "ok" button on the message. I used +comm,+file,+relay and got this: Call kernel32.BuildCommDCBA(42d1e1b0 "COM2 96,n,8,1",405c4f18) ret=0043dfc3 trace:comm:BuildCommDCBAndTimeoutsA (COM2 96,n,8,1,0x405c4f18,(nil)) Ret kernel32.BuildCommDCBA() retval=00000000 ret=0043dfc3 Call user32.LoadStringA(00400000,000005de,42d205cc,00000064) ret=00404203 Ret user32.LoadStringA() retval=00000019 ret=00404203 Call user32.LoadStringA(00400000,000005e2,42d205cc,00000064) ret=00404203 Ret user32.LoadStringA() retval=00000028 ret=00404203 Call user32.MessageBoxExA(00010023,42d1a124 "Unknown Communications Problem with\"COM2\"",42d20088r the1trex _________________________________________________________________ Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp
>Try to apply the following patch to dlls/kernel/comm.c>Gerard>--- comm.c.orig Mon Nov 12 15:49:08 2001 >+++ comm.c Mon Nov 26 09:19:32 2001 >@@ -260,7 +260,7 @@ > ERR("BUG! COM0 can't exist!\n"); > return FALSE; > } >- if (*(device+4)!=':') >+ if ((*(device+4)!=':') && (*(device+4)!=' ')) > return FALSE; > temp=(LPSTR)(device+5); > } elseSadly It did not work. It does look like the error might be in the device control string, but it migth lie somwhere else. I dont know where though, but i have tested a lot of different control strings. And I used the wine cvs, but it didnt help me. the1trex _________________________________________________________________ Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp
>I missed something.>GerardIt seemed to work, the program hangs but it seems to work, its moving on. You gave me a push in the right direction at least. Thanks Gerard The1trex _________________________________________________________________ Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp