Can you use a USB-to-RS485 adapter on the reComputer to make sure the unit itself is returning values? our OS maps one the USB ports to /dev/ttyUSB_1 and the other /dev/ttyUSB_2 so I could check that I could see the device that way first. when I did have /dev/ttyAMA2, /dev/ttyAMA3, /dev/ttyAMA5 devices listed but could NOT poll the kWh meter device, it was because the kernel module ( the r1000v1_rs485_autoflow.ko file) was not loaded. I had to both load it using a static reference to the file like: sudo insmod /home/solar/r1000v1-rs485-autoflow/r1000v1_rs485_autoflow.ko when I checked dmesg I saw:
[ 307.679976] r1000v1_rs485_autoflow: RS-485 interface has been hooked successfully
[ 312.470976] firewall denied: IN=eth0 OUT= MAC=ff:ff:ff:ff:ff:ff:c0:ee:40:71:0f:41:08:00 SRC=192.168.178.114 DST=255.255.255.255 LEN=129 TOS=0x00 PREC=0x00 TTL=255 ID=6140 PROTO=UDP SPT=50222 DPT=50222 LEN=109
I then did and tried my mbpoll command again and it worked, but on reboot I’m not sure if the kernel module reloaded. So I used the second method of sudo make dkms_install and that allowed for the module to be loaded on boot I understand because the mbpoll client commands worked afterwards, whereas they did not work before that.