AstroEQ Discussion Board

AstroEQ R&D => Beta Firmware Releases => Topic started by: TCWORLD on January 09, 2016, 16:54:30

Title: [Completed] AstroEQ 8.0.3(beta)
Post by: TCWORLD on January 09, 2016, 16:54:30
Version 8.0 of the AstroEQ firmware has now been released. Thanks to those that took part in the beta testing, you've been a great help.



Hi All,

I am currently working on a new AstroEQ Firmware release.

The following features have been changed/added to the firmware:

The following changes have been made to the configuration utility

The new firmware and configuration utility is attached to this post.

The configuration utility and AstroEQ firmware are not backward compatible with the previous firmware and utility. Make sure you save your current configuration using the old config utility before upgrading to the beta firmware. After the beta firmware is uploaded the EEPROM structure is different which will result in older versions of the config utility reporting that the EEPROM is blank or corrupt. You will be able to downgrade to an earlier version, however you will need to re-enter your mount configuration.



It would be very useful if I can get some folks here to test out the firmware with their mount configurations to make sure the firmware works correctly before I officially release it.

Also if there are any more bugs fixes/features you want to request, I'll see if there is time to include them here.
Title: Re: [Completed] AstroEQ 8.0.3(beta)
Post by: TCWORLD on January 10, 2016, 11:51:08
I've uploaded a new version of the firmware to the post above. There was a mistake in the new firmware in configuring the driver mode pins to be outputs.
Title: Re: [Completed] AstroEQ 8.0.3(beta)
Post by: doramason on January 11, 2016, 15:56:08
Just like 7.4 it is not working on my computer(s). It opens but then all buttons disappear immediately. I have no idea what is causing this, maybe the language of the OS?

So unfortunately I'm not able to try it. Btw Have you changed the size of the window?
Title: Re: [Completed] AstroEQ 8.0.3(beta)
Post by: TCWORLD on January 12, 2016, 04:04:42
What version of Java do you have installed?

Also, I haven't changed the size of the window as far as I recall.
Title: Re: [Completed] AstroEQ 8.0.3(beta)
Post by: doramason on January 12, 2016, 08:21:03
I have the latest update of java and windows 7. Can you make the window smaller so that I can use it without changing the resolution on my netbook? It is not that important if you don't have the time, not being able to open it is a more important problem right now.
Title: Re: [Completed] AstroEQ 8.0.3(beta)
Post by: TCWORLD on January 12, 2016, 13:22:11
What is the screen resolution of your netbook?

Also, do you have the 32bit JRE (Java) installed or the 64bit one? I'm struggling to figure out why it wouldn't load for you - if the 7.3 one loads, this one should too as they are made in exactly the same way.

Also, could you run the attached debugging version of the AstroEQ config utility - save it to the same directory as the beta AstroEQ.exe file. Then run it from the command line using the command:

Code: [Select]
cd path/to/utility
AstroEQDebug.exe --l4j-debug

This should create a file named "launch4j.log" in the same directory as the AstroEQ utility which will be saved once you quit the command (if you see nothing for a while, CTRL-C to stop it). If you could post the content of that here.

Also you should see the AstroEQ utility open up a command window which will be printing some debug information. If you could let me know where it gets up to, if it does anything at all.
Title: Re: [Completed] AstroEQ 8.0.3(beta)
Post by: doramason on January 12, 2016, 15:34:45
What is the screen resolution of your netbook?

Also, do you have the 32bit JRE (Java) installed or the 64bit one? I'm struggling to figure out why it wouldn't load for you - if the 7.3 one loads, this one should too as they are made in exactly the same way.

Also, could you run the attached debugging version of the AstroEQ config utility - save it to the same directory as the beta AstroEQ.exe file. Then run it from the command line using the command:

Code: [Select]
cd path/to/utility
AstroEQDebug.exe --l4j-debug

This should create a file named "launch4j.log" in the same directory as the AstroEQ utility which will be saved once you quit the command (if you see nothing for a while, CTRL-C to stop it). If you could post the content of that here.

Also you should see the AstroEQ utility open up a command window which will be printing some debug information. If you could let me know where it gets up to, if it does anything at all.

I have 32bit OS and the Java is the 8 version 66 update. My screen resolution: 1024x600

I have changed .log to .jpg because it wasn't in the allowed file types. Just rename it to .log.

I'm also attaching the screenshot of the command window. let me know if you need anything else.

Title: Re: [Completed] AstroEQ 8.0.3(beta)
Post by: TCWORLD on January 12, 2016, 16:19:51
Interesting, something be crashing. Could you scroll up in the cmd window to the top of the stack trace. If you right click and select "Mark" you can then drag to select text in the cmd window then right click again to copy it - easier to paste the text than a screenshot.

Also what is interesting is the free memory for the JVM is very small. Probably won't be an issue though as I highly doubt the utility would use enough memory to cause an issue.
Title: Re: [Completed] AstroEQ 8.0.3(beta)
Post by: doramason on January 12, 2016, 17:28:17
Interesting, something be crashing. Could you scroll up in the cmd window to the top of the stack trace. If you right click and select "Mark" you can then drag to select text in the cmd window then right click again to copy it - easier to paste the text than a screenshot.

Also what is interesting is the free memory for the JVM is very small. Probably won't be an issue though as I highly doubt the utility would use enough memory to cause an issue.

I'm attaching the full text. I hope you can find the problem.
Title: Re: [Completed] AstroEQ 8.0.3(beta)
Post by: TCWORLD on January 12, 2016, 17:58:11
Ah the joys of computers. Non-ascii characters apparently crash ControlP5 (what I am using for all the text boxes and things) on some computers  >:( - If I remove the degree symbol from the config page it will probably fix it for you.
Title: Re: [Completed] AstroEQ 8.0.3(beta)
Post by: TCWORLD on January 12, 2016, 23:11:53
@all The beta config utility has been updated and the new version attached to the original post.

@doramason I've also attached a new AstroEQDebug.zip file to my earlier post. If you could try that and see if the issue with it not loading has been verified. Turns out I was using the Unicode degree symbol on the config screen not the UTF-8 version.
Title: Re: [Completed] AstroEQ 8.0.3(beta)
Post by: doramason on January 13, 2016, 19:05:45
@all The beta config utility has been updated and the new version attached to the original post.

@doramason I've also attached a new AstroEQDebug.zip file to my earlier post. If you could try that and see if the issue with it not loading has been verified. Turns out I was using the Unicode degree symbol on the config screen not the UTF-8 version.

It is the same, all buttons disappear after opening. I am attaching the new debug results.
Title: Re: [Completed] AstroEQ 8.0.3(beta)
Post by: Smokie on January 13, 2016, 20:47:57
Hello Tom,new relaese is working fine by me!

Gr,Henk
Title: Re: [Completed] AstroEQ 8.0.3(beta)
Post by: TCWORLD on January 14, 2016, 04:36:04
@Smokie Glad it's working for you.

@doramason, really confusing as I'm not sure what character 304 is and why it is happening - in fact from what I can tell it shouldn't even be physically possible! Somehow a value of 304 is being passed from somewhere unknown in a char variable which doesn't have enough bits to even store it! I've upgraded the version of Processing that I'm using to a more recent version in hope that the bug goes away. Would you be able to test it out (I've updated the link in my earlier post again).
Title: Re: [Completed] AstroEQ 8.0.3(beta)
Post by: doramason on January 14, 2016, 08:16:37
@Smokie Glad it's working for you.

@doramason, really confusing as I'm not sure what character 304 is and why it is happening - in fact from what I can tell it shouldn't even be physically possible! Somehow a value of 304 is being passed from somewhere unknown in a char variable which doesn't have enough bits to even store it! I've upgraded the version of Processing that I'm using to a more recent version in hope that the bug goes away. Would you be able to test it out (I've updated the link in my earlier post again).

This time it opens but nothing can be seen in the window. I'm attaching the results of the debug.
Title: Re: [Completed] AstroEQ 8.0.3(beta)
Post by: TCWORLD on January 14, 2016, 17:10:18
Grr. Still doing the same thing.

I went searching again and found an even newer version of ControlP5 which is properly patched to not produce that error - any out of bounds characters are converted to a space which should not cause the exception. Trouble with the new version is there were major changes to its APIs, so I've had to change a fair chunk of the utility to make it compatible. Hopefully it was worth it - could you try the new Debug version of the utility (attached in the earlier post) and hopefully this time it will work  ???.
Title: Re: [Completed] AstroEQ 8.0.3(beta)
Post by: doramason on January 14, 2016, 18:15:11
Grr. Still doing the same thing.

I went searching again and found an even newer version of ControlP5 which is properly patched to not produce that error - any out of bounds characters are converted to a space which should not cause the exception. Trouble with the new version is there were major changes to its APIs, so I've had to change a fair chunk of the utility to make it compatible. Hopefully it was worth it - could you try the new Debug version of the utility (attached in the earlier post) and hopefully this time it will work  ???.

Yes this time it is working 8) many thanks for your effort, I owe you a pint  ;)

One thing I have noticed; after updating the firmware next button and all other buttons are unresponsive. I need to close astroeq and reopen to configure. Weather is bad so I am trying indoors and so far everything else works ok.
Title: Re: [Completed] AstroEQ 8.0.3(beta)
Post by: TCWORLD on January 14, 2016, 19:21:00
Does anything show in the debug when it freezes after programming?
Title: Re: [Completed] AstroEQ 8.0.3(beta)
Post by: doramason on January 15, 2016, 15:09:15
Does anything show in the debug when it freezes after programming?

I'm attaching.
Title: Re: [Completed] AstroEQ 8.0.3(beta)
Post by: TCWORLD on January 15, 2016, 18:51:05
Can't see anything immediately wrong. I've corrected what might be a bug, but not sure that it will cause the problem you are seeing. If the new version of the AstroEQDebug (attached to the earlier post) doesn't fix it, I think we'll just have to accept that it isn't completely working for you (works fine for me). At least the most important bits are up and running and you can at least launch the utility.
Title: Re: [Completed] AstroEQ 8.0.3(beta)
Post by: doramason on January 16, 2016, 08:38:38
Can't see anything immediately wrong. I've corrected what might be a bug, but not sure that it will cause the problem you are seeing. If the new version of the AstroEQDebug (attached to the earlier post) doesn't fix it, I think we'll just have to accept that it isn't completely working for you (works fine for me). At least the most important bits are up and running and you can at least launch the utility.

Yes it worked this time config utility opened, thanks again for your interest in solving my problem.

I have an unrelated question, when I was trying my setup with 0.9 degree steppers it says in a warning "ival is small, non-sidereal speed accuracy reduced". Does that mean I will have accurate sidereal speed/tracking but when I slew from one object to another lets say 60x sidereal it might not have accurate speed? So in cartes du ciel it might not perfectly center objects? 
Title: Re: [Completed] AstroEQ 8.0.3(beta)
Post by: TCWORLD on January 16, 2016, 15:27:55
The speed at sidereal will be accurate, but the speed at say 60x may be something like 58x or 62x. The distance travelled will *always* be accurate. So unless you are trying to track something moving at high speed it shouldn't matter.
Title: Re: [Completed] AstroEQ 8.0.3(beta)
Post by: Jagho on January 30, 2016, 16:04:44
Test 1
I was testing 7.5 version with DRV 8825 first.  Everything seems to work fine like @ 7.4 version

Test 2
I changed DRV8825 to DRV8834 on the board and changed DRV882x to DRV8834 in the firmware.
Power supply - 8 volts. Vref = 0.65V for my 1.4A stepper motors.
The first strange effect - stepper motors sound is heard BEFORE I run EQMOD (when I turn on the computer or plug USB). This sound takes only 1-2 seconds. Then I turn on EQMOD, another 1-2 sec. noise. Now, I have got EQMOD panel and I try to move S,E,N or W. Nothing happens. Even the RA and DEC coordinates on EQMOD window are not reacting to my pressing.
When I try to run AstroEQ Firmware Update Utility again. I've got messages: "Read Suceeded. EEPROM Blank or Corrupt!" and then "EEPROM Repaired. AstroEQ Ready for Configuration."

Test 3
DRV8834 on the board but I changed DRV8834 to DRV882x in the firmware. It "works" but motors sound very strange, louder and it seems to me the mount is slewing little slower.
Title: Re: [Completed] AstroEQ 8.0.3(beta)
Post by: TCWORLD on January 30, 2016, 16:26:52
@Jagho, Thanks for the feedback. I'll have a look into why the DRV8834 doesn't work yet.

Might seem a daft question, but did you upload the new firmware (from the first post of this thread)? I can't seem to recreate the EEPROM corrupt issue. It makes sense that it would happen if it was the old firmware because it wouldn't recognise the motor driver, but should be fine with the new firmware.
Title: Re: [Completed] AstroEQ 8.0.3(beta)
Post by: Jagho on January 30, 2016, 17:41:37
Yes, I've got AstroEQ7-ConfigUtility.zip file from the first post of this thread.

otherwise I would not be able to set DRV8834 in the firmware.
Title: Re: [Completed] AstroEQ 8.0.3(beta)
Post by: TCWORLD on January 30, 2016, 20:23:14
I figured you had the utility, it was just whether you had use the Upload Firmware button to load the beta firmware. Might be worth doing that again even if you already have just to make sure it is definitely on there.
Title: Re: [Completed] AstroEQ 8.0.3(beta)
Post by: Jagho on January 30, 2016, 23:17:45
Oh, I see, Tom.
I'll try to do so tomorrow and let you know.
Title: Re: [Completed] AstroEQ 8.0.3(beta)
Post by: Jagho on January 31, 2016, 09:11:05
I've got some progress, after firmware updating.
So, there's not "...EEPROM Blank or Corrupt!" message and even EQMOD is working properly and slewing but only some 30-40 seconds. Suddenly, it stops and there's no reaction like in the previous TEST 2.
I still have these 1-2 seconds sounds from motors while turning on the system. It's not a problem but I mention this because it perhaps may be a clue (or not :) )

DRV8825 board with DRV882x config settings still works properly.
Title: Re: [Completed] AstroEQ 8.0.3(beta)
Post by: TCWORLD on February 21, 2016, 16:28:24
@Jagho
I wonder if the lower supply voltage coupled with transients created by the motors is causing the +5V line to drop out and reset the ATMega.
Title: Re: [Completed] AstroEQ 8.0.3(beta)
Post by: Jagho on February 21, 2016, 23:44:38
@Jagho
I wonder if the lower supply voltage coupled with transients created by the motors is causing the +5V line to drop out and reset the ATMega.

OK, Tom,
I'll try to increse the voltage to 10.8 V (max for DRV 8834) and see what will happen.
Title: Re: [Completed] AstroEQ 8.0.3(beta)
Post by: jukkapaavilainen on September 13, 2016, 17:20:33
Hello. I'am new in here. I have weird motor problem and was curious should i try to use the beta firmware? Is this working properly.

Will do longer post about my problem when I have time.
Title: Re: [Completed] AstroEQ 8.0.3(beta)
Post by: TCWORLD on February 05, 2017, 22:24:54
Wow it's been a long time since I started trying to write the 7.5.0 firmware. In the mean time I've finished one job, moved country, started a new job and also started a PhD.

Anyway, I've finally found some time to work on the new firmware. Updates will include:


I haven't yet commited the changes to Github, but will do in the not to distant future.

I also didn't have the time this weekend to update the config utility to generate the accel/decel tables so the firmware changes can't yet be used. I will try to find time next weekend to get a beta version ready for people to test.
Title: Re: [Completed] AstroEQ 8.0.3(beta)
Post by: TCWORLD on February 08, 2017, 00:20:45
Well I've managed to finish updating the config utility to generate the new acceleration tables and configure.

I'll package it all up tomorrow and release the new beta.
Title: Re: [Completed] AstroEQ 8.0.3(beta)
Post by: TCWORLD on February 08, 2017, 18:04:25
New beta released (attached to the original post).

I would be grateful for volunteers to test it out and report back any issues faced.
Title: Re: [Completed] AstroEQ 8.0.3(beta)
Post by: Smokie on February 08, 2017, 21:00:48
hello Tom

willspend time on it tomorrow

gr Henk
Title: Re: [Completed] AstroEQ 8.0.3(beta)
Post by: Jonesdee on February 08, 2017, 21:16:31
Hi Tom

I will try it with DRV8825 drivers tomorrow and let you know.

Cheers

Dave
Title: Re: [Completed] AstroEQ 8.0.3(beta)
Post by: almcl on February 09, 2017, 11:31:15
Tom

