×

INDI Library v1.9.6 Released (21 May 2022)

Bi-monthly INDI Library released with new drivers and bug fixes.

Cannot connect to 2m Scopedome / Arduino

  • Posts: 23
  • Thank you received: 0
Dear jpaana,

curl is workling well.
Have a look to my ZIP some posts above.
Unfortunately commands are not blocking until finishing the job. So you have to check limit switches or something else additionally.

ClearSkies

Frank

PS.: 2 day ago I brought a small parcel to the post office ;-) I hope you like the content.
Name: Frank Fleischmann
Interests: nature, technics, astronomy, optics, space
Developments: motor control, sensors, networking, radio detectors astronomy, cameras for spacecrafts
Using: 3m Baader dome, 2m ScopDome, GM4000, EQ8, and homebrewed ones, echelle spectrograph and ... INDI
1 year 9 months ago #60121

Please Log in or Create an account to join the conversation.

  • Posts: 416
  • Thank you received: 154
It's actually better that they are non-blocking as things like abort wouldn't work very well otherwise. The older USB card works the same way, for example opening the shutter is just turning on a relay and the driver polls input status until the open limit switch triggers and turns the relay off. The hardware also stops the motors automatically when limits are reached. Currently the driver polls status every second by default, I wonder if that's too fast for the HTTP server in the Arduino as the driver source says the device should respond within 1-9s, but we'll see when you get to test it :)

PS: thanks, looking forward to that :)
Remote observatory running Ubuntu 21.10 x64 with ScopeDome 2M, Skywatcher EQ8, TS 8" RC, Atik 383L+, ASI178MC, ASI120MM-S, SX Lodestar X2, SX USB wheel with OAG, ZWO EAF, Gemini SnapCap, USB_DewPoint, KomaHub
1 year 9 months ago #60123

Please Log in or Create an account to join the conversation.

  • Posts: 23
  • Thank you received: 0
I noticed that the Arduino boards hangs up if you send commands too fast. Or if you press CNTRL-C while curl is still running.
Perhaps Arduino is limited to one or two html request(s) at the same time. Or it it not doing right garbage collection if there is a timeout or brake in protocol processing.
Name: Frank Fleischmann
Interests: nature, technics, astronomy, optics, space
Developments: motor control, sensors, networking, radio detectors astronomy, cameras for spacecrafts
Using: 3m Baader dome, 2m ScopDome, GM4000, EQ8, and homebrewed ones, echelle spectrograph and ... INDI
1 year 9 months ago #60137

Please Log in or Create an account to join the conversation.

  • Posts: 416
  • Thank you received: 154
ScopeDome also promised to send me a card to test with next week so that should help a lot in initial bring up. Can't test stuff that requires a dome but at least basic communications and other simple things. Just need to get coding :)
Remote observatory running Ubuntu 21.10 x64 with ScopeDome 2M, Skywatcher EQ8, TS 8" RC, Atik 383L+, ASI178MC, ASI120MM-S, SX Lodestar X2, SX USB wheel with OAG, ZWO EAF, Gemini SnapCap, USB_DewPoint, KomaHub
1 year 9 months ago #60151

Please Log in or Create an account to join the conversation.

  • Posts: 23
  • Thank you received: 0
Great news! I can do beta testing for you. And you can connect to the my astroberry if you want to check your software in reality.
Last night we did PolarAlignment. But we will need next night additionally.
ScopeDome is moving automatically via my own driver, which is using the coordinates out of indi_getprop and transformed to ScopeDome-Azimut.
But it's only a provisional. So camera isn't waiting until end of movement and so on.

I hope to find the bug why the ScopeDome shutter stopped working (only emergency buttons are active). I don't have a Windows PC, but the Polish Manufacturer wants one with TeamViewer for debugging.
Name: Frank Fleischmann
Interests: nature, technics, astronomy, optics, space
Developments: motor control, sensors, networking, radio detectors astronomy, cameras for spacecrafts
Using: 3m Baader dome, 2m ScopDome, GM4000, EQ8, and homebrewed ones, echelle spectrograph and ... INDI
1 year 9 months ago #60162

Please Log in or Create an account to join the conversation.

  • Posts: 416
  • Thank you received: 154
