Hello. When I try to connect to the focuser/arduino setup in the MyFocuserPro program by hitting connect (with proper baudrate and com port), the status messages read "COM11 Opened" and then "Getting firmware version" but then ends and I get an error. The error reads as follows:
"
Unhandled exception has occurred in your application. If you click Continue, the application will ignore this error and attempt to continue. If you click Quit, the application will close immediately.
The semaphore timeout period has expired.
** Exception Text **
System.TimeoutException: The operation has timed out.
at System.IO.Ports.SerialStream.Read(Byte[] array, Int32 offset, Int32 count, Int32 timeout)
at System.IO.Ports.SerialStream.Read(Byte[] array, Int32 offset, Int32 count)
at System.IO.Ports.SerialPort.InternalRead(Char[] buffer, Int32 offset, Int32 count, Int32 timeout, Boolean countMultiByteCharsAsOne)
at System.IO.Ports.SerialPort.ReadTo(String value)
at myFocuserProL.Focuser.ConnectBtn_Click(Object sender, EventArgs e)
at System.Windows.Forms.Control.OnClick(EventArgs e)
at System.Windows.Forms.Button.OnClick(EventArgs e)
at System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent)
at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.ButtonBase.WndProc(Message& m)
at System.Windows.Forms.Button.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
"
I assume the computer is not connecting to the Arduino properly, but I do not know hwo to fix it. Please help!
Thank you!
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Menu bar Settings, Log File, reset logfile path, check it
Enter new path
After which restart app
Menu Bar Settings, Log File, Enable [make sure enable is checked]
Connect to controller
After fail, exit app
Goto the path as set in 1
Send me the myFocuserProL-Log-xxxxxxxx.txt file
Is there any reason why it is on COM11?
Are you using bluetooth?
What is the firmware you are using? Name of file? Has this been modified?
Every little bit of info can help
Last edit: brownrb 2020-04-17
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hello. When I try to connect to the focuser/arduino setup in the MyFocuserPro program by hitting connect (with proper baudrate and com port), the status messages read "COM11 Opened" and then "Getting firmware version" but then ends and I get an error. The error reads as follows:
"
Unhandled exception has occurred in your application. If you click Continue, the application will ignore this error and attempt to continue. If you click Quit, the application will close immediately.
The semaphore timeout period has expired.
** Exception Text **
System.TimeoutException: The operation has timed out.
at System.IO.Ports.SerialStream.Read(Byte[] array, Int32 offset, Int32 count, Int32 timeout)
at System.IO.Ports.SerialStream.Read(Byte[] array, Int32 offset, Int32 count)
at System.IO.Ports.SerialPort.InternalRead(Char[] buffer, Int32 offset, Int32 count, Int32 timeout, Boolean countMultiByteCharsAsOne)
at System.IO.Ports.SerialPort.ReadTo(String value)
at myFocuserProL.Focuser.ConnectBtn_Click(Object sender, EventArgs e)
at System.Windows.Forms.Control.OnClick(EventArgs e)
at System.Windows.Forms.Button.OnClick(EventArgs e)
at System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent)
at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.ButtonBase.WndProc(Message& m)
at System.Windows.Forms.Button.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
"
I assume the computer is not connecting to the Arduino properly, but I do not know hwo to fix it. Please help!
Thank you!
You need to send me the errorlog file produced by the application
Send it to the email addres in the firmware file
Where can I find the errorlog file?
Is there any reason why it is on COM11?
Are you using bluetooth?
What is the firmware you are using? Name of file? Has this been modified?
Every little bit of info can help
Last edit: brownrb 2020-04-17
Was it ever working? If so what recent changes did you make?
The error
System.TimeoutException: The operation has timed out.
Indicates that the controller did not respond to the request.
If you are using bluetooth, have you checked that it is working by using the correct TEST program for bluetooth?
Robert this sounds much like the problem I had when I had not copied the latest libraries into th arduino library folder?.
Regards
Charles Clark