×

INDI Library v2.0.6 is Released (02 Feb 2024)

Bi-monthly release with minor bug fixes and improvements

Issue with ASI Power in Stellarmate OS

  • Posts: 69
  • Thank you received: 12
I use the Stellarmate OS purchased from the website and use the OS with ASIAIR Pro. When connecting to ASIAIR Power, I got the following errors:
2021-03-04T12:28:00: [ERROR] pigpio initialisation failed: -2003 
2021-03-04T12:28:00: [INFO] Hardware revision -2011. 
2021-03-04T12:28:00: [INFO] pigpio version -2011.

I tried a few commands but had no success.
stellarmate@stellarmate:~ $ sudo apt-get install pigpio-tools
Reading package lists... Done
Building dependency tree
Reading state information... Done
pigpio-tools is already the newest version (1.71-0~rpt1).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
 
stellarmate@stellarmate:~ $ sudo systemctl start pigpiod
Failed to start pigpiod.service: Unit pigpiod.service not found.
 
stellarmate@stellarmate:~/pigpio-master $ sudo apt-get install pigpio
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following additional packages will be installed:
  libpigpio-dev libpigpio1 libpigpiod-if-dev libpigpiod-if1 pigpiod
The following NEW packages will be installed:
  libpigpio-dev libpigpio1 libpigpiod-if-dev libpigpiod-if1 pigpio pigpiod
0 upgraded, 6 newly installed, 0 to remove and 5 not upgraded.
Need to get 268 kB of archives.
After this operation, 839 kB of additional disk space will be used.
Do you want to continue? [Y/n] y
Get:1 http://archive.raspberrypi.org/debian buster/main armhf libpigpio1 armhf 1.71-0~rpt1 [89.8 kB]
Get:2 http://archive.raspberrypi.org/debian buster/main armhf libpigpio-dev armhf 1.71-0~rpt1 [74.0 kB]
Get:3 http://archive.raspberrypi.org/debian buster/main armhf libpigpiod-if1 armhf 1.71-0~rpt1 [20.3 kB]
Get:4 http://archive.raspberrypi.org/debian buster/main armhf libpigpiod-if-dev armhf 1.71-0~rpt1 [71.2 kB]
Get:5 http://archive.raspberrypi.org/debian buster/main armhf pigpiod armhf 1.71-0~rpt1 [9,588 B]
Get:6 http://archive.raspberrypi.org/debian buster/main armhf pigpio armhf 1.71-0~rpt1 [3,320 B]
Fetched 268 kB in 2s (141 kB/s)
Selecting previously unselected package libpigpio1.
(Reading database ... 132628 files and directories currently installed.)
Preparing to unpack .../0-libpigpio1_1.71-0~rpt1_armhf.deb ...
Unpacking libpigpio1 (1.71-0~rpt1) ...
Selecting previously unselected package libpigpio-dev.
Preparing to unpack .../1-libpigpio-dev_1.71-0~rpt1_armhf.deb ...
Unpacking libpigpio-dev (1.71-0~rpt1) ...
Selecting previously unselected package libpigpiod-if1.
Preparing to unpack .../2-libpigpiod-if1_1.71-0~rpt1_armhf.deb ...
Unpacking libpigpiod-if1 (1.71-0~rpt1) ...
Selecting previously unselected package libpigpiod-if-dev.
Preparing to unpack .../3-libpigpiod-if-dev_1.71-0~rpt1_armhf.deb ...
Unpacking libpigpiod-if-dev (1.71-0~rpt1) ...
Selecting previously unselected package pigpiod.
Preparing to unpack .../4-pigpiod_1.71-0~rpt1_armhf.deb ...
Unpacking pigpiod (1.71-0~rpt1) ...
dpkg: error processing archive /tmp/apt-dpkg-install-EUznqT/4-pigpiod_1.71-0~rpt1_armhf.deb (--unpack):
 trying to overwrite '/usr/bin/pigpiod', which is also in package indi-asi-power 0.7-stable~202103010642
Selecting previously unselected package pigpio.
Preparing to unpack .../5-pigpio_1.71-0~rpt1_armhf.deb ...
Unpacking pigpio (1.71-0~rpt1) ...
Errors were encountered while processing:
 /tmp/apt-dpkg-install-EUznqT/4-pigpiod_1.71-0~rpt1_armhf.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
stellarmate@stellarmate:~/pigpio-master $ sudo systemctl start pigpiod
Failed to start pigpiod.service: Unit pigpiod.service not found.

Please advise what is wrong with the ASI Power library in Stellarmate OS. Thanks.

Anat
3 years 3 weeks ago #68179

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

  • Posts: 269
  • Thank you received: 53
You need to load and enable the pigpiod service before trying to start it:
sudo systemctl daemon-reload
sudo systemctl enable pigpiod.service
sudo systemctl start pigpiod.service

You should not need to install pigpio package
3 years 3 weeks ago #68186

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

  • Posts: 69
  • Thank you received: 12
stellarmate@stellarmate:~ $ sudo systemctl status pigpiod.service
Unit pigpiod.service could not be found.


The service is not there. Seem that I will need to reinstall it manually.
3 years 3 weeks ago #68188

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

  • Posts: 69
  • Thank you received: 12
Is there a simpler way to have the include directory available without compiling indi-core. I am afraid it may break original indi-core in the Stellarmate OS.
stellarmate@stellarmate:~/Projects/indi-3rdparty $ cmake -DCMAKE_INSTALL_PREFIX=/usr ~/Projects/indi-3rdparty/indi-asi-power
-- The CXX compiler identification is GNU 8.3.0
-- The C compiler identification is GNU 8.3.0
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
CMake Error at ../cmake_modules/FindINDI.cmake:285 (message):
  Could not find INDI include directory
Call Stack (most recent call first):
  CMakeLists.txt:11 (find_package)
 
 
-- Configuring incomplete, errors occurred!
See also "/home/stellarmate/Projects/indi-3rdparty/CMakeFiles/CMakeOutput.log".
3 years 3 weeks ago #68189

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

It appears the service file is never installed in the debian package... investigating
3 years 3 weeks ago #68202

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

I've updated the package, please run

sudo apt-get update && sudo apt-get -y dist-upgrade

and check again.
3 years 3 weeks ago #68204

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

  • Posts: 69
  • Thank you received: 12
Hi Jasem

It works now. Thanks a lot.

Anat
3 years 3 weeks ago #68217

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

  • Posts: 69
  • Thank you received: 12
I saved the configuration in the 3rd tab of indi-asi-power. After that, Ekos and KStars crash when starting the connection. I have to deselect ASiPower. What can be the cause? Thanks.
Last edit: 3 years 3 weeks ago by anat.
3 years 3 weeks ago #68221

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

  • Posts: 269
  • Thank you received: 53
I cannot reproduce this problem on my setup. Can you post the output from these commands:
sudo systemctl status pigpiod.service
pigs pigpv
pigs hwver

Can you attach the kstars log from the session that crashed?
3 years 3 weeks ago #68260

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

  • Posts: 69
  • Thank you received: 12
The output is below:
stellarmate@stellarmate:~ $ sudo systemctl status pigpiod.service
● pigpiod.service - pigpiod daemon to control Raspberry Pi GPIO
   Loaded: loaded (/lib/systemd/system/pigpiod.service; enabled; vendor preset: enabled)
   Active: active (running) since Sat 2021-03-06 07:46:19 UTC; 17min ago
  Process: 3238 ExecStart=/usr/bin/pigpiod (code=exited, status=0/SUCCESS)
 Main PID: 3239 (pigpiod)
    Tasks: 4 (limit: 4915)
   CGroup: /system.slice/pigpiod.service
           └─3239 /usr/bin/pigpiod
 
Mar 06 07:46:19 stellarmate systemd[1]: Starting pigpiod daemon to control Raspberry Pi GPIO...
Mar 06 07:46:19 stellarmate systemd[1]: pigpiod.service: Can't open PID file /run/pigpio.pid (yet?) after start: No suc
Mar 06 07:46:19 stellarmate systemd[1]: Started pigpiod daemon to control Raspberry Pi GPIO.
 
stellarmate@stellarmate:~ $ pigs pigpv
78
stellarmate@stellarmate:~ $ pigs hwver
12595473


You can get the log file and the screen record showing the issue from
drive.google.com/drive/folders/1OCidDWgh...2r-68upo?usp=sharing

Thanks.
Anat
3 years 3 weeks ago #68261

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

  • Posts: 269
  • Thank you received: 53
Thanks Anat - that was helpful.
Can you tell me which version of KStars you are running? It is not in the log. I did find that I had issues when I tried running KStars 3.5.3 Beta (I installed it by mistake) and it caused the driver to crash. I'm guessing some INDI incompatibility.
Running KStars 3.5.2 I had minor issues with the config files but no crashes. I've pushed through a change for that. You may want to edit your ASI Power-config.xml.default file in ~/.indi folder. The issue is that all the device types DEV00 to DEV08 are switched On. Only DEV00 should be On and the rest should be Off. This might help. Or you can even delete the file but the issue would return each time it gets recreated.
3 years 3 weeks ago #68264

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

  • Posts: 69
  • Thank you received: 12
