I followed your investigation since I find it interesting.
Looking at the very last proposal and test, I thought this should work, but obviously it didn't.
The protocol specification is quite easy, therefore I tested with something similar, WHOIS.
Using the shell I did the following:
telnet whois.nic.ch 43
and after the connection success, I sent the string "maremonti.ch" and got the correct answer.
Now the same thing with node-red. Here is the flow, very similar to what has been tried here:
[{"id":"1664b053.a37ae","type":"tcp request","z":"635b69bb.594868","server":"whois.nic.ch","port":"43","out":"time","splitc":"1000","name":"","x":410,"y":240,"wires":[["53da295d.1e4db8"]]},{"id":"53da295d.1e4db8","type":"debug","z":"635b69bb.594868","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","statusVal":"","statusType":"auto","x":630,"y":240,"wires":[]},{"id":"adf7805c.4aa278","type":"inject","z":"635b69bb.594868","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"whois.nic.ch","payload":"maremonti.ch","payloadType":"str","x":150,"y":240,"wires":[["1664b053.a37ae","58b754fc.b65434"]]},{"id":"58b754fc.b65434","type":"debug","z":"635b69bb.594868","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","statusVal":"","statusType":"auto","x":390,"y":200,"wires":[]}]
I tested all the options in the TCP node, nothing worked. No reply at all. Ever.
There are a number of explanations:
- I did it wrong
-> I should keep my fingers away from this topic and let the experts help
- The TCP node is wrong
-> I should keep my fingers away and let the experts dig deeper
Either way, I'm of no real help here, I'm sorry to say.
Urs.