Good night.
After, with your help, I managed to make the focuser work with a TMC2209 driver and with an Arduino pro micro, I have ventured to test your focuser with the ESP32 version.
After doing 1000 tests I have managed to connect the ESP to the Windows application and to NINA, both with a static IP and with an access point. The problem is that when I press it to move, the steps don't change and it disconnects. what could happen?
Thanks for everything!!!
I send you the two firmwares (static IP and access point) and the log of the windows application
PD
I am using a 30 pin ESP32!!!
I keep answering myself.
I have managed to remove the error by eliminating the -1 of "brdpins" from the 99.jsn file.
I still can't access the web service (with port 6060). "file not found" appears.
In both NINA and the Windows application, if the steps are moved, it no longer disconnects.
Ideas for Web service?
PD
I have asked to verify that it only works for me with file 99 (Custom) (another mystery...)
Thank you
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi
Apologies for the late reply
The file not found indicates that the .html files were not uploaded
I assume the following
You are using Arduino IDE version 1.8.19
You have installed all the libraries
You have programmed the control with firmware 311-02
You are using an ESP32 Dev Module as recommended in the PDF.
You are using the ESP core 2.0.11 (boards manager)
You have configured the defines files found in the defines folder, such as station_defines.h and app_defines.h etc
You have watched the videos on Youtube related to the myFP2ESP32 (there are videos on installing, uploading, post configuration etc). All that follows is from those videos, as well as being covered in the PDF.
Remember the sequence is upload firmare, then upload data sketch files.
The Web service is NOT on port 6060. It uses the default port for web service, 80.
Remember that the PDF mentions that after uploading firmware, and then the data sketch files, you then proceed to "POST CONFIGURATION"
The basic things already enabled are the TCPIP Server, ALPACA Server and Management Server.
Nearly everything else is disabled (temperature probe, Web Server etc. You have to use the management Server to enable and run the desired service, like the Web Server.
The Management Server username/password is admin
Once logged in the first page is the Servers page.
You will see that the web server is disabled and stopped.
Click the WebServer enable button.
The state should then say Enabled
Then click the Web Server Start button. The service is now running, so open a web browser and type in the IP address (no need to add a :xxx port number). You should be able to see the index page of the web server.
Trouble booting up?
Most often is the failure to upload the data sketch files.
If there is a failure to boot
Load the firmware 311_02
Goto the controller_defines.h file
Line 23 - ensure that Boot print messages are enabled
#define BOOT_PRINT 1
Now, - Start Arduino IDE and connect to serial port for the controller (must be connected to do this).
Open the Serial Monitor within Arduino IDE.
Set the serial port speed tp 115200.
Press reboot on the esp32 chip.
Watch the messages - they will list what the controller is doing,
If you are getting an issue, then copy the messages from the serial monitor windows (cntrl A to highlight all, cntrl-C to copy, open a text editor and then cntrl-V to paste the messages into a text file and save the file.
Next- add the saved file and all of the firmware folder to a zip file and send it to me. My gmail is found in the PDF and firmware etc - (if you have installed the ascom driver, have a look in control panel to remove a file -and my id should be displayed
Good afternoon Robert.
The problem I was having is that I had not loaded the files with ESPtools.
Now it apparently works (I haven't wired it yet).
I ask you some questions.
Could it be possible to activate the web server and alpaca by default?
I see that I cannot modify maxstep from managerweb, it does not exceed
20,000, with the driver from NINA I can.
Thanks for your help. As soon as I connect the cables I will see the speed
of movement and the microsteps.
All the best
Hi
Apologies for the late reply
The file not found indicates that the .html files were not uploaded
I assume the following
You are using Arduino IDE version 1.8.19
You have installed all the libraries
You have programmed the control with firmware 311-02
You are using an ESP32 Dev Module as recommended in the PDF.
You are using the ESP core 2.0.11 (boards manager)
You have configured the defines files found in the defines folder, such as
station_defines.h and app_defines.h etc
You have watched the videos on Youtube related to the myFP2ESP32 (there
are videos on installing, uploading, post configuration etc). All that
follows is from those videos, as well as being covered in the PDF.
Remember the sequence is upload firmare, then upload data sketch files.
The Web service is NOT on port 6060. It uses the default port for web
service, 80.
Remember that the PDF mentions that after uploading firmware, and then the
data sketch files, you then proceed to "POST CONFIGURATION"
The basic things already enabled are the TCPIP Server, ALPACA Server and
Management Server.
Nearly everything else is disabled (temperature probe, Web Server etc. You
have to use the management Server to enable and run the desired service,
like the Web Server.
The Management Server username/password is admin
Once logged in the first page is the Servers page.
You will see that the web server is disabled and stopped.
Click the WebServer enable button.
The state should then say Enabled
Then click the Web Server Start button. The service is now running, so
open a web browser and type in the IP address (no need to add a :xxx port
number). You should be able to see the index page of the web server.
Trouble booting up?
Most often is the failure to upload the data sketch files.
If there is a failure to boot
Load the firmware 311_02
Goto the controller_defines.h file
Line 23 - ensure that Boot print messages are enabled
define BOOT_PRINT 1
Now, - Start Arduino IDE and connect to serial port for the controller
(must be connected to do this).
Open the Serial Monitor within Arduino IDE.
Set the serial port speed tp 115200.
Press reboot on the esp32 chip.
Watch the messages - they will list what the controller is doing,
If you are getting an issue, then copy the messages from the serial
monitor windows (cntrl A to highlight all, cntrl-C to copy, open a text
editor and then cntrl-V to paste the messages into a text file and save the
file.
Next- add the saved file and all of the firmware folder to a zip file and
send it to me. My gmail is found in the PDF and firmware etc - (if you have
installed the ascom driver, have a look in control panel to remove a file
-and my id should be displayed
I ask you some questions.
Could it be possible to activate the web server and alpaca by default?
I see that I cannot modify maxstep from managerweb, it does not exceed
20,000, with the driver from NINA I can
Not necessary. Once enabled, they will stay enabled so the next time the controller starts they will also start. If a firmware update occurs, they will then need to be "enabled" again. The firmware is pretty stable, however there is one more update I have to do though
Maxstep:
/admin3 or the Motor tab on the Management Server permits changing the MaxStep value.
In ASCOM there is only get() for maxstep. There is no support for set() for maxstep. The ASCOM driver I wrote to support the esp32 firmware allows you to update the maxstep value when connecting. But is NOT supported by ASCOM. I provided the code in the driver, the purpose of which is to do POST Configuration {where you configure a whole heap of motor settings). Normally,
A user would figure out what the MaxStep value is, then set that value in the Focuser config. I cannot think of a reason why a user would want to change that, barring the obvious of changing the scopes focuser with a longer or shorter draw tube, or changing the step mode (not advisable).
Settings like maxstep, stepsize, temp coefficient, step mode should only ever be set once. Once programmed by configured, those settings should not be changed. Perhaps if you were using the controller on different scopes, that is what profiles are used for, but the cost of building another controller is not huge.
Regards
Robert
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi
I just checked the firmware revision level on SourceForge, because there is an update in the pipeline.
There is a patch from the next update related to maxStep
In managementserver.cpp, find this part of the code which deals with handling a new maxstep value (it is in the void MANAGEMENTSERVER::getadmin3(void) method
Good afternoon Robert.
We are lucky to have someone who provides this support!!!!
I have already included this modification in the firmware. Let's see if my
kids leave me some free time and I can wire everything up.
I always use the equipment from home, with the home Wi-Fi network. What
happens if one night I have to go out to a place without internet?
I think I could put the hotspot created by the minipc as a secondary
network... I have to try it.
Does it have Bluetooth support?
Lastly, I think that if I have everything connected, the firmware does not
load on the ESP32. What could I do if I have to change something once the
focuser is assembled?
Thanks again!
Hi
I just checked the firmware revision level on SourceForge, because there
is an update in the pipeline.
There is a patch from the next update related to maxStep
In managementserver.cpp, find this part of the code which deals with
handling a new maxstep value (it is in the void
MANAGEMENTSERVER::getadmin3(void) method
When the firmware if generated by the Arduino IDE there is quite a bit of stuff generated, which I refer to as the Default Configuration (what is included automatically). However if one decides to include all the Optional stuff (Duckdns, OTA, IR etc) then the size increases a lot to the point of being unstable.
I had looked at the basic stuff to be included in the Default config then added the ability to turn those on-off and enable-disable. This included the LEDs, Joysticks, Push buttons, etc. These default to "disabled" and "stopped" when firmware is uploaded. This prevents a crash on reboot once the firmware is uploaded. If one of the default options was enabled, and the hardware not present then that could cause a crash. Safety first
There is a spreadsheet included that lists the various sizes of each option - so to reduce the space for options you need to go through the list and make a decision about which options to enable.
Once programmed, you cannot "remove" options, they consume space regardless of whether they are enabled or not.
You will note that OTA space is huge. I am working on a different OTA at present and hope to include it in the next update. That should free up space because the code has a smaller footprint.
The next update has this warning at the start of the file controller_config.h
See below
Now I have a question for you.
Did you have issues with the windows app disconnecting, related to "ismoving" fails.
I got some firmware zip file (accesspoint and station and static ip) and log file (myFP2ESP32-Log-29032024).
Are you still having those isMoving problems - application Windows disconnects when a move happens. Please let me know by sending email to either gmail or yahoo address.
regards
Robert
//-----------------------------------------------------------------------
// WARNING: SKETCH AND GLOBAL VARIABLE SIZE LIMITS
//-----------------------------------------------------------------------
// When enabling options in this file, you will need to try and keep the
// Arduino sketch and Global variables to allow the Arduino chip to
// work without running out of space, which results in random reboots and
// the Serial interface not working.
//
// When the sketch is compiled, these messages are found in the Output
// Window and looks like
// Sketch uses 1126969 bytes (85%) of program storage space. Maximum is 1310720 bytes.
// Global variables use 47208 bytes (14%) of dynamic memory
//
// The sketch usage should be less that 85% most of the time (varies on
// what is enabled.) Higher sketch usage will result in errors and
// unexpected values being returned.
//
// The Global variables should be less than 60-70% (if debugging is enabled
// then the Global variable usage will exceed the safety limit and make
// the sketch unusable).
//
// If either these are too high, you will need to disable an option to
// decrease the Sketch size and Global var size to recommended levels
//
// Refer to the spreadsheet Options Program Size for more information
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hello, Robert!
The problem with the disconnections after clicking move was that I had not
put the files included in the data folder. After putting them in, so far, I
have not experienced that problem.
As for my setup, I'm going to use a TMC2209 (if it gives me too much
trouble, I'll switch to a DRV8825) and OTA updates. Nothing more (maybe in
the future I will use the OLED screen, but I don't think so).
Is it possible to update the firmware with all the components connected?
(in a test I did it did not allow updating)
Thanks again for everything
What happens if one night I have to go out to a place without internet?I think I could put the hotspot created by the minipc as a secondarynetwork... I have to try it.
Yes, but there are reported problems of using a smart phone hotspot. For
PC based hotspots there has been no report of issues.
You can use the alternate credentials to list an alternative network in
case the first one does not connect.
Does it have Bluetooth support?
Sorry no. That looks like it has been carried over from the previous wifi
project.
Blutooth support for esp32 was deprecated a few years ago.
Lastly, I think that if I have everything connected, the firmware does notload on the ESP32. What could I do if I have to change something once thefocuser is assembled?Thanks again!
When the firmware if generated by the Arduino IDE there is quite a bit of
stuff generated, which I refer to as the Default Configuration (what is
included automatically). However if one decides to include all the Optional
stuff (Duckdns, OTA, IR etc) then the size increases a lot to the point of
being unstable.
I had looked at the basic stuff to be included in the Default config then
added the ability to turn those on-off and enable-disable. This included
the LEDs, Joysticks, Push buttons, etc. These default to "disabled" and
"stopped" when firmware is uploaded. This prevents a crash on reboot once
the firmware is uploaded. If one of the default options was enabled, and
the hardware not present then that could cause a crash. Safety first
There is a spreadsheet included that lists the various sizes of each
option - so to reduce the space for options you need to go through the list
and make a decision about which options to enable.
Once programmed, you cannot "remove" options, they consume space
regardless of whether they are enabled or not.
You will note that OTA space is huge. I am working on a different OTA at
present and hope to include it in the next update. That should free up
space because the code has a smaller footprint.
The next update has this warning at the start of the file
controller_config.h
See below
Now I have a question for you.
Did you have issues with the windows app disconnecting, related to
"ismoving" fails.
I got some firmware zip file (accesspoint and station and static ip) and
log file (myFP2ESP32-Log-29032024).
Are you still having those isMoving problems - application Windows
disconnects when a move happens. Please let me know by sending email to
either gmail or yahoo address.
regards
Robert
//-----------------------------------------------------------------------
// WARNING: SKETCH AND GLOBAL VARIABLE SIZE LIMITS
//-----------------------------------------------------------------------
// When enabling options in this file, you will need to try and keep the
// Arduino sketch and Global variables to allow the Arduino chip to
// work without running out of space, which results in random reboots and
// the Serial interface not working.
//
// When the sketch is compiled, these messages are found in the Output
// Window and looks like
// Sketch uses 1126969 bytes (85%) of program storage space. Maximum is
1310720 bytes.
// Global variables use 47208 bytes (14%) of dynamic memory
//
// The sketch usage should be less that 85% most of the time (varies on
// what is enabled.) Higher sketch usage will result in errors and
// unexpected values being returned.
//
// The Global variables should be less than 60-70% (if debugging is enabled
// then the Global variable usage will exceed the safety limit and make
// the sketch unusable).
//
// If either these are too high, you will need to disable an option to
// decrease the Sketch size and Global var size to recommended levels
//
// Refer to the spreadsheet Options Program Size for more information
Is it possible to update the firmware with all the components connected?
yes, it would be pointless if you had to remove them first. the project was built in mind to do that, because if you had a remote observatory 100 odd miles away, then that is a requirement,
regards
Robert
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I don't know if it is an error, but if it can help you, I can tell you that
if I select the TMC2209 board, when compiling an error appears in this part:
/ ----------------------------------------------------------------------//
Load Default Focuser Persistant Data Settings (when no config file exists
eg; after an upload)// Creates a default config setting file and saves it
to spiffs//
----------------------------------------------------------------------void
CONTROLLER_DATA::LoadDefaultPersistantData() { if (DRVBRD ==
PRO2ESP32TMC2225) || (DRVBRD == PRO2ESP32TMC2209) || (DRVBRD ==
PRO2ESP32TMC2209P) { maxstep = 4; }
ERROR
exit status 1expected primary-expression before '||' token
I don't know if it's appropriate, but to fix it, I've modified the code
like this.
/ ----------------------------------------------------------------------//
Load Default Focuser Persistant Data Settings (when no config file exists
eg; after an upload)// Creates a default config setting file and saves it
to spiffs//
----------------------------------------------------------------------void
CONTROLLER_DATA::LoadDefaultPersistantData() { if ((DRVBRD ==
PRO2ESP32TMC2225) || (DRVBRD == PRO2ESP32TMC2209) || (DRVBRD ==
PRO2ESP32TMC2209P)) { maxstep = 4;
What happens if one night I have to go out to a place without internet?I think I could put the hotspot created by the minipc as a secondarynetwork... I have to try it.
Yes, but there are reported problems of using a smart phone hotspot. For
PC based hotspots there has been no report of issues.
You can use the alternate credentials to list an alternative network in
case the first one does not connect.
Does it have Bluetooth support?
Sorry no. That looks like it has been carried over from the previous wifi
project.
Blutooth support for esp32 was deprecated a few years ago.
Lastly, I think that if I have everything connected, the firmware does notload on the ESP32. What could I do if I have to change something once thefocuser is assembled?Thanks again!
When the firmware if generated by the Arduino IDE there is quite a bit of
stuff generated, which I refer to as the Default Configuration (what is
included automatically). However if one decides to include all the Optional
stuff (Duckdns, OTA, IR etc) then the size increases a lot to the point of
being unstable.
I had looked at the basic stuff to be included in the Default config then
added the ability to turn those on-off and enable-disable. This included
the LEDs, Joysticks, Push buttons, etc. These default to "disabled" and
"stopped" when firmware is uploaded. This prevents a crash on reboot once
the firmware is uploaded. If one of the default options was enabled, and
the hardware not present then that could cause a crash. Safety first
There is a spreadsheet included that lists the various sizes of each
option - so to reduce the space for options you need to go through the list
and make a decision about which options to enable.
Once programmed, you cannot "remove" options, they consume space
regardless of whether they are enabled or not.
You will note that OTA space is huge. I am working on a different OTA at
present and hope to include it in the next update. That should free up
space because the code has a smaller footprint.
The next update has this warning at the start of the file
controller_config.h
See below
Now I have a question for you.
Did you have issues with the windows app disconnecting, related to
"ismoving" fails.
I got some firmware zip file (accesspoint and station and static ip) and
log file (myFP2ESP32-Log-29032024).
Are you still having those isMoving problems - application Windows
disconnects when a move happens. Please let me know by sending email to
either gmail or yahoo address.
regards
Robert
//-----------------------------------------------------------------------
// WARNING: SKETCH AND GLOBAL VARIABLE SIZE LIMITS
//-----------------------------------------------------------------------
// When enabling options in this file, you will need to try and keep the
// Arduino sketch and Global variables to allow the Arduino chip to
// work without running out of space, which results in random reboots and
// the Serial interface not working.
//
// When the sketch is compiled, these messages are found in the Output
// Window and looks like
// Sketch uses 1126969 bytes (85%) of program storage space. Maximum is
1310720 bytes.
// Global variables use 47208 bytes (14%) of dynamic memory
//
// The sketch usage should be less that 85% most of the time (varies on
// what is enabled.) Higher sketch usage will result in errors and
// unexpected values being returned.
//
// The Global variables should be less than 60-70% (if debugging is enabled
// then the Global variable usage will exceed the safety limit and make
// the sketch unusable).
//
// If either these are too high, you will need to disable an option to
// decrease the Sketch size and Global var size to recommended levels
//
// Refer to the spreadsheet Options Program Size for more information
Sorry for the number of messages, but my intention is to contribute to
improving this excellent work.
If I activate the TM2209 board, the IDE serial gives the following error,
restarting continuously
What happens if one night I have to go out to a place without internet?I think I could put the hotspot created by the minipc as a secondarynetwork... I have to try it.
Yes, but there are reported problems of using a smart phone hotspot. For
PC based hotspots there has been no report of issues.
You can use the alternate credentials to list an alternative network in
case the first one does not connect.
Does it have Bluetooth support?
Sorry no. That looks like it has been carried over from the previous wifi
project.
Blutooth support for esp32 was deprecated a few years ago.
Lastly, I think that if I have everything connected, the firmware does notload on the ESP32. What could I do if I have to change something once thefocuser is assembled?Thanks again!
When the firmware if generated by the Arduino IDE there is quite a bit of
stuff generated, which I refer to as the Default Configuration (what is
included automatically). However if one decides to include all the Optional
stuff (Duckdns, OTA, IR etc) then the size increases a lot to the point of
being unstable.
I had looked at the basic stuff to be included in the Default config then
added the ability to turn those on-off and enable-disable. This included
the LEDs, Joysticks, Push buttons, etc. These default to "disabled" and
"stopped" when firmware is uploaded. This prevents a crash on reboot once
the firmware is uploaded. If one of the default options was enabled, and
the hardware not present then that could cause a crash. Safety first
There is a spreadsheet included that lists the various sizes of each
option - so to reduce the space for options you need to go through the list
and make a decision about which options to enable.
Once programmed, you cannot "remove" options, they consume space
regardless of whether they are enabled or not.
You will note that OTA space is huge. I am working on a different OTA at
present and hope to include it in the next update. That should free up
space because the code has a smaller footprint.
The next update has this warning at the start of the file
controller_config.h
See below
Now I have a question for you.
Did you have issues with the windows app disconnecting, related to
"ismoving" fails.
I got some firmware zip file (accesspoint and station and static ip) and
log file (myFP2ESP32-Log-29032024).
Are you still having those isMoving problems - application Windows
disconnects when a move happens. Please let me know by sending email to
either gmail or yahoo address.
regards
Robert
//-----------------------------------------------------------------------
// WARNING: SKETCH AND GLOBAL VARIABLE SIZE LIMITS
//-----------------------------------------------------------------------
// When enabling options in this file, you will need to try and keep the
// Arduino sketch and Global variables to allow the Arduino chip to
// work without running out of space, which results in random reboots and
// the Serial interface not working.
//
// When the sketch is compiled, these messages are found in the Output
// Window and looks like
// Sketch uses 1126969 bytes (85%) of program storage space. Maximum is
1310720 bytes.
// Global variables use 47208 bytes (14%) of dynamic memory
//
// The sketch usage should be less that 85% most of the time (varies on
// what is enabled.) Higher sketch usage will result in errors and
// unexpected values being returned.
//
// The Global variables should be less than 60-70% (if debugging is enabled
// then the Global variable usage will exceed the safety limit and make
// the sketch unusable).
//
// If either these are too high, you will need to disable an option to
// decrease the Sketch size and Global var size to recommended levels
//
// Refer to the spreadsheet Options Program Size for more information
Good morning.
At the moment I think I have everything under control, although I think I have burned the ESP32 mini, since I put 12V in the VIN. I don't know if it's because of the 12V or because the GND cable was cut... the result is that it doesn't turn on. I'm waiting to receive another...
Thanks for everything
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi Carlos
happens to a lot of people including me. Most notable was an EasyDriver v4 board connected with volttage reversed, it not only glowed but caught fire on the work bench, would have made a good video of what not to do.
regards
Robert
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Good night.
After, with your help, I managed to make the focuser work with a TMC2209 driver and with an Arduino pro micro, I have ventured to test your focuser with the ESP32 version.
After doing 1000 tests I have managed to connect the ESP to the Windows application and to NINA, both with a static IP and with an access point. The problem is that when I press it to move, the steps don't change and it disconnects. what could happen?
Thanks for everything!!!
I send you the two firmwares (static IP and access point) and the log of the windows application
PD
I am using a 30 pin ESP32!!!
Last edit: Carlos Izquierdo Vázquez 2024-04-01
I add a screenshot so you can see what appears from the web service (in case it can give clues)
I have tested on 2 different ESP32s.
All the best
More information about the possible failure.
The serial monitor continually indicates this:
Rebooting...
ets Jul 29 2019 12:21:46
rst:0xc (SW_CPU_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT)
configsip: 0, SPIWP:0xee
clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00
mode:DIO, clock div:2
load:0x3fff0030,len:1344
load:0x40078000,len:13936
load:0x40080400,len:3600
entry 0x400805f0
E (1302) gpio: gpio_set_level(226): GPIO output gpio_num error
E (1303) gpio: gpio_set_level(226): GPIO output gpio_num error
E (1303) gpio: gpio_set_level(226): GPIO output gpio_num error
E (1308) gpio: gpio_set_level(226): GPIO output gpio_num error
E (1314) gpio: gpio_set_level(226): GPIO output gpio_num error
E (1319) gpio: gpio_set_level(226): GPIO output gpio_num error
I keep answering myself.
I have managed to remove the error by eliminating the -1 of "brdpins" from the 99.jsn file.
I still can't access the web service (with port 6060). "file not found" appears.
In both NINA and the Windows application, if the steps are moved, it no longer disconnects.
Ideas for Web service?
PD
I have asked to verify that it only works for me with file 99 (Custom) (another mystery...)
Thank you
Hi
Apologies for the late reply
The file not found indicates that the .html files were not uploaded
I assume the following
You are using Arduino IDE version 1.8.19
You have installed all the libraries
You have programmed the control with firmware 311-02
You are using an ESP32 Dev Module as recommended in the PDF.
You are using the ESP core 2.0.11 (boards manager)
You have configured the defines files found in the defines folder, such as station_defines.h and app_defines.h etc
You have watched the videos on Youtube related to the myFP2ESP32 (there are videos on installing, uploading, post configuration etc). All that follows is from those videos, as well as being covered in the PDF.
Remember the sequence is upload firmare, then upload data sketch files.
The Web service is NOT on port 6060. It uses the default port for web service, 80.
Remember that the PDF mentions that after uploading firmware, and then the data sketch files, you then proceed to "POST CONFIGURATION"
The basic things already enabled are the TCPIP Server, ALPACA Server and Management Server.
Nearly everything else is disabled (temperature probe, Web Server etc. You have to use the management Server to enable and run the desired service, like the Web Server.
The Management Server username/password is admin
Once logged in the first page is the Servers page.
You will see that the web server is disabled and stopped.
Click the WebServer enable button.
The state should then say Enabled
Then click the Web Server Start button. The service is now running, so open a web browser and type in the IP address (no need to add a :xxx port number). You should be able to see the index page of the web server.
Trouble booting up?
Most often is the failure to upload the data sketch files.
If there is a failure to boot
Load the firmware 311_02
Goto the controller_defines.h file
Line 23 - ensure that Boot print messages are enabled
Now, - Start Arduino IDE and connect to serial port for the controller (must be connected to do this).
Open the Serial Monitor within Arduino IDE.
Set the serial port speed tp 115200.
Press reboot on the esp32 chip.
Watch the messages - they will list what the controller is doing,
If you are getting an issue, then copy the messages from the serial monitor windows (cntrl A to highlight all, cntrl-C to copy, open a text editor and then cntrl-V to paste the messages into a text file and save the file.
Next- add the saved file and all of the firmware folder to a zip file and send it to me. My gmail is found in the PDF and firmware etc - (if you have installed the ascom driver, have a look in control panel to remove a file -and my id should be displayed
Regards
Robert
Good afternoon Robert.
The problem I was having is that I had not loaded the files with ESPtools.
Now it apparently works (I haven't wired it yet).
I ask you some questions.
Could it be possible to activate the web server and alpaca by default?
I see that I cannot modify maxstep from managerweb, it does not exceed
20,000, with the driver from NINA I can.
Thanks for your help. As soon as I connect the cables I will see the speed
of movement and the microsteps.
All the best
El mar, 2 abr 2024 a las 18:20, brownrb (brownrb@users.sourceforge.net)
escribió:
Hi Carlos
Not necessary. Once enabled, they will stay enabled so the next time the controller starts they will also start. If a firmware update occurs, they will then need to be "enabled" again. The firmware is pretty stable, however there is one more update I have to do though
Maxstep:
/admin3 or the Motor tab on the Management Server permits changing the MaxStep value.
In ASCOM there is only get() for maxstep. There is no support for set() for maxstep. The ASCOM driver I wrote to support the esp32 firmware allows you to update the maxstep value when connecting. But is NOT supported by ASCOM. I provided the code in the driver, the purpose of which is to do POST Configuration {where you configure a whole heap of motor settings). Normally,
A user would figure out what the MaxStep value is, then set that value in the Focuser config. I cannot think of a reason why a user would want to change that, barring the obvious of changing the scopes focuser with a longer or shorter draw tube, or changing the step mode (not advisable).
Settings like maxstep, stepsize, temp coefficient, step mode should only ever be set once. Once programmed by configured, those settings should not be changed. Perhaps if you were using the controller on different scopes, that is what profiles are used for, but the cost of building another controller is not huge.
Regards
Robert
Hi
I just checked the firmware revision level on SourceForge, because there is an update in the pipeline.
There is a patch from the next update related to maxStep
In managementserver.cpp, find this part of the code which deals with handling a new maxstep value (it is in the void MANAGEMENTSERVER::getadmin3(void) method
and change it to
Regards
Robert
Good afternoon Robert.
We are lucky to have someone who provides this support!!!!
I have already included this modification in the firmware. Let's see if my
kids leave me some free time and I can wire everything up.
I always use the equipment from home, with the home Wi-Fi network. What
happens if one night I have to go out to a place without internet?
I think I could put the hotspot created by the minipc as a secondary
network... I have to try it.
Does it have Bluetooth support?
Lastly, I think that if I have everything connected, the firmware does not
load on the ESP32. What could I do if I have to change something once the
focuser is assembled?
Thanks again!
El jue, 4 abr 2024 a las 11:52, brownrb (brownrb@users.sourceforge.net)
escribió:
Hi Carlos
Yes, but there are reported problems of using a smart phone hotspot. For PC based hotspots there has been no report of issues.
You can use the alternate credentials to list an alternative network in case the first one does not connect.
Sorry no. That looks like it has been carried over from the previous wifi project.
Blutooth support for esp32 was deprecated a few years ago.
When the firmware if generated by the Arduino IDE there is quite a bit of stuff generated, which I refer to as the Default Configuration (what is included automatically). However if one decides to include all the Optional stuff (Duckdns, OTA, IR etc) then the size increases a lot to the point of being unstable.
I had looked at the basic stuff to be included in the Default config then added the ability to turn those on-off and enable-disable. This included the LEDs, Joysticks, Push buttons, etc. These default to "disabled" and "stopped" when firmware is uploaded. This prevents a crash on reboot once the firmware is uploaded. If one of the default options was enabled, and the hardware not present then that could cause a crash. Safety first
There is a spreadsheet included that lists the various sizes of each option - so to reduce the space for options you need to go through the list and make a decision about which options to enable.
Once programmed, you cannot "remove" options, they consume space regardless of whether they are enabled or not.
You will note that OTA space is huge. I am working on a different OTA at present and hope to include it in the next update. That should free up space because the code has a smaller footprint.
The next update has this warning at the start of the file controller_config.h
See below
Now I have a question for you.
Did you have issues with the windows app disconnecting, related to "ismoving" fails.
I got some firmware zip file (accesspoint and station and static ip) and log file (myFP2ESP32-Log-29032024).
Are you still having those isMoving problems - application Windows disconnects when a move happens. Please let me know by sending email to either gmail or yahoo address.
regards
Robert
//-----------------------------------------------------------------------
// WARNING: SKETCH AND GLOBAL VARIABLE SIZE LIMITS
//-----------------------------------------------------------------------
// When enabling options in this file, you will need to try and keep the
// Arduino sketch and Global variables to allow the Arduino chip to
// work without running out of space, which results in random reboots and
// the Serial interface not working.
//
// When the sketch is compiled, these messages are found in the Output
// Window and looks like
// Sketch uses 1126969 bytes (85%) of program storage space. Maximum is 1310720 bytes.
// Global variables use 47208 bytes (14%) of dynamic memory
//
// The sketch usage should be less that 85% most of the time (varies on
// what is enabled.) Higher sketch usage will result in errors and
// unexpected values being returned.
//
// The Global variables should be less than 60-70% (if debugging is enabled
// then the Global variable usage will exceed the safety limit and make
// the sketch unusable).
//
// If either these are too high, you will need to disable an option to
// decrease the Sketch size and Global var size to recommended levels
//
// Refer to the spreadsheet Options Program Size for more information
Hello, Robert!
The problem with the disconnections after clicking move was that I had not
put the files included in the data folder. After putting them in, so far, I
have not experienced that problem.
As for my setup, I'm going to use a TMC2209 (if it gives me too much
trouble, I'll switch to a DRV8825) and OTA updates. Nothing more (maybe in
the future I will use the OLED screen, but I don't think so).
Is it possible to update the firmware with all the components connected?
(in a test I did it did not allow updating)
Thanks again for everything
El vie, 5 abr 2024 a las 6:28, brownrb (brownrb@users.sourceforge.net)
escribió:
Is it possible to update the firmware with all the components connected?
yes, it would be pointless if you had to remove them first. the project was built in mind to do that, because if you had a remote observatory 100 odd miles away, then that is a requirement,
regards
Robert
I don't know if it is an error, but if it can help you, I can tell you that
if I select the TMC2209 board, when compiling an error appears in this part:
/ ----------------------------------------------------------------------//
Load Default Focuser Persistant Data Settings (when no config file exists
eg; after an upload)// Creates a default config setting file and saves it
to spiffs//
----------------------------------------------------------------------void
CONTROLLER_DATA::LoadDefaultPersistantData() { if (DRVBRD ==
PRO2ESP32TMC2225) || (DRVBRD == PRO2ESP32TMC2209) || (DRVBRD ==
PRO2ESP32TMC2209P) { maxstep = 4; }
ERROR
exit status 1expected primary-expression before '||' token
I don't know if it's appropriate, but to fix it, I've modified the code
like this.
/ ----------------------------------------------------------------------//
Load Default Focuser Persistant Data Settings (when no config file exists
eg; after an upload)// Creates a default config setting file and saves it
to spiffs//
----------------------------------------------------------------------void
CONTROLLER_DATA::LoadDefaultPersistantData() { if ((DRVBRD ==
PRO2ESP32TMC2225) || (DRVBRD == PRO2ESP32TMC2209) || (DRVBRD ==
PRO2ESP32TMC2209P)) { maxstep = 4;
Un saludo
El vie, 5 abr 2024 a las 6:28, brownrb (brownrb@users.sourceforge.net)
escribió:
Sorry for the number of messages, but my intention is to contribute to
improving this excellent work.
If I activate the TM2209 board, the IDE serial gives the following error,
restarting continuously
0:43.882 -> ets Jul 29 2019 12:21:46
16:00:43.882 ->
16:00:43.882 -> rst:0x1 (POWERON_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT)
16:00:43.882 -> configsip: 0, SPIWP:0xee
16:00:43.882 ->
clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00
16:00:43.882 -> mode:DIO, clock div:1
16:00:43.882 -> load:0x3fff0030,len:1344
16:00:43.882 -> load:0x40078000,len:13964
16:00:43.928 -> load:0x40080400,len:3600
16:00:43.928 -> entry 0x400805f0
16:00:44.304 -> start serial
16:00:44.304 -> Load ControllerData
16:00:44.444 -> Load vars
16:00:44.444 -> MODE 2
16:00:44.444 -> start station
16:00:44.444 -> readwificonfig
16:00:44.676 -> dynamic ip
16:00:51.678 -> Use alt credentials
16:00:52.702 -> start debug srvr error
16:00:52.702 -> 192.168.1.56
16:00:52.702 -> esp32-759768
16:00:52.702 -> start system time
16:00:52.748 -> start drvbrd
16:00:52.748 -> Guru Meditation Error: Core 1 panic'ed (LoadProhibited).
Exception was unhandled.
16:00:52.748 ->
16:00:52.748 -> Core 1 register dump:
16:00:52.748 -> PC : 0x4018363b PS : 0x00060f30 A0 :
0x800dcf40 A1 : 0x3ffcb450
16:00:52.748 -> A2 : 0x00000000 A3 : 0x00000000 A4 :
0x00060f20 A5 : 0x3ffcb0d0
16:00:52.748 -> A6 : 0x007bdc8c A7 : 0x003fffff A8 :
0x000000f0 A9 : 0x3ffcb420
16:00:52.748 -> A10 : 0x000001e0 A11 : 0x00001800 A12 :
0x3ffd73c0 A13 : 0x0000ff00
16:00:52.748 -> A14 : 0x00ff0000 A15 : 0xff000000 SAR :
0x00000016 EXCCAUSE: 0x0000001c
16:00:52.796 -> EXCVADDR: 0x00000000 LBEG : 0x4008a1a9 LEND :
0x4008a1b9 LCOUNT : 0xffffffff
16:00:52.796 ->
16:00:52.796 ->
16:00:52.796 -> Backtrace: 0x40183638:0x3ffcb450 0x400dcf3d:0x3ffcb470
0x400dd9a9:0x3ffcb490 0x400eee15:0x3ffcb4b0 0x40101732:0x3ffcb510
16:00:52.796 ->
16:00:52.796 ->
16:00:52.796 ->
16:00:52.796 ->
16:00:52.796 -> ELF file SHA256: d111d9077b170224
16:00:52.796 ->
16:00:52.982 -> Rebooting...
16:00:52.982 -> ets Jul 29 2019 12:21:46
16:00:52.982 ->
16:00:52.982 -> rst:0xc (SW_CPU_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT)
16:00:52.982 -> configsip: 0, SPIWP:0xee
16:00:52.982 ->
clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00
16:00:52.982 -> mode:DIO, clock div:1
16:00:52.982 -> load:0x3fff0030,len:1344
16:00:52.982 -> load:0x40078000,len:13964
16:00:53.028 -> load:0x40080400,len:3600
16:00:53.028 -> entry 0x400805f0
16:00:53.404 -> start serial
16:00:53.404 -> Load ControllerData
16:00:53.544 -> Load vars
16:00:53.544 -> MODE 2
16:00:53.544 -> start station
16:00:53.544 -> readwificonfig
16:00:53.776 -> dynamic ip
El vie, 5 abr 2024 a las 6:28, brownrb (brownrb@users.sourceforge.net)
escribió:
Hi Carlos
This line in driver_board.cpp
should be
Good morning.
At the moment I think I have everything under control, although I think I have burned the ESP32 mini, since I put 12V in the VIN. I don't know if it's because of the 12V or because the GND cable was cut... the result is that it doesn't turn on. I'm waiting to receive another...
Thanks for everything
Hi Carlos
happens to a lot of people including me. Most notable was an EasyDriver v4 board connected with volttage reversed, it not only glowed but caught fire on the work bench, would have made a good video of what not to do.
regards
Robert