+ Post New Thread
Results 1 to 3 of 3
  1. #1
    Newbie level 1
    Points: 15, Level: 1

    Join Date
    Aug 2019
    Posts
    1
    Helped
    0 / 0
    Points
    15
    Level
    1

    stm32 interfacing with enc28j60

    Hello everyone, Actually am beginner and working on
    stm32. Can we assigned a different class IP for enc28j60 module.
    For example:
    static char ip[4]={192,168,1,129}; // class c ip addr
    This ip is related to router ip.
    suppoze i want to make it class B like
    static char ip[4]={184,168,27,81};

    •   AltAdvertisement

        
       

  2. #2
    Advanced Member level 5
    Points: 9,074, Level: 22
    Achievements:
    7 years registered
    Easyrider83's Avatar
    Join Date
    Oct 2011
    Location
    Tallinn, Estonia
    Posts
    1,591
    Helped
    363 / 363
    Points
    9,074
    Level
    22

    Re: stm32 interfacing with enc28j60

    enc28j60 is just a phy. It has nothing to do with ethernet data.
    IP processing have to be done by sw.
    Love me or hate me. All infractions will be ignored.



    •   AltAdvertisement

        
       

  3. #3
    Super Moderator
    Points: 80,462, Level: 69
    Achievements:
    7 years registered
    Awards:
    2nd Helpful Member
    betwixt's Avatar
    Join Date
    Jul 2009
    Location
    Aberdyfi, West Wales, UK
    Posts
    13,186
    Helped
    4403 / 4403
    Points
    80,462
    Level
    69

    Re: stm32 interfacing with enc28j60

    As far as I know the enc28j60 just compares whatever IP you tell it with the data stream. I don't think it is aware of what the numbers actually mean or have any understanding of classes.

    Brian.
    PLEASE - no friends requests or private emails, I simply don't have time to reply to them all.
    It's better to share your questions and answers on Edaboard so we can all benefit from each others experiences.



--[[ ]]--