www.micro-examples.com
Microcontroller circuits and source code examples
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
 

ENC28J60 microC ethernet library raw packets access

 
Post new topic   Reply to topic    www.micro-examples.com Forum Index -> Discussion About the Examples
View previous topic :: View next topic  
Author Message
BrunoG
Site Admin


Joined: 22 Nov 2005
Posts: 636

PostPosted: Fri Aug 03, 2007 9:36 am    Post subject: ENC28J60 microC ethernet library raw packets access Reply with quote

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
Back to top
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic   Reply to topic    www.micro-examples.com Forum Index -> Discussion About the Examples All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum



Powered by phpBB © 2001, 2005 phpBB Group