Corsair RMi, HXi, AXi PSU Statistics - CyanLabs's fork


Fma965

Recommended Posts

Here I used this command:
 

chmod +x /usr/local/bin/cpsumon/cpsumoncli


He proceeded to read the information again. When I reset the computer right after updating to version 6.12 the card came without any source information, when executing the command in Terminal everything worked again.

I use the Corsair AX1500i font.

Thank you for your great work GIGANODE.

Link to comment
On 5/30/2023 at 7:23 AM, jortan said:

Any idea what the issue might be here?

 

Unraid 6.12.0-rc6

 

Corsair plugin:

###2023.03.26e

- Repo forked from CyanLabs/corsairpsu-unraid. Made the necessary changes for UnRAID v.6.12.0-beta7 while maintaining backwards compatibility.

 

image.thumb.png.78d6ca2a8ed0768654292d48241906a8.png

 

ttyUSB0 does appear when the AX860i is connected:

image.png.eddaff2b819490a652e1e503c47e64cf.png

 

image.png.731d3217f161b7dddb73d6a18c715806.png

 

Apologies if I have missed something obvious

 

There is a 2nd user with the same behaviour.

 

For research, please provide your Diagnostics.

Link to comment
1 hour ago, Roger Maciel de Souza said:

Here I used this command:
 

chmod +x /usr/local/bin/cpsumon/cpsumoncli


He proceeded to read the information again. When I reset the computer right after updating to version 6.12 the card came without any source information, when executing the command in Terminal everything worked again.

I use the Corsair AX1500i font.

Thank you for your great work GIGANODE.

 

Thank you.

 

I want to know why you need to chmod the executable.

 

Please provide the Diagnostics.

Link to comment
26 minutes ago, giganode said:

I want to know why you need to chmod the executable.

 

 

The other question is why the executable is being placed in the cpsumon directory, and not in /usr/local/bin as with other users?

 

