HTTPExampleClinent returns "Error -66534 in setup"

17 Oct 2010

I'm trying to run the HTTPExampleClinent program but on the serial I get this error:

Error -66534 in setup

I haven't a DHCP server installed, how should I set the connection?Where I can find all the parameters I need?

Thanks for your help

01 Nov 2010

Hi Andrea,

That's why mbed can't acquire an IP address. I'm having the same problem here (http://mbed.org/forum/mbed/topic/1298/) and can't figure it out...

01 Nov 2010 . Edited: 01 Nov 2010

1. use cros cable with computer or use straight with with switch.

2. change following line in your program if you have not DHCP server.


EthernetNetIf eth;   

to

EthernetNetIf eth(
  IpAddr(xxx,xxx,xxx,xxx), // one IP Address from you network. 
  IpAddr(xxx,xxx,xxx,xxx), //your Network Mask
  IpAddr(xxx,xxx,xxx,xxx), //Gateway
  IpAddr(xxx,xxx,xxx,xxx)  //DNS
);

01 Nov 2010

Hi Inder,

I did that before, an thats what i get (using a cross cable connected directly to my pc)

 

Setting up...
[..\fwk\if\eth\EthernetNetIf.cpp:setup@86] HW Addr is : 00:02:f7:f0:35:22.
[..\fwk\if\eth\EthernetNetIf.cpp:setup@142] Connected, IP : 10.1.1.10
Setup OK
Listening...

But, i want to attribute an IP address with DHCP. As my pc is not a server (don't have a DHCP server running) it won't distribute IP adresses to his network's hosts, so i tried to connect (using a straight cable) to a switch, so my router can give an IP to mbed, but it doesn't happens.

Setting up...
[..\fwk\if\eth\EthernetNetIf.cpp:setup@86] HW Addr is : 00:02:f7:f0:35:22.
[..\fwk\if\eth\EthernetNetIf.cpp:setup@99] DHCP Started, waiting for IP...