Took a bit longer than expected, but got a pair of controller cards today. I need to make a custom Y-split cable to power them, but hopefully during this weekend I get to test the first skeleton code I wrote earlier. I can't test all the functions as the cards aren't connected to anything, but at least the basic communication and such. Once I get that phase done you could try it with your dome. Did you get the shutter working? Could it be that the link between the cards has become unpaired for some reason?
Remote observatory running Ubuntu 21.10 x64 with ScopeDome 2M, Skywatcher EQ8, TS 8" RC, Atik 383L+, ASI178MC, ASI120MM-S, SX Lodestar X2, SX USB wheel with OAG, ZWO EAF, Gemini SnapCap, USB_DewPoint, KomaHub
1 year 8 months ago #61325

Please Log in or Create an account to join the conversation.

  • Posts: 416
  • Thank you received: 154
Got the cable made and everything seems to be working at least over USB, didn't try ethernet yet. The driver detects the card as an Arduino card, but doesn't do much else yet, but progress :)
Remote observatory running Ubuntu 21.10 x64 with ScopeDome 2M, Skywatcher EQ8, TS 8" RC, Atik 383L+, ASI178MC, ASI120MM-S, SX Lodestar X2, SX USB wheel with OAG, ZWO EAF, Gemini SnapCap, USB_DewPoint, KomaHub
1 year 8 months ago #61374

Please Log in or Create an account to join the conversation.

  • Posts: 23
  • Thank you received: 0
Thank you very much for this good news.
Actually I am waiting for the repair of my dome electronics. I sent it to ScopeDome/Poland last week.
ScopeDome offered me a very fast repair and return.
Then I will test your driver as soon as possible.

My problem isn't pairing. I tried it by pressing the buttons outside of the box and after opening the boxes I tried to connect by pressing the button on the PCB directly.
Name: Frank Fleischmann
Interests: nature, technics, astronomy, optics, space
Developments: motor control, sensors, networking, radio detectors astronomy, cameras for spacecrafts
Using: 3m Baader dome, 2m ScopDome, GM4000, EQ8, and homebrewed ones, echelle spectrograph and ... INDI
1 year 8 months ago #61417

Please Log in or Create an account to join the conversation.

  • Posts: 23
  • Thank you received: 0
I tried to connect to both boxes via USB too.
lsusb has found the arduino card, but I wasn't able to get any answer by sending the commands listed in the pdf-manual :-( I tried many different combinations of baudrates and serial setups but no success.
But it was easy to connect via Ethernet 192.168.2.120 (default) and curl command.
Name: Frank Fleischmann
Interests: nature, technics, astronomy, optics, space
Developments: motor control, sensors, networking, radio detectors astronomy, cameras for spacecrafts
Using: 3m Baader dome, 2m ScopDome, GM4000, EQ8, and homebrewed ones, echelle spectrograph and ... INDI
1 year 8 months ago #61419

Please Log in or Create an account to join the conversation.

  • Posts: 416
  • Thank you received: 154
Both my cards work fine via USB at 9600 bauds, 8N1, used Arduino IDE's serial monitor to talk to them. Was a bit confusing at first because the older card uses 115200, but I guess 9600 is still quite enough.
Remote observatory running Ubuntu 21.10 x64 with ScopeDome 2M, Skywatcher EQ8, TS 8" RC, Atik 383L+, ASI178MC, ASI120MM-S, SX Lodestar X2, SX USB wheel with OAG, ZWO EAF, Gemini SnapCap, USB_DewPoint, KomaHub
1 year 8 months ago #61428

Please Log in or Create an account to join the conversation.

  • Posts: 35
  • Thank you received: 0
Hi Jpaana

i also would be interested to control my 2m scopedome (arduino based) with Ekos, what is the status of your development ?
i can do beta testing too if needed

Regards
Eric
1 year 3 months ago #68657

Please Log in or Create an account to join the conversation.

  • Posts: 416
  • Thank you received: 154
Currently USB connection works fine and all basic features are in. I can't test them for real as I only have the controllers, they aren't connected to anything, but relays click like they should and some of the sensors give sane readings.

Unfortunately I have some regression with my own older USB Card v2.1 controller so I haven't switched over to this new version for my own use yet.

I also have a very hackish version that works with the HTTP/Ethernet connection, but it requires some changes to the INDI base classes, which I'll clean up before sending to Jasem for comments.

Up to date code can be found from github.com/jpaana/indi/tree/scopedome_update if you want to help with testing.
Remote observatory running Ubuntu 21.10 x64 with ScopeDome 2M, Skywatcher EQ8, TS 8" RC, Atik 383L+, ASI178MC, ASI120MM-S, SX Lodestar X2, SX USB wheel with OAG, ZWO EAF, Gemini SnapCap, USB_DewPoint, KomaHub
1 year 3 months ago #68659

Please Log in or Create an account to join the conversation.

Time to create page: 1.072 seconds