Sidewinder Posted May 17, 2019 Share Posted May 17, 2019 Hi all RPi fans with ICC, Is it possible to use the RPi to run the debian linus version of Watchpower on? If so, can one use the USB cable to communicate to the Inverter, or does one still need a USB to Serial converter, and then run both ICC & Watchpower at the same time? I would rather go this route then having a dedicated Windows machine to occasionally look at WatchPower. Your thoughts/suggestions Quote Link to comment Share on other sites More sharing options...
Arandoza Posted May 17, 2019 Share Posted May 17, 2019 Not sure if there is a Linux version of watchpower. For monitoring and control have a look at https://iccsoftware.co.za/ works with quite a few invertors. Quote Link to comment Share on other sites More sharing options...
Sidewinder Posted May 17, 2019 Author Share Posted May 17, 2019 The following platforms O/S's are supported: Quote Link to comment Share on other sites More sharing options...
Nicholas Posted June 24, 2020 Share Posted June 24, 2020 I don’t think it is possible, with the standard packages available, because of the Raspberry Pi’s ARM architecture (Not x86 or x64). Quote Link to comment Share on other sites More sharing options...
Gnome Posted August 26, 2020 Share Posted August 26, 2020 On 2019/05/17 at 8:34 AM, Sidewinder said: Hi all RPi fans with ICC, Is it possible to use the RPi to run the debian linus version of Watchpower on? If so, can one use the USB cable to communicate to the Inverter, or does one still need a USB to Serial converter, and then run both ICC & Watchpower at the same time? I would rather go this route then having a dedicated Windows machine to occasionally look at WatchPower. Your thoughts/suggestions WatchPower is written in Java so that part would work. However, they make use of a native library to communicate with the inverter. For serial they use RXTX and for USB they have their own library. They then make use of JNI (Java Native Interface) to use that library. If you compile RXTX on ARM and replace the JAR with the version built for ARM, serial port would work. You would also need to replace the JVM they bundle with WatchPower with a JVM installed on your RPI. It is definitely doable but not something a layman can do easily. wojtasek1972 1 Quote Link to comment Share on other sites More sharing options...
wojtasek1972 Posted January 19, 2023 Share Posted January 19, 2023 Znalazłem Watchpower na Raspberry Pi ale mam problem z zaistalowniem go. Jeśli ktoś ma chęć to podeśle komuś ten program. Quote Link to comment Share on other sites More sharing options...
gamelaster Posted September 29, 2023 Share Posted September 29, 2023 WatchPower is written in Java so that part would work. However, they make use of a native library to communicate with the inverter. For serial they use RXTX and for USB they have their own library. They then make use of JNI (Java Native Interface) to use that library. If you compile RXTX on ARM and replace the JAR with the version built for ARM, serial port would work. You would also need to replace the JVM they bundle with WatchPower with a JVM installed on your RPI. It is definitely doable but not something a layman can do easily. I did not noticed RXTX library here, but rather jSerialComm2.7.jar, which seems to not use native libraries. Only thing which uses native code, is libUSBDevice.so, used by WatchPower.jar directly. I installed 32-bit Linux version of WatchPower on x86 Linux PC, copied it over Raspberry Pi, made some modifications to LAX config to not use embedded Java VM (because it is x86 one) and some other modifications, to launch it. Still, for having working USB connection, I written my own libUSBDevice.so replacement, and it works quite well so far. raytry 1 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.