Need sample program for okFilePipe

To gain insight into OkFilePipe and its equivalent Python Script, please provide a sample program for transferring data in bin file format. Experts, please shed more light on this.
I am getting a timeout error during the transfer. I tried Pipe & BTPipe, and both results timeout. I also tried a Python script to convert my data into Bytarray and feed it to PipeIn. Developed a state machine on RTL to receive data. Tried 16 numbers of 128 Byte data (BT Pipe) and Two 128Byte data on Pipe.