This means the executable is also not in path.  I wonder if these are related (is Unraid automatically chmod +x'ing plugin files placed in /usr/local/bin but not a subfolder?)

 

I don't have corsair psu connected currently so my diagnostics will not be useful.

Link to comment
  • 2 weeks later...
On 6/13/2023 at 7:18 AM, giganode said:


Okay, so you will need a temporary fix until the changes are released. I will send it to you via pn in a few minutes emoji846.png

@giganode if you have an update for the newer HXi models (USC-C), I'd be happy to test and help troubleshoot. I have the Corsair HX1000i which is detected as a USB device

Link to comment
Amazing! It works Thanks!
I've come back to this after a few months and it wasn't clear that these newer models are now supported -- sorry for not trying first.

You’re welcome

Right now, only the 1000W version is added, but support for the other versions should be added quickly, after getting some information from the psu.

For now there is still a double mention in the header of the widget. I still need to change that but for now it’s working
  • Like 1
Link to comment

@giganode Thanks for your efforts. I got an unexpected device code: 1b1c:1b66, and my PSU is AX860i. 

 

Quote

root@Unraid4770:~# corsairmi
No compatible devices found.
root@Unraid4770:~# chmod +x /usr/local/bin/corsairmi
root@Unraid4770:~# corsairmi
No compatible devices found.
root@Unraid4770:~# lsusb -t
/:  Bus 08.Port 1: Dev 1, Class=root_hub, Driver=vhci_hcd/8p, 5000M
/:  Bus 07.Port 1: Dev 1, Class=root_hub, Driver=vhci_hcd/8p, 480M
/:  Bus 06.Port 1: Dev 1, Class=root_hub, Driver=xhci_hcd/2p, 5000M
/:  Bus 05.Port 1: Dev 1, Class=root_hub, Driver=xhci_hcd/2p, 480M
/:  Bus 04.Port 1: Dev 1, Class=root_hub, Driver=xhci_hcd/6p, 5000M
    |__ Port 3: Dev 2, If 0, Class=Hub, Driver=hub/4p, 5000M
/:  Bus 03.Port 1: Dev 1, Class=root_hub, Driver=xhci_hcd/14p, 480M
    |__ Port 3: Dev 2, If 0, Class=Hub, Driver=hub/4p, 480M
    |__ Port 5: Dev 3, If 0, Class=Human Interface Device, Driver=usbhid, 12M
    |__ Port 5: Dev 3, If 1, Class=Human Interface Device, Driver=usbhid, 12M
    |__ Port 5: Dev 3, If 2, Class=Human Interface Device, Driver=usbhid, 12M
    |__ Port 5: Dev 3, If 3, Class=Human Interface Device, Driver=usbhid, 12M
    |__ Port 5: Dev 3, If 4, Class=Human Interface Device, Driver=usbhid, 12M
    |__ Port 5: Dev 3, If 5, Class=Human Interface Device, Driver=usbhid, 12M
    |__ Port 11: Dev 5, If 0, Class=Mass Storage, Driver=usb-storage, 480M
    |__ Port 13: Dev 6, If 0, Class=Vendor Specific Class, Driver=cp210x, 12M
    |__ Port 14: Dev 7, If 0, Class=Hub, Driver=hub/4p, 480M
        |__ Port 4: Dev 8, If 0, Class=Wireless, Driver=btusb, 12M
        |__ Port 4: Dev 8, If 1, Class=Wireless, Driver=btusb, 12M
/:  Bus 02.Port 1: Dev 1, Class=root_hub, Driver=ehci-pci/2p, 480M
    |__ Port 1: Dev 2, If 0, Class=Hub, Driver=hub/8p, 480M
/:  Bus 01.Port 1: Dev 1, Class=root_hub, Driver=ehci-pci/2p, 480M
    |__ Port 1: Dev 2, If 0, Class=Hub, Driver=hub/6p, 480M
root@Unraid4770:~# corsairmi
No compatible devices found.
root@Unraid4770:~# corsairmi /dev/hidraw0
unexpected device: 1b1c:1b66

 

Link to comment
  • 2 weeks later...
On 6/29/2023 at 7:34 PM, MarcusCST said:

@giganode Thanks for your efforts. I got an unexpected device code: 1b1c:1b66, and my PSU is AX860i. 

 

 

 

Hi,

 

to me 1b1c:1b66 seems to be the following device: Corsair IRONCLAW RGB WIRELESS Gaming Dongle.

 

Can you verify that you use that device this in your system?

Link to comment
6 hours ago, giganode said:

 

Hi,

 

to me 1b1c:1b66 seems to be the following device: Corsair IRONCLAW RGB WIRELESS Gaming Dongle.

 

Can you verify that you use that device this in your system?

Yes, I do have that wireless USB dongle for my mouse. But I also have a USB dongle for my AX860i, is there any way to enable it or make it identified?

Link to comment
17 hours ago, MarcusCST said:

Yes, I do have that wireless USB dongle for my mouse. But I also have a USB dongle for my AX860i, is there any way to enable it or make it identified?

 

for AXi PSU you need to use cpsumoncli.

 

Try this in terminal: cpsumoncli /dev/ttyUSB0

 

Keep in mind that you may need to point to another device because of the other dongle.. or just simply unplug the wireless dongle for testing.

 

Post the output pls

 

 

Edited by giganode
Link to comment
On 7/9/2023 at 8:37 AM, giganode said:

 

for AXi PSU you need to use cpsumoncli.

 

Try this in terminal: cpsumoncli /dev/ttyUSB0

 

Keep in mind that you may need to point to another device because of the other dongle.. or just simply unplug the wireless dongle for testing.

 

Post the output pls

 

 

 

image.png.b807dd74c483a892ab281f47bd0c1ebf.png

 

i got this response, is there anything wrong with my installation process?

I removed that USB dongle before typing this in command line.

besides, I can have the reading correctly now.

 

image.png.e2693dbd5d5c27b9fda07eb1033d8d3f.png

Edited by MarcusCST
Link to comment
  • 2 weeks later...

I am having a similar issue.  I have a Corsair AXi power supply.

 

root@mccserverur01:/dev# lsusb -t
/:  Bus 02.Port 1: Dev 1, Class=root_hub, Driver=ehci-pci/2p, 480M
    |__ Port 1: Dev 2, If 0, Class=Hub, Driver=hub/8p, 480M
        |__ Port 2: Dev 3, If 0, Class=Human Interface Device, Driver=usbhid, 12M
        |__ Port 4: Dev 4, If 0, Class=Vendor Specific Class, Driver=cp210x, 12M
        |__ Port 6: Dev 5, If 0, Class=Human Interface Device, Driver=usbhid, 12M
        |__ Port 6: Dev 5, If 1, Class=Human Interface Device, Driver=usbhid, 12M
        |__ Port 6: Dev 5, If 2, Class=Human Interface Device, Driver=usbhid, 12M
/:  Bus 01.Port 1: Dev 1, Class=root_hub, Driver=ehci-pci/2p, 480M
    |__ Port 1: Dev 2, If 0, Class=Hub, Driver=hub/6p, 480M
        |__ Port 2: Dev 3, If 0, Class=Mass Storage, Driver=usb-storage, 480M
        |__ Port 3: Dev 4, If 0, Class=Hub, Driver=hub/5p, 480M
            |__ Port 1: Dev 5, If 0, Class=Human Interface Device, Driver=usbhid, 1.5M
            |__ Port 1: Dev 5, If 1, Class=Human Interface Device, Driver=usbhid, 1.5M
 

root@mccserverur01:/dev# lsusb
Bus 002 Device 005: ID 046d:c52b Logitech, Inc. Unifying Receiver
Bus 002 Device 004: ID 1b1c:1c00 Corsair Controller for Corsair Link
Bus 002 Device 003: ID 051d:0002 American Power Conversion Uninterruptible Power Supply
Bus 002 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 005: ID 046b:ff10 American Megatrends, Inc. Virtual Keyboard and Mouse
Bus 001 Device 004: ID 046b:ff01 American Megatrends, Inc. Virtual Hub
Bus 001 Device 003: ID 0781:5571 SanDisk Corp. Cruzer Fit
Bus 001 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
 

root@mccserverur01:/usr/local/bin/cpsumon# cpsumoncli /dev/ttyUSB0
Corsair AXi Series PSU Monitor
(c) 2014 Andras Kovacs - [email protected]
-------------------------------------------

Dongle name: USB to SMB Bridge (Firmware by Ross Fosler)
Dongle version: 5.3

 

image.thumb.png.07cc99951e570ce8e6a4a59439ac2d45.png

 

image.png.784d8cea1f0c5533771e077367deb73a.png

 

Let me know if you need anything else.

 

Thank you

 

 

 

mccserverur01-diagnostics-20230723-1110.zip

Link to comment
1 hour ago, csmccarron said:

I am having a similar issue.  I have a Corsair AXi power supply.

 

root@mccserverur01:/dev# lsusb -t
/:  Bus 02.Port 1: Dev 1, Class=root_hub, Driver=ehci-pci/2p, 480M
    |__ Port 1: Dev 2, If 0, Class=Hub, Driver=hub/8p, 480M
        |__ Port 2: Dev 3, If 0, Class=Human Interface Device, Driver=usbhid, 12M
        |__ Port 4: Dev 4, If 0, Class=Vendor Specific Class, Driver=cp210x, 12M
        |__ Port 6: Dev 5, If 0, Class=Human Interface Device, Driver=usbhid, 12M
        |__ Port 6: Dev 5, If 1, Class=Human Interface Device, Driver=usbhid, 12M
        |__ Port 6: Dev 5, If 2, Class=Human Interface Device, Driver=usbhid, 12M
/:  Bus 01.Port 1: Dev 1, Class=root_hub, Driver=ehci-pci/2p, 480M
    |__ Port 1: Dev 2, If 0, Class=Hub, Driver=hub/6p, 480M
        |__ Port 2: Dev 3, If 0, Class=Mass Storage, Driver=usb-storage, 480M
        |__ Port 3: Dev 4, If 0, Class=Hub, Driver=hub/5p, 480M
            |__ Port 1: Dev 5, If 0, Class=Human Interface Device, Driver=usbhid, 1.5M
            |__ Port 1: Dev 5, If 1, Class=Human Interface Device, Driver=usbhid, 1.5M
 

root@mccserverur01:/dev# lsusb
Bus 002 Device 005: ID 046d:c52b Logitech, Inc. Unifying Receiver
Bus 002 Device 004: ID 1b1c:1c00 Corsair Controller for Corsair Link
Bus 002 Device 003: ID 051d:0002 American Power Conversion Uninterruptible Power Supply
Bus 002 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 005: ID 046b:ff10 American Megatrends, Inc. Virtual Keyboard and Mouse
Bus 001 Device 004: ID 046b:ff01 American Megatrends, Inc. Virtual Hub
Bus 001 Device 003: ID 0781:5571 SanDisk Corp. Cruzer Fit
Bus 001 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
 

root@mccserverur01:/usr/local/bin/cpsumon# cpsumoncli /dev/ttyUSB0
Corsair AXi Series PSU Monitor
(c) 2014 Andras Kovacs - [email protected]
-------------------------------------------

Dongle name: USB to SMB Bridge (Firmware by Ross Fosler)
Dongle version: 5.3

 

image.thumb.png.07cc99951e570ce8e6a4a59439ac2d45.png

 

image.png.784d8cea1f0c5533771e077367deb73a.png

 

Let me know if you need anything else.

 

Thank you

 

 

 

mccserverur01-diagnostics-20230723-1110.zip 184.73 kB · 0 downloads

 

Hello :) 

 

Thank you for the provides details.

 

Just for me to know.. which AXi PSU is it exactly?

 

Please verify the following with lsusb -t again before you proceed:

 

root@mccserverur01:/dev# lsusb -t
/:  Bus 02.Port 1: Dev 1, Class=root_hub, Driver=ehci-pci/2p, 480M
    |__ Port 1: Dev 2, If 0, Class=Hub, Driver=hub/8p, 480M
        |__ Port 2: Dev 3, If 0, Class=Human Interface Device, Driver=usbhid, 12M
        |__ Port 4: Dev 4, If 0, Class=Vendor Specific Class, Driver=cp210x, 12M

 

Run

 

     echo -n "2-4:1.0" > /sys/bus/usb/drivers/cp210x/bind

 

now try

 

     cpsumoncli /dev/ttyUSB0

 

If psu still doesn't answer try

 

     echo -n "2-4:1.0" > /sys/bus/usb/drivers/cp210x/unbind

     echo -n "2-4:1.0" > /sys/bus/usb/drivers/cp210x/bind

     cpsumoncli /dev/ttyUSB0

 

Can you share your final output of cpsumoncli?

Edited by giganode
Link to comment

PSU:  CORSAIR AXi Series AX1200i Digital 1200W 80 PLUS

 

Could not get the echo for unbind or bind to work.

