Menu

Getting Timeout Exception: No Response from Controller.

2020-10-07
2020-10-09
  • William W. Smith

    I have built the MyfocuserPro2, using the Printed Circuit Board Rev. 11 (DRV8825-HW203-M-MT-F-BT), and it is configured with Home Position Switch, Program/Run Switch, Keypad, Push buttons, LCD 1602 Display, with Temperature probe, and PG27 Nema 17 motor with gearbox.

    Loaded latest Arduino File for 300+ (File Name) myFP2_DRV8825HW203_300

    Controller has a few problems:

    1) Display will only display 1 page, which has the Position and Target Position being displayed, no other pages.
    2) When trying to connect Windows 7 computer up to the controller, the controller will reset, but then the computer give the following error: (Timeout Exception: No Response From Controller)
    3) When I try using the Windows Mini App, I get the error message: ( Failed to Connect: Response to #02 invalid. Closing Serial Port)

    I am running the computer and controller at 9600 Baud, and also tryed 1440 Baud, same results.

    4) The Home Position does nothing.

    The Push Buttons work nicely, the Keypad works nicely.

    5) The Temperature Probe used to work with another Firware of 176. Also, the 1602 Display would work with 2 or four pages, I can't remember exactly, All I do know is there were more than one page being displayed.

    There are also the two LEDs, Green and Blue, they work too.

    Motor works nicely too.

    Please help!!

    Thanks

    k5wsa

     
    • William W. Smith

      Hello Again:

      Thank you for the quick response to my problem. However, I am kinda in the same boat, almost.

      I could not follow your suggestions, for in order to change the display tab settings, you have to be using the Windows App. That is impossible, for Windows will not connect withour getting a timeout error.

      So, I got my Windows 10 laptop computer, and installed all the files into it. Well, I am getting the same time out message on the Windows 10 computer. And again, when I was trying to use the Windows App, the error message that kept coming up was: Comm port no open.

      Now the controller will reset when it makes connection, but when the computer ins looking for info from the controller, the controller is not transmitting anything out, so the computer times out.

      Now as for the display, I tried using another Firmware, # 298. Well, 298 Display works great, it changes the pages, all five of them. So whatever you did in #298, you might want to put in #300.

      Under 298, the keypad works nicely, I can input and change selections with no problem.

      So, I tried connecting up to the controller with APT Ver: 3.84, and it resets the controller, but it is looking for maxstep and current position, but the controller never sends that data to APT, so it too times out.

      The same thing happens with version #300.

      I tried your suggestion using the serial monitorm and establishing the //define Debug 1 and then reloading the firmware. Well, it appears that the controller doesn't like to send anything out, the serial monitor was blank. So I tried your suggestion of sending :28# to the controller, which should make the motor run, but the motor didn't even move. And again, the serial Monitor was blank.

      So here i am, still stuck between a rock and this controller. I even tried using a brand new Arduino Processor (nano).

      Could it be how I am using the arduino programmer. I am using 1.8.11 or 12, and the setting under it are:Board: Arduino Nano / Processor: ATmega328P (Old Bootloader) / Programmer: Arduino as ISP

      Hoefully we can get this thing running, soon.

      Thanks again for your quick response.

      PS: I tried your suggestions at getting an error report, but as I tried and tried, the controller would not cooperate.

       
      • William W. Smith

        Hello Mr Brown:
        I tried something different, and was successful at logging the error in connection between the computer and the controller, Using with Windows Main App. with error logging.

        The first File I will attach, is from the attempt to connect using a windows 7 computer and the controller with everything, but Bluetooth. The controller was loaded with version #298, which makes the display, display all 5 pages and not just one as in version #300.

        10/9/2020 7:14:32 PM: Load: =START=========================================================
        10/9/2020 7:14:32 PM: App version: myFocuserPro2 © RB Brown 2014-2020: 2.4.5.6
        10/9/2020 7:14:32 PM: Load: Set tool tips
        10/9/2020 7:14:32 PM: setmytooltips: =START=========================================================
        10/9/2020 7:14:32 PM: setmytooltips: =END===========================================================
        10/9/2020 7:14:32 PM: Load: Adding comports to list
        10/9/2020 7:14:32 PM: Load: Setting Comport speed listbox
        10/9/2020 7:14:32 PM: Load: Initialize focuser settings
        10/9/2020 7:14:32 PM: Load: Check temperature offset
        10/9/2020 7:14:32 PM: Load: TempOffsetTxtBox: = 0
        10/9/2020 7:14:32 PM: Load: Before conversion TempOffsetVal: = 0
        10/9/2020 7:14:32 PM: Load: After conversion TempOffsetVal: = 0
        10/9/2020 7:14:32 PM: Load: Before Rounding TempOffsetVal: = 0
        10/9/2020 7:14:32 PM: Load: TempOffsetVal range checked: = 0
        10/9/2020 7:14:32 PM: Load: Enable menu setting options
        10/9/2020 7:14:32 PM: Load: Setting stepmode listbox
        10/9/2020 7:14:32 PM: Load: Clear text boxes
        10/9/2020 7:14:32 PM: Load: Set Motor Speed
        10/9/2020 7:14:32 PM: Load: Set initial states
        10/9/2020 7:14:32 PM: Load: Setup default refresh timer settings
        10/9/2020 7:14:32 PM: Load: Disable all
        10/9/2020 7:14:32 PM: disableall: =START=========================================================
        10/9/2020 7:14:32 PM: disableall: =END===========================================================
        10/9/2020 7:14:32 PM: Load: Set jogBar
        10/9/2020 7:14:32 PM: Load: Set max increment
        10/9/2020 7:14:32 PM: tempprecision: =START=========================================================
        10/9/2020 7:14:32 PM: tempprecision: tempprecisionupdate == true
        10/9/2020 7:14:32 PM: Load: =END===========================================================
        10/9/2020 7:15:00 PM: RefreshComPorts: =START=========================================================
        10/9/2020 7:15:00 PM: RefreshComPorts: Serial Port is NOT open
        10/9/2020 7:15:00 PM: RefreshComPorts: Clear list of com ports
        10/9/2020 7:15:00 PM: RefreshComPorts: Reload comports from system
        10/9/2020 7:15:00 PM: RefreshComPorts: Set focuser state
        10/9/2020 7:15:00 PM: stepmodeListBox: =START=========================================================
        10/9/2020 7:15:00 PM: stepmodeListBox: Original stepmode = 2
        10/9/2020 7:15:00 PM: stepmodeListBox: Selected stepmode = 2
        10/9/2020 7:15:01 PM: stepmodeListBox: =END===========================================================
        10/9/2020 7:15:01 PM: stepmodeListBox: Clear text boxes
        10/9/2020 7:15:01 PM: RefreshComPorts: =END===========================================================
        10/9/2020 7:15:15 PM: Connect: =START=========================================================
        10/9/2020 7:15:15 PM: ======CONNECT START TIME
        10/9/2020 7:15:15 PM: Connect: Windows Application Version Number: myFocuserPro2 © RB Brown 2014-2020: 2.4.5.6
        10/9/2020 7:15:15 PM: Connect: Com Port Selected = COM6
        10/9/2020 7:15:15 PM: Connect: comportbaudrate: 9600
        10/9/2020 7:15:15 PM: Connect: Setting readtimeout to 5000
        10/9/2020 7:15:15 PM: Connect: Attempting to Open COMPORT COM6
        10/9/2020 7:15:15 PM: Connect: Check if serial port opened
        10/9/2020 7:15:15 PM: Connect: Comport=isOpen
        10/9/2020 7:15:15 PM: Connect: Serial port COM6 opened.
        10/9/2020 7:15:17 PM: Connect: Test to see if controller connected
        10/9/2020 7:15:29 PM: Connect: Timeout Exception for command ::02#
        10/9/2020 7:15:29 PM: Connect: Error message: 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 myFocuserPro2.Focuser.ConnectBtn_Click(Object sender, EventArgs e)
        10/9/2020 7:15:29 PM: Connect: Closing and disconnecting ComPort:COM6
        10/9/2020 7:15:29 PM: Connect: Comport will be disconnected
        10/9/2020 7:15:29 PM: disableall: =START=========================================================
        10/9/2020 7:15:29 PM: disableall: =END===========================================================
        10/9/2020 7:15:36 PM: Exit =START=========================================================
        10/9/2020 7:15:36 PM: Exit: exiting
        10/9/2020 7:15:36 PM: Exit: Com port closed: exiting
        10/9/2020 7:15:36 PM: FormClosing: Start
        10/9/2020 7:15:36 PM: ExtraSettings Form is closing
        10/9/2020 7:15:36 PM: DelayOnConnect :
        10/9/2020 7:15:36 PM: SerialReadTimeOut :
        10/9/2020 7:15:36 PM: StatusMsgClrDelay :
        10/9/2020 7:15:36 PM: MaxFocuserLimit : 2000000000
        10/9/2020 7:15:36 PM: StepSize :
        10/9/2020 7:15:36 PM: Temp Coefficient :
        10/9/2020 7:15:36 PM: Backlash IN : False
        10/9/2020 7:15:36 PM: Backlash OUT : False
        10/9/2020 7:15:36 PM: Backlash IN Steps :
        10/9/2020 7:15:36 PM: Backlash OUT Steps:
        10/9/2020 7:15:36 PM: BL Send on Connect: False
        10/9/2020 7:15:36 PM: Temp Direction : False
        10/9/2020 7:15:36 PM: Temp Comp Update On Connect : False
        10/9/2020 7:15:36 PM: FormClosing: Serial port not connected
        10/9/2020 7:15:36 PM: FormClosing: Save application settings
        10/9/2020 7:15:36 PM: FormClosing: Stop timers
        10/9/2020 7:15:36 PM: FormClosing: Finish
        10/9/2020 7:15:36 PM: FormClosing: Start
        10/9/2020 7:15:36 PM: ExtraSettings Form is closing
        10/9/2020 7:15:36 PM: DelayOnConnect :
        10/9/2020 7:15:36 PM: SerialReadTimeOut :
        10/9/2020 7:15:36 PM: StatusMsgClrDelay :
        10/9/2020 7:15:36 PM: MaxFocuserLimit : 2000000000
        10/9/2020 7:15:36 PM: StepSize :
        10/9/2020 7:15:36 PM: Temp Coefficient :
        10/9/2020 7:15:36 PM: Backlash IN : False
        10/9/2020 7:15:36 PM: Backlash OUT : False
        10/9/2020 7:15:36 PM: Backlash IN Steps :
        10/9/2020 7:15:36 PM: Backlash OUT Steps:
        10/9/2020 7:15:36 PM: BL Send on Connect: False
        10/9/2020 7:15:36 PM: Temp Direction : False
        10/9/2020 7:15:36 PM: Temp Comp Update On Connect : False
        10/9/2020 7:15:36 PM: FormClosing: Serial port not connected
        10/9/2020 7:15:36 PM: FormClosing: Save application settings
        10/9/2020 7:15:36 PM: FormClosing: Stop timers
        10/9/2020 7:15:36 PM: FormClosing: Finish


        This next error report is from another setup, which is the solderless version, running only the oled display, DRV8825 Motor driver, with motor, and using version #298 firmware. Again, windows 7 connected to controller.


        10/9/2020 7:18:33 PM: Load: =START=========================================================
        10/9/2020 7:18:33 PM: App version: myFocuserPro2 © RB Brown 2014-2020: 2.4.5.6
        10/9/2020 7:18:33 PM: Load: Set tool tips
        10/9/2020 7:18:33 PM: setmytooltips: =START=========================================================
        10/9/2020 7:18:33 PM: setmytooltips: =END===========================================================
        10/9/2020 7:18:33 PM: Load: Adding comports to list
        10/9/2020 7:18:33 PM: Load: No Comports found
        10/9/2020 7:18:33 PM: Load: Setting Comport speed listbox
        10/9/2020 7:18:33 PM: Load: Initialize focuser settings
        10/9/2020 7:18:33 PM: Load: Check temperature offset
        10/9/2020 7:18:33 PM: Load: TempOffsetTxtBox: = 0
        10/9/2020 7:18:33 PM: Load: Before conversion TempOffsetVal: = 0
        10/9/2020 7:18:33 PM: Load: After conversion TempOffsetVal: = 0
        10/9/2020 7:18:33 PM: Load: Before Rounding TempOffsetVal: = 0
        10/9/2020 7:18:33 PM: Load: TempOffsetVal range checked: = 0
        10/9/2020 7:18:33 PM: Load: Enable menu setting options
        10/9/2020 7:18:33 PM: Load: Setting stepmode listbox
        10/9/2020 7:18:33 PM: Load: Clear text boxes
        10/9/2020 7:18:33 PM: Load: Set Motor Speed
        10/9/2020 7:18:33 PM: Load: Set initial states
        10/9/2020 7:18:33 PM: Load: Setup default refresh timer settings
        10/9/2020 7:18:33 PM: Load: Disable all
        10/9/2020 7:18:33 PM: disableall: =START=========================================================
        10/9/2020 7:18:33 PM: disableall: =END===========================================================
        10/9/2020 7:18:33 PM: Load: Set jogBar
        10/9/2020 7:18:33 PM: Load: Set max increment
        10/9/2020 7:18:33 PM: tempprecision: =START=========================================================
        10/9/2020 7:18:33 PM: tempprecision: tempprecisionupdate == true
        10/9/2020 7:18:33 PM: Load: =END===========================================================
        10/9/2020 7:18:47 PM: RefreshComPorts: =START=========================================================
        10/9/2020 7:18:47 PM: RefreshComPorts: Serial Port is NOT open
        10/9/2020 7:18:47 PM: RefreshComPorts: Clear list of com ports
        10/9/2020 7:18:47 PM: RefreshComPorts: Reload comports from system
        10/9/2020 7:18:47 PM: RefreshComPorts: Set focuser state
        10/9/2020 7:18:47 PM: stepmodeListBox: =START=========================================================
        10/9/2020 7:18:47 PM: stepmodeListBox: Original stepmode = 2
        10/9/2020 7:18:47 PM: stepmodeListBox: Selected stepmode = 2
        10/9/2020 7:18:47 PM: stepmodeListBox: =END===========================================================
        10/9/2020 7:18:47 PM: stepmodeListBox: Clear text boxes
        10/9/2020 7:18:47 PM: RefreshComPorts: =END===========================================================
        10/9/2020 7:18:53 PM: ComPortSpeedChanged: =START=========================================================
        10/9/2020 7:18:53 PM: comportspeedListBox: saving new comportbaudrate
        10/9/2020 7:18:53 PM: ComPortSpeedChanged: =END===========================================================
        10/9/2020 7:18:57 PM: Connect: =START=========================================================
        10/9/2020 7:18:57 PM: ======CONNECT START TIME
        10/9/2020 7:18:57 PM: Connect: Windows Application Version Number: myFocuserPro2 © RB Brown 2014-2020: 2.4.5.6
        10/9/2020 7:18:57 PM: Connect: Com Port Selected = COM6
        10/9/2020 7:18:57 PM: Connect: comportbaudrate: 9600
        10/9/2020 7:18:57 PM: Connect: Setting readtimeout to 5000
        10/9/2020 7:18:57 PM: Connect: Attempting to Open COMPORT COM6
        10/9/2020 7:18:58 PM: Connect: Check if serial port opened
        10/9/2020 7:18:58 PM: Connect: Comport=isOpen
        10/9/2020 7:18:58 PM: Connect: Serial port COM6 opened.
        10/9/2020 7:19:00 PM: Connect: Test to see if controller connected
        10/9/2020 7:19:08 PM: Connect: Timeout Exception for command ::02#
        10/9/2020 7:19:09 PM: Connect: Error message: 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 myFocuserPro2.Focuser.ConnectBtn_Click(Object sender, EventArgs e)
        10/9/2020 7:19:09 PM: Connect: Closing and disconnecting ComPort:COM6
        10/9/2020 7:19:09 PM: Connect: Comport will be disconnected
        10/9/2020 7:19:09 PM: disableall: =START=========================================================
        10/9/2020 7:19:09 PM: disableall: =END===========================================================
        10/9/2020 7:19:15 PM: Exit =START=========================================================
        10/9/2020 7:19:15 PM: Exit: exiting
        10/9/2020 7:19:15 PM: Exit: Com port closed: exiting
        10/9/2020 7:19:15 PM: FormClosing: Start
        10/9/2020 7:19:15 PM: ExtraSettings Form is closing
        10/9/2020 7:19:15 PM: DelayOnConnect :
        10/9/2020 7:19:15 PM: SerialReadTimeOut :
        10/9/2020 7:19:15 PM: StatusMsgClrDelay :
        10/9/2020 7:19:15 PM: MaxFocuserLimit :
        10/9/2020 7:19:15 PM: StepSize :
        10/9/2020 7:19:15 PM: Temp Coefficient :
        10/9/2020 7:19:15 PM: Backlash IN : False
        10/9/2020 7:19:15 PM: Backlash OUT : False
        10/9/2020 7:19:15 PM: Backlash IN Steps :
        10/9/2020 7:19:15 PM: Backlash OUT Steps:
        10/9/2020 7:19:15 PM: BL Send on Connect: False
        10/9/2020 7:19:15 PM: Temp Direction : False
        10/9/2020 7:19:15 PM: Temp Comp Update On Connect : False
        10/9/2020 7:19:15 PM: FormClosing: Serial port not connected
        10/9/2020 7:19:15 PM: FormClosing: Save application settings
        10/9/2020 7:19:15 PM: FormClosing: Stop timers
        10/9/2020 7:19:15 PM: FormClosing: Finish
        10/9/2020 7:19:15 PM: FormClosing: Start
        10/9/2020 7:19:15 PM: ExtraSettings Form is closing
        10/9/2020 7:19:15 PM: DelayOnConnect :
        10/9/2020 7:19:15 PM: SerialReadTimeOut :
        10/9/2020 7:19:15 PM: StatusMsgClrDelay :
        10/9/2020 7:19:15 PM: MaxFocuserLimit :
        10/9/2020 7:19:15 PM: StepSize :
        10/9/2020 7:19:15 PM: Temp Coefficient :
        10/9/2020 7:19:15 PM: Backlash IN : False
        10/9/2020 7:19:15 PM: Backlash OUT : False
        10/9/2020 7:19:15 PM: Backlash IN Steps :
        10/9/2020 7:19:15 PM: Backlash OUT Steps:
        10/9/2020 7:19:15 PM: BL Send on Connect: False
        10/9/2020 7:19:15 PM: Temp Direction : False
        10/9/2020 7:19:15 PM: Temp Comp Update On Connect : False
        10/9/2020 7:19:15 PM: FormClosing: Serial port not connected
        10/9/2020 7:19:15 PM: FormClosing: Save application settings
        10/9/2020 7:19:15 PM: FormClosing: Stop timers
        10/9/2020 7:19:15 PM: FormClosing: Finish


        My son, to whom also is into the Arduino Software told me that is it possible that the NANO Processor is the wrong version: in other words he said there are two types of NANO 's out there one is FTDI and the other is CHG, and it should be the CHG according to him to use, is this correct? Also, how do you tell them apart>

        So here we are again. Thanks for you support.

        William

         
  • brownrb

    brownrb - 2020-10-08

    1) Display will only display 1 page, which has the Position and Target Position being displayed, no other pages.

    See pg 103 of PDF
    Page Display Option
    This option provides a means of enabling or disabling each display page. The text box accepts a string of
    binary digits [0 or 1]. If the bit=1 the page is shown; if the bit=0 the page is not displayed.
    The least significant bit = page 0
    Example
    I want pages 0,1 showing I would write
    0011
    then click the SET button.

    In Windows app. after connecting to controller, access the display tab, click on page display option and type
    11111
    click the SET button and then all pages will show.

    2) When trying to connect Windows 7 computer up to the controller, the controller will reset, but then the computer give the following error: (Timeout Exception: No Response From Controller)
    best answer is upgrade to Win10.
    You could try BEFORE connecting to controller, access Connection tab and UNCHECK Reset Controller on Connect, then try connecting
    If that does not work I will need the logfile

    3) When I try using the Windows Mini App, I get the error message: ( Failed to Connect: Response to #02 invalid. Closing Serial Port)
    I need the error log to troubleshoot that. Start mini app, enable error logging, then try connecting. After error. close mini app and post error log here

    4) The Home Position does nothing
    You need to provide a better explanation. If you click the home button, or use goto on the keypad to address 9, what happens? Does focuser move inwards? Does it stop before switch activates? etc etc
    To get an error log do this,
    Start Arduino IDE and load firmware file
    Click on myDefines.h
    Scroll down to bottom, line 74
    Change
    //#define DEBUG 1
    to
    #define DEBUG 1

    then reprogram controller [in debug mode you cannot use any apps with the controller]
    Ensure 12v power to controller is on else motor will not step

    Use a serial monitor - arduino IDE. Set the baud rate to 9600.
    Configure NOT to send CR/LF
    Now in the send box, type :28# then click send
    That is colon 28 hash

    Wait for focuser motor to stop. Copy all the messages in the window
    Post the messages here

    5) The Temperature Probe used to work
    And? What is displayed? How do you know it is working/not working? The more info you give the better my response can be. Is it enabled in the firmware? Did it work under a previous revision of firmware and if so which one?

    As in 4) with the controller reprogrammed with the DEBUG option and still in the Arduino IDE serial monitor, and connected to the controller, clear the serial monitor window contents
    Then type :40#
    This will reboot controller
    Wait for all messages to be displayed. About 5s
    Then copy the window contents and paste it in a message here

    regards
    Robert

     
    • William W. Smith

      Hello again Mr. Brown;:
      I tried something different, and was successful at logging the error in connection between the computer and the controller.
      The first File I will attach, is from the attempt to connect using a windows 7 computer and the controller with everything, but Bluetooth.  The controller was loaded with version #298, which makes the display, display all 5 pages and not just one as in version #300.-------------------------------------------------------------------------------------10/9/2020 7:14:32 PM: Load: =START=========================================================
      10/9/2020 7:14:32 PM: App version: myFocuserPro2 © RB Brown 2014-2020: 2.4.5.6
      10/9/2020 7:14:32 PM: Load: Set tool tips
      10/9/2020 7:14:32 PM: setmytooltips: =START=========================================================
      10/9/2020 7:14:32 PM: setmytooltips: =END===========================================================
      10/9/2020 7:14:32 PM: Load: Adding comports to list
      10/9/2020 7:14:32 PM: Load: Setting Comport speed listbox
      10/9/2020 7:14:32 PM: Load: Initialize focuser settings
      10/9/2020 7:14:32 PM: Load: Check temperature offset
      10/9/2020 7:14:32 PM: Load: TempOffsetTxtBox: = 0
      10/9/2020 7:14:32 PM: Load: Before conversion TempOffsetVal: = 0
      10/9/2020 7:14:32 PM: Load: After conversion TempOffsetVal: = 0
      10/9/2020 7:14:32 PM: Load: Before Rounding TempOffsetVal: = 0
      10/9/2020 7:14:32 PM: Load: TempOffsetVal range checked: = 0
      10/9/2020 7:14:32 PM: Load: Enable menu setting options
      10/9/2020 7:14:32 PM: Load: Setting stepmode listbox
      10/9/2020 7:14:32 PM: Load: Clear text boxes
      10/9/2020 7:14:32 PM: Load: Set Motor Speed
      10/9/2020 7:14:32 PM: Load: Set initial states
      10/9/2020 7:14:32 PM: Load: Setup default refresh timer settings
      10/9/2020 7:14:32 PM: Load: Disable all
      10/9/2020 7:14:32 PM: disableall: =START=========================================================
      10/9/2020 7:14:32 PM: disableall: =END===========================================================
      10/9/2020 7:14:32 PM: Load: Set jogBar
      10/9/2020 7:14:32 PM: Load: Set max increment
      10/9/2020 7:14:32 PM: tempprecision: =START=========================================================
      10/9/2020 7:14:32 PM: tempprecision: tempprecisionupdate == true
      10/9/2020 7:14:32 PM: Load: =END===========================================================
      10/9/2020 7:15:00 PM: RefreshComPorts: =START=========================================================
      10/9/2020 7:15:00 PM: RefreshComPorts: Serial Port is NOT open
      10/9/2020 7:15:00 PM: RefreshComPorts: Clear list of com ports
      10/9/2020 7:15:00 PM: RefreshComPorts: Reload comports from system
      10/9/2020 7:15:00 PM: RefreshComPorts: Set focuser state
      10/9/2020 7:15:00 PM: stepmodeListBox: =START=========================================================
      10/9/2020 7:15:00 PM: stepmodeListBox: Original stepmode = 2
      10/9/2020 7:15:00 PM: stepmodeListBox: Selected stepmode = 2
      10/9/2020 7:15:01 PM: stepmodeListBox: =END===========================================================
      10/9/2020 7:15:01 PM: stepmodeListBox: Clear text boxes
      10/9/2020 7:15:01 PM: RefreshComPorts: =END===========================================================
      10/9/2020 7:15:15 PM: Connect: =START=========================================================
      10/9/2020 7:15:15 PM: ======CONNECT START TIME
      10/9/2020 7:15:15 PM: Connect: Windows Application Version Number: myFocuserPro2 © RB Brown 2014-2020: 2.4.5.6
      10/9/2020 7:15:15 PM: Connect: Com Port Selected = COM6
      10/9/2020 7:15:15 PM: Connect: comportbaudrate: 9600
      10/9/2020 7:15:15 PM: Connect: Setting readtimeout to 5000
      10/9/2020 7:15:15 PM: Connect: Attempting to Open COMPORT COM6
      10/9/2020 7:15:15 PM: Connect: Check if serial port opened
      10/9/2020 7:15:15 PM: Connect: Comport=isOpen
      10/9/2020 7:15:15 PM: Connect: Serial port COM6 opened.
      10/9/2020 7:15:17 PM: Connect: Test to see if controller connected
      10/9/2020 7:15:29 PM: Connect: Timeout Exception for command ::02#
      10/9/2020 7:15:29 PM: Connect: Error message: 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 myFocuserPro2.Focuser.ConnectBtn_Click(Object sender, EventArgs e)
      10/9/2020 7:15:29 PM: Connect: Closing and disconnecting ComPort:COM6
      10/9/2020 7:15:29 PM: Connect: Comport will be disconnected
      10/9/2020 7:15:29 PM: disableall: =START=========================================================
      10/9/2020 7:15:29 PM: disableall: =END===========================================================
      10/9/2020 7:15:36 PM: Exit =START=========================================================
      10/9/2020 7:15:36 PM: Exit: exiting
      10/9/2020 7:15:36 PM: Exit: Com port closed: exiting
      10/9/2020 7:15:36 PM: FormClosing: Start
      10/9/2020 7:15:36 PM: ExtraSettings Form is closing
      10/9/2020 7:15:36 PM: DelayOnConnect    :
      10/9/2020 7:15:36 PM: SerialReadTimeOut :
      10/9/2020 7:15:36 PM: StatusMsgClrDelay :
      10/9/2020 7:15:36 PM: MaxFocuserLimit   : 2000000000
      10/9/2020 7:15:36 PM: StepSize          :
      10/9/2020 7:15:36 PM: Temp Coefficient  :
      10/9/2020 7:15:36 PM: Backlash IN       : False
      10/9/2020 7:15:36 PM: Backlash OUT      : False
      10/9/2020 7:15:36 PM: Backlash IN Steps :
      10/9/2020 7:15:36 PM: Backlash OUT Steps:
      10/9/2020 7:15:36 PM: BL Send on Connect: False
      10/9/2020 7:15:36 PM: Temp Direction : False
      10/9/2020 7:15:36 PM: Temp Comp Update On Connect : False
      10/9/2020 7:15:36 PM: FormClosing: Serial port not connected
      10/9/2020 7:15:36 PM: FormClosing: Save application settings
      10/9/2020 7:15:36 PM: FormClosing: Stop timers
      10/9/2020 7:15:36 PM: FormClosing: Finish
      10/9/2020 7:15:36 PM: FormClosing: Start
      10/9/2020 7:15:36 PM: ExtraSettings Form is closing
      10/9/2020 7:15:36 PM: DelayOnConnect    :
      10/9/2020 7:15:36 PM: SerialReadTimeOut :
      10/9/2020 7:15:36 PM: StatusMsgClrDelay :
      10/9/2020 7:15:36 PM: MaxFocuserLimit   : 2000000000
      10/9/2020 7:15:36 PM: StepSize          :
      10/9/2020 7:15:36 PM: Temp Coefficient  :
      10/9/2020 7:15:36 PM: Backlash IN       : False
      10/9/2020 7:15:36 PM: Backlash OUT      : False
      10/9/2020 7:15:36 PM: Backlash IN Steps :
      10/9/2020 7:15:36 PM: Backlash OUT Steps:
      10/9/2020 7:15:36 PM: BL Send on Connect: False
      10/9/2020 7:15:36 PM: Temp Direction : False
      10/9/2020 7:15:36 PM: Temp Comp Update On Connect : False
      10/9/2020 7:15:36 PM: FormClosing: Serial port not connected
      10/9/2020 7:15:36 PM: FormClosing: Save application settings
      10/9/2020 7:15:36 PM: FormClosing: Stop timers
      10/9/2020 7:15:36 PM: FormClosing: Finish

      --------------------------------------------------------------------------------------This next error report is from another setup, which is the solderless version, running only the oled display, DRV8825 Motor driver, with motor, and using version #298 firmware.  Again, windows 7 connected to controller.
      -------------------------------------------------------------------------------------10/9/2020 7:18:33 PM: Load: =START=========================================================
      10/9/2020 7:18:33 PM: App version: myFocuserPro2 © RB Brown 2014-2020: 2.4.5.6
      10/9/2020 7:18:33 PM: Load: Set tool tips
      10/9/2020 7:18:33 PM: setmytooltips: =START=========================================================
      10/9/2020 7:18:33 PM: setmytooltips: =END===========================================================
      10/9/2020 7:18:33 PM: Load: Adding comports to list
      10/9/2020 7:18:33 PM: Load: No Comports found
      10/9/2020 7:18:33 PM: Load: Setting Comport speed listbox
      10/9/2020 7:18:33 PM: Load: Initialize focuser settings
      10/9/2020 7:18:33 PM: Load: Check temperature offset
      10/9/2020 7:18:33 PM: Load: TempOffsetTxtBox: = 0
      10/9/2020 7:18:33 PM: Load: Before conversion TempOffsetVal: = 0
      10/9/2020 7:18:33 PM: Load: After conversion TempOffsetVal: = 0
      10/9/2020 7:18:33 PM: Load: Before Rounding TempOffsetVal: = 0
      10/9/2020 7:18:33 PM: Load: TempOffsetVal range checked: = 0
      10/9/2020 7:18:33 PM: Load: Enable menu setting options
      10/9/2020 7:18:33 PM: Load: Setting stepmode listbox
      10/9/2020 7:18:33 PM: Load: Clear text boxes
      10/9/2020 7:18:33 PM: Load: Set Motor Speed
      10/9/2020 7:18:33 PM: Load: Set initial states
      10/9/2020 7:18:33 PM: Load: Setup default refresh timer settings
      10/9/2020 7:18:33 PM: Load: Disable all
      10/9/2020 7:18:33 PM: disableall: =START=========================================================
      10/9/2020 7:18:33 PM: disableall: =END===========================================================
      10/9/2020 7:18:33 PM: Load: Set jogBar
      10/9/2020 7:18:33 PM: Load: Set max increment
      10/9/2020 7:18:33 PM: tempprecision: =START=========================================================
      10/9/2020 7:18:33 PM: tempprecision: tempprecisionupdate == true
      10/9/2020 7:18:33 PM: Load: =END===========================================================
      10/9/2020 7:18:47 PM: RefreshComPorts: =START=========================================================
      10/9/2020 7:18:47 PM: RefreshComPorts: Serial Port is NOT open
      10/9/2020 7:18:47 PM: RefreshComPorts: Clear list of com ports
      10/9/2020 7:18:47 PM: RefreshComPorts: Reload comports from system
      10/9/2020 7:18:47 PM: RefreshComPorts: Set focuser state
      10/9/2020 7:18:47 PM: stepmodeListBox: =START=========================================================
      10/9/2020 7:18:47 PM: stepmodeListBox: Original stepmode = 2
      10/9/2020 7:18:47 PM: stepmodeListBox: Selected stepmode = 2
      10/9/2020 7:18:47 PM: stepmodeListBox: =END===========================================================
      10/9/2020 7:18:47 PM: stepmodeListBox: Clear text boxes
      10/9/2020 7:18:47 PM: RefreshComPorts: =END===========================================================
      10/9/2020 7:18:53 PM: ComPortSpeedChanged: =START=========================================================
      10/9/2020 7:18:53 PM: comportspeedListBox: saving new comportbaudrate
      10/9/2020 7:18:53 PM: ComPortSpeedChanged: =END===========================================================
      10/9/2020 7:18:57 PM: Connect: =START=========================================================
      10/9/2020 7:18:57 PM: ======CONNECT START TIME
      10/9/2020 7:18:57 PM: Connect: Windows Application Version Number: myFocuserPro2 © RB Brown 2014-2020: 2.4.5.6
      10/9/2020 7:18:57 PM: Connect: Com Port Selected = COM6
      10/9/2020 7:18:57 PM: Connect: comportbaudrate: 9600
      10/9/2020 7:18:57 PM: Connect: Setting readtimeout to 5000
      10/9/2020 7:18:57 PM: Connect: Attempting to Open COMPORT COM6
      10/9/2020 7:18:58 PM: Connect: Check if serial port opened
      10/9/2020 7:18:58 PM: Connect: Comport=isOpen
      10/9/2020 7:18:58 PM: Connect: Serial port COM6 opened.
      10/9/2020 7:19:00 PM: Connect: Test to see if controller connected
      10/9/2020 7:19:08 PM: Connect: Timeout Exception for command ::02#
      10/9/2020 7:19:09 PM: Connect: Error message: 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 myFocuserPro2.Focuser.ConnectBtn_Click(Object sender, EventArgs e)
      10/9/2020 7:19:09 PM: Connect: Closing and disconnecting ComPort:COM6
      10/9/2020 7:19:09 PM: Connect: Comport will be disconnected
      10/9/2020 7:19:09 PM: disableall: =START=========================================================
      10/9/2020 7:19:09 PM: disableall: =END===========================================================
      10/9/2020 7:19:15 PM: Exit =START=========================================================
      10/9/2020 7:19:15 PM: Exit: exiting
      10/9/2020 7:19:15 PM: Exit: Com port closed: exiting
      10/9/2020 7:19:15 PM: FormClosing: Start
      10/9/2020 7:19:15 PM: ExtraSettings Form is closing
      10/9/2020 7:19:15 PM: DelayOnConnect    :
      10/9/2020 7:19:15 PM: SerialReadTimeOut :
      10/9/2020 7:19:15 PM: StatusMsgClrDelay :
      10/9/2020 7:19:15 PM: MaxFocuserLimit   :
      10/9/2020 7:19:15 PM: StepSize          :
      10/9/2020 7:19:15 PM: Temp Coefficient  :
      10/9/2020 7:19:15 PM: Backlash IN       : False
      10/9/2020 7:19:15 PM: Backlash OUT      : False
      10/9/2020 7:19:15 PM: Backlash IN Steps :
      10/9/2020 7:19:15 PM: Backlash OUT Steps:
      10/9/2020 7:19:15 PM: BL Send on Connect: False
      10/9/2020 7:19:15 PM: Temp Direction : False
      10/9/2020 7:19:15 PM: Temp Comp Update On Connect : False
      10/9/2020 7:19:15 PM: FormClosing: Serial port not connected
      10/9/2020 7:19:15 PM: FormClosing: Save application settings
      10/9/2020 7:19:15 PM: FormClosing: Stop timers
      10/9/2020 7:19:15 PM: FormClosing: Finish
      10/9/2020 7:19:15 PM: FormClosing: Start
      10/9/2020 7:19:15 PM: ExtraSettings Form is closing
      10/9/2020 7:19:15 PM: DelayOnConnect    :
      10/9/2020 7:19:15 PM: SerialReadTimeOut :
      10/9/2020 7:19:15 PM: StatusMsgClrDelay :
      10/9/2020 7:19:15 PM: MaxFocuserLimit   :
      10/9/2020 7:19:15 PM: StepSize          :
      10/9/2020 7:19:15 PM: Temp Coefficient  :
      10/9/2020 7:19:15 PM: Backlash IN       : False
      10/9/2020 7:19:15 PM: Backlash OUT      : False
      10/9/2020 7:19:15 PM: Backlash IN Steps :
      10/9/2020 7:19:15 PM: Backlash OUT Steps:
      10/9/2020 7:19:15 PM: BL Send on Connect: False
      10/9/2020 7:19:15 PM: Temp Direction : False
      10/9/2020 7:19:15 PM: Temp Comp Update On Connect : False
      10/9/2020 7:19:15 PM: FormClosing: Serial port not connected
      10/9/2020 7:19:15 PM: FormClosing: Save application settings
      10/9/2020 7:19:15 PM: FormClosing: Stop timers
      10/9/2020 7:19:15 PM: FormClosing: Finish


      My son, to whom also is into the Arduino Software told me that is it possible that the NANO Processor is the wrong version:  in other words he said there are two types of NANO 's out there one is FTDI and the other is CHG,  and it should be the CHG according to him to use, is this correct?  Also, how do you tell them apart>
      So here we are again.  Thanks for you support.
      William

      On Wednesday, October 7, 2020, 7:26:59 PM CDT, brownrb <brownrb@users.sourceforge.net> wrote:
      

      1) Display will only display 1 page, which has the Position and Target Position being displayed, no other pages.

      See pg 103 of PDF
      Page Display Option
      This option provides a means of enabling or disabling each display page. The text box accepts a string of
      binary digits [0 or 1]. If the bit=1 the page is shown; if the bit=0 the page is not displayed.
      The least significant bit = page 0
      Example
      I want pages 0,1 showing I would write
      0011
      then click the SET button.

      In Windows app. after connecting to controller, access the display tab, click on page display option and type
      11111
      click the SET button and then all pages will show.

      2) When trying to connect Windows 7 computer up to the controller, the controller will reset, but then the computer give the following error: (Timeout Exception: No Response From Controller)
      best answer is upgrade to Win10.
      You could try BEFORE connecting to controller, access Connection tab and UNCHECK Reset Controller on Connect, then try connecting
      If that does not work I will need the logfile

      3) When I try using the Windows Mini App, I get the error message: ( Failed to Connect: Response to #02 invalid. Closing Serial Port)
      I need the error log to troubleshoot that. Start mini app, enable error logging, then try connecting. After error. close mini app and post error log here

      4) The Home Position does nothing
      You need to provide a better explanation. If you click the home button, or use goto on the keypad to address 9, what happens? Does focuser move inwards? Does it stop before switch activates? etc etc
      To get an error log do this,
      Start Arduino IDE and load firmware file
      Click on myDefines.h
      Scroll down to bottom, line 74
      Change
      //#define DEBUG 1
      to
      #define DEBUG 1

      then reprogram controller [in debug mode you cannot use any apps with the controller]
      Ensure 12v power to controller is on else motor will not step

      Use a serial monitor - arduino IDE. Set the baud rate to 9600.
      Configure NOT to send CR/LF
      Now in the send box, type :28# then click send
      That is colon 28 hash

      Wait for focuser motor to stop. Copy all the messages in the window
      Post the messages here

      5) The Temperature Probe used to work
      And? What is displayed? How do you know it is working/not working? The more info you give the better my response can be. Is it enabled in the firmware? Did it work under a previous revision of firmware and if so which one?

      As in 4) with the controller reprogrammed with the DEBUG option and still in the Arduino IDE serial monitor, and connected to the controller, clear the serial monitor window contents
      Then type :40#
      This will reboot controller
      Wait for all messages to be displayed. About 5s
      Then copy the window contents and paste it in a message here

      regards
      Robert

      Getting Timeout Exception: No Response from Controller.

      Sent from sourceforge.net because you indicated interest in https://sourceforge.net/p/arduinoascomfocuserpro2diy/discussion/general/

      To unsubscribe from further messages, please visit https://sourceforge.net/auth/subscriptions/

       
  • brownrb

    brownrb - 2020-10-09

    Connect: Error message: System.TimeoutException: The operation has timed out.

    It appears that the Windows system is NOT recognizing the Nano.

    You say you programmed the nano? Is this correct?

    You can use Windows Device Manager to view if the nano is connected and recognized
    If you connect the controller, and then run Device manager what do you see?
    I see this [attached]

    I confirm that the windows application installs and runs on Win7 without issue.

     
  • brownrb

    brownrb - 2020-10-09

    The Temperature Probe used to work with another Firware of 176.

    You cannot use firmware versions v1xx with myfocuserpro2.
    It is possible that you did not reprogram the controller with firmware v2xxx software and it is still programmed with v1.

    v1 firmware will not work with any v2xx applications.

    If you run the arduino IDE [controller connected] and open the serial IDE [top right hand button in IDE], with baurd rate set to 9600, if you type in [top left entry box]
    :GV#
    and it responds with 10
    then the nano is programmed with firmware v1 and you only use windows apps v1xxx etc

     

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.