Menu

USB connection problems

2022-09-19
2022-09-21
  • BETTOLI MICHELE

    BETTOLI MICHELE - 2022-09-19

    Hello Robert and thank you for the amazing project.
    I built the complete DRV8825_M-MT-F-BT version and everything works except the connection via USB with myFocuserPro2 app (windows 10); via USB works fine with ASCOM focuser, NINA, cellphone (via BT).
    I've got problem only with myFocuserPro2.
    Attached the error log.
    Thank you in advance
    regards
    Michele

     
  • Patrick PASC

    Patrick PASC - 2022-09-20

    Hello Michelle
    I see that you are using Windows application version 2.4.8.9 with firmware V312
    This version of Windows only works with firmware from V314.
    I suggest you install Windows app version 2.4.8.8 or upgrade the firmware version to V315.
    Please note that I am currently experiencing operating problems with firmware version V315. They are being analyzed by Robert. So I reverted to v312 for now.
    I hope I helped you.

    patrick

     
  • brownrb

    brownrb - 2022-09-20

    from
    https://sourceforge.net/projects/arduinoascomfocuserpro2diy/files/WINDOWS/MainApp/

    the text shows as

    2.4.8.9
    Add PB steps support to windows application
    Warning: This application requires firmware 314.

    From the logfile you attached
    19/09/2022 21:20:21: Connect: raw response for getfirmware was: myFP2DRVHW203
    312
    19/09/2022 21:20:21: Connect: firmware rev: 312

    The log, around this time
    19/09/2022 21:20:23: SendString: Connected
    19/09/2022 21:20:23: SendString: sending=:69#
    19/09/2022 21:20:23: SendString: sending=OK
    19/09/2022 21:20:23: SendString: =END===========================================================
    19/09/2022 21:20:23: ReceiveResponse: ==START====================================================
    19/09/2022 21:20:23: ReceiveResponse: Check if client is connected
    19/09/2022 21:20:29: ReceiveResponse: Timeout Exception
    19/09/2022 21:20:29: ReceiveResponse: Error message: System.TimeoutException: Timeout operazione.
    in System.IO.Ports.SerialStream.Read(Byte[] array, Int32 offset, Int32 count, Int32 timeout)
    in System.IO.Ports.SerialStream.Read(Byte[] array, Int32 offset, Int32 count)
    in System.IO.Ports.SerialPort.InternalRead(Char[] buffer, Int32 offset, Int32 count, Int32 timeout, Boolean countMultiByteCharsAsOne)
    in System.IO.Ports.SerialPort.ReadTo(String value)
    in myFocuserPro2.Focuser.ReceiveResponse()
    19/09/2022 21:20:29: ReceiveResponse: Closing and disconnecting ComPort:COM8

    shows command :69# failed.
    From the protocol.pdf document
    https://sourceforge.net/projects/arduinoascomfocuserpro2diy/files/Documentation/

    the command is
    :69# ?x# Get push button steps (0-255)
    and there was no response.

    This occured because the firmware in your controller is version 312 which does not support the new command :69# which was introduced in firmware 315.

    With firmware 312 youy can revert back to an older windows app version, found at
    https://sourceforge.net/projects/arduinoascomfocuserpro2diy/files/WINDOWS/MainApp/Older%20Versions/

    regards
    Robert

     
  • BETTOLI MICHELE

    BETTOLI MICHELE - 2022-09-20

    Thank you very much Patrick and Robert!
    I tried to compile 315, but I receive following error message:
    'checktprobe' was not declared in this scope
    here: myoled->println(checktprobe); (in temperature.h
    Anyway with Windows app version 2 2 4 5 8 and firmware 312 problem was solved.
    Another time thank you
    regards

     
  • brownrb

    brownrb - 2022-09-21

    Hi
    I have found the error. These are all going into v316.

    regards
    Robert

    in temperature.h
    line 25 looks like
    float lasttemp = 20.0; // start temp value

    add these two lines on the next lines
    char tprobenotfound[] = "Probe not found";
    char checktprobe[] = "Check for Tprobe";

    so it becomes
    float lasttemp = 20.0; // start temp value
    char tprobenotfound[] = "Probe not found";
    char checktprobe[] = "Check for Tprobe";

    then save the temperature.h file

     

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.