-
Ok, my rookie self has been messing with this for a few hours now. I can say I think I'm close but nothing is being displayed in HA. I successfully verified I had a good working connection between the solark and the SH-U11 with a windows machine. I installed HA-Solark PV in HCAS. It installed correctly and I can see all the devices and all the entities. It was late, and I do not remember settings anything up in the configuration. Nor can I find where to do that now. (my HA inexperience) I SSH'd into the openwrt machine and ran: mbusd -L/tmp/mbusd.log -s 9600 -P 502 -T 1000 -d -v9 The HA machine is connecting (per the log - local address 192,168.1.40) However nothing is collect and display in HA. Log clip below: 02 Apr 2023 03:01:46 conn[192.168.1.40]: state now is CONN_RESP I have unsuccessfully tried to connect with Modpoll (modpoll -b 9600 -d 8 -p none -s 1 -r 150 -c20 192.168.1.9) - get an error "Polling Slave Reply time out" Looking for pointers to complete this journey. thanks edit: I just noticed the data LED lights on the U11 are not blinking - I believe they were blinking when connected to the windows machine during testing. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
So far you have proven that your cable is OK, your SolArk is talking and that your U11 is working fine. That was a big step but not the last one. The next step is to get mbusd working properly on your router. Plug your U11 into the USB port on the back of the router. Install two kernal modules and mbusd which are not standard. Use the OpenWRT WebUI System->Software to install these. After restart, SSH into your router and look for your new serial port. My U11 shows up as /dev/ttyUSB0 #uci show mbusd Only a few should need changing. Don't forget to commit them using "uci commit" and then restart your router again. Unit test your work. Connect your windows computer to your home network and use modpoll again. This time using your router's IP address instead of a COM port. No serial parameters are used when communicating over TCP/IP. Once this is working you have proven that the HA integration can contact your SolArk. If you configured the integration properly when you installed it it will start working on its own. If you have trouble, deleted the integration, restart HA, then reinstall it and enter the router ip address. I think all the other defaults should work for you. Its easy to be tempted to just run straight to the end and hope everything will work. I call it the hope and pray method. That never works for me. Serial communications are tedious to get working but robust once they are. |
Beta Was this translation helpful? Give feedback.
-
Wooohooo |
Beta Was this translation helpful? Give feedback.
So far you have proven that your cable is OK, your SolArk is talking and that your U11 is working fine. That was a big step but not the last one. The next step is to get mbusd working properly on your router. Plug your U11 into the USB port on the back of the router.
Install two kernal modules and mbusd which are not standard. Use the OpenWRT WebUI System->Software to install these.
kmod-usb-serial-ftdi
kmod-usb-serial
mbusd
After restart, SSH into your router and look for your new serial port. My U11 shows up as /dev/ttyUSB0
Now set the modbusd parameters to match the below using uci.
#uci show mbusd
mbusd.@MbusD[0]=mbusd
mbusd.@MbusD[0].enabled='1'
mbusd.@MbusD[0].port='502'
mbusd.@MbusD[…