EmbDev.net

Forum: ARM programming with GCC/GNU tools Cannot connect to LPC2129 uIP server


Author: Javier Rod (fjrg76)
Posted on:

Rate this post
0 useful
not useful
Hi!!

I've been trying for a while to connect to the OLIMEX LPC2129 board,
however I haven't. The server is up and running (I guess so) in both
stand alone and within the freertos port.

Obviuosly the IP address is wrong, but I'm not TCP expert by far, so
I've tried some addresses but none work. This is my net configuration:

1. Router is at 192.168.2.254
2. Net addresses range from 100 to 200,
3. This PC is at 192.168.2.100, my laptop is at 192.168.2.101
4. uIP server is (or I try to be) 192.168.2.102

an extract from the uipopt.h file is like this (without all the stuff)

#define UIP_FIXEDADDR    1

#define UIP_PINGADDRCONF 0

#if 0
#define UIP_IPADDR0     192U
#define UIP_IPADDR1     168U
#define UIP_IPADDR2     2U
#define UIP_IPADDR3     102U

#define UIP_NETMASK0    255
#define UIP_NETMASK1    255
#define UIP_NETMASK2    255
#define UIP_NETMASK3    0

#define UIP_DRIPADDR0   192
#define UIP_DRIPADDR1   168
#define UIP_DRIPADDR2   2
#define UIP_DRIPADDR3   254

#else

#define UIP_IPADDR0     192U
#define UIP_IPADDR1     168U
#define UIP_IPADDR2     2U
#define UIP_IPADDR3     102U

#define UIP_NETMASK0    255
#define UIP_NETMASK1    255
#define UIP_NETMASK2    255
#define UIP_NETMASK3    0

#define UIP_DRIPADDR0   192
#define UIP_DRIPADDR1   168
#define UIP_DRIPADDR2   2
#define UIP_DRIPADDR3   254

#endif


Am I missing something?? Do I need to change to some other ip address??
Thanks to everybody!!

Reply

Entering an e-mail address is optional. If you want to receive reply notifications by e-mail, please log in.

Rules — please read before posting

  • Post long source code as attachment, not in the text
  • Posting advertisements is forbidden.

Formatting options

  • [c]C code[/c]
  • [avrasm]AVR assembler code[/avrasm]
  • [code]code in other languages, ASCII drawings[/code]
  • [math]formula (LaTeX syntax)[/math]




Bild automatisch verkleinern, falls nötig
Note: the original post is older than 6 months. Please don't ask any new questions in this thread, but start a new one.