I am using Kstars 3.5.2 stable.
The config file looks like this:
<INDIDriver>
<newSwitchVector device='ASI Power' name='DEV0'>
  <oneSwitch name='DEV00'>
      Off
  </oneSwitch>
  <oneSwitch name='DEV01'>
      On
  </oneSwitch>
  <oneSwitch name='DEV02'>
      Off
  </oneSwitch>
  <oneSwitch name='DEV03'>
      Off
  </oneSwitch>
  <oneSwitch name='DEV04'>
      Off
  </oneSwitch>
  <oneSwitch name='DEV05'>
      Off
  </oneSwitch>
  <oneSwitch name='DEV06'>
      Off
  </oneSwitch>
  <oneSwitch name='DEV07'>
      Off
  </oneSwitch>
  <oneSwitch name='DEV08'>
      Off
  </oneSwitch>
</newSwitchVector>
<newSwitchVector device='ASI Power' name='ONOFF0'>
  <oneSwitch name='ONOFF0OFF'>
      Off
  </oneSwitch>
  <oneSwitch name='ONOFF0ON'>
      On
  </oneSwitch>
</newSwitchVector>
<newNumberVector device='ASI Power' name='DUTYCYCLE0'>
  <oneNumber name='DUTYCYCLE0'>
      100
  </oneNumber>
</newNumberVector>
<newSwitchVector device='ASI Power' name='DEV1'>
  <oneSwitch name='DEV10'>
      Off
  </oneSwitch>
  <oneSwitch name='DEV11'>
      Off
  </oneSwitch>
  <oneSwitch name='DEV12'>
      Off
  </oneSwitch>
  <oneSwitch name='DEV13'>
      Off
  </oneSwitch>
  <oneSwitch name='DEV14'>
      Off
  </oneSwitch>
  <oneSwitch name='DEV15'>
      On
  </oneSwitch>
  <oneSwitch name='DEV16'>
      Off
  </oneSwitch>
  <oneSwitch name='DEV17'>
      Off
  </oneSwitch>
  <oneSwitch name='DEV18'>
      Off
  </oneSwitch>
</newSwitchVector>
<newSwitchVector device='ASI Power' name='ONOFF1'>
  <oneSwitch name='ONOFF1OFF'>
      Off
  </oneSwitch>
  <oneSwitch name='ONOFF1ON'>
      On
  </oneSwitch>
</newSwitchVector>
<newNumberVector device='ASI Power' name='DUTYCYCLE1'>
  <oneNumber name='DUTYCYCLE1'>
      100
  </oneNumber>
</newNumberVector>
<newSwitchVector device='ASI Power' name='DEV2'>
  <oneSwitch name='DEV20'>
      Off
  </oneSwitch>
  <oneSwitch name='DEV21'>
      Off
  </oneSwitch>
  <oneSwitch name='DEV22'>
      Off
  </oneSwitch>
  <oneSwitch name='DEV23'>
      Off
  </oneSwitch>
  <oneSwitch name='DEV24'>
      Off
  </oneSwitch>
  <oneSwitch name='DEV25'>
      Off
  </oneSwitch>
  <oneSwitch name='DEV26'>
      Off
  </oneSwitch>
  <oneSwitch name='DEV27'>
      On
  </oneSwitch>
  <oneSwitch name='DEV28'>
      Off
  </oneSwitch>
</newSwitchVector>
<newSwitchVector device='ASI Power' name='ONOFF2'>
  <oneSwitch name='ONOFF2OFF'>
      Off
  </oneSwitch>
  <oneSwitch name='ONOFF2ON'>
      On
  </oneSwitch>
</newSwitchVector>
<newNumberVector device='ASI Power' name='DUTYCYCLE2'>
  <oneNumber name='DUTYCYCLE2'>
      100
  </oneNumber>
</newNumberVector>
<newSwitchVector device='ASI Power' name='DEV3'>
  <oneSwitch name='DEV30'>
      Off
  </oneSwitch>
  <oneSwitch name='DEV31'>
      Off
  </oneSwitch>
  <oneSwitch name='DEV32'>
      Off
  </oneSwitch>
  <oneSwitch name='DEV33'>
      Off
  </oneSwitch>
  <oneSwitch name='DEV34'>
      Off
  </oneSwitch>
  <oneSwitch name='DEV35'>
      Off
  </oneSwitch>
  <oneSwitch name='DEV36'>
      Off
  </oneSwitch>
  <oneSwitch name='DEV37'>
      On
  </oneSwitch>
  <oneSwitch name='DEV38'>
      Off
  </oneSwitch>
</newSwitchVector>
<newSwitchVector device='ASI Power' name='ONOFF3'>
  <oneSwitch name='ONOFF3OFF'>
      Off
  </oneSwitch>
  <oneSwitch name='ONOFF3ON'>
      On
  </oneSwitch>
</newSwitchVector>
<newNumberVector device='ASI Power' name='DUTYCYCLE3'>
  <oneNumber name='DUTYCYCLE3'>
      100
  </oneNumber>
</newNumberVector>
</INDIDriver>
3 years 3 weeks ago #68266

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

Time to create page: 0.876 seconds