-
Notifications
You must be signed in to change notification settings - Fork 25
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Problem with configuration modbus-client #18
Comments
I have the same tracer. |
I was able to install the RX driver thanks to your hint! Many thanks for this! Here the new error-log in /var/log/daemon.log: Mar 21 13:17:12 rpi3 Node-RED[409]: 21 Mar 13:17:12 - [error] [modbus-flex-getter:Modbus Get] Error: Client Not Ready To Read At State reconnecting Device ttyXRUSB0 is ready! root@rpi3: The XR driver is loaded: dmesg | grep usb Thank you for your quick help. |
Question: "message: "TypeError: Cannot read property 'lastUpdatedAt' of null", I probably did it completely wrong ... |
If I don't find it I'll reinstall the raspi image and node-red too. The real problem was actually the missing XR driver as Adam wrote. |
Change the type of Modbus server to "Serial" from "Serial Expert". |
The problem could be changes in the register addresses and function code of the newly purchased EPEver Tracer 3210AN. I found references to this while researching. If someone has the same problem, they can have a look here: https://github.com/rosswarren/epevermodbus After installing you find in folder ./epevermodbus driver.py. |
@mmsfla if you are still stuck I wrote up a step by step foolproof guide. https://medium.com/@mitchross09/solar-energy-monitoring-with-raspberry-pi-and-node-red-ed59e287cdd4 |
for some reason after I remove the CDC-ACM driver and installing the driver I can't find the /dev/ttyXRUSB0. I tried it many times in different orders but same result. anyone can help? thanks in advance |
Hello Adam,
thank you for your hard work.
I have a connection problem.
I am using epever tracer 3210an, a RS485 USB cable and a RASPI 3b. I installed Node-Red yesterday following your instructions. But unfortunately I can't get in touch with EPEver.
Here is the event in /var/log/daemon.log:
{
Mar 20 16:00:50 rpi3 Node-RED[410]: payload: {
Mar 20 16:00:50 rpi3 Node-RED[410]: value: undefined,
Mar 20 16:00:50 rpi3 Node-RED[410]: unitid: 1,
Mar 20 16:00:50 rpi3 Node-RED[410]: fc: 4,
Mar 20 16:00:50 rpi3 Node-RED[410]: address: 12544,
Mar 20 16:00:50 rpi3 Node-RED[410]: quantity: 18,
Mar 20 16:00:50 rpi3 Node-RED[410]: emptyMsgOnFail: true,
Mar 20 16:00:50 rpi3 Node-RED[410]: keepMsgProperties: true,
Mar 20 16:00:50 rpi3 Node-RED[410]: messageId: new ObjectId("623741a2fcca8f991afd26ab")
Mar 20 16:00:50 rpi3 Node-RED[410]: },
Mar 20 16:00:50 rpi3 Node-RED[410]: topic: 'livestats',
Mar 20 16:00:50 rpi3 Node-RED[410]: _msgid: 'e897b8b8ad8aa219',
Mar 20 16:00:50 rpi3 Node-RED[410]: messageId: new ObjectId("623741a2fcca8f991afd26ab"),
Mar 20 16:00:50 rpi3 Node-RED[410]: error: {
Mar 20 16:00:50 rpi3 Node-RED[410]: message: 'Error: Client Not Ready To Read At State reconnecting',
Mar 20 16:00:50 rpi3 Node-RED[410]: source: {
Mar 20 16:00:50 rpi3 Node-RED[410]: id: '2c18fdaf.8153d2',
Mar 20 16:00:50 rpi3 Node-RED[410]: type: 'modbus-flex-getter',
Mar 20 16:00:50 rpi3 Node-RED[410]: name: 'Modbus Get',
Mar 20 16:00:50 rpi3 Node-RED[410]: count: 1
Mar 20 16:00:50 rpi3 Node-RED[410]: },
Mar 20 16:00:50 rpi3 Node-RED[410]: stack: 'Error: Client Not Ready To Read At State reconnecting\n' +
Mar 20 16:00:50 rpi3 Node-RED[410]: ' at Object. (/home/pi/.node-red/node_modules/node-red-contrib-modbus/modbus/maps/modbus-client.js:472:15)\n' +
Mar 20 16:00:50 rpi3 Node-RED[410]: ' at Object.emit (events.js:314:20)\n' +
Mar 20 16:00:50 rpi3 Node-RED[410]: ' at Object.emit (/usr/lib/node_modules/node-red/node_modules/@node-red/runtime/lib/nodes/Node.js:185:20)\n' +
Mar 20 16:00:50 rpi3 Node-RED[410]: ' at Object._inputCallback (/home/pi/.node-red/node_modules/node-red-contrib-modbus/modbus/maps/modbus-flex-getter.js:146:21)\n' +
Mar 20 16:00:50 rpi3 Node-RED[410]: ' at /usr/lib/node_modules/node-red/node_modules/@node-red/runtime/lib/nodes/Node.js:207:26\n' +
Mar 20 16:00:50 rpi3 Node-RED[410]: ' at Object.trigger (/usr/lib/node_modules/node-red/node_modules/@node-red/util/lib/hooks.js:149:13)\n' +
Mar 20 16:00:50 rpi3 Node-RED[410]: ' at Object.Node._emitInput (/usr/lib/node_modules/node-red/node_modules/@node-red/runtime/lib/nodes/Node.js:199:11)\n' +
Mar 20 16:00:50 rpi3 Node-RED[410]: ' at Object.Node.emit (/usr/lib/node_modules/node-red/node_modules/@node-red/runtime/lib/nodes/Node.js:183:25)\n' +
Mar 20 16:00:50 rpi3 Node-RED[410]: ' at Object.Node.receive (/usr/lib/node_modules/node-red/node_modules/@node-red/runtime/lib/nodes/Node.js:482:10)\n' +
Mar 20 16:00:50 rpi3 Node-RED[410]: ' at Immediate._onImmediate (/usr/lib/node_modules/node-red/node_modules/@node-red/runtime/lib/flows/Flow.js:814:52)'
Mar 20 16:00:50 rpi3 Node-RED[410]: }
Mar 20 16:00:50 rpi3 Node-RED[410]: }
I configured the modbus clients as follows:
My cable is recognized, a driver is loaded.
I checked that with lsusb and in dmesg.
Can you spot an error in the screenshot?
Many thanks in advance
Frank
The text was updated successfully, but these errors were encountered: