From: Ankit Desai on
Walter Roberson <roberson(a)hushmail.com> wrote in message <nT6Pn.124042$gv4.108821(a)newsfe09.iad>...
> Rohini wrote:
>
> > Thank you very much for your help
> > i could read and write image file but now i want to transmit image file
> > over Ethernet.Can i do with echo server implemented?
>
> I don't know about the echo server.
>
> You may wish to use the Matlab File Exchange IP toolbox,
> http://www.mathworks.com/matlabcentral/fileexchange/345-tcpudpip-toolbox-2-0-6

Hi Rohini,

Echoserver is not what want.
Echoserver will echo back what you write into your inputbuffer.

You can continue using UDP connection over Ethernet.
Just bind two ports via UDP connection.

For example:

% on PC1
u1 = udp('<remote Machine IP>', 9090,'LocalPort', 9091);
fopen(u1);

% on PC2
u2 = udp('<remote Machine IP>', 9091, 'LocalPort' 9090 );
fopen(u2);

Once this binding is done.
Anything you write on PC1 will be available on PC2 and vice-versa.

You can replace MATLAB on any machine with a device, as long as you can configure the UDP local port as well as remote port to bind with the PC with MATLAB on it.

Hope this helps,

-Ankit
From: Rohini on
"Ankit Desai" <adesai.nospam(a)mathworks.com> wrote in message <huj24r$6e2$1(a)fred.mathworks.com>...
> Walter Roberson <roberson(a)hushmail.com> wrote in message <nT6Pn.124042$gv4.108821(a)newsfe09.iad>...
> > Rohini wrote:
> >
> > > Thank you very much for your help
> > > i could read and write image file but now i want to transmit image file
> > > over Ethernet.Can i do with echo server implemented?
> >
> > I don't know about the echo server.
> >
> > You may wish to use the Matlab File Exchange IP toolbox,
> > http://www.mathworks.com/matlabcentral/fileexchange/345-tcpudpip-toolbox-2-0-6
>
> Hi Rohini,
>
> Echoserver is not what want.
> Echoserver will echo back what you write into your inputbuffer.
>
> You can continue using UDP connection over Ethernet.
> Just bind two ports via UDP connection.
>
> For example:
>
> % on PC1
> u1 = udp('<remote Machine IP>', 9090,'LocalPort', 9091);
> fopen(u1);
>
> % on PC2
> u2 = udp('<remote Machine IP>', 9091, 'LocalPort' 9090 );
> fopen(u2);
>
> Once this binding is done.
> Anything you write on PC1 will be available on PC2 and vice-versa.
>
> You can replace MATLAB on any machine with a device, as long as you can configure the UDP local port as well as remote port to bind with the PC with MATLAB on it.
>
> Hope this helps,
>
> -Ankit



Thanks Ankit,
Will try this