Hello Rafi,
Why don't you post your unsuccessful code here, along with a description of what you are trying to achieve. There are many possible variations, and the choice would depend on the requirements of your project, and to what equipment/program the ESCI needs to connect.
Regards,
Mac