root@mccserverur01:~# echo -n "2-4:1.0" > /sys/bus/usb/drivers/cp210x/unbind
bash: echo: write error: No such device

root@mccserverur01:~# echo -n "2-4:1.0" > /sys/bus/usb/drivers/cp210x/bind
bash: echo: write error: No such device

root@mccserverur01:~# ls -l /sys/bus/usb/drivers/cp210x
total 0
lrwxrwxrwx 1 root root    0 Jul 23 16:09 2-1.4:1.0 -> ../../../../devices/pci0000:00/0000:00:1d.0/usb2/2-1/2-1.4/2-1.4:1.0/
-rw-------       1 root root 4096 Jul 23 16:11 bind
lrwxrwxrwx 1 root root    0 Jul 23 16:09 module -> ../../../../module/usbserial/
--w-------        1 root root 4096 Jul 23 16:09 uevent
--w-------        1 root root 4096 Jul 23 16:17 unbind

 

In order to get cpsumoncli to work I had to make it executable.

root@mccserverur01:/usr/local/bin# cpsumon/cpsumoncli /dev/ttyUSB0
bash: cpsumon/cpsumoncli: Permission denied
root@mccserverur01:/usr/local/bin# cd cpsumon
root@mccserverur01:/usr/local/bin/cpsumon# ls -l
total 16
-rw-r--r--     1 root root 15760 Jun 15 08:01 cpsumoncli
drwxr-xr-x 2 root root    60 Jun 15 08:01 libcpsumon/
root@mccserverur01:/usr/local/bin/cpsumon# chmod 755 cpsumoncli

