2393739_en-US

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

2393739_en-US

2393739_en-US

Utilize pipe for logging

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


Re: Utilize pipe for logging

Never mind, seems I have to explicitly call PipeFlush on the receiver side. Did not expect that. Attached the working example as reference.

Re: Utilize pipe for logging

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

标记 (1)
无评分
版本历史
最后更新:
‎07-14-2026 03:28 AM
更新人: