Hi community,
I am trying to integrate freemaster pipes for logging (and maybe use more of its functionality later on).
As I am running linux I tried to go the freemaster light + python path.
I can properly connect but when trying to open the pipeline and print my piped log messages I am not receiving any data via the rpc server.
To verify the target implementation I also checked via the Windows GUI which could read the pipe properly, so the issue seems to be on the PC side.
See attached example python script. Any hints welcome.
best regards
Never mind, seems I have to explicitly call PipeFlush on the receiver side. Did not expect that. Attached the working example as reference.
Hello,
it is great you got it finally working. I confirm the PipeFlush needs to be called as it causes the pipe data to be exchanged in both directions. This is actually the only pipe call which causes a physical data transfer. All other operations at both PC and target sides are just buffering the data to pipe buffers.
When using FreeMASTER protocol, the PC is the only initiator of communication. The target board cannot start it by itself. The PipeFlush is the place where PC gives the target a chance to report (and then send) any new pipe data.
Regards,
Michal