EB023 UDP RX problem

For E-blocks user to discuss using E-blocks and programming for them.

Moderators: Benj, Mods

Post Reply
MYP
Posts: 2
Joined: Fri Apr 02, 2010 3:36 pm

EB023 UDP RX problem

Post 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

Screed
Posts: 5
Joined: Mon Dec 20, 2010 9:51 am

Re: EB023 UDP RX problem

Post 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.

MYP
Posts: 2
Joined: Fri Apr 02, 2010 3:36 pm

Re: EB023 UDP RX problem

Post 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

o.fithcheallaigh
Posts: 14
Joined: Fri Feb 04, 2011 7:51 pm
Has thanked: 3 times

Re: EB023 UDP RX problem

Post 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
Fuair siad bás ar son saoirse na hÉireann.

Go raibh tú leathuair ar Neamh sula mbeadh a fhios ag an diabhal go bhfuil tú marbh.

Screed
Posts: 5
Joined: Mon Dec 20, 2010 9:51 am

Re: EB023 UDP RX problem

Post 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.

Screed
Posts: 5
Joined: Mon Dec 20, 2010 9:51 am

Re: EB023 UDP RX problem

Post 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

o.fithcheallaigh
Posts: 14
Joined: Fri Feb 04, 2011 7:51 pm
Has thanked: 3 times

Re: EB023 UDP RX problem

Post 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
Fuair siad bás ar son saoirse na hÉireann.

Go raibh tú leathuair ar Neamh sula mbeadh a fhios ag an diabhal go bhfuil tú marbh.

Post Reply