Hi all,
I need to push HelvarNet (example of ASCII string for request a firmware
version to router: >V:1,C:191#) string to Helvar DALI Router.
I use the TCP-in connection block and I set the IP of my Helvar Router.
The block show me "Connected". At the input of this block i put the
inject block with ASCII command >V:1,C:191# as string payload type.
I put the TCP-out block and I set the IP of my Helvar Router. The block
show me "Connected". I connect the output of TCP-out block with debug
block for read the response from my Helvar Router. It should be
?V=1,C=1, but nothing appear in debug window.
Where I have a mistake?
Many thanks for your help!
Have you tried splitting your flow?
[Inject]---[function]---[tcp-out]
And a second flow
[tcp-in]---[debug]
You can then control when the flow starts and receive any messages coming back
[Inject]---[function]---[tcp-out]
the [function block] contain:
msg.payload=msg.payload + '\n';
return msg;
And a second flow
[tcp-in]---[debug]
I run WireShark and i can see that the Helvar Router send to my PC (where node-red is installed) the correct response to my [tcp-out] request, but i can't see that in debug window on node-red.
I check the TCP-IN configuration and it's correct ("Connect to" port "50000" at host 192.168.xxx.xxx - Output "single" "string" payload(s)). I have tested all the possible configuration in [tcp-in] node, but doesn't work!
Any ideas?
Many thanks!