Tried it briefly this morning (haven't used the EQ5 mount for a while so getting connected took a little thought).

First attempt reported EPROM blank or corrupt.  Subsequent attempts it reports Read Failed! Connection Unavailable.

I confirmed with version 7.4 that neither message is correct: the EPROM is still loaded and the connection still works.

Machine is an elderly Lenovo Thinkpad X61s running Windows XP pro.  This happened with both the .exe files.

Screen capture of the cmd window attached.

 
Title: Re: [Completed] AstroEQ 8.0.3(beta)
Post by: Smokie on February 09, 2017, 11:44:32
Hello Tom,
i am getting a message Failled to calculate accelleration Table,cannot cont

gr,Henk
Title: Re: [Completed] AstroEQ 8.0.3(beta)
Post by: TCWORLD on February 09, 2017, 12:05:57
Well that's a good start.

@almcl did you upload the firmware before trying to configure? The new firmware will be needed.

@Smokie could you save your settings as a .conf file and attach it to a post?
Title: Re: [Completed] AstroEQ 8.0.3(beta)
Post by: almcl on February 09, 2017, 12:35:06
No, I didn't.

Just tried it a moment ago, uploading firmware from V7.5.  The upload failed and now neither version works, both report Read Failed.

Reloaded Version 7.4 and all worked again, so tried a further upload using the deebug version which worked this time, but the EPROM read failed again.
File attached,


Title: Re: [Completed] AstroEQ 8.0.3(beta)
Post by: Smokie on February 09, 2017, 12:35:57
Hello Tom,

this is were i am

Gr,Henk
Title: Re: [Completed] AstroEQ 8.0.3(beta)
Post by: TCWORLD on February 09, 2017, 12:46:47
No, I didn't.

Just tried it a moment ago, uploading firmware from V7.5.  The upload failed and now neither version works, both report Read Failed.

Unplug everything from the AstroEQ, then plug back in power followed by USB, then try uploading the firmware again.

Did it say why the upload failed? If you run the Debug version of the config utility you will get more details in a CMD window (like Smokie's screenshot).
Title: Re: [Completed] AstroEQ 8.0.3(beta)
Post by: almcl on February 09, 2017, 12:52:44
Unplug everything from the AstroEQ, then plug back in power followed by USB, then try uploading the firmware again.

Did it say why the upload failed? If you run the Debug version of the config utility you will get more details in a CMD window (like Smokie's screenshot).

You're too quick for me , Tom  :)  I've just edited my post above to include the deebug text.
Title: Re: [Completed] AstroEQ 8.0.3(beta)
Post by: TCWORLD on February 09, 2017, 16:01:11
You're too quick for me , Tom  :)  I've just edited my post above to include the deebug text.

Well the upload appears to have been a success. If you now try disconnecting the USB and reattaching it, and the click the Configure button from the main screen does it run the configuration?
Title: Re: [Completed] AstroEQ 8.0.3(beta)
Post by: TCWORLD on February 09, 2017, 16:56:37
Hello Tom,

this is were i am

Gr,Henk

Try again now. I've uploaded a new version to the original post.

I clearly wasn't exhaustive enough in testing the acceleration table generation routines. I've relaxed on of the calculation boundaries in the new version to help it converge better.

In the mean time I've got MATLAB running to try all possible IVal/bVal combinations. Will take about 3 hours!
Title: Re: [Completed] AstroEQ 8.0.3(beta)
Post by: Smokie on February 09, 2017, 18:02:12
wil try tomorrow
gr Henk
Title: Re: [Completed] AstroEQ 8.0.3(beta)
Post by: Jonesdee on February 09, 2017, 18:13:48
Hi Tom

Tried 7.5 on 2 PCs with the same issue as already reported - EEprom Corrupt or Blank and failure to write due to connection failure.

Will watch progress and re-try later tonight or tomorrow.

Many thanks for all your efforts on our behalf when you have so much else going on right now!!!

Cheers

Dave

Edit: Should have added that V7.4 works fine on both PCs
Title: Re: [Completed] AstroEQ 8.0.3(beta)
Post by: TCWORLD on February 09, 2017, 18:15:48
Tried 7.5 on 2 PCs with the same issue as already reported - EEprom Corrupt or Blank and failure to write due to connection failure.

Which OS are you using? I wonder if it is specific to the OS.
Title: Re: [Completed] AstroEQ 8.0.3(beta)
Post by: almcl on February 09, 2017, 19:22:39
Well the upload appears to have been a success. If you now try disconnecting the USB and reattaching it, and the click the Configure button from the main screen does it run the configuration?

Afraid not.

It just says:
:O11
Awaiting Response...
null
Failed to recieve response.
Read Failed!! Connection unavailable.

Tried powering down and disconnecting but the with the same result.  Fortunately can still upload V7.4 and everything works again.

The latest debug file is attached. 
Title: Re: [Completed] AstroEQ 8.0.3(beta)
Post by: PhilCrompton on February 09, 2017, 19:47:49
Hello Tom,

Same situation here. Firmware update seems to work fine but then it fails to connect. Have attached the debug output.

One other annoyance is that after you click the Done in the configuration screen it does not close the COM port. The light on the AstroEQ is flashing like mad. This means that the Config test step cannot work successfully unless you unplug the USB cable and plug it in again before you click the Next button on the "Configuration Stored Successfully!! screen

Kind regards and good luck.

Phil

p.s. OS is Windows 7 Ultimate SP1, 32bit.

Title: Re: [Completed] AstroEQ 8.0.3(beta)
Post by: TCWORLD on February 09, 2017, 20:19:12

One other annoyance is that after you click the Done in the configuration screen it does not close the COM port. The light on the AstroEQ is flashing like mad. This means that the Config test step cannot work successfully unless you unplug the USB cable and plug it in again before you click the Next button on the "Configuration Stored Successfully!! screen


The config utility does close the COM port once it has configured - or at least it should do (it does on mine). The link light on the AstroEQ will keep blinking regardless, its basically just showing that the USB host knows it is there.

There seems to be something weird going on that I can't recreate. My PC is Win7 x64 and it works fine having tried both the x64 and x86 versions of Java 1.8.0. I've also tried a Win7 x86 virtual machine trying both JRE 1.7.0 and JRE 1.8.0, as well as a Win10 x64 virtual machine with JRE 1.8.0 and all of those also work fine.

When you try to run the config, in the debug window how long does it take between printing "Awaiting Response..." and printing "null"? Is it on the order of 10 seconds, or is it instantaneous?
Title: Re: [Completed] AstroEQ 8.0.3(beta)
Post by: Jonesdee on February 09, 2017, 20:54:29
Tried 7.5 on 2 PCs with the same issue as already reported - EEprom Corrupt or Blank and failure to write due to connection failure.

Which OS are you using? I wonder if it is specific to the OS.

Possibly Tom, both machines are running Win 10 Home with latest updates installed.  Unfortunately I don't have Win 7 running on anything at the moment.

Please excuse my ignorance but can I simply copy and paste the debug log to a text file to send it to you (or is it saved somewhere)?

Debug Log for firmware upgrade attached
Title: Re: [Completed] AstroEQ 8.0.3(beta)
Post by: TCWORLD on February 09, 2017, 21:27:13
One last new version for the evening - attached to original post.

If that doesn't work I'll give up for the night and have another look into it over the weekend.
Title: Re: [Completed] AstroEQ 8.0.3(beta)
Post by: Jonesdee on February 09, 2017, 23:51:30
Hi Tom

Downloaded the latest version and attempted to upgrade from 7.4 which I had restored using the previous config utility.

It failed with the message Read Failed!! Connection unavailable.  Debug log attached . .

Cheers
Dave
Title: Re: [Completed] AstroEQ 8.0.3(beta)
Post by: TCWORLD on February 10, 2017, 01:13:06
I've just realised I'm being completely thick!

I'm in the process of adding some smarts to allow the ST4 port to be used for an "Advanced" hand controller (basically it will be a bit banged SPI to some smarts somewhere), as well as the "Basic" hand controller (a push button to GND on each ST4 pin). The 6th unused pin on the ST-4 port with the help of a resistor is used to determine which if any hand controller is connected.

The reason I am having no problems is because I've been testing with the V4.6 hardware board I have in front of me. This already contains the necessary resistor to make the detection process work. I realise now that those of you using an older hardware variant, or one of the Mega variants will not have that resistor installed which is confusing the firmware into thinking you have plugged in a hand controller and so it disables the serial port and thus doesn't respond to the config utility! I've confirmed the issue with an Arduino Mega board I have lying around.

Until I have finalised the advanced hand controller interface and had a chance to explain where to add the new resistor, I have commented out the section of code which detects the advanced hand controller. It is still possible to use the basic hand controller as that doesn't require the resistor to function.

When everything is finalised I think I will end up having two firmware versions, one with the advanced interface for those with the necessary resistor, and one without for those who do not wish to solder on a resistor.


Those who were having the issue with the read failing, please download the latest version attached to the first post in this thread. The problem is now corrected.

I must build up an old version controller to test with as well as the new one in future.
Title: Re: [Completed] AstroEQ 8.0.3(beta)
Post by: TCWORLD on February 10, 2017, 01:26:31
I've also just thought of a possible reason why the Arduino Mega boards suffer from not being able to load EQMOD during the configuration process without unplugging and plugging back in (@ PhilCrompton what you are seeing).

After configuration is done, the firmware uses the watchdog timer to reset the MCU to pull it out of programming mode and load the new configuration. The old Arduino Mega bootloader was badly written when it comes to the watchdog and it basically gets stuck in a loop because the bootloader doesn't bother to clear the watchdog timer when it starts. When the AstroEQ firmware enables the watchdog it sets the timeout to about 65ms, whereas on the Mega boards the bootloader will take about 2 seconds before it decides to do anything with the watchdog. This puts the bootloader into an endless reset loop. (more here: http://forum.arduino.cc/index.php?topic=249195.0)

Over the weekend I'll modify the firmware so that it sets the timeout on the watchdog to be 4s on the Mega variants so that there is time for it to get through the bootloader and into the AstroEQ firmware (which will reset the watchdog correctly). This won't affect the ATMega162 versions because when I modified the bootloader for it I fixed the watchdog bug.
Title: Re: [Completed] AstroEQ 8.0.3(beta)
Post by: Jonesdee on February 10, 2017, 07:33:04
I've just realised I'm being completely thick!

I'm in the process of adding some smarts to allow the ST4 port to be used for an "Advanced" hand controller (basically it will be a bit banged SPI to some smarts somewhere), as well as the "Basic" hand controller (a push button to GND on each ST4 pin). The 6th unused pin on the ST-4 port with the help of a resistor is used to determine which if any hand controller is connected.

The reason I am having no problems is because I've been testing with the V4.6 hardware board I have in front of me. This already contains the necessary resistor to make the detection process work. I realise now that those of you using an older hardware variant, or one of the Mega variants will not have that resistor installed which is confusing the firmware into thinking you have plugged in a hand controller and so it disables the serial port and thus doesn't respond to the config utility! I've confirmed the issue with an Arduino Mega board I have lying around.

Until I have finalised the advanced hand controller interface and had a chance to explain where to add the new resistor, I have commented out the section of code which detects the advanced hand controller. It is still possible to use the basic hand controller as that doesn't require the resistor to function.

When everything is finalised I think I will end up having two firmware versions, one with the advanced interface for those with the necessary resistor, and one without for those who do not wish to solder on a resistor.


Those who were having the issue with the read failing, please download the latest version attached to the first post in this thread. The problem is now corrected.

I must build up an old version controller to test with as well as the new one in future.

Well done Tom !
Title: Re: [Completed] AstroEQ 8.0.3(beta)
Post by: almcl on February 10, 2017, 09:08:05
The latest version (downloaded this morning) works fine here, Tom.

Well done! (Again!)  Your customer service puts commercial players to shame.

Looking forward to hearing about the 'stand alone' handset-only capability. 
Title: Re: [Completed] AstroEQ 8.0.3(beta)
Post by: Smokie on February 10, 2017, 11:00:11
tested the new version this morning

not working see print scr

gr,Henk
Title: Re: [Completed] AstroEQ 8.0.3(beta)
Post by: TCWORLD on February 10, 2017, 11:20:57
tested the new version this morning

not working see print scr

gr,Henk

Make sure you upload the firmware first. You are probably running the old version as it is not responding to one of the new commands.
Title: Re: [Completed] AstroEQ 8.0.3(beta)
Post by: pierrebex on February 10, 2017, 11:53:21
Hello,
I have tried the new version; it is working well; the only problem I see is that, on a goto, the mount is going back and forth a few times before stopping to the target...
Best regards
Pierre
Title: Re: [Completed] AstroEQ 8.0.3(beta)
Post by: Smokie on February 10, 2017, 12:18:27
succes,uploaded the new version and will test it now(picture test room)
gr Henk
Title: Re: [Completed] AstroEQ 8.0.3(beta)
Post by: PhilCrompton on February 10, 2017, 12:22:39

When you try to run the config, in the debug window how long does it take between printing "Awaiting Response..." and printing "null"? Is it on the order of 10 seconds, or is it instantaneous?

Hi Tom,

Just timed it and it takes roughly 7 seconds between the "Awaiting Response ..." and the null.

Sorry I couldn't to this earlier.

Phil

p.s. Just caught up on the rest of the thread. Saw you have posted a new update after your resistor moment. Downloaded this and it all works fine (as far as I can tell without actually connecting my Ardino EQ to the mount). Great work. Thanks.
Title: Re: [Completed] AstroEQ 8.0.3(beta)
Post by: Smokie on February 10, 2017, 12:55:56
Hello Tom,

changing direction goes pretty smooth
All functions work as far as I've used them

will test some more

so far so good

gr,Henk
Title: Re: [Completed] AstroEQ 8.0.3(beta)
Post by: TCWORLD on February 10, 2017, 18:12:34
This means that the Config test step cannot work successfully unless you unplug the USB cable and plug it in again before you click the Next button on the "Configuration Stored Successfully!! screen

I've confirmed that the problem is due to the bootloader for the Arduino Mega2560 being very flaky when it comes to its handling of the watchdog. The Mega 2560 I have is 4 years old so has an old bootloader that exhibits the same problem.

After a bit of reading around, I've flashed the newer (2013) bootloader from the Arduino github:
https://github.com/arduino/ArduinoCore-avr/raw/master/bootloaders/stk500v2/stk500boot_v2_mega2560.hex

Having flashed that bootloader the problem is resolved - it can now run the test step without having to unplug the USB.

If you have another Arduino to hand or some other AVR programmer, I would highly advise anyone with an Arduino Mega 2560 version (doesn't affect the Mega 1280 or AstroEQ boards) to flash the new bootloader. Even many of the new production boards and clones use the old bootloader, so even if you bought it after 2013 it will likely need updating.
Title: Re: [Completed] AstroEQ 8.0.3(beta)
Post by: TCWORLD on February 10, 2017, 21:04:15
Hello,
I have tried the new version; it is working well; the only problem I see is that, on a goto, the mount is going back and forth a few times before stopping to the target...
Best regards
Pierre

I've had a look and there does indeed seem to be an issue somewhere causing the deceleration to overshoot, hence the back and forth. I'm looking into it.. I've found where the issue lies - I was multiplying the deceleration length by 8 in one place when high-speed goto's are used, but then multiplying it by 8 a second time in another place accidentally. As a result it was overshooting by a small amount.

I'll upload some corrected hex files shortly once I've done some more verification.
Title: Re: [Completed] AstroEQ 8.0.3(beta)
Post by: VladimirS on February 10, 2017, 21:24:34
Hi!

Now trying to upload new firmware to Arduino 2560 however getting "Read Failed. Connection unavailable" after clicking Configure button.

First thing I did wrong - tried to configure EEPROM with old firmware, config utility suggested to repair it, I proceeded. Then I uploaded .hex using avrdude and then using config utility again. I uploaded previous firmware I used, now configuration works well.

I saw the commentary about resistor. Does it cause the issue? Sorry, haven't got the idea yet.

Thank you.
Title: Re: [Completed] AstroEQ 8.0.3(beta)
Post by: Smokie on February 10, 2017, 22:59:13
always thought the small corrections just before the objekt was an EQMOD issue

gr Henk
Title: Re: [Completed] AstroEQ 8.0.3(beta)
Post by: TCWORLD on February 11, 2017, 10:33:47
always thought the small corrections just before the objekt was an EQMOD issue

There is usually one correction after the go-to, but at the moment something is causing it to overshoot even on the corrections so it ends up never quite getting to the target. I'm working on tracking it down.
Title: Re: [Completed] AstroEQ 8.0.3(beta)
Post by: TCWORLD on February 11, 2017, 11:54:32
Right, tracked down the mistake. The calculations of the deceleration distance were out by 1 step for each entry in the table, which actually ends up being about 2000 steps out when all is said and done! Additionally there was a <= sign in the decel routines which should have be <.

New hex files are attached, just extract the zip into the hex folder of the config utility and upload the firmware.
Title: Re: [Completed] AstroEQ 8.0.3(beta)
Post by: Smokie on February 11, 2017, 13:03:25
Morning Tom,

https://www.youtube.com/watch?v=bsdwycOlzT8

test video , only small corrections left near object

i can live with that :)

Gr,Henk
Title: Re: [Completed] AstroEQ 8.0.3(beta)
Post by: TCWORLD on February 11, 2017, 13:16:13

test video , only small corrections left near object


Could you download the new hex files. Looking at the number of downloads on the files, I think I added a new version just after you downloaded it as I found another issue. Looking at your video what you are seeing appears to be the problem I corrected (very large overshoot followed by a few small corrections).
Title: Re: [Completed] AstroEQ 8.0.3(beta)
Post by: Smokie on February 11, 2017, 13:25:25
downloaded from post 1 and than the result is like in the prscr attatced

gr Henk
Title: Re: [Completed] AstroEQ 8.0.3(beta)
Post by: TCWORLD on February 11, 2017, 13:31:20
Unplug power/USB and plug it back in again (power first). Weird windows glitch.
Title: Re: [Completed] AstroEQ 8.0.3(beta)
Post by: Smokie on February 11, 2017, 13:32:04
sorry ;) had to unplug all first now its oke will test some more

gr Henk
Title: Re: [Completed] AstroEQ 8.0.3(beta)
Post by: Smokie on February 11, 2017, 14:07:48
looks oke by me

only small corr left

video link:https://www.youtube.com/watch?v=KK4VRYpWhQE

gr Henk
Title: Re: [Completed] AstroEQ 8.0.3(beta)
Post by: TCWORLD on February 11, 2017, 14:17:38
Yep, that seems normal. There will always be an RA correction because the stars move while the go-to is in progress. DEC should always land at the right place.
Title: Re: [Completed] AstroEQ 8.0.3(beta)
Post by: Smokie on February 11, 2017, 14:27:46
an other test,with different go to max

https://www.youtube.com/watch?v=OTWN1y42Zpw

not the best video kw,but im happy with the results of all your work manny thanks !!

 hope fore a clear night soon so i can move to my shed

gr,Henk
Title: Re: [Completed] AstroEQ 8.0.3(beta)
Post by: TCWORLD on February 11, 2017, 15:08:52
The rate limit setting is a bit different. Basically EQMOD no longer performs a go-to movement, instead it sets the mount tracking at the requested speed until it gets to the right position. When the mount is moving quickly the encoders move faster than EQMOD can poll so you get quite an overshoot, followed by the mount spiralling around in decreasing circles to the correct place.

Everything appears to be behaving correctly in your videos, which is great. Thank you for testing the firmware.
Title: Re: [Completed] AstroEQ 8.0.3(beta)
Post by: pierrebex on February 11, 2017, 17:14:31
Hello all,
for me the last version works perfectly; well done Tom!!
With best regards
Pierre
Title: Re: [Completed] AstroEQ 8.0.3(beta)
Post by: tony on February 11, 2017, 17:19:54
Hi Tom
Where can I download the new test-version?
My stand is not quite finished yet, I'm waiting on parts until Dec. gearbox.
But there will be heavy, about 100 kg, and I think that should axelerationen was a little softer. I feel that it makes a jerk at the end.

Tony
Title: Re: [Completed] AstroEQ 8.0.3(beta)
Post by: TCWORLD on February 11, 2017, 18:19:23
Where can I download the new test-version?

Attached to the first post in this thread :).
Title: Re: [Completed] AstroEQ 8.0.3(beta)
Post by: pierrebex on February 11, 2017, 19:02:32
But i noticed the standalone mode didn't work; is it normal for this version?
Best regards
Pierre
Title: Re: [Completed] AstroEQ 8.0.3(beta)
Post by: TCWORLD on February 11, 2017, 21:02:27
But i noticed the standalone mode didn't work; is it normal for this version?

The standalone stuff before this version was never finalised. I've been making changes to it since then to settle on the most versatile approach.

I'll do a more complete write up later, but the gist of it is there are 5 pins involved in the hand controller. The four ST-4 pins are the NESW buttons (simple push button to GND). The fifth pin is the pin named IO0 in the schematic. On the Arduino Mega this is D21, on the AstroEQ PCBs it is pin4 on the GPIO header.

For the basic mode this extra pin is used firstly to detect whether to enter standalone mode, and secondly to control the speed. When the IO0 pin is pulled low, the firmware will enter standalone mode, disable the serial port, initialise the motors, enable sidereal tracking, and then the ST4 pins become NESW buttons. To switch back in the PC/EQMOD mode, simply unplug the power cable and plug back in. The IO0 pin can be pulled low at any time to enter, it doesn't have to be low at power on.

Once in standalone mode the IO0 pin controls the speed - if it is floating, the NESW buttons will move the mount at 2x sidereal speed relative to the stars (1x East, 3x West, 2x North/South), and if it is pulled low the buttons will move the mount at the goto speed as set in the config.

In order to use the standalone mode, the IO0 pin will need to be wired up to your controller.

There will also at some point in the future be an advanced hand controller which uses the same pins as the basic one. This will require the above resistor mod on older hardware in order to work. Because I understand not everyone will want to make that mod, I am going to add an option in the configuration utility to enable/disable the advanced controller mode so that hardware without the resistor will continue to be compatible with this and future firmware updates.
Title: Re: [Completed] AstroEQ 8.0.3(beta)
Post by: TCWORLD on February 12, 2017, 01:21:15
For those who like to tinker with the code, I've pushed the latest versions of the source code to the v7.5-dev (https://github.com/TCWORLD/AstroEQ/tree/v7.5-dev) branch on the AstroEQ github repository.
Title: Re: [Completed] AstroEQ 8.0.3(beta)
Post by: Smokie on February 12, 2017, 13:34:35
Hello Tom ,

the ASTROEQ  uploader screen and ASTROEQ debug screen does not work  on a W10 Home 32 bit system anymore
The 7.4 version did
on a Windows 10 pro 64 bits system all works oke
dont know if it is only my problem or a change in screen resolution problem

gr, Henk
Title: Re: [Completed] AstroEQ 8.0.3(beta)
Post by: TCWORLD on February 12, 2017, 16:55:47
the ASTROEQ  uploader screen and ASTROEQ debug screen does not work  on a W10 Home 32 bit system anymore
Could you elaborate on "does not work"? When you run the AstroEQDebug.exe file, are there any error messages logged?
Title: Re: [Completed] AstroEQ 8.0.3(beta)
Post by: Smokie on February 12, 2017, 19:37:11
hello Tom

the screen  opens a split second and dissapears
again
also with the uploadscreen were only the top section
pops up for a split cecond
as a said the 7.4 v works on the 32 b w10 home version

i use the small pc in my astro shed
on my 64 b w10 pro 7.5 opens and works fine

gr Henk
Title: Re: [Completed] AstroEQ 8.0.3(beta)
Post by: TCWORLD on February 12, 2017, 20:15:20
What version of Java do you have installed? You'll need 1.8.0 or newer.
Title: Re: [Completed] AstroEQ 8.0.3(beta)
Post by: Smokie on February 12, 2017, 21:37:19
yes that did the trick

installed the latest version of java
and now 7.5 also works on 32 b w10 home

many thanks Tom!!!

gr Henk
Title: Re: [Completed] AstroEQ 8.0.3(beta)
Post by: TCWORLD on February 12, 2017, 21:57:14
I changed to the latest version of Processing IDE when I was making the changes so as to fix a few bugs. The downside of doing so is that it doesn't support Java versions older than 1.8. I forgot to bump the required java version in the checks that are done by the exe - it should alert if java is not found or too old rather than just silently failing. I'll correct that when I release the final version.
Title: Re: [Completed] AstroEQ 8.0.3(beta)
Post by: VladimirS on February 17, 2017, 19:07:05
Hi. Tom, could you please assist with configuring firmware 7.5 version on Mega 2560? I still get "Read failed. Connection unavailable" when click Configure. Log says: "O11" while reading EEPROM. New firmware is uploaded successfully. Thank you!
Title: Re: [Completed] AstroEQ 8.0.3(beta)
Post by: VladimirS on February 26, 2017, 19:23:02
I managed to configure Mega after commenting the code in standaloneModeTest function related to automatic detection of advanced hand controller. I also changed conditions to direct comparison. Now I have only the following code which switches mode from EQMOD to basic controller when 21 pin is physically set to LOW by pressing button:
Code: [Select]
    // if (getPinValue(standalonePin[STANDALONE_IRQ]) == LOW) {
        //Must be a basic controller as pin stayed low.
        return BASIC_HC_MODE;
    }

    //If we get this far then it is floating, so we assume EQMOD mode
    return EQMOD_MODE;

