Skip to content

Commit

Permalink
PegasusAstro SaddlePowerBox (#1989)
Browse files Browse the repository at this point in the history
  • Loading branch information
chrysikos authored Jan 17, 2024
1 parent c2e87c2 commit 9b00c50
Show file tree
Hide file tree
Showing 4 changed files with 1,168 additions and 0 deletions.
4 changes: 4 additions & 0 deletions drivers.xml
Original file line number Diff line number Diff line change
Expand Up @@ -649,6 +649,10 @@
<driver name="Pegasus FlatMaster">indi_pegasus_flatmaster</driver>
<version>1.2</version>
</device>
<device label="Pegasus SPB" manufacturer="Pegasus Astro">
<driver name="Pegasus SPB">indi_pegasus_spb</driver>
<version>1.2</version>
</device>
<device label="PlaneWave Delta-T" manufacturer="Planewave Instruments">
<driver name="PlaneWave Delta-T">indi_planewave_deltat</driver>
<version>1.1</version>
Expand Down
9 changes: 9 additions & 0 deletions drivers/auxiliary/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,15 @@ add_executable(indi_pegasus_ppba ${pegasus_ppba_SRC})
target_link_libraries(indi_pegasus_ppba indidriver)
install(TARGETS indi_pegasus_ppba RUNTIME DESTINATION bin)


# ########## Pegasus Saddle Power Box Driver ###############
SET(pegasus_spb_SRC
pegasus_spb.cpp)

add_executable(indi_pegasus_spb ${pegasus_spb_SRC})
target_link_libraries(indi_pegasus_spb indidriver)
install(TARGETS indi_pegasus_spb RUNTIME DESTINATION bin)

# ########## RB Focus Excalibur ###############
SET(Excalibur_SRC
Excalibur.cpp)
Expand Down
Loading

12 comments on commit 9b00c50

@sonny486
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm getting a permission error:
Failed to connect to port (/dev/serial/by-id/usb-Espressif_USB_JTAG_serial_debug_unit_40:4C:CA:C8:A7:40-if00). Error: Port failure Error: Permission denied. Try adding your user to the dialout group and restart (sudo adduser $USER dialout)

@sonny486
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm going to see if I can add it to rules.d to see if that makes a difference

@knro
Copy link
Contributor

@knro knro commented on 9b00c50 Feb 2, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you, please update us on the rules. What's the VID:PID ?

@sonny486
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

303a:1001 Espressif USB JTAG/serial debug unit

I believe that is the one.

@knro
Copy link
Contributor

@knro knro commented on 9b00c50 Feb 2, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Did the udev rules trick work? you're sure there are no other ports on the sytem?

@sonny486
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No, I still have a permissions error. I also reloaded udev rules, gonna check a few things. There isn't already a pegasus.rules file somewhere else? I am in /usr/lib/udev/rules.d

@sonny486
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I even tried adding it to an existing rule to see if I could get it working, still shows permission denied.

@sonny486
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hmmm looks like it thinks this is a dialout device. Gonna grep all the rules for 303a and see if it's somewhere else.

@sonny486
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Got it, yea it looks like we needed to at my user to the dialout group to get it working. weird.
I will put in a pull request to add the 99-pegasus.rules file

@sonny486
Copy link
Contributor

@sonny486 sonny486 commented on 9b00c50 Feb 2, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Where do I add the rule for this? It's just adding vendor 303a to MODE="0666"

And I guess I we would need to test if the add user to dialout group can be resolved as well.

sudo adduser $USER dialout

@knro
Copy link
Contributor

@knro knro commented on 9b00c50 Feb 2, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@chrysikos Can you offer any help regarding the issue reported above?

@sonny486
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It may be something unique to my ubuntu setup. I will try and setup on my other x86 Ubuntu and see if it happens again.

I don't think it was a rules.d permission setting but something to do with the user not setup to use that sudo adduser $USER dialout.

I couldn't find that vendor id being used as a dialout device. So I am not sure what's going on here.

I will try it on my other system tonight if I can.

Please sign in to comment.