Robert replied to the topic 'myFocuserPro or myFocuserPro2 and INDI' in the forum. 3 days ago

I made a windows controller emulator for the esp controller. If you run this on the windows pc it will start an emulator (and tell you the ip address) - you then can connect to it and it behaves just like a esp controller. I use it all the time for testing, running inside its own VM

Read More...

Robert replied to the topic 'myFocuserPro or myFocuserPro2 and INDI' in the forum. 2 weeks ago

Email me: Am happy to donate a board with components, but postage is another thing. If you were willing to contribute with postage then it is possible.

Read More...

Robert replied to the topic 'myFocuserPro or myFocuserPro2 and INDI' in the forum. 2 weeks ago

Command set is identical [though there are a few EXTRA commands for ESP info, which one could easily ignore]

By default the esp code uses port 2020 and the ip address will vary depending on the controller mode and if dynamic ip allocation is being used.

You cant do this with a myFocuserPro2 controller - because that only supports serial.

A myFP2ESP controller [different hardware and firmware] supports tcpip/serial/bluetooth/web-server/ascom-remote

Cheers
Robert

Read More...

Robert replied to the topic 'myFocuserPro or myFocuserPro2 and INDI' in the forum. 2 weeks ago

myFocuserPro2Linux only uses serial as it talks to a serial based focuser. One would not use it to talk to a focuser using TCP/IP.

myFocuserPro2ELinux only uses TCPIP. (E for ESP chips or WiFi). It is now renamed as myFP2ESP-Linux and is posted at sourceforge.

Read More...

Robert replied to the topic 'myFocuserPro or myFocuserPro2 and INDI' in the forum. 3 weeks ago

myFP2ESP WiFi was not designed to work as a serial usb controller (though that is possible).
The firmware for it was designed from scratch, and now has been ported over to myFocuserPro2
myFP2ESP controllers use the same protocol commands and responses as a myFocuserPro2
So if a myFP2ESP controller is running in LOCALSERIAL mode it will talk happily over USB with the myFocuserPro2 Windows app, myFocuserPro2 ASCOM driver andpresumably the INDI driver (as I do not have a LINUX system running INDI that I cannot verify but it should).

myFocuserPro2Linux is just a Linux version of the myFocuserPro2 Windows app designed to work over a serial port connection. It does not use TCPIP

myFP2ESP Windows app uses a TCPIP connection and can talk to myFP2ESP controller via TCPIP.
It is found at (Name will change soon to myFP2ESPLinux)
sourceforge.net/projects/myfocuserpro2-e...Linux%20Application/

Actually, taking the existing INDI driver for myFocuserPro2, it should be able to be modified (clone and then rename to myFocuserPro2ESP?) to use TCPIP instead of serial to communicate with the myFP2ESP controller - most of the INDI code is already done, just change the serial code to use TCPIP instead. Happy to provide source code examples of Linkux TCPIP socket code talking to an myFP2ESP controller to anyone interested in coding a driver,

Regards
Robert

Read More...

Robert replied to the topic 'myFocuserPro or myFocuserPro2 and INDI' in the forum. 3 weeks ago

That code is not designed to run on the esp32. Running serial on an esp32 chip does not really make sense in terms of driving a focuser.

You do understand that the myFocuserPro2 has already been updated to the next generation using an ESP8266 or ESP32 chip, giving all the features of Bluetooth (ESP32), WiFi, ASCOM REMOTE and a host of other features, options.

sourceforge.net/projects/myfocuserpro2-esp32/

Regards
Robert

Read More...

Robert replied to the topic 'myFocuserPro or myFocuserPro2 and INDI' in the forum. 1 month ago

You can do a relative move + or - using :64xxx#where xxx is the steps to move, for example :64-200# would move -200 steps from where the focus position is currently.
Does that help?

Read More...

Robert replied to the topic 'myFocuserPro or myFocuserPro2 and INDI' in the forum. 2 months ago

Hi Alan
I think you have done more than your fair share so far!

Best wishes for a good game, lets hope the ref lets the game flow.
I'll cheer for my team, and you for yours. Here's to a cracker of a game.

Regards
Robert

Read More...

Robert replied to the topic 'myFocuserPro or myFocuserPro2 and INDI' in the forum. 2 months ago

Hi Alan
As the developer of the driver you can implement it whatever way you think is best. That is ok.

Backlash code in myfocuserpro2 has evolved over the years from lots of user feedback and lots of tests and trials. Not everyone uses rack and pinion or crayford etc. It became very evident that the ability to support different values in and out and control them (enable/disable) became a big bonus as it is not the same on all systems and not within a hair breath of each other, and depending on the step size value there can become large differences.

There should be no appreciable bias if the backlash was set correctly using the method outlined in the manual. If other methods were used I would say you have a good point. As for the real stepper position becoming invalidated over time that is a whole new subject, and I would be happy to share my thoughts and experiences on that, but I think the amount that backlash causes to that invalidation is rather small in the larger scheme of things. In the best of worlds, there are home limit switches and the focuser is sent to home before use, which helps to reduce the errors in position.

Regards
Robert

Read More...

Robert replied to the topic 'myFocuserPro or myFocuserPro2 and INDI' in the forum. 2 months ago

Backlash.
If enabled
When a move to a new position occurs and is in the opposite direction to the previous move
lets say current position is 4000 and move is to 5000 and the previous move was IN, then backlash will be applied if enabled
Backlash is applied (the number of steps to move) BEFORE the move is done. This does NOT change the focuser position as it it taking up the backlash in the gears getting ready to move - the draw tube would not have moved - so neither has the actual position - backlash is taking up the slack
Once backlash is done then the move is performed - in this instance from 4000 to 5000.

Adding backlash to the final position would be a mistake - Assuming 4000 to 5000 with backlash of 200, that would make the position 5200 - but technically the focuser is at 5000 because for the 200 backlash steps the drawtube did not actually move, hence myfp2 does not do it that way

Regards
Robert

Read More...

Robert replied to the topic 'myFocuserPro or myFocuserPro2 and INDI' in the forum. 2 months ago

Alan
Awesome, well done and congrats. That is the perfect way to do it.

regards
Robert

Read More...

Robert replied to the topic 'myFocuserPro or myFocuserPro2 and INDI' in the forum. 2 months ago

HI Alan
re - and made a minor change to allow change of position during a move.
In ASCOM the protocol is check isMoving property before a move. As the focuser would be moving such a call would be denied.

In the myfp2 firmware, this is replicated and new moves while the focuser is already moving are not allowed.

Regards
Robert

Read More...