When trying to start up and connect, it appears to correctly recognises the "Firmware" info, i.e. "myFP2DRVHW203, 325, myFP2" and retrieves the last focuser settings etc. but then comes back with the error message "Not Connected".
If I try connecting with myFP2Mini 2.4.0.6, all works as expected.
I'm unable to supply any logs, as none are generated
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Enable logging on the Windows app
Connect to the controller
When it stops, close the Windows app and post the log file
And post the focuserconfog.h file please
Last edit: brownrb 2023-06-10
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I eventually managed to generate a log by un-installing/re-installing the app, and setting the log path there, as it would not let me do it from within the app !! also I used to use a folder under "AppData" but that no longer works either...
Next time try the menu
Settings-Logging-Reset Error Log File Path
Windows has changed how it handles One click apps, some time ago, so that I why I used a new GUID for the app in case you could not remove the previous version.
I see from the log that
10/06/2023 16:39:24: Read_firmwarestring response = myFP2DRVHW203
325_1
In the Updates I posted that this new app has not been tested on older firmware.
It is designed to work with Firmware 328. I note it has not been uploaded. I thought I had done that yesterday, so I have uploaded it now. Apologies.
Warning
Please run the ClearEEPROM test program before using the 328 firmware. You may get strange results if you do not. Remember to save or write down your focuser settings before running ClearEEPROM. as all the focuser settings in EEPROM will be wiped.
Just one question I have, is that, is it possible to set some of the initial default settings, as an example I want the Coil Power to be off, as currently it comes on, and setting reverse direction ??
And for your information, I'm still unable to update the "Log File Path" from within the application.
Regards Julian
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
and reprogram the controller
then in the windows app you can use Settings-Set default settings, which will write the default settings into eeprom, then will reboot the controller.
If you are using Reverse, then please be aware this is not recommended for
- a home position switch
- temperature compensation
So if you plan to use either, then you need to change the motor so reverse is not needed
That is done simply by changing one of the coils wiring
eg for some stepper motor it might be
coil 1 - black, green
coil 2 - blue, red
so changing coil 1 we get
coil 1 = green, black
coil 2 = blue, red
and that should remove the need to run reverse On
regards
Robert
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Thanks Robert for all the info, & I'll recheck all the motor connections, to all is as it should be, but I run multi scope setting that require me to 'reverse' the fitting of the motors, that's why I also update some of the other setting so that I can easily identify each of the controllers...
Yours
Julian
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
When trying to start up and connect, it appears to correctly recognises the "Firmware" info, i.e. "myFP2DRVHW203, 325, myFP2" and retrieves the last focuser settings etc. but then comes back with the error message "Not Connected".
If I try connecting with myFP2Mini 2.4.0.6, all works as expected.
I'm unable to supply any logs, as none are generated
Enable logging on the Windows app
Connect to the controller
When it stops, close the Windows app and post the log file
And post the focuserconfog.h file please
Last edit: brownrb 2023-06-10
I eventually managed to generate a log by un-installing/re-installing the app, and setting the log path there, as it would not let me do it from within the app !! also I used to use a folder under "AppData" but that no longer works either...
Next time try the menu
Settings-Logging-Reset Error Log File Path
Windows has changed how it handles One click apps, some time ago, so that I why I used a new GUID for the app in case you could not remove the previous version.
I see from the log that
10/06/2023 16:39:24: Read_firmwarestring response = myFP2DRVHW203
325_1
In the Updates I posted that this new app has not been tested on older firmware.
It is designed to work with Firmware 328. I note it has not been uploaded. I thought I had done that yesterday, so I have uploaded it now. Apologies.
Warning
Please run the ClearEEPROM test program before using the 328 firmware. You may get strange results if you do not. Remember to save or write down your focuser settings before running ClearEEPROM. as all the focuser settings in EEPROM will be wiped.
myFP2 Firmware 328
https://sourceforge.net/projects/arduinoascomfocuserpro2diy/files/ARDUINO%20FIRMWARE/Firmware_myFP2_328.zip/download
myFP2M Readymade Firmware 328
https://sourceforge.net/projects/arduinoascomfocuserpro2diy/files/myFocuserPro2M/Arduino%20Firmware%20for%20myFP2M%20Prebuilt%20Controllers%20Only/Firmware_myFP2M_328.zip/download
myFP2N Nextion Firmware 328
https://sourceforge.net/projects/arduinoascomfocuserpro2diy/files/myFocuserPro2N%20NEXTION%20TFT%20DISPLAY/Firmware_myFP2N_328.zip/download
Regards
Robert
Thanks Robert, now works !!
Just one question I have, is that, is it possible to set some of the initial default settings, as an example I want the Coil Power to be off, as currently it comes on, and setting reverse direction ??
And for your information, I'm still unable to update the "Log File Path" from within the application.
Regards Julian
see inside the main .ino file
so this is where it can go
and reprogram the controller
then in the windows app you can use Settings-Set default settings, which will write the default settings into eeprom, then will reboot the controller.
If you are using Reverse, then please be aware this is not recommended for
- a home position switch
- temperature compensation
So if you plan to use either, then you need to change the motor so reverse is not needed
That is done simply by changing one of the coils wiring
eg for some stepper motor it might be
coil 1 - black, green
coil 2 - blue, red
so changing coil 1 we get
coil 1 = green, black
coil 2 = blue, red
and that should remove the need to run reverse On
regards
Robert
And for your information, I'm still unable to update the "Log File Path" from within the application
Yes. I understand. Seems a few form menu objects had lost their click handler event.
https://sourceforge.net/projects/arduinoascomfocuserpro2diy/files/WINDOWS/MainApp/myFocuserPro2_2_5_0_5.zip/download
Thanks Robert for all the info, & I'll recheck all the motor connections, to all is as it should be, but I run multi scope setting that require me to 'reverse' the fitting of the motors, that's why I also update some of the other setting so that I can easily identify each of the controllers...
Yours
Julian