Hot!PIC32MZ PING

Page: < 12 Showing page 2 of 2
Author
Bio_PIC
New Member
  • Total Posts : 8
  • Reward points : 0
  • Joined: 2017/02/01 09:37:55
  • Location: 0
  • Status: offline
Re: PIC32MZ PING 2018/12/06 08:41:38 (permalink)
0
That setting is required for the Ping to work.
 
ICMP stands for "Internet Control Message Protocol" and is the portion of the stack that echos back a response to a ping. Here is the documentation on the TCP IP Stack from Microchip:
 
http://ww1.microchip.com/downloads/en/DeviceDoc/TCP-IP%20Stack%20Libraries_v111.pdf 
 
Here is some more information on ICMP's:
 
The Internet Control Message Protocol
  • The Internet Control Message Protocol (ICMP) is responsible for generating control messages.
  • Advisory messages (slow down, better route, etc).
  • If desired, applications can interface with ICMP directly.
  • For example, the ping command is a TCP/IP application.
  • It sends an "echo" packet to a specified server machine via the ICMP protocol.
  • Although applications can interface with ICMP directly, it is not a transport-layer protocol.  It does not provide a consistent interface for end-to-end communication.
Source: https://cs.nyu.edu/courses/fall98/G22.2262-001/class4.html 
#21
marcc70
New Member
  • Total Posts : 25
  • Reward points : 0
  • Joined: 2018/12/03 06:23:00
  • Location: 0
  • Status: offline
Re: PIC32MZ PING 2018/12/06 12:52:56 (permalink)
0
I think it maybe has to something with the termination resistors, so a hardware problem maybe.
i think the resistors are placed to far from the phy also the capacitors.
Here is the board layout:

https://ibb.co/qRBbHtb
#22
XorLor
New Member
  • Total Posts : 12
  • Reward points : 0
  • Joined: 2009/10/23 00:17:05
  • Location: 0
  • Status: online
Re: PIC32MZ PING 2018/12/06 14:31:17 (permalink)
0
Are you using the Alternate Ethernet pins? Need a schematic to help you further.
#23
qhb
Superb Member
  • Total Posts : 7898
  • Reward points : 0
  • Joined: 2016/06/05 14:55:32
  • Location: One step ahead...
  • Status: online
Re: PIC32MZ PING 2018/12/06 20:52:23 (permalink)
5 (1)
marcc70
If I select "use tcpip commands" then I get a lot of new errors. 
 

Basic logic:
IF "use tcpip commands" is required to respond to PING requests,
AND you "get a lot of errors" if you turn it on,
THEN this will never work until you fix those errors.
 
Unfortunately "a lot of new errors" is not much to work on.
You will get much more useful responses if you reveal WHAT THOSE ERRORS ARE.
#24
marcc70
New Member
  • Total Posts : 25
  • Reward points : 0
  • Joined: 2018/12/03 06:23:00
  • Location: 0
  • Status: offline
Re: PIC32MZ PING 2018/12/07 00:22:54 (permalink)
0
Here is my schematic of the PIC32MZ2048EFH064:
https://ibb.co/kXjfZNH
 
But without use tcpip command, I need to see it in tcpip discovery tool right.
#25
marcc70
New Member
  • Total Posts : 25
  • Reward points : 0
  • Joined: 2018/12/03 06:23:00
  • Location: 0
  • Status: offline
Re: PIC32MZ PING 2018/12/07 00:24:48 (permalink)
0
https://ibb.co/CKLcxWL
 
One of the dp83838
#26
Bio_PIC
New Member
  • Total Posts : 8
  • Reward points : 0
  • Joined: 2017/02/01 09:37:55
  • Location: 0
  • Status: offline
Re: PIC32MZ PING 2018/12/07 06:34:12 (permalink)
0
marcc70
...But without use tcpip command, I need to see it in tcpip discovery tool right.



Just as long as "Use Announce Discovery Tool" is selected. However, you could still have many things wrong that are not allowing the Stack to function.
 
I was looking at your schematics and PCB layout, I noticed that on the Schematic you have R21 which is the Bias resistor on the DP83838, I do not see R21 on the PCB layout. R21 is required for the driver to function, it is also good practice to place it as close to the DP83838 as possible.
 
Can you confirm that R21 is populated and it is a 4.87K 1% resistor per the datasheet?
 
Perhaps a complete schematic and PCB layout would help, if you suspect a hardware problem. Otherwise, you might need to post some of your code so we can better help.
#27
marcc70
New Member
  • Total Posts : 25
  • Reward points : 0
  • Joined: 2018/12/03 06:23:00
  • Location: 0
  • Status: offline
Re: PIC32MZ PING 2018/12/07 07:09:42 (permalink)
0
Yes r21 is there, ~4,87k resistor.
https://ibb.co/W3fF7bH it is not very close to the dp83848.
 
Also the 49.9 terminate resistors are not very close, but I still don't understand why some components has to be so close to the dp83848. And don't actually know if this is the problem now.
 
Well about my code, I don't do anything else then just harmony configure what you guys told me.
And then generate the code -> build it and then program it wit the IPE to my board.
 
Maybe there is still a lot missing based on the coding, but hopefully someone knows what is wrong.
#28
marcc70
New Member
  • Total Posts : 25
  • Reward points : 0
  • Joined: 2018/12/03 06:23:00
  • Location: 0
  • Status: offline
Re: PIC32MZ PING 2018/12/07 07:11:50 (permalink)
0
Also what I saw today when I connect my ethernet straight to my laptop, and my laptop is in sleeping mode, then the led 'speed' shuts down.
 
 
 
#29
Bio_PIC
New Member
  • Total Posts : 8
  • Reward points : 0
  • Joined: 2017/02/01 09:37:55
  • Location: 0
  • Status: offline
Re: PIC32MZ PING 2018/12/07 09:58:59 (permalink)
0
marcc70
Yes r21 is there, ~4,87k resistor.
https://ibb.co/W3fF7bH it is not very close to the dp83848.
 

4.87K is within 1%, that shouldn't be the problem. 
 
marcc70
Also the 49.9 terminate resistors are not very close, but I still don't understand why some components has to be so close to the dp83848. And don't actually know if this is the problem now.

Certain components need to be close to reduce capacitive or inductive coupling, more research in this area will help you create better board layouts in the future. If this is a commercial board I would recommend making some changes because it will fail all kinds of EMF and noise tests. With that said, it does not appear your board layout is the problem. The current distance the components are from the chip should not be what is causing your issues. Your schematic seems correct, from what I have been able to put together. I suspect your issue is with your code and lack of knowledge about how TCP/IP works.
 
marcc70
Well about my code, I don't do anything else then just harmony configure what you guys told me.
And then generate the code -> build it and then program it wit the IPE to my board.
 
Maybe there is still a lot missing based on the coding, but hopefully someone knows what is wrong.

Did you configure the SPI port on your PIC? SPI is required to talk to the DP83848.
This video may point you in the right direction:
https://www.youtube.com/watch?v=8eb2kxqfeFs 
 
On a side note..
I am sure a lot of members here would agree, if you are looking for someone to give you the solution you will not find it here. This community has a lot of great teachers, personally I just stated posting myself however I use these forums everyday. I have never needed to post a question, usually someone else has already posted my question and I was able to get the information i needed to complete my project from their post.
 
I would again recommend you referencing the Harmony Stack Help documentation:
http://ww1.microchip.com/downloads/en/DeviceDoc/TCP-IP%20Stack%20Libraries_v111.pdf 
 
 
#30
XorLor
New Member
  • Total Posts : 12
  • Reward points : 0
  • Joined: 2009/10/23 00:17:05
  • Location: 0
  • Status: online
Re: PIC32MZ PING 2018/12/07 10:31:57 (permalink)
0
Here is an example project you can try. It's based off your schematic. If it doesn't work then I would suspect a hardware problem.
 
https://www.dropbox.com/s...2MZ2048EFH064.zip?dl=0
#31
Page: < 12 Showing page 2 of 2
Jump to:
© 2018 APG vNext Commercial Version 4.5