dirkjanfaber / node-red-contrib-victron-vedirect-usb Goto Github PK
View Code? Open in Web Editor NEWNode-RED node for connecting to Victron equipment via a VE.Direct USB cable.
Node-RED node for connecting to Victron equipment via a VE.Direct USB cable.
Hi, would like to use your Node red module, however the USB filter is causing a problem. I have a third party isolated, quad UART to single USB board from dupa.it so the filter is making it so that I cant use the module. Is there a way to remove or amend the filter to include this device?
lsusb shows:
Bus 001 Device 003: ID 0403:6011 Future Technology Devices International, Ltd FT4232H Quad HS USB-UART/FIFO IC
Yesterday, I've swapped a Smart Solar 150/50 by a 150/70 rev2.
Unfortuneately the messages are now quite strange with the new one:
I am getting 2 messages:
{"topic":1717845188714,"_msgid":"304510e93e9d7287","payload":{"ERR":{"value":0,"description":"Error code","units":""},"LOAD":{"value":"ON","description":"Load output state (ON/OFF)","units":"W"},"Relay":{"value":"OFF","description":"Relay state","units":""},"H19":{"value":269,"description":"Yield total (user resettable counter)","units":"0.01 kWh"},"H20":{"value":269,"description":"Yield today","units":"0.01 kWh"},"H21":{"value":1081,"description":"Maximum power today","units":"W"},"H22":{"value":0,"description":"Yield yesterday","units":"0.01 kWh"},"H23":{"value":0,"description":"Maximum power yesterday","units":"W"},"HSDS":{"value":0,"description":"Day sequence number (0..364)","units":""}}}
{"topic":1717845189758,"_msgid":"ef3f43bf2ace6719","payload":{"PID":{"value":"0xA06C","product":"SmartSolar MPPT 150|70 rev2","description":"ProductID","units":""},"FWE":{"value":313,"description":"Firmware version (24 bit)","units":""},"SER#":{"value":"HQ2247RRTND","description":"Serial number","units":""},"V":{"value":13150,"description":"Main or channel 1 (battery) voltage","units":"mV"},"I":{"value":15400,"description":"Main or channel 1 battery current","units":"mA"},"VPV":{"value":30740,"description":"Panel voltage","units":"mV"},"PPV":{"value":207,"description":"Panel power","units":"W"},"MPPT":{"value":2,"description":"Tracker operation mode","units":""},"CS":{"value":3,"description":"State of operation","units":""},"OR":{"value":"0x00000000","description":"Off reason","units":""}}}
So I get sometimes in a row the one than it switches to the other and it is toggling.
With the old device, it was just one message including everything.
What might be the problem ?
I already downgraded vom version 315 to 313 but this doesnt makes a difference.
In version 0.1.1 the dropdown menu not get populated. I'm using 3 original VE.Direct cables.
deunan@victron-lab:~$ ls -ls /dev/ttyUSB*
0 crw-rw-rw- 1 root dialout 188, 0 Mar 20 09:20 /dev/ttyUSB0
0 crw-rw-rw- 1 root dialout 188, 1 Mar 20 09:20 /dev/ttyUSB1
0 crw-rw-rw- 1 root dialout 188, 2 Mar 20 09:20 /dev/ttyUSB2
0|node-red | TypeError: bindings.list is not a function
0|node-red | at /home/deunan/.node-red/node_modules/node-red-contrib-victron-vedirect-usb/src/nodes/vedirect-usb.js:61:14
0|node-red | at Layer.handle [as handle_request] (/usr/lib/node_modules/node-red/node_modules/express/lib/router/layer.js:95:5)
0|node-red | at next (/usr/lib/node_modules/node-red/node_modules/express/lib/router/route.js:144:13)
0|node-red | at Route.dispatch (/usr/lib/node_modules/node-red/node_modules/express/lib/router/route.js:114:3)
0|node-red | at Layer.handle [as handle_request] (/usr/lib/node_modules/node-red/node_modules/express/lib/router/layer.js:95:5)
0|node-red | at /usr/lib/node_modules/node-red/node_modules/express/lib/router/index.js:284:15
0|node-red | at Function.process_params (/usr/lib/node_modules/node-red/node_modules/express/lib/router/index.js:346:12)
0|node-red | at next (/usr/lib/node_modules/node-red/node_modules/express/lib/router/index.js:280:10)
0|node-red | at expressInit (/usr/lib/node_modules/node-red/node_modules/express/lib/middleware/init.js:40:5)
0|node-red | at Layer.handle [as handle_request] (/usr/lib/node_modules/node-red/node_modules/express/lib/router/layer.js:95:5)
0|node-red | TypeError: bindings.list is not a function
0|node-red | at /home/deunan/.node-red/node_modules/node-red-contrib-victron-vedirect-usb/src/nodes/vedirect-usb.js:61:14
0|node-red | at Layer.handle [as handle_request] (/usr/lib/node_modules/node-red/node_modules/express/lib/router/layer.js:95:5)
0|node-red | at next (/usr/lib/node_modules/node-red/node_modules/express/lib/router/route.js:144:13)
0|node-red | at Route.dispatch (/usr/lib/node_modules/node-red/node_modules/express/lib/router/route.js:114:3)
0|node-red | at Layer.handle [as handle_request] (/usr/lib/node_modules/node-red/node_modules/express/lib/router/layer.js:95:5)
0|node-red | at /usr/lib/node_modules/node-red/node_modules/express/lib/router/index.js:284:15
0|node-red | at Function.process_params (/usr/lib/node_modules/node-red/node_modules/express/lib/router/index.js:346:12)
0|node-red | at next (/usr/lib/node_modules/node-red/node_modules/express/lib/router/index.js:280:10)
0|node-red | at expressInit (/usr/lib/node_modules/node-red/node_modules/express/lib/middleware/init.js:40:5)
0|node-red | at Layer.handle [as handle_request] (/usr/lib/node_modules/node-red/node_modules/express/lib/router/layer.js:95:5)
I am using v.0.1.2 and I connected the raspberry to a SmartSolar MPPPT with firmware version 161. NodeRed is v3.0.2 and Redmatic isx 7.2.1
I am setting up an VE.direct USB device and intiially everything is ok, but after some seconds the message is not altering any more. It sends every second the same message (with actual time stamp), but the values included are the old. And these are repeated over and over again every second (the injection interval). After redeployment of the flow it is ok again (for some seconds and than it repeats again....
hi,
thank you for maintaining and developing this node, it has been extremely useful.
I've noticed an issue that occurs when the MPPT is disconnected, such as when the battery is disconnected. In this scenario, the system continues to transmit the last received data. Although this situation might be rare in practical use, it would be better if no data were transmitted instead of sending incorrect or outdated data.
Thank you for looking into this.
I thought I just tried this but had no Victron Cable at hand, so I took another one from Prolific Technology Inc. with an ADUM1201 isolation to make sure I do not kill anything. I edited vedirect-usb.js restarted Node Red and indeed the cable showed in the port list of the node. I added an inject node and a debug node. Immediately the node showed the correct model, but when I activate inject nothing spectacular happens on the debug, i.e. only the following is shown
9.5.2023, 14:33:04[node: debug 17](http://192.168.173.122:1880/#) msg : Object { _msgid: "af976c52d773b6b1", payload: object, topic: "" }
I made a screenshot from the flow, where you can clearly see the green dot and the correctly identified model
What am I missing?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.