Code Monkey home page Code Monkey logo

node-red-contrib-victron-vedirect-usb's People

Contributors

dirkjanfaber avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar

Forkers

pmknowles

node-red-contrib-victron-vedirect-usb's Issues

Remove or add to USB Filter

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

Nothing shown on debug

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

Bildschirmfoto 2023-05-09 um 14 39 41

What am I missing?

Problem with MPPT 150/70 rev2

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.

Serial list dropdown is not populated.

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)

Old messages are coming up

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....

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.