I'm fairly new to node red so still getting my head around the best way to do things...
I have a Trinamic multi-stepper driver which can communicate over RS232 or RS485, which I need to first configure with a series of specific commands, before then sending occasional additional varied commands and waiting for responses to continue with different processes.
I think what I want to do is send one command and wait for a response before moving to the next automatically. This might have to be looped a few times with altered parameters to configure each individual motor driver channel with different settings.
What's the best way to achieve this? I can't seem to get my head around how to send cmd1, receive response, send cmd2, receive response, etc. in a way that I can loop and configure it.
Trinamic do offer a Python library to communicate with devices, but I'm not sure how well that would integrate with node red.