Then I figured out that RA, Dec buttons (ST4) don't work at all because interrupts on 50..53 pins were not enabled like in previous firmware version. So, I've added the first line to the code:
Code: [Select]
    //For ATMega1280/2560 with Standard ST4 pins
    PCMSK0 =  0x0F; //PCINT[0..3]
    PCICR &= ~_BV(PCIE2); //disable PCInt[16..23] vector
    PCICR &= ~_BV(PCIE1); //disable PCInt[8..15]  vector
    PCICR |=  _BV(PCIE0); //enable  PCInt[0..7]   vector

Now both RA and Dec buttons work well.

According to previous Tom's post single button on 21 pin switches the mode and also changes the speed. So I'm expecting goto speed on pressing both this button and RA/Dec but the speed doesn't change.
Title: Re: [Completed] AstroEQ 8.0.3(beta)
Post by: TCWORLD on February 26, 2017, 22:19:04
The code on the Github is a work in progress - I'm still changing stuff related to the hand controller.

I think I've already found and fixed the first issue of the check of the pin needing to be inverted.

The second one was well spotted. The PCMSKn register should be initialised but for some reason when I was moving the code around I seem to have lost that line. I've corrected the code in my working copy so it will push to Github next time I commit. That actually explains why the hand controller mode is no longer working at all as per @Pierre's report in the version of the firmware in this thread.

