Problem with serial connection to efoy fuelcell

Hello i have problems to connect an efoy fuelcell to node red with the Serial node nodes. the setup I am using is an Digitus USB to Serial adapter, this is connected between the Fuelcell and an Victron Octo GX running the Victron Venus OS large that is based on Linux an includes node-red v2.0.5.

The connection is running when I try the setup on my windows PC and the Terminal 2008 tool. When I send the command SFC it reply's the status parameters.

So far so good. When i try now to move over to node red it does not to work and give no reply.
This is the Serial setting that I use:

[{"id":"cc01cb08f1bad394","type":"debug","z":"3b2c3d9c86b6f022","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"payload","targetType":"msg","statusVal":"","statusType":"auto","x":470,"y":240,"wires":[]},{"id":"e5b684fe7eea0690","type":"inject","z":"3b2c3d9c86b6f022","name":"","props":[{"p":"payload"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"SFC","payloadType":"str","x":130,"y":140,"wires":[["bfd30fbfcdcdc503","59e76bcbf48d7068"]]},{"id":"59e76bcbf48d7068","type":"debug","z":"3b2c3d9c86b6f022","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"payload","targetType":"msg","statusVal":"","statusType":"auto","x":470,"y":200,"wires":[]},{"id":"5be750af43773590","type":"serial in","z":"3b2c3d9c86b6f022","name":"","serial":"12b4607558a9e4c7","x":150,"y":240,"wires":[["cc01cb08f1bad394"]]},{"id":"bfd30fbfcdcdc503","type":"serial out","z":"3b2c3d9c86b6f022","name":"","serial":"12b4607558a9e4c7","x":480,"y":140,"wires":[]},{"id":"12b4607558a9e4c7","type":"serial-port","serialport":"/dev/ttyUSB15","serialbaud":"9600","databits":"8","parity":"none","stopbits":"1","waitfor":"","dtr":"high","rts":"high","cts":"none","dsr":"none","newline":"\\n","bin":"false","out":"char","addchar":"\\r","responsetimeout":"0"}]

Things that i already tried out:

  • Instead of adding the "\r" in the configuration, I tried also to add it with an function block.
  • I am shure that USB15 is the right port, when I disconnect the USB it indicates directly that the connection is lost.
  • I tried also all settings for DTR and RTS. (low, high and Auto)
  • If I try the same on an Raspberry Pi Instead of the Victron Octo GX it is also not working.

This is a link to the manual that describes the serial connection from the fuelcell:

Have any one an idea? Also i have to say that I am new to node red, so the error may be trivial to you.

Hello again,

I'm still trying to get this working, and made a litle progress. instead of using one Input and one output node, I use now the serial request node. This give me sometimes the correct response, but not always the response is very inconsistend.

[

{"id":"e5b684fe7eea0690","type":"inject","z":"3b2c3d9c86b6f022","name":"","props":[{"p":"payload"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"SFC","payloadType":"str","x":130,"y":280,"wires":[["8376b91d6f8c2602"]]},{"id":"59e76bcbf48d7068","type":"debug","z":"3b2c3d9c86b6f022","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"payload","targetType":"msg","statusVal":"","statusType":"auto","x":530,"y":340,"wires":[]},{"id":"8376b91d6f8c2602","type":"function","z":"3b2c3d9c86b6f022","name":"","func":"// Adding the Carriage Return comand to the end of the request\nmsg.payload = msg.payload+\"\\r\"+\"\\n\";\nreturn msg;","outputs":1,"noerr":0,"initialize":"","finalize":"","libs":[],"x":360,"y":280,"wires":[["44bc75f9a76bce35","59e76bcbf48d7068"]]},{"id":"44bc75f9a76bce35","type":"serial request","z":"3b2c3d9c86b6f022","name":"","serial":"12b4607558a9e4c7","x":540,"y":280,"wires":[["2029e3a4a5838c26"]]},{"id":"2029e3a4a5838c26","type":"debug","z":"3b2c3d9c86b6f022","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"payload","targetType":"msg","statusVal":"","statusType":"auto","x":810,"y":280,"wires":[]},{"id":"12b4607558a9e4c7","type":"serial-port","serialport":"/dev/ttyUSB15","serialbaud":"9600","databits":"8","parity":"none","stopbits":"1","waitfor":"","dtr":"none","rts":"none","cts":"none","dsr":"none","newline":"\">\"","bin":"false","out":"char","addchar":"","responsetimeout":"0"}]

i

f you look at the debug we se an example what I mean with inconsistesns. The first response is as it should be, and the folowing ones are wrong. there was no change in the settings, and the serial request node always indicates timeout. I realy tried a lot and have no idea wath it could be. I know also that the response ends always on "SFC>". This should help to split the input, but also here if I try 0x3e or 0x03e or ">" it does not give any differenz.

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.