Thank you for your donation!


Cloudsmith graciously provides open-source package management and distribution for our project.


Solved: RaspDAC OLED & Power management w/Moode 6.7.1
#6
(12-28-2020, 07:25 PM)JuanJB Wrote: Hi @chano22000  and @ajmuir .
I found your messages about power management problem. This is exactly the same problem I have and I guest if you could help me to fix it.

My setup includes:
AUDIOPHONICS I-Sabre ES9038Q2M DAC
AUDIOPHONICS PI-SPC II power supply
RPI 4
MOODE 6.7.1

I followed the instructions from https://github.com/audiophonics/Raspberr...management but RPI shutdown during startup process. At this point, as I cannot access to RPI, I have to re-flash a new image to SDCARD and start again from scratch. 

Please could you tell me what I'm doing wrong?. I'm sure that all files and cabling matched Audiophonics instructions with no errors (double checked)

Any info/idea would be really appreciated

Thanks a lot in advance for your help

Regards
Juan


More info found. 
I think there are wiringPi problems:

INITIAL SITUATION
-----------------
pi@moode:/usr/bin $ ./gpio readall
Oops - unable to determine board type... model: 17

pi@moode:/usr/bin $ gpio -v
gpio version: 2.50
Copyright © 2012-2018 Gordon Henderson
This is free software with ABSOLUTELY NO WARRANTY.
For details type: gpio -warranty

Raspberry Pi Details:
  Type: Unknown17, Revision: 04, Memory: 0MB, Maker: Sony
  * Device tree is enabled.
  *--> Raspberry Pi 4 Model B Rev 1.4
  * This Raspberry Pi supports user-level GPIO access.
  
ACTIONS (taken from http://wiringpi.com/wiringpi-updated-to-...rry-pi-4b/):
-------------------------------------------------------------------------------------------
1- Upgrade WiringPi to 2.52 version (it is the last one and there not will be any other as it has been deprecated)

pi@moode:/usr/bin $ cd /tmp
pi@moode:/tmp $ wget https://project-downloads.drogon.net/wir...latest.deb
pi@moode:/tmp $ sudo dpkg -i wiringpi-latest.deb

AFTER UPGRADE:
--------------
pi@moode:/home/pi $ cd /usr/bin
pi@moode:/usr/bin $ ./gpio readall
 +-----+-----+---------+------+---+---Pi 4B--+---+------+---------+-----+-----+
 | BCM | wPi |   Name  | Mode | V | Physical | V | Mode | Name    | wPi | BCM |
 +-----+-----+---------+------+---+----++----+---+------+---------+-----+-----+
 |     |     |    3.3v |      |   |  1 || 2  |   |      | 5v      |     |     |
 |   2 |   8 |   SDA.1 | ALT3 | 1 |  3 || 4  |   |      | 5v      |     |     |
 |   3 |   9 |   SCL.1 | ALT3 | 1 |  5 || 6  |   |      | 0v      |     |     |
 |   4 |   7 | GPIO. 7 | ALT3 | 1 |  7 || 8  | 1 | ALT3 | TxD     | 15  | 14  |
 |     |     |      0v |      |   |  9 || 10 | 1 | ALT3 | RxD     | 16  | 15  |
 |  17 |   0 | GPIO. 0 | ALT3 | 1 | 11 || 12 | 1 | ALT3 | GPIO. 1 | 1   | 18  |
 |  27 |   2 | GPIO. 2 | ALT3 | 1 | 13 || 14 |   |      | 0v      |     |     |
 |  22 |   3 | GPIO. 3 | ALT3 | 1 | 15 || 16 | 1 | ALT3 | GPIO. 4 | 4   | 23  |
 |     |     |    3.3v |      |   | 17 || 18 | 1 | ALT3 | GPIO. 5 | 5   | 24  |
 |  10 |  12 |    MOSI | ALT3 | 1 | 19 || 20 |   |      | 0v      |     |     |
 |   9 |  13 |    MISO | ALT3 | 1 | 21 || 22 | 1 | ALT3 | GPIO. 6 | 6   | 25  |
 |  11 |  14 |    SCLK | ALT3 | 1 | 23 || 24 | 1 | ALT3 | CE0     | 10  | 8   |
 |     |     |      0v |      |   | 25 || 26 | 1 | ALT3 | CE1     | 11  | 7   |
 |   0 |  30 |   SDA.0 | ALT3 | 1 | 27 || 28 | 1 | ALT3 | SCL.0   | 31  | 1   |
 |   5 |  21 | GPIO.21 | ALT3 | 1 | 29 || 30 |   |      | 0v      |     |     |
 |   6 |  22 | GPIO.22 | ALT3 | 1 | 31 || 32 | 1 | ALT3 | GPIO.26 | 26  | 12  |
 |  13 |  23 | GPIO.23 | ALT3 | 1 | 33 || 34 |   |      | 0v      |     |     |
 |  19 |  24 | GPIO.24 | ALT3 | 1 | 35 || 36 | 1 | ALT3 | GPIO.27 | 27  | 16  |
 |  26 |  25 | GPIO.25 | ALT3 | 1 | 37 || 38 | 1 | ALT3 | GPIO.28 | 28  | 20  |
 |     |     |      0v |      |   | 39 || 40 | 1 | ALT3 | GPIO.29 | 29  | 21  |
 +-----+-----+---------+------+---+----++----+---+------+---------+-----+-----+
 | BCM | wPi |   Name  | Mode | V | Physical | V | Mode | Name    | wPi | BCM |
 +-----+-----+---------+------+---+---Pi 4B--+---+------+---------+-----+-----+

pi@moode:/usr/bin $ gpio -v
gpio version: 2.50
Copyright © 2012-2018 Gordon Henderson
This is free software with ABSOLUTELY NO WARRANTY.
For details type: gpio -warranty

Raspberry Pi Details:
  Type: Unknown17, Revision: 04, Memory: 0MB, Maker: Sony
  * Device tree is enabled.
  *--> Raspberry Pi 4 Model B Rev 1.4
  * This Raspberry Pi supports user-level GPIO access.

NOTE THAT wiringPi version is still 2.50 (Not 2.52 as it should be). Readall now works but gpio -v info is not correct. I have found several entries in internet about this problem but after upgrading wiringPi, the output of gpio -v command reveals version 2.52 and board type is detected correctly.

ANYWAY the gpio commands don't work. See examples:

pi@moode:/usr/bin $ ./gpio -g mode 04 out
pi@moode:/usr/bin $ ./gpio -g write 04 0
pi@moode:/usr/bin $ ./gpio -g read 04
1
pi@moode:/usr/bin $ ./gpio -g mode 17 in
pi@moode:/usr/bin $ ./gpio -g write 17 0
pi@moode:/usr/bin $ ./gpio -g read 17
1

As you can see GPIOS 04 and 17 have been set to "0" but the are still "1"

If you run /home/pi/sds.sh from a linux terminal, the RPI inmediatelly shuts-down (because GPIO 17 =1)
That's why, when I use the script form power management, the RPI shuts-down at boot time.

Regards
Juan
Reply


Messages In This Thread
RE: RaspDAC OLED & Power management w/Moode 6.7.1 - by JuanJB - 01-03-2021, 07:30 PM

Forum Jump: