Not able to read response from device on USB

I have a device I can communicate to via USB/RS232 port.
I know it receive the command I send because it react to them.
I have a command to retrieve its state that should respond but I'm not able to read any response ! What's wrong in my flow ?
I know that command works otherwise because I've tested it from a terminal.

here is the link to the protocol of the device :
https://www.dropbox.com/s/xbjc8xzbd25cm9d/Sumry6kW%20inverterRS232%20Protocol.pdf?dl=0

[{"id":"dd25585074ececfb","type":"tab","label":"Flow 1","disabled":false,"info":""},{"id":"348873ec1ba6eaaf","type":"serial out","z":"dd25585074ececfb","name":"","serial":"01a4c33387954d3b","x":410,"y":140,"wires":[]},{"id":"bb5953758f6fccbc","type":"ui_button","z":"dd25585074ececfb","name":"","group":"330cd937.951e56","order":4,"width":0,"height":0,"passthru":false,"label":"Inverter ON","tooltip":"","color":"","bgcolor":"","icon":"","payload":"C","payloadType":"str","topic":"","x":160,"y":120,"wires":[["348873ec1ba6eaaf","fc867f12ffcb699d"]]},{"id":"fb74c0b34b5f2740","type":"serial out","z":"dd25585074ececfb","name":"","serial":"01a4c33387954d3b","x":400,"y":220,"wires":[]},{"id":"12bcb580e0578f18","type":"ui_button","z":"dd25585074ececfb","name":"","group":"330cd937.951e56","order":4,"width":0,"height":0,"passthru":false,"label":"Inverter OFF","tooltip":"","color":"","bgcolor":"","icon":"","payload":"S0R0000","payloadType":"str","topic":"","x":150,"y":200,"wires":[["fb74c0b34b5f2740","fc867f12ffcb699d"]]},{"id":"fc867f12ffcb699d","type":"debug","z":"dd25585074ececfb","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","statusVal":"","statusType":"auto","x":430,"y":100,"wires":[]},{"id":"95154801ece48040","type":"serial out","z":"dd25585074ececfb","name":"","serial":"01a4c33387954d3b","x":290,"y":340,"wires":[]},{"id":"365246cd10656a36","type":"ui_button","z":"dd25585074ececfb","name":"","group":"330cd937.951e56","order":4,"width":0,"height":0,"passthru":false,"label":"Inverter state ?","tooltip":"","color":"","bgcolor":"","icon":"","payload":"Q1","payloadType":"str","topic":"","x":100,"y":340,"wires":[["95154801ece48040","894017c13d5f3b2b"]]},{"id":"bcfdd84c9918921f","type":"ui_text","z":"dd25585074ececfb","group":"330cd937.951e56","order":5,"width":0,"height":0,"name":"","label":"Converter's response","format":"{{msg.payload}}","layout":"row-spread","x":660,"y":340,"wires":[]},{"id":"ebc7623192820b8d","type":"serial in","z":"dd25585074ececfb","name":"","serial":"01a4c33387954d3b","x":450,"y":340,"wires":[["bcfdd84c9918921f","b7c2c1e845353800"]]},{"id":"b7c2c1e845353800","type":"debug","z":"dd25585074ececfb","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"payload","targetType":"msg","statusVal":"","statusType":"auto","x":630,"y":280,"wires":[]},{"id":"894017c13d5f3b2b","type":"debug","z":"dd25585074ececfb","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","statusVal":"","statusType":"auto","x":290,"y":280,"wires":[]},{"id":"01a4c33387954d3b","type":"serial-port","serialport":"/dev/ttyUSB0","serialbaud":"2400","databits":"8","parity":"none","stopbits":"1","waitfor":"(","dtr":"none","rts":"none","cts":"none","dsr":"none","newline":"\\n","bin":"false","out":"char","addchar":"\\r","responsetimeout":"10000"},{"id":"330cd937.951e56","type":"ui_group","name":"Energy","tab":"fd4b8c75.b67c2","order":2,"disp":true,"width":"6","collapse":false},{"id":"fd4b8c75.b67c2","type":"ui_tab","name":"Home","icon":"dashboard","disabled":false,"hidden":false}]

According to the docs each command should be followed by a carriage return \r or possible \r\n. So C\r would be On

The C command is the start command and that one works perfectly

The one I can't get a response from is the "Q1" command that is made the same as the C or the S0R0000 commands.

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