manio / skymax-demo

https://skyboo.net/2017/03/monitoring-voltronic-power-axpert-mex-inverter-under-linux/
GNU General Public License v2.0
52 stars 29 forks source link

Correct inverter.conf settings & How to send commands? #18

Open Edgepath opened 1 year ago

Edgepath commented 1 year ago

Hello,

trying to apply to a MasterPower (also Voltronic) MasterPower PMS 5K-48TOP Off-Grid

HINT: does this also work with USB-to-USB-Cable (Voltronic internal USB to Serial Cypress adapter) or only with COM-RJ45 connection? :D

(currently USB connected tried em all ll /dev/ttyS ttyS0 ttyS1 ttyS2 ttyS3
)

WatchPower works (using /dev/ttyS0 and /dev/ttyS1?)

have the poller binary compiled :D

dmesg [ 2.101630] usb 2-1: New USB device found, idVendor=0665, idProduct=5161, bcdDevice= 0.02 [ 2.101699] usb 2-1: New USB device strings: Mfr=3, Product=1, SerialNumber=0 [ 2.111470] hid: raw HID events driver (C) Jiri Kosina [ 2.120357] usbcore: registered new interface driver usbhid [ 2.120405] usbhid: USB HID core driver [ 2.122314] hid-generic 0003:0665:5161.0001: hiddev0,hidraw0: USB HID v1.11 Device [HID 0665:5161] on usb-0000:00:14.0-1/input0 [ 2.136531] PM: Image not found (code -22) [ 2.230243] usb 2-4: new high-speed USB device number 3 using xhci_hcd

lsusb Bus 002 Device 002: ID 0665:5161 Cypress Semiconductor USB to Serial <- that's the one

but when running the poller like this:

./inverter_poller -r "QPIGS"

no matter the settings in inverter.conf

device=/dev/hiddev0

device=/dev/hidraw1

device=/dev/ttyS0

device=/dev/ttyUSB0

reply is:

Reply: (empty)

when running WatchPower in DebugMode getting those output

==> /home/user/WatchPower/log/log4j.log <==

==> /home/user/WatchPower/log/debug/2023-06-27 USB-QT.log <== [2023-06-27 13:40:22](NAK

==> /home/user/WatchPower/log/debug/2023-06-27 USB-QVFW.log <== [2023-06-27 13:40:23](VERFW:00055.00

==> /home/user/WatchPower/log/debug/2023-06-27 Serial-QPI.log <== [2023-06-27 13:40:23]

==> /home/user/WatchPower/log/debug/2023-06-27 USB-QVFW2.log <== [2023-06-27 13:40:23](VERFW2:00098.24

==> /home/user/WatchPower/log/debug/2023-06-27 USB-QVFW3.log <== [2023-06-27 13:40:25](NAK

==> /home/user/WatchPower/log/debug/2023-06-27 Serial-QPI.log <== [2023-06-27 13:40:24] [2023-06-27 13:40:25]

==> /home/user/WatchPower/log/debug/2023-06-27 USB-VERFW:.log <== [2023-06-27 13:40:26](NAK

==> /home/user/WatchPower/log/debug/2023-06-27 Serial-QPI.log <== [2023-06-27 13:40:26]

==> /home/user/WatchPower/log/debug/2023-06-27 USB-QPIGS.log <== [2023-06-27 13:40:27](000.0 00.0 230.1 50.0 0092 0044 001 400 54.00 000 098 0047 0000 167.7 00.00 00000 00010010 00 00 00085 010

==> /home/user/WatchPower/log/debug/2023-06-27 USB-QT.log <== [2023-06-27 13:40:29](NAK

==> /home/user/WatchPower/log/debug/2023-06-27 USB-QPIRI.log <== [2023-06-27 13:40:30](230.0 21.7 230.0 50.0 21.7 5000 5000 48.0 46.0 44.0 56.0 54.0 2 030 060 0 1 1 9 01 0 0 54.0 0 0 000

==> /home/user/WatchPower/log/debug/2023-06-27 USB-QPIWS.log <== [2023-06-27 13:40:30](00000100000000000000000000000000

==> /home/user/WatchPower/log/debug/2023-06-27 USB-QT.log <== [2023-06-27 13:40:32](NAK

==> /home/user/WatchPower/log/debug/2023-06-27 USB-QBEQI.log <== [2023-06-27 13:40:32](0 060 030 060 030 58.40 000 120 0 0000

==> /home/user/WatchPower/log/debug/2023-06-27 USB-QPIRI.log <== [2023-06-27 13:40:33](230.0 21.7 230.0 50.0 21.7 5000 5000 48.0 46.0 44.0 56.0 54.0 2 030 060 0 1 1 9 01 0 0 54.0 0 0 000

==> /home/user/WatchPower/log/debug/2023-06-27 Serial-QPI.log <== [2023-06-27 13:40:34]

==> /home/user/WatchPower/log/debug/2023-06-27 USB-QSID.log <== [2023-06-27 13:40:35](1455355535553555355535

==> /home/user/WatchPower/log/debug/2023-06-27 USB-QT.log <== [2023-06-27 13:40:35](NAK

==> /home/user/WatchPower/log/debug/2023-06-27 Serial-QPI.log <== [2023-06-27 13:40:35] [2023-06-27 13:40:37]

==> /home/user/WatchPower/log/debug/2023-06-27 USB-QPIWS.log <== [2023-06-27 13:40:36](00000100000000000000000000000000

==> /home/user/WatchPower/log/debug/2023-06-27 USB-QT.log <== [2023-06-27 13:40:38](NAK

==> /home/user/WatchPower/log/debug/2023-06-27 USB-QMOD.log <== [2023-06-27 13:40:39](B

==> /home/user/WatchPower/log/debug/2023-06-27 USB-QSID.log <== [2023-06-27 13:40:38](1455355535553555355535

==> /home/user/WatchPower/log/debug/2023-06-27 Serial-QPI.log <== [2023-06-27 13:40:38]

==> /home/user/WatchPower/log/debug/2023-06-27 USB-QPIGS.log <== [2023-06-27 13:40:40](000.0 00.0 229.8 50.0 0092 0047 001 409 54.00 000 098 0047 0000 166.4 00.00 00000 00010010 00 00 00001 010

==> /home/user/WatchPower/log/debug/2023-06-27 Serial-QPI.log <== [2023-06-27 13:40:39] [2023-06-27 13:40:40]

==> /home/user/WatchPower/log/debug/2023-06-27 USB-QPIGS2.log <== [2023-06-27 13:40:41](NAK

==> /home/user/WatchPower/log/debug/2023-06-27 Serial-QPI.log <== [2023-06-27 13:40:42]

==> /home/user/WatchPower/log/debug/2023-06-27 USB-QPIWS.log <== [2023-06-27 13:40:42](00000100000000000000000000000000

==> /home/user/WatchPower/log/debug/2023-06-27 USB-QT.log <== [2023-06-27 13:40:43](NAK

tried all sorts of settings X-D

cat inverter.conf

Basic configuration options for the actual inverter polling process...

The device to read from...

Use: /dev/ttyS0 if you have a serial device,

/dev/ttyUSB0 if a USB<>Serial,

/dev/hidraw0 if you're connecting via the USB port on the inverter.

ttyS0 try this

device=/dev/hidraw1

device=/dev/ttyS0

device=/dev/ttyUSB0

HELP! THANKS :D

(really hate this mark down and rather would write

html

why are those letters so big? X-D

A13xund3r commented 1 month ago

./inverter_poller -r "QPIGS"

don't use quotation marks, it need to be like: ./inverter_poller -r QPIGS