• AVR Freaks

LockedIP adress

Author
Guest
Super Member
  • Total Posts : 80500
  • Reward points : 0
  • Joined: 2003/01/01 00:00:00
  • Location: 0
  • Status: online
2005/04/12 02:14:16 (permalink)
0

IP adress

Hello all,

How can I cahnge the adress IP without passing with the RS232.

I have found it in the stacktask.h :


/*
* Default Address information - If not found in data EEPROM.
*/


#define MY_DEFAULT_IP_ADDR_BYTE1 (10)
#define MY_DEFAULT_IP_ADDR_BYTE2 (1) //mx changed from 10 to 1
#define MY_DEFAULT_IP_ADDR_BYTE3 (0) //mx changed from 5 to 0
#define MY_DEFAULT_IP_ADDR_BYTE4 (0) //mx changed from 15 to 0


and :


/*
* Hardcoded IP address of this node
* My IP = 10.10.5.10
*
* Gateway = 10.10.5.10
*/

#define MY_IP_BYTE1 AppConfig.MyIPAddr.v[0]
#define MY_IP_BYTE2 AppConfig.MyIPAddr.v[1]
#define MY_IP_BYTE3 AppConfig.MyIPAddr.v[2]
#define MY_IP_BYTE4 AppConfig.MyIPAddr.v[3]


If I put for example 10.1.0.1 in default IP, that doesn't work.

Thanks all and excuse my bad english [8|]
#1

4 Replies Related Threads

    Guest
    Super Member
    • Total Posts : 80500
    • Reward points : 0
    • Joined: 2003/01/01 00:00:00
    • Location: 0
    • Status: online
    RE: IP adress 2005/04/14 01:48:56 (permalink)
    0
    someone to help me? [8|]

    thanks
    #2
    Guest
    Super Member
    • Total Posts : 80500
    • Reward points : 0
    • Joined: 2003/01/01 00:00:00
    • Location: 0
    • Status: online
    RE: IP adress 2005/04/14 04:45:23 (permalink)
    0
    ok, I fond for the IP.

    Now I'm shearching for the subnet mask.

    Fot the ip, it is in the file ip.c

    header.SourceAddress.v[0] = MY_IP_BYTE1 = 10;
    header.SourceAddress.v[1] = MY_IP_BYTE2 = 1;
    header.SourceAddress.v[2] = MY_IP_BYTE3 = 1;
    header.SourceAddress.v[3] = MY_IP_BYTE4 = 1;
    #3
    Guest
    Super Member
    • Total Posts : 80500
    • Reward points : 0
    • Joined: 2003/01/01 00:00:00
    • Location: 0
    • Status: online
    RE: IP adress 2005/04/14 07:29:56 (permalink)
    0
    Salut à toi Fabien! Français je suppose!

    Si tu as un téléphone FIXE, donne le moi par mail, je répondrais à toutes tes questions...

    Car là je crois que t'es mal barré! mdrpink
    #4
    Guest
    Super Member
    • Total Posts : 80500
    • Reward points : 0
    • Joined: 2003/01/01 00:00:00
    • Location: 0
    • Status: online
    RE: IP adress 2005/04/20 16:57:10 (permalink)
    0
    Hey 'mrfabian' I am doing the same thing for my project, and have problem getting the IP address for my RTL8019, can you please let me know how did you figure that out.

    thanks
    #5
    Jump to:
    © 2019 APG vNext Commercial Version 4.5