Additionally the speed detection doesn't work as you have reported - there was another mistake around line 616 in AstroEQ.cpp where the speed detection check is backwards - so pushing the button results in low speed instead of high speed. This is something I am still changing as we speak - I'm adding a third speed option whilst also trying to make it possible to do standalone guiding.

I would suggest holding off on trying anything to do with the hand controller mode for the time being until I've finished my latest round of changes. I'm currently waiting on a new PCB to upgrade my mount (which is currently V4.0 hardware from years back) so that I can properly test out the standalone mode. That won't come for a couple of weeks. Just know that I am working on it ;)

Title: Re: [Completed] AstroEQ 8.0.3(beta)
Post by: VladimirS on February 27, 2017, 18:16:28
Hi, Tom.

Thank you for detailed answer. Great news that the work is in progress. I was just trying to speed up getting working standalone mode as I need at least mode switching and star tracking without PC.

By the way what does mean advanced hand contoller? Will it be some factory or DIY device?
Title: Re: [Completed] AstroEQ 8.0.3(beta)
Post by: TCWORLD on February 27, 2017, 19:49:28
The advanced hand controller is a plan for a future project but probably not something that will happen any time soon.

I'm hoping to build the framework for others to develop an open-source hand controller that can talk to synta mounts including AstroEQ.
Title: Re: [Completed] AstroEQ 8.0.3(beta)
Post by: tony on March 08, 2017, 07:51:25
Hi Tom
i have load the new config.
The sounds from the motors sounds much better.
 Feels like a more moderate acceleration and braking.
I will test it as soon as possible at a starry night
Title: Re: [Completed] AstroEQ 8.0.3(beta)
Post by: TCWORLD on March 12, 2017, 21:33:10
Well now that I have upgraded my mount to the latest hardware version I can start testing the basic hand controller - the hardware I had was 4-5 years old from before I added the ST-4 port.

I'm just waiting for a test hand controller PCB to turn up (hopefully Tuesday).
Title: Re: [Completed] AstroEQ 8.0.3(beta)
Post by: cuivenion on March 15, 2017, 13:04:53
Definitely interested in the hand controller. It will make the AstroEQ set up very versatile. Will you be selling hand controllers, or will it be make your own?
Title: Re: [Completed] AstroEQ 8.0.3(beta)
Post by: TCWORLD on March 15, 2017, 22:37:43
@cuivenion The aim is to have both options. Making your own should be a simple case of 4 buttons, a resistor, and a slide switch.

