×

INDI Library v2.0.7 is Released (01 Apr 2024)

Bi-monthly release with minor bug fixes and improvements

PegasusAstro Pocket Powerbox Advance - INDI driver Ubuntu

  • Posts: 91
  • Thank you received: 18
I have all the available command tables Pegasus Astro has posted and commands/responses in some cases
are different between devices. For example, PC command on the hub means print uptime in ms but on UPB it means
print power consumption, turning a port on or off on the hub is U1:b for example, but on UPB its PU:b .
3 years 9 months ago #55909

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

  • Posts: 18
  • Thank you received: 1
It's great that you are working on this. Received my powerbox advanced today and can't wait to integrate it.
Thank you!
3 years 9 months ago #56020

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

  • Posts: 91
  • Thank you received: 18
actually, Anthony H beat me to it. It might be available on the bleeding edge nightly builds. you
can see the activity on github here: tinyurl.com/yb7qepfu
There are some other features not coded into the driver that could be added, including
detection of device on the I2C channel (temp/humid sensor, external motor controller) and
control of the USB hub.
Last edit: 3 years 9 months ago by Dean. Reason: spelling
3 years 9 months ago #56025

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

  • Posts: 321
  • Thank you received: 19
Oh this is great news.
Actually i allready got mine and it is up and running.
Tried to use the driver provided in KStars 3.4.2 but this makes the system unstable, though it connects.

ATM the Box is working out of box, but it would be nice to controll the heater, since its a bit to warm right now.
And having controll over this very nice device would be great.

Greets!
Niki
Skywatcher EQ6-R | Lacerta 10" Carbon-Newton | Lacerta MFoc Motorfocus | Moravian G2 8300 Color | Canon EOS 5DMarkIIIa | Lodestar X2 guiding cam | KSTARS 3.4.3. on my outdoor-Laptop with KDE-Neon/Plasma | KSTARS 3.4.3. on Remote-IMac with Catalina | KSTARS 3.4.3 on Remote-Macbook Air with Catalina
The following user(s) said Thank You: Craig
3 years 9 months ago #56040
Attachments:

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

  • Posts: 91
  • Thank you received: 18
if you run kstars-bleeding on your OS and try the driver out, please do report any bugs with voluminous detail: either log files
or your observations. That way, we can all make it better ;)
The following user(s) said Thank You: Craig
3 years 9 months ago #56072

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

  • Posts: 2
  • Thank you received: 1
There is a hidden feature in PPB Advance.

USB Hub is fully manageable (actually you can turn ON /OFF individually <strong>each USB2 or USB3 port)</strong>

Please check uhubctl project : github.com/mvp/uhubctl <- (it will be very neat if someone can use this library at Inidlib)


Example of listing all USB2 and USB3 ports of PPBADV:
evansg$ uhubctl
 
Current status for hub 20-7 [2109:0813 VIA Labs, Inc. USB3.0 Hub, USB 3.00, 4 ports]
  Port 1: 02a0 power 5gbps Rx.Detect
  Port 2: 02a0 power 5gbps Rx.Detect
  Port 3: 02a0 power 5gbps Rx.Detect
  Port 4: 02a0 power 5gbps Rx.Detect
Current status for hub 20-6 [2109:2813 VIA Labs, Inc. USB2.0 Hub, USB 2.10, 4 ports]
  Port 1: 0103 power enable connect [0403:6015 Pegasus Astro PPB-ADV revA PPBA4PWG9Q]
  Port 2: 0100 power
  Port 3: 0100 power
  Port 4: 0100 power

Example of switching OFF USB port1:
$ uhubctl --ports 1 --action 0
Current status for hub 20-7 [2109:0813 VIA Labs, Inc. USB3.0 Hub, USB 3.00, 4 ports]
  Port 1: 02a0 power 5gbps Rx.Detect
Sent power off request
New status for hub 20-7 [2109:0813 VIA Labs, Inc. USB3.0 Hub, USB 3.00, 4 ports]
  Port 1: 0080 off
Current status for hub 20-6 [2109:2813 VIA Labs, Inc. USB2.0 Hub, USB 2.10, 4 ports]
  Port 1: 0103 power enable connect [0403:6015 Pegasus Astro PPB-ADV revA PPBA4PWG9Q]
Sent power off request
New status for hub 20-6 [2109:2813 VIA Labs, Inc. USB2.0 Hub, USB 2.10, 4 ports]
  Port 1: 0000 off
The following user(s) said Thank You: Craig
Last edit: 3 years 9 months ago by Evangelos Souglakos.
3 years 9 months ago #56158

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

  • Posts: 91
  • Thank you received: 18
From the github repo for uhubctl:
"While uhubctl compiles on Windows, USB power switching does not work on Windows because libusb is using winusb.sys driver,
which according to Microsoft does not support necessary USB control requests. This may be fixed if libusb starts supporting different driver on Windows"

likely this would mean that Win OS users will not get the benefit of USB on/off control. I don't see any rules
in the indi lib developer manual that precludes adding this for linux and mac platforms. Can someone with more
authority comment ?
3 years 9 months ago #56214

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

  • Posts: 294
  • Thank you received: 54
Awaiting my PPBA anytime soon (?). Thanks for all the effort.

I wonder if Pegasus will add USB on/off control in a future firmware upgrade as I am certain people would appreciate. That could affect their UPBV2 sales a bit though. At least there is an alternate solution for Linux users.
3 years 9 months ago #56221

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

  • Posts: 131
  • Thank you received: 11
I’ve got mine showing up in the next few days.

I’ve currently got v1.5.1 of StellarMate OS and it’s been really solid. Are any features it supports on this slightly older build?

Does the latest version of StellarMate OS support it yet?
3 years 9 months ago #56477

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

You can switch to beta channel and get it, or wait until stable is released. I plan to have everything released before July 15th.
The following user(s) said Thank You: Craig
3 years 9 months ago #56491

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

  • Posts: 17
  • Thank you received: 3
I see that Pegasus PPBA (indi_pegasus_ppba) v1.0 has been released in indi-full/focal 1.8.6~202007201351~ubuntu20.04.1

Unfortunately, I get a serial time-out error when trying to connect at 9600 baud with both of the available serial ports.

usbdevices on ubuntu sees this:

Also:

The two attached ZWO cameras connect with no problems, but the driver attempts to connect to /dev/ttyUSB0 and immediately gets a Serial read error: Timeout error, and then trys /dev/ttyUSB1 and hangs. I don't seem to be able to input any other device paths, and the scan ports doesn't produce any alternatives.

Suggestions?
3 years 8 months ago #57347

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

  • Posts: 17
  • Thank you received: 3
A followup to my post - upon connecting my Mac to a remote INDI session to the Ubuntu host (which is connected to the PPBA), the Mac instance of INDI connects the (remote) PPBA just fine. I did a ~4 hour session last night, with auto-dew heaters enabled, and everything seems to work as expect.

One item I don't recall seeing is the ability to control each of the 4 individual 12V ports, but will look again when I get back to my scope.
3 years 8 months ago #57363

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

Time to create page: 1.468 seconds