GuitarZaan / mw-wingui

Automatically exported from code.google.com/p/mw-wingui
0 stars 0 forks source link

Must start WinGui a second time before it will connect and read the parameters. #24

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Start WinGui and connect.  Does not read parameters.  Disconnect.
2. Start WinGui again and connect.  Parameters are read and all is ok.
3.

What is the expected output? What do you see instead?

What version of the product are you using? On what operating system?
WinGui version is 2.1. Operating system is Windows 7 64 bit.

Please provide any additional information below.
There are no errors associated with the problem.

Original issue reported on code.google.com by jbower6...@gmail.com on 27 Mar 2013 at 9:40

GoogleCodeExporter commented 9 years ago
I think this is caused by the fact that at the first connect, the GUI resets 
the board, and the connect eventually will fail. The second connect successfull 
since it does not resets the FC. I investigated this problem a lot, and it 
seems this is a limitation of the .NET serial library and/or the fdti drivers. 
I recommend the go along with it (also try 2.2 since it more allowing for 
connect timeout). For nail down that this is the real issue with you, try 
disconnect the DTR line on your serial connection. This prevents the reset. 

Original comment by eosba...@gmail.com on 27 Mar 2013 at 9:58

GoogleCodeExporter commented 9 years ago
I'm using a usb serial port so I don't think I can disconnect the DTR 
line.  Is 2.2 compatible with the Multiwii 2.1 code?

Original comment by jbower6...@gmail.com on 27 Mar 2013 at 10:15

GoogleCodeExporter commented 9 years ago
Nope, but you can try the new 2.2 MultiWii.

Original comment by eosba...@gmail.com on 27 Mar 2013 at 10:18

GoogleCodeExporter commented 9 years ago
Actually it works the same way with the MultiWiiGUI. After powering up the 
usb/serial converter (usually an FTDI chip) the first connect always pulls the 
DTR and causes a reset. Apparently it's an FTDI driver issue... The 2.2 WinGUI 
tries to wait and retry till the FC ends the restart.

Original comment by eosba...@gmail.com on 27 Mar 2013 at 10:26

GoogleCodeExporter commented 9 years ago
The WinGui beta does work better and I decided to try your suggestion to 
upgrade to MultiWii 2.2.  I saved my parameters using the WinGui beta 
and then uploaded the MW2.2 and all was ok.  I tried to load my 
parameters and it takes forever.  Am I doing something wrong.  Should I 
load the parameters and then connect?  I did that once and got an error. 
Should I reset before i do the load parameters?

Original comment by jbower6...@gmail.com on 27 Mar 2013 at 11:27

GoogleCodeExporter commented 9 years ago
You cannot move parameters between 2.1 and 2.2 all PID scales are changed, also 
there are significant changes on the checkbox items. You have to clear EEPROM 
and retune with 2.2.

Original comment by eosba...@gmail.com on 27 Mar 2013 at 11:41