FW Arduino 2.1.1 uploaded by : myFOCUSERPRO2 OFFICIAL FIRMWARE RELEASE 329 (09-Oct-2023)
On the PCB I use:
- Push Buttons,
- Temperature Probe,
- LEDs,
- Buzzer,
- Home Position Switch.
- Some places I use 20x4 LCD is also optional.
Everything compiles and loads fine, no warnings or errors.
Windows client: myFW2W 2.5.0.8.
The error phenomenon is that it does not display a temperature measurement value, the GET request fails and the connection is terminated. Everything else works fine until the temperature call.
other windows client: myFocuserL shows the temperature value well, but it is not suitable, e.g. there is no hwsw management, etc.
Troubleshooting so far:
I hacked the contents of the EPROM with the program found in the test folder according to a suggestion for solving a similar error earlier on the topic.
I tested the temperature sensor operation with the DS18B20 probe test application.
The temperature sensor shows the temperature data well on the serial monitor.
In the log you can see the following line referring to the error "ConnectBtn_Click Set Temperature Compensation State False"
According to the previous similar error search suggestion on the topic
I enabled the DEBUG function in myDefines.h.
According to the serial output, there is temperature data, but at a different address:
LED001
STP001
TMP001
TMP002
TMP003 1
BRD001
BRD002
fcurrentposition=5000,
BRD005
MAS013MAS010BRD005
TMP006
TMP005 23.50
Setup end
STP001
..
STP001
TMP005 23.50
STP001
..
STP001
TMP005 24.50
STP001
..
STP001
TMP005 25.00
..
TMP003 1 can be read on the monitor during the start-up initialization, but the read temperature values are visible after TMP005 25.00 TMP005 lines.
Make sure the firmware has all the DEBUG OFF otherwise the Windows app will fail to connect
For the Windows App,
Enable logging of Messages on the Logging Tab
On the Connection tab
Set OnConnect Send to None
connect to the Controller
Click the Temperature Tab
Click Get
Wait 10s
Click Get (Not sure- might disconnect connection after 1st Get of Temperature
Disconnect (if still connected)
Exit
Please send me the myFP2WLog-ddmm2023.txt file
Regards
Robert
You did not say the name of the firmware file you used to program the Controller.
It should be, for the
HW PCB: M-MT-F-BT DRV8825 myFocuserPro Rev 12.
the firmware file would be
myFP2F_DRV8825_329
One other thing, Arduino IDE is 2.2.1 now
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
As requested, I turned on the client program logging option.
( Based on line 508 of the attached log file, I think that the decimal point format of the temperature value is the cause of the error.)
After the temperature query, the connection is immediately disconnected due to the incorrect format, so there is no possibility to request again after waiting.
The content of line 508 when reading the thermometer:
"ReceiveResponse Controller response: Z23.75"
I hope my assumption is correct and this problem is manageable.
I wish you good health, I read you were sick before!
Hi
Just going through tje log file now. I see
myFP2DRVHW203
but based on your PCB you should be using
myFP2F_DRV8825_329
then
2023.11.21. 14:16:04: Read_tempprobeavailable response = 1
2023.11.21. 14:16:04: Read_tempprobeavailable Temp probe found
indicates the probe was found
2023.11.21. 14:16:06: Read_tempprobeavailable Temp probe found
2023.11.21. 14:16:06: Getconnectvalues Get Temperature Mode, Celsius or Fahrenheit
The Controller always uses USCulture what reading a temperature value.
This is obvious from the Z23.75 (the . is for USCulture. I am talking about the Visual Studio source code for the Windiws app.
It appears that you are not in the USA but in another country that uses the , seperator
Yes, I know the issue. I will make a newwindows app that you can try. I will work on that now.
Regards
Robert
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hello
I downloaded and tested the included Windows 2.5.1.0 application.
During the installation, you can see on a form that Fr culture is set.
This version works without errors!
I am very grateful and thank you!
Your projects are exemplary, for which I heartily congratulate you, and wish you continued good work and good health. Alexander
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Thanks
I realized that I had left some debug code in (which is why it says Fr culture)
I will need to take that out (else everyone will be using Fr)
and then upload again.
The issue also affected stepsize, so I applied the same fix for that
regards
Robert
PS I have removed the app from the previous post
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hello!
I have a problem with the operation of the temperature probe. I'm looking for the error and hope to get help.
HW PCB: M-MT-F-BT DRV8825 myFocuserPro Rev 12.
This PCB can be downloaded from the myFocuserPro2 group link:
https://sourceforge.net/projects/arduinoascomfocuserpro2diy/files/Gerber%20Files/DRV8825/DRV8825_M-MT-F-BT-12_pcb.jpg
FW Arduino 2.1.1 uploaded by : myFOCUSERPRO2 OFFICIAL FIRMWARE RELEASE 329 (09-Oct-2023)
On the PCB I use:
- Push Buttons,
- Temperature Probe,
- LEDs,
- Buzzer,
- Home Position Switch.
- Some places I use 20x4 LCD is also optional.
Everything compiles and loads fine, no warnings or errors.
Windows client: myFW2W 2.5.0.8.
The error phenomenon is that it does not display a temperature measurement value, the GET request fails and the connection is terminated. Everything else works fine until the temperature call.
other windows client: myFocuserL shows the temperature value well, but it is not suitable, e.g. there is no hwsw management, etc.
Troubleshooting so far:
The temperature sensor shows the temperature data well on the serial monitor.
I enabled the DEBUG function in myDefines.h.
According to the serial output, there is temperature data, but at a different address:
LED001
STP001
TMP001
TMP002
TMP003 1
BRD001
BRD002
fcurrentposition=5000,
BRD005
MAS013MAS010BRD005
TMP006
TMP005 23.50
Setup end
STP001
..
STP001
TMP005 23.50
STP001
..
STP001
TMP005 24.50
STP001
..
STP001
TMP005 25.00
..
TMP003 1 can be read on the monitor during the start-up initialization, but the read temperature values are visible after TMP005 25.00 TMP005 lines.
What is the cause of the error?
How can I fix it?
Hi
Make sure the firmware has all the DEBUG OFF otherwise the Windows app will fail to connect
For the Windows App,
Enable logging of Messages on the Logging Tab
On the Connection tab
Set OnConnect Send to None
connect to the Controller
Click the Temperature Tab
Click Get
Wait 10s
Click Get (Not sure- might disconnect connection after 1st Get of Temperature
Disconnect (if still connected)
Exit
Please send me the myFP2WLog-ddmm2023.txt file
Regards
Robert
You did not say the name of the firmware file you used to program the Controller.
It should be, for the
HW PCB: M-MT-F-BT DRV8825 myFocuserPro Rev 12.
the firmware file would be
myFP2F_DRV8825_329
One other thing, Arduino IDE is 2.2.1 now
Dear brown rb!
This response time is dizzying! ;-)
As requested, I turned on the client program logging option.
( Based on line 508 of the attached log file, I think that the decimal point format of the temperature value is the cause of the error.)
After the temperature query, the connection is immediately disconnected due to the incorrect format, so there is no possibility to request again after waiting.
The content of line 508 when reading the thermometer:
"ReceiveResponse Controller response: Z23.75"
I hope my assumption is correct and this problem is manageable.
I wish you good health, I read you were sick before!
Thanks and regards
Last edit: KoraSan 2023-11-21
Hi
Just going through tje log file now. I see
myFP2DRVHW203
but based on your PCB you should be using
myFP2F_DRV8825_329
then
2023.11.21. 14:16:04: Read_tempprobeavailable response = 1
2023.11.21. 14:16:04: Read_tempprobeavailable Temp probe found
indicates the probe was found
2023.11.21. 14:16:06: Read_tempprobeavailable Temp probe found
2023.11.21. 14:16:06: Getconnectvalues Get Temperature Mode, Celsius or Fahrenheit
2023.11.21. 14:16:06: SendString Sending=:06#
2023.11.21. 14:16:06: SendString Sending=OK
2023.11.21. 14:16:06: SendString END
2023.11.21. 14:16:06: ReceiveResponse START
2023.11.21. 14:16:06: ReceiveResponse client is connected
2023.11.21. 14:16:06: ReceiveResponse Controller response: Z23.75
2023.11.21. 14:16:06: Read_temp response = 23.75
2023.11.21. 14:16:06: Read_temp Error Data Invalid
2023.11.21. 14:16:06: Getconnectvalues Error Data Invalid
The Controller always uses USCulture what reading a temperature value.
This is obvious from the Z23.75 (the . is for USCulture. I am talking about the Visual Studio source code for the Windiws app.
It appears that you are not in the USA but in another country that uses the , seperator
Yes, I know the issue. I will make a newwindows app that you can try. I will work on that now.
Regards
Robert
It is a little bigger than I thought, so I hope to have the update for you to test tommorrow my time (NZ).
Find attached a windows app 2.5.1.0
Let me know if this resolves your issues (temperature and stepsize)
Regards
Robert
Hello
I downloaded and tested the included Windows 2.5.1.0 application.
During the installation, you can see on a form that Fr culture is set.
This version works without errors!
I am very grateful and thank you!
Your projects are exemplary, for which I heartily congratulate you, and wish you continued good work and good health. Alexander
Thanks
I realized that I had left some debug code in (which is why it says Fr culture)
I will need to take that out (else everyone will be using Fr)
and then upload again.
The issue also affected stepsize, so I applied the same fix for that
regards
Robert
PS I have removed the app from the previous post