Menu

Timeout Error

2020-04-15
2020-04-17
  • Trew Hoffman

    Trew Hoffman - 2020-04-15

    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!

     
  • brownrb

    brownrb - 2020-04-16

    You need to send me the errorlog file produced by the application
    Send it to the email addres in the firmware file

     
    • Trew Hoffman

      Trew Hoffman - 2020-04-16

      Where can I find the errorlog file?

       
  • brownrb

    brownrb - 2020-04-17
    1. Menu bar Settings, Log File, reset logfile path, check it
    2. Enter new path
    3. After which restart app
    4. Menu Bar Settings, Log File, Enable [make sure enable is checked]
    5. Connect to controller
    6. After fail, exit app
    7. Goto the path as set in 1
    8. 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
  • brownrb

    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?

     
  • Charles Clark

    Charles Clark - 2020-04-17

    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

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.