BrunoG Site Admin
Joined: 22 Nov 2005 Posts: 636
|
Posted: Fri Aug 03, 2007 9:36 am Post subject: ENC28J60 microC ethernet library raw packets access |
|
|
| Rahul.S wrote: | Hi
First of all.Thanks for your UDP push server example.I have built a wireless sensor n/w around it.
I have a few questions.
Is there a way to find out when the ENC 28J60 receives a packet ?
I understand that Spi_Ethernet_doPacket() ; does just that
but it replies on its own to PING requests and differentiated between HTTP requests and UDP packets
I am trying to port a TCP/IP stack and for that I need a function that provides access to a complete packet (not just bytes)
(any kind of packet UDP/TCP/ ICMP etc) .
Is there such a function in MikroC.Also how do you know when ENC 28J60 receives a complete packet ?
|
Hi Rahul, thank you for your message.
For now, the unused incoming packets are just ignored, and are not transmitted to the user.
This option is currently discussed in mikroE team, because a new mikroC version is about to be released with an enhanced ethernet library, but it is not sure this feature will be added in this one.
With this version, sending UDP packets is very simple.
It is also planned in the future, the ethernet library releases to have a TPC/IP stack, but I can't give a date.
Catching a raw packet from the library is a little bit tricky, but possible with the current and next version.
If you can wait you will have a solution either from my web site, or from the mikroC library within a few days.
Best regards, _________________ BrunoG, Administrator |
|