The version I am designing for sale is a little more complex purely to try and fit it neatly in a specific enclosure. I found a nice cheap key-fob type enclosure (Polycase FB20-5) which has 5 buttons. The circuit uses 4 for NESW and then the fifth one to toggle the speed. It's a rather interesting circuit powered entirely from the ST-4 port pull-up resistors meaning no separate supply is needed for the MCU which is latching the centre button presses to toggle the speed.

I've got a prototype of my handle design built up. Need to test it now with my mount, but it seems to be working from a button standpoint.
Title: Re: [Completed] AstroEQ 8.0.3(beta)
Post by: TCWORLD on April 09, 2017, 17:49:59
Quick update.

The fob cases finally arrived (they were on backorder for a month). I've now been able to test the hand controller design fully and make a couple of tweaks to the design. I will be sending off an order to get some made, though they won't be back from assembly until the end of May.

Additionally I've been doing further development work to the firmware to finalise the basic hand controller mode and make sure it behaves correctly. This has involved a complete redesign of the code I was using for ST4 (the upshot of which is that ST4 in EQMOD mode works better too).

I need to package up a version of the config utility and firmware which I will do this evening, and then some point this evening I will release a new beta version for people to test. The new beta firmware can be downloaded from the first post of this thread.

I will also be writing up an FAQ on how to make a simple push-button DIY version of the handcontroller in the next couple of days.

Kind Regards,

Tom.
Title: Re: [Completed] AstroEQ 8.0.3(beta)
Post by: VladimirS on April 10, 2017, 18:24:10
Hi, Tom! Great news! Is there schematic available for basic hand controller?
Title: Re: [Completed] AstroEQ 8.0.3(beta)
Post by: TCWORLD on April 10, 2017, 18:46:22
@VladimirS I've posted a quick schematic here (https://www.astroeq.co.uk/forum/index.php/topic,190.0.html). I'll do a full write up in due course.
Title: Re: [Completed] AstroEQ 8.0.3(beta)
Post by: VladimirS on April 10, 2017, 19:12:53
Thank you very much! Great work!
Title: Re: [Completed] AstroEQ 8.0.3(beta)
Post by: BigRD on April 10, 2017, 22:15:00
Hi Tom,

I thought I'd have a go at testing the latest beta with my v4.6 kit. No luck though.

1. Update Firmware
2. Uploading AstroEQ firmware - AstroEQ Firmware uploaded successfully - Next
3. EEprom read in progress
4. :011 Read failed!! Connection unavailable

I've attached a log

I've reverted back to v7.4 and tested successfully.

Win 10 x64

Cheers
Title: Re: [Completed] AstroEQ 8.0.3(beta)
Post by: TCWORLD on April 10, 2017, 23:33:54
@BigRD

Somehow I managed to corrupt the .hex files in the process of packaging it for release.

I've fixed it now (re-uploaded to the first post of this thread).


Tom.
Title: Re: [Completed] AstroEQ 8.0.3(beta)
Post by: TCWORLD on April 13, 2017, 18:18:07
I've also updated the tutorial page (https://www.astroeq.co.uk/tutorials.php?link=/doku/doku.php?id=config) on using the configuration utility to reflect the new version. If you are unsure about what any of the settings fields do, refer to that link for more info.
Title: Re: [Completed] AstroEQ 8.0.3(beta)
Post by: BigRD on April 14, 2017, 21:27:40
Thanks Tom, uploaded firmware and configuration.

Testing:

Loving the new smooth acceleration/declaration.

E, W, S working just fine. North only moves 1 step and stops. 1 mouse click equals 1 step regardless of speed selected. Any ideas?

Reverting back to 7.4 and back to working in all directions.

Regards,
Roy
Title: Re: [Completed] AstroEQ 8.0.3(beta)
Post by: TCWORLD on April 14, 2017, 21:36:48
You need to click and hold the NESW buttons in EQMOD. Just clicking will move only a couple of steps.

There shouldn't be anything wrong with the north as far as I'm aware. If south works there's no reason north shouldn't.
Title: Re: [Completed] AstroEQ 8.0.3(beta)
Post by: BigRD on April 14, 2017, 21:43:58
Hi Tom, I click and hold on N and not much happens all other directions are fine. If I reverse the direction in EQMod then North is fine and the problem move to South. I'm using the EQ5 custom pulley config.

When I revert back to 7.4 all is well again in all directions.
Title: Re: [Completed] AstroEQ 8.0.3(beta)
Post by: zozee0214 on April 15, 2017, 10:21:47
Hi!

Same issue in here. In south direction only moves 1 step, but only in slewing. In goto movement everything fine in all direction. 7.4 is OK.

Furthermore (8.0.2):
- If I set the "uStep Gear Change" to enabled, then the tracking isn't move with 16 uStep (rather then 2 uStep), goto movements is fine.
- But if I set "Gear change" to disabled, then the tracking is fine, but the goto movements is very slow  (with "Goto rate limit" set to "No limit" --> setting to 400 much faster, but not enough)
Not vice versa must be?
In 7.4 everything fine, but I wanted to use a hand controller.

Or am I doing something wrong?
Title: Re: [Completed] AstroEQ 8.0.3(beta)
Post by: TCWORLD on April 15, 2017, 11:04:20
I'll look into it on Monday when I get back from vising family.

This is why I put it out for beta test.
Title: Re: [Completed] AstroEQ 8.0.3(beta)
Post by: BigRD on April 15, 2017, 15:00:40
No hurry, family comes first 😊

Totally understand it's beta and only out for testing. Happy to assist where I can.

Enjoy your weekend.

Roy
Title: Re: [Completed] AstroEQ 8.0.3(beta)
Post by: fozzybear on April 16, 2017, 22:32:28
Hi Tom

just to confirm I too loaded latest beta release
I click and hold on N and not much happens moves 1 step at a time all other directions are fine when slewing. . I'm using the EQ5 custom pulley config as well.

When I revert back to 7.4 firmware all is well again in all directions using version 4.5 astroeq box

food for thought when you have time after easter break

regards
Andy
Title: Re: [Completed] AstroEQ 8.0.3(beta)
Post by: TCWORLD on April 17, 2017, 16:59:50
Just looking through the code on the train, and yep, I know the issue.

When I updated the ST4 code and moved it to the main run loop, I added something on the Dec that makes it stop the axis before changing direction, but I made a mistake such that is always executing the ST4 code regardless of whether or not the ST4 pin changed value. It just so happens that South is the default direction. So pressing North in EQMOD triggers the ST4 code to stop the mount, repeatedly.

I have accidentally fixed that when I was fixing another issue on Friday. I'll upload the corrected version tonight when I get back in front of my PC.

Kind Regards,
Tom.
Title: Re: [Completed] AstroEQ 8.0.3(beta)
Post by: Vasko on April 17, 2017, 17:08:24
Hi TCWORLD and all. A few years earlier, a'm build AstroEK for my EK 5, Ver. 4.6.
Now I'm going to install the new beta firmware 8.0.2. Is it possible without changing the hardware? I'm interesting for standalone AstroEQ.
I'm trying, but N command not responding.
Sorry for my bad English. :(
Greetings, Vasko from Belgrade.
Title: Re: [Completed] AstroEQ 8.0.3(beta)
Post by: TCWORLD on April 17, 2017, 17:35:08
Hi Vasko,

The V4.6 is fine for the new firmware (in fact all hardware versions should be).

I know about the North issue, it's already been reported a couple of posts ago. I have already fixed the problem but I won't be able to upload 8.0.3(beta) until I get home tonight. I'll post again here once I have uploaded it.

Kind Regards,
Tom.

Title: Re: [Completed] AstroEQ 8.0.3(beta)
Post by: TCWORLD on April 17, 2017, 19:54:07
I've updated the firmware to correct the North issue.

The download from the first post has been updated to include the new hex files, but I am also attaching just the hex files to this post so those who have already downloaded got the latest config utility don't need to download the 12MB zip archive again.
Title: Re: [Completed] AstroEQ 8.0.3(beta)
Post by: Vasko on April 17, 2017, 21:10:58
Thank's Tom! :)
Title: Re: [Completed] AstroEQ 8.0.3(beta)
Post by: fozzybear on April 18, 2017, 17:19:19
Hi Tom,
Copied new hex files and all working ok when slewing
Many thanks for all your hard work.
Andy
Title: Re: [Completed] AstroEQ 8.0.3(beta)
Post by: BigRD on April 21, 2017, 12:30:22
Testing indoors for now - there must be a break in the weather due soon.

All looking good. Nice smooth accel/dec when slewing.

Thanks Tom

Roy
Title: Re: [Completed] AstroEQ 8.0.3(beta)
Post by: Victor_M on April 22, 2017, 13:44:42
Hi Tom,
Thanks a lot for you efford and the continious improvement of the tool.

I've downloaded the new tool and updated the firmware without problems, perform the configuration steps and store the new config file, but if I try to load the configuration file previously stored the tool freezes and you are not able to enter any value in the fields. Also the values stored in the config file are not shown.
I have runned the tool as Administrator with the same results, but if you load a config file generated from the previous version of the tool, then all values are shown correctly and the tool works perfect.

I don't know if this is a bug of is just happening only to me


Kind regards,
Víctor
Title: Re: [Completed] AstroEQ 8.0.3(beta)
Post by: TCWORLD on April 22, 2017, 13:52:58
Hi Victor,

Not come across that one before. Could you download the version attached to this post (https://www.astroeq.co.uk/forum/index.php/topic,107.0.html) and run the AstroEQDebug.exe version. Then try to load the configuration file and attach any messages are reported in the command window as a text file to the beta thread (linked above).

Kind Regards,
Tom.
Title: Re: [Completed] AstroEQ 8.0.3(beta)
Post by: Victor_M on April 22, 2017, 14:04:04
Hi again Tom,

thanks for your swift answer. I'll try to downlad the tool from your link, But I've just taked a lookt into the file generated by the new tool:
:a12457600
:b113063
:s117067
:n1458
:a22457600
:b213063
:s217067
:n2458
:c11
:c20
:d11
:d232
:q10
:q20
:r10,25
:z15
:z25
:V11.8
:V21.8
:U12.666666
:U22.666666
:W1144
:W2144

and there are only tree new lines compared with the files generated by the previous version:
:q10
:q20
:r10,25

just deleting the line :r10,25 the tool can load the file without problem

regards,
Víctor
Title: Re: [Completed] AstroEQ 8.0.3(beta)
Post by: TCWORLD on April 22, 2017, 14:09:23
Ahh, it might be a locale issue - you've ended up with a comma "," as opposed to a period "." for the decimal separator. Odd that it doesn't affect the :U# and :V# fields.
Title: Re: [Completed] AstroEQ 8.0.3(beta)
Post by: Victor_M on April 22, 2017, 14:11:12
Could be, the comma was generated by the tool, so maybe a locale issue.
This is the log from the debug tool when I try to load the file:

------ Configuration Load ------
Loading: NEQ5-VBM  32 ustep OK.conf
Load successful!
RA aVal is set to: 2457600
RA bVal is set to: 13063
RA sVal is set to: 17067
RA IVal is set to: 458
DC aVal is set to: 2457600
DC bVal is set to: 13063
DC sVal is set to: 17067
DC IVal is set to: 458
RA axisReverse is set to: 1
DC axisReverse is set to: 0
RA driverVersion is set to: 1
RA microstepEnable is set to: 32
32 maps to value: 32
RA advancedHCEnable is set to: 0
RA gearchangeEnable is set to: 0
RA GuideRate is set to: 0,25
java.lang.NumberFormatException: For input string: "0,25"
        at sun.misc.FloatingDecimal.readJavaFormatString(Unknown Source)
        at sun.misc.FloatingDecimal.parseFloat(Unknown Source)
        at java.lang.Float.parseFloat(Unknown Source)
        at AstroEQUploader$UploaderGUI.updateDisplay(AstroEQUploader.java:3705)
        at AstroEQUploader.draw(AstroEQUploader.java:304)
        at processing.core.PApplet.handleDraw(PApplet.java:2418)
        at processing.awt.PSurfaceAWT$12.callDraw(PSurfaceAWT.java:1540)
        at processing.core.PSurfaceNone$AnimationThread.run(PSurfaceNone.java:31
Title: Re: [Completed] AstroEQ 8.0.3(beta)
Post by: Victor_M on April 22, 2017, 14:17:03
Hi again, Tom   ;D

by modifiying the :r1,25 line manually into :r1.25 the tool woks perfect   ::)

best regards,
Víctor

Title: Re: [Completed] AstroEQ 8.0.3(beta)
Post by: TCWORLD on April 22, 2017, 14:33:23
Hi Victor,

Yep, definitely a locale issue. Quite a simple fix. I've updated the utility on the downloads page with a patch, so this should now all be fixed.

Kind Regards,
Tom.
Title: Re: [Completed] AstroEQ 8.0.3(beta)
Post by: Victor_M on April 22, 2017, 14:55:33
You are the boss, Tom   8)

Thanks a lot and best reagards,
Víctor
Title: Re: [Completed] AstroEQ 8.0.3(beta)
Post by: doramason on April 30, 2017, 17:51:06
Hi Tom,

I've downloaded the latest the version to test and I have come across a problem with the goto rate in the config utility. If I enter 600 it is changed to 310, and 800 is changed to 2 ;D
I'm guessing something is not right. It used to give quite close numbers.

Title: Re: [Completed] AstroEQ 8.0.3(beta)
Post by: TCWORLD on April 30, 2017, 20:35:48
Hmm. Lol.

Could you let me know the rest of the config you are using?
Title: Re: [Completed] AstroEQ 8.0.3(beta)
Post by: TCWORLD on May 01, 2017, 12:23:02
Hi Tom,

I've downloaded the latest the version to test and I have come across a problem with the goto rate in the config utility. If I enter 600 it is changed to 310, and 800 is changed to 2 ;D
I'm guessing something is not right. It used to give quite close numbers.

Could you try the attached version? (copy the attached .exe to replace the one you have)
Title: Re: [Completed] AstroEQ 8.0.3(beta)
Post by: doramason on May 01, 2017, 12:39:39
Hi Tom,

I've downloaded the latest the version to test and I have come across a problem with the goto rate in the config utility. If I enter 600 it is changed to 310, and 800 is changed to 2 ;D
I'm guessing something is not right. It used to give quite close numbers.

Could you try the attached version? (copy the attached .exe to replace the one you have)

Thanks Tom, now I can get close numbers.
Title: Re: [Completed] AstroEQ 8.0.3(beta)
Post by: Smokie on June 29, 2017, 14:12:39
Hello Tom

i tried to install the 8.0 release on my new pc

it failed ,message  ; no connection availeble

can you give me a hint what migth be wrong?

wr Henk
Title: Re: [Completed] AstroEQ 8.0.3(beta)
Post by: TCWORLD on June 29, 2017, 18:00:43
Make sure the driver/COM port is set up and working. Also ensure power is connected before USB.
Title: Re: [Completed] AstroEQ 8.0.3(beta)
Post by: Smokie on June 30, 2017, 13:57:31
Hello Tom,

if i load the custom pully configuration and adjust the rates to my own values it is working fine?!

fore me a puzzle

wr,Henk