*** Please advice if the following comment requires a new post - or if it is fixed and it is me actually messing up on my end ***
I am currently having the same issue as the one firstly reported by @Mumin: By using "TCP REQUEST" node I only get an output payload (in ascii/hex) once, but in my case, the messages don't stop coming from the output. I instead only get from the response only one byte (0x0A) instead of the rest of the payload.
-
I am using "TCP REQUEST" to interface with Tektronix PA1000 utilizing straight forward IEEE 488.2 (starting pg. 37)
-
I am able to send commands and the devices acknowledges them as expected.
-
But the responses are always "0x0A" and very seldom the actual content I requested to begin with.
I would greatly appreciate direction, as this could well be a self inflicted error on my end. Moreover, I will be happy to assist if this is indeed a bug.
Thank you kindly in advance.
[{"id":"91134f0f.59e56","type":"tab","label":"Flow 1","disabled":false,"info":""},{"id":"ee476e69.f8ba1","type":"tcp request","z":"91134f0f.59e56","server":"10.0.0.2","port":"5025","out":"char","splitc":"\\n","name":"","x":590,"y":320,"wires":[["940dc005.ddfb","b9282c57.2a503"]]},{"id":"fdcc778a.c7c118","type":"inject","z":"91134f0f.59e56","name":"","topic":"","payload":"*IDN?","payloadType":"str","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":350,"y":320,"wires":[["ee476e69.f8ba1","940dc005.ddfb"]]},{"id":"940dc005.ddfb","type":"debug","z":"91134f0f.59e56","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","x":1130,"y":560,"wires":[]},{"id":"982ff998.27cf48","type":"comment","z":"91134f0f.59e56","name":"SAMPLE COMMANDS","info":"SEND Setup:\n\n :SEL:CLR\n :SEL:VLT\n :SEL:AMP\n :SEL:WAT\n :SEL:PWF\n :SEL:FRQ\n :SEL:IMP\n :SEL:RES\n :SEL:REA\n :SEL:VAR\n *IDN?\n\nREAD Measurements:\n :FRD?","x":700,"y":240,"wires":[]},{"id":"806f7115.1a8e","type":"inject","z":"91134f0f.59e56","name":"","topic":"","payload":":SEL:CLR","payloadType":"str","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":340,"y":380,"wires":[["ee476e69.f8ba1","940dc005.ddfb"]]},{"id":"273ab32e.62e51c","type":"inject","z":"91134f0f.59e56","name":"","topic":"","payload":":SEL:FRQ","payloadType":"str","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":340,"y":500,"wires":[["ee476e69.f8ba1","940dc005.ddfb"]]},{"id":"5e353b51.aa0364","type":"inject","z":"91134f0f.59e56","name":"","topic":"","payload":":FRD?","payloadType":"str","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":350,"y":560,"wires":[["ee476e69.f8ba1","940dc005.ddfb"]]},{"id":"de583ef3.c9237","type":"inject","z":"91134f0f.59e56","name":"","topic":"","payload":":SEL:VLT","payloadType":"str","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":340,"y":440,"wires":[["ee476e69.f8ba1","940dc005.ddfb"]]},{"id":"b9282c57.2a503","type":"function","z":"91134f0f.59e56","name":"ascii -> string (?)","func":"msg.payload = msg.payload.toString('utf8')\nreturn msg;","outputs":1,"noerr":0,"x":890,"y":320,"wires":[["940dc005.ddfb"]]}]