We have a Python script that is using pylink to open an RTT session and send some commands to the Firmware.
We have tried the JLinkRTTClient to send and receive command responses, and this is also working perfectly.
We have a device commissioning software written in NodeJS Typescript. From this software, we have to open an RTT session and need to send sequential commands to the firmware, and based on the output from the firmware, we have to make some decisions on the software.
From a Node.js application, we want to open an RTT session and need to send commands to the firmware.
We have tried spawning a child process that runs the JLinkRTTClient
const rttClient = spawn("JLinkRTTClient", [], {
cwd: "C:\\Program Files\\SEGGER\\JLink_V864a", // adjust path if needed
stdio: ["pipe", "pipe", "pipe", "pipe"],
shell: true,
});
The application was able to read the output from the sensor, but it was not able to send the commands to the sensor using the standard input and standard output.
Could you please help us with this issue