root@mccserverur01:/usr/local/bin/cpsumon# ls -l
total 16
-rwxr-xr-x  1 root root 15760 Jun 15 08:01 cpsumoncli*
drwxr-xr-x 2 root root    60 Jun 15 08:01 libcpsumon/

 

It is now working, except for getting 5v & 3v data.

image.png.7990a4a742a7e1c5a2c5d77d7e34a0c0.png

 

Thank you

 

Link to comment
On 7/23/2023 at 10:29 PM, csmccarron said:

PSU:  CORSAIR AXi Series AX1200i Digital 1200W 80 PLUS

 

Could not get the echo for unbind or bind to work.

root@mccserverur01:~# echo -n "2-4:1.0" > /sys/bus/usb/drivers/cp210x/unbind
bash: echo: write error: No such device

root@mccserverur01:~# echo -n "2-4:1.0" > /sys/bus/usb/drivers/cp210x/bind
bash: echo: write error: No such device

root@mccserverur01:~# ls -l /sys/bus/usb/drivers/cp210x
total 0
lrwxrwxrwx 1 root root    0 Jul 23 16:09 2-1.4:1.0 -> ../../../../devices/pci0000:00/0000:00:1d.0/usb2/2-1/2-1.4/2-1.4:1.0/
-rw-------       1 root root 4096 Jul 23 16:11 bind
lrwxrwxrwx 1 root root    0 Jul 23 16:09 module -> ../../../../module/usbserial/
--w-------        1 root root 4096 Jul 23 16:09 uevent
--w-------        1 root root 4096 Jul 23 16:17 unbind

 

In order to get cpsumoncli to work I had to make it executable.

root@mccserverur01:/usr/local/bin# cpsumon/cpsumoncli /dev/ttyUSB0
bash: cpsumon/cpsumoncli: Permission denied
root@mccserverur01:/usr/local/bin# cd cpsumon
root@mccserverur01:/usr/local/bin/cpsumon# ls -l
total 16
-rw-r--r--     1 root root 15760 Jun 15 08:01 cpsumoncli
drwxr-xr-x 2 root root    60 Jun 15 08:01 libcpsumon/
root@mccserverur01:/usr/local/bin/cpsumon# chmod 755 cpsumoncli

root@mccserverur01:/usr/local/bin/cpsumon# ls -l
total 16
-rwxr-xr-x  1 root root 15760 Jun 15 08:01 cpsumoncli*
drwxr-xr-x 2 root root    60 Jun 15 08:01 libcpsumon/

 

It is now working, except for getting 5v & 3v data.

image.png.7990a4a742a7e1c5a2c5d77d7e34a0c0.png

 

Thank you

 

 

May I ask why you have the following in your go file? :

echo PATH=.:$PATH:/usr/local/sbin:/usr/local/bin >>/root/.bash_profile

cp /boot/config/group /etc/group
chmod 644 /etc/group
cp /boot/bin/* /usr/local/bin
chmod 755 /usr/local/bin/*

 

Link to comment
3 hours ago, giganode said:

 

Is your cpsumoncli executable after boot?

 

Please post the output of cpsumoncli /dev/ttyUSB0

 

i don't think so, here's the result

 

root@Unraid4770:~# cpsumoncli /dev/ttyUSB0
bash: cpsumoncli: command not found
root@Unraid4770:~# 

 

Link to comment
Quote

 

May I ask why you have the following in your go file? :

echo PATH=.:$PATH:/usr/local/sbin:/usr/local/bin >>/root/.bash_profile

 

To set the path for my bash shell for Putty

 

Quote

May I ask why you have the following in your go file? 

cp /boot/config/group /etc/group

chmod 644 /etc/group 

I have custom permissions on some of my groups that I use for file sharing

 

Quote

 

May I ask why you have the following in your go file? :

cp /boot/bin/* /usr/local/bin

chmod 755 /usr/local/bin/*

 

I have some custom scripts that I install in my /usr/local/bin folder that I use for maintenance tasks

Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.