TCP/IP Lite Stack Router issue Client Mode

Author
harivtech
New Member
  • Total Posts : 7
  • Reward points : 0
  • Joined: 2017/07/07 12:16:20
  • Location: 0
  • Status: offline
2019/03/11 05:33:14 (permalink)
0

TCP/IP Lite Stack Router issue Client Mode

Hi All,
I am developing a tcp/ip client solution using
ENC28j60 and mcu is pic18f26k40
and mplab 4.15 and xc8 version 1.42.
 
I run a windows application as server at port 60
When i connect my device direct to the system's Ethernet port there is no issues it just connects and transfers data.
but when i connect via a router still with the static IP on both server and client it never connects
 
once i start to ping from the server to the device at that moment the client connects to the server. any clue on the client configuration
 
Thanks in advance
 
Hari Haran.C
 
 
 
 
 
 
#1

2 Replies Related Threads

    Jim Nickerson
    User 452
    • Total Posts : 5816
    • Reward points : 0
    • Joined: 2003/11/07 12:35:10
    • Location: San Diego, CA
    • Status: offline
    Re: TCP/IP Lite Stack Router issue Client Mode 2019/03/11 07:26:34 (permalink)
    0
    Maybe the router is not forwarding the 10mhz packets to the speed the PC has connected to the router with.
    I use a switch that has a monitor function to ensure my PC sees all the packets.
    The other option is to limit the PC ethernet connection to 10 mhz.
    the ENC28J60 is only 10Base-T 
    #2
    shaimahusain
    Starting Member
    • Total Posts : 11
    • Reward points : 0
    • Joined: 2016/08/26 08:52:10
    • Location: 0
    • Status: offline
    Re: TCP/IP Lite Stack Router issue Client Mode 2019/03/19 11:22:30 (permalink)
    0
    First thing that comes to mind is, the lite stack relies on the server to send an ARP request. It doesn't advertise itself (doesn't send an ARP request packet) so the ARP table is not populated to resolve the IP address to Physical address (mac address) if the server never sent the ARP request. Please verify the packet floe using wireshark and attach here as well. When you ping, the ICMG is sent which causes the ARP to be sent and once registered to the Lite's ARP table, the communication will follow.
    #3
    Jump to:
    © 2019 APG vNext Commercial Version 4.5