Page 1 of 1

EB023 UDP RX problem

Posted: Wed Dec 29, 2010 10:46 am
by MYP
Hello every body,

I am working on an UDP remote control project. It works fine using the tcp component on the transmition side (sending data from the EB023 to the net)
But i experience a problem when receiving data from the net.
i am able to receive 16 bytes then them system stuck (sending is still working). The only way i found to have it working back is to switch the EB06 power off and on again.
To be sure the programm is not in cause, i have used the Bert Van Dame programme 8.4 from is book micro controller system engineering to test.
To send data from the pc i am using differents udp tester with the same result.
i am using the EB06 V7(programmer) with a PIC16F877A, Eb023(internet), EB007 (switch), EB038 (relay).

Thanks to share your experience on that matter

Marc

Re: EB023 UDP RX problem

Posted: Tue Feb 22, 2011 10:07 am
by Screed
Hi Marc,

I too am doing a remote control, to control a pan and tilt camera over an internet connection using 2 internet boards. I am also using UDP and at this stage in the project I have control of the servo motors when I connect directly between the internet boards. When I add a hub I begin to have problems. I am interested in how you have your's working using TCP/IP? Your issue sound similiar to one I had I was transmitting my data but could not pick up the correct data on the receiver side. I discovered that I had to skip the first 8 bytes on the receiver side as this contained the header file added by UDP. Hope this helps. Hope you can post how you got TCP/IP working.

Regards,
Screed.

Re: EB023 UDP RX problem

Posted: Wed Mar 02, 2011 12:45 pm
by MYP
Hello Screed,

In fact, i have changed my mind and switched to the Microchip TCP/IP stack and web page to control my system.
A nice example can be found at mobacon.de/netzer.

Anyway, to turn around the problem i have had with the EB0023, i have used the the "RX_SIZE" function where i check the size to know when to read data.I also had to add a 100ms delay in the loop to have a stable function.

Regards,

Marc

Re: EB023 UDP RX problem

Posted: Wed Mar 02, 2011 1:28 pm
by o.fithcheallaigh
Hey Guys,

I too am developing a remote control system using Microchips tcp/ip stack, but I'm having trouble establishing communications through UDP. As I'm new to flowcode, I don't know if the problem lies there or somewhere else. Would you be able to post your flowcode, so I could do a comparison?

Thanks

Sean

Re: EB023 UDP RX problem

Posted: Mon Mar 07, 2011 6:13 pm
by Screed
Hi Sean,

Which do you want the c.code or the hex file and is it for the transmit or receive?

Regards
Screed.

Re: EB023 UDP RX problem

Posted: Mon Mar 07, 2011 6:17 pm
by Screed
Hi Marc,

I finally got mine working but now the lecture wants me to use a 16f88 instead of a 18f448 but I'm now having other issues with that chip. I posted other topic on this.
Hope yours is coming along well.

Regards
Screed

Re: EB023 UDP RX problem

Posted: Mon Mar 07, 2011 8:48 pm
by o.fithcheallaigh
Hi Screed,

I've since managed to establish communications using UDP, but a comparison of the c code for transmission may still prove
helpful.

Thanks again
Sean