# How to send data from RCM4000  through network using TCP protocol?

**URL:** <https://forums.digi.com/t/how-to-send-data-from-rcm4000-through-network-using-tcp-protocol/12552>\
**Category:** Rabbit Software\
**Tags:** tcp, ethernet, data, rcm4000\
**Created:** [February 19, 2014, 8:21am UTC](https://forums.digi.com/t/how-to-send-data-from-rcm4000-through-network-using-tcp-protocol/12552 "2014-02-19T08:21:15Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![AISWARYA\_RAJ](https://avatars.discourse-cdn.com/v4/letter/a/e9bcb4/32.png) [@AISWARYA\_RAJ](https://forums.digi.com/u/AISWARYA_RAJ)\
**Post date:** [February 19, 2014, 8:21am UTC](https://forums.digi.com/t/how-to-send-data-from-rcm4000-through-network-using-tcp-protocol/12552/1 "2014-02-19T08:21:15Z")

</div>

I tried sending data using UDP protocol and it worked out well.But when it comes into TCP protocol,I dont know why it doesn’t work out.Initially Rabbit (which is in network) " waits for a connection" from its peer (also in same network) and the “connection is established” .Next ,I gathered the data from Rabbit and send it using “sock\_write” command .Is it the correct way to write data into a TCP socket or are there any new steps to be followed to send data using TCP? Please suggest your valuable ideas.Any help will be greatly appreciated.

---

<div class="post-metadata">

**Author:** ![MargaretK](https://avatars.discourse-cdn.com/v4/letter/m/d9b06d/32.png) [@MargaretK](https://forums.digi.com/u/MargaretK)\
**Post date:** [February 20, 2014, 12:24pm UTC](https://forums.digi.com/t/how-to-send-data-from-rcm4000-through-network-using-tcp-protocol/12552/2 "2014-02-20T12:24:05Z")

</div>

Please take a look at the Dynamic C TCPIP samples, for example: Samples/TCPIP/echo.c

This program demonstrates the tcp\_listen call.  
A basic server, that when a client connect, echoes back to them any data that they send.

---

<div class="post-metadata">

**Author:** ![Adwaitjoshi](https://avatars.discourse-cdn.com/v4/letter/a/bc79bd/32.png) [@Adwaitjoshi](https://forums.digi.com/u/Adwaitjoshi)\
**Post date:** [March 11, 2014, 4:41am UTC](https://forums.digi.com/t/how-to-send-data-from-rcm4000-through-network-using-tcp-protocol/12552/3 "2014-03-11T04:41:36Z")

</div>

Hello Aiswarya,

I am working on rcm6760 i wanted to know that whether have you tried video streaming through UDP by using rcm4000, if so kindly provide me with the algorithm.

Regards,  
Adwait Joshi

---

<div class="post-metadata">

**Author:** ![AISWARYA\_RAJ](https://avatars.discourse-cdn.com/v4/letter/a/e9bcb4/32.png) [@AISWARYA\_RAJ](https://forums.digi.com/u/AISWARYA_RAJ)\
**Post date:** [March 12, 2014, 5:55am UTC](https://forums.digi.com/t/how-to-send-data-from-rcm4000-through-network-using-tcp-protocol/12552/4 "2014-03-12T05:55:42Z")

</div>

I have tried sending some continuous data from RCM4000 through UDP but haven’t tried Video Streaming.Have you tried Parallel Interfacing?Writing some data to parallel port?

---

<div class="post-metadata">

**Author:** ![Adwaitjoshi](https://avatars.discourse-cdn.com/v4/letter/a/bc79bd/32.png) [@Adwaitjoshi](https://forums.digi.com/u/Adwaitjoshi)\
**Post date:** [March 19, 2014, 3:34am UTC](https://forums.digi.com/t/how-to-send-data-from-rcm4000-through-network-using-tcp-protocol/12552/5 "2014-03-19T03:34:26Z")

</div>

For sending continuous data which software or program did you used?  
And i have not tried parallel interfacing but the study of parallel ports in the user manual might give you some help.

---

<div class="post-metadata">

**Author:** ![AISWARYA\_RAJ](https://avatars.discourse-cdn.com/v4/letter/a/e9bcb4/32.png) [@AISWARYA\_RAJ](https://forums.digi.com/u/AISWARYA_RAJ)\
**Post date:** [March 20, 2014, 1:35am UTC](https://forums.digi.com/t/how-to-send-data-from-rcm4000-through-network-using-tcp-protocol/12552/6 "2014-03-20T01:35:33Z")

</div>

First of all I used hyperterminal to send data,but as it doesn’t meet my needs , I started sending continuous data from a Java program from another computer.I am little bit confused about the parallel interfacing.I have devloped code for that,but haven’t tried the interfacing yet.
