Show Posts
Pages: [1] 2 3 ... 361
1  Using Arduino / Networking, Protocols, and Devices / Re: WIFI Shield firmware update 1.0.5 attempt on: Today at 04:17:54 pm
If it is a R3 board, then it should not have any pins overlapping. Insure the ICSP pins in the center of the Mega are inserted correctly into the shield socket. Those are the SPI data pins.
2  Using Arduino / Programming Questions / Re: Ethernet Board - does anyone have it running for one week or more ? on: Today at 04:14:01 pm
I did 12 days with a Mega2560 and ethernet shield without a fail. I had to stop the test because I needed my Mega for another project test, not because it failed or locked up. I used the GET version of this code:
http://playground.arduino.cc/Code/WebClient

I did get at least one "Timeout" message, but that doesn't lock up my code. It keeps right on going.
3  Using Arduino / Networking, Protocols, and Devices / Re: DHCP Fails Actiontec MI424WR from Verizon on: Today at 12:18:12 pm
I saw the Teleduino.h include and presumed it was a separate library.

If the DhcpAddressPrinter sketch doesn't work, you have a problem. I recommend testing the SPI bus and the SPI end of the w5100. Try this sketch. Does it display 192.168.2.2 on the serial monitor? If it shows anything else, like 0.0.0.0, then you have a SPI problem, and you should check that the shield is inserted correctly and fully into the Arduino.
Code:
#include <SPI.h>
#include <Ethernet.h>

byte mac[] = {  0xDE, 0xAD, 0xBE, 0xEF, 0xFE, 0xED };
IPAddress ip(192,168,2,2);

void setup() {
  Serial.begin(9600);

  // disable SD card if one in the slot
  pinMode(4,OUTPUT);
  digitalWrite(4,HIGH);

  Serial.println("Starting w5100");
  Ethernet.begin(mac,ip);
  Serial.println(Ethernet.localIP());
}

void loop() {
}
4  Using Arduino / Networking, Protocols, and Devices / Re: http host name for web server with DHCP on Ethernet Shield on: Today at 12:13:19 pm
Then you have a real challenge. I'm not saying it is impossible, but at best very difficult.

edit: You might be able to pull it off with OpenDNS, but you would need a registered domain name to do it. You could have it resolve to your localnet private ip, but of course you couldn't access it from the internet, just the private ip localnet.
5  Using Arduino / Networking, Protocols, and Devices / Re: DHCP Fails Actiontec MI424WR from Verizon on: Today at 09:02:47 am
If you expect help on this forum, I recommend using the standard ethernet library.

Do you have any other SPI devices on the Arduino, like maybe a SD card in the shield's slot? That will cause DHCP to fail.
6  Using Arduino / Networking, Protocols, and Devices / Re: http host name for web server with DHCP on Ethernet Shield on: Today at 07:53:12 am
Then modify your dns server to reply with that ip when queried, or use a router that will perform dns. I use MikroTik routers, and they allow you to use a static dns assignment. I would use this in my router, and assign the router as my dns server.
Code:
/ip dns static
add name=hostname.com address=192.168.1.66
If you plan on using a web browser, it requires a FQDN to access the server. Note the addition of a primary domain name above. That is the ".com" part.
7  Using Arduino / Networking, Protocols, and Devices / Re: WIFI Shield firmware update 1.0.5 attempt on: Today at 06:58:24 am
It sounds like you have a problem with the physical connection of the shield to the Arduino. Are you sure the shield is seated correctly and completely on the Mega?

Is the Mega2560 a R3 model also? If not, there will be two overhanging shield pins on each side, and that will require a jumper wire from the 5v to the ioref pin on the shield.
8  Using Arduino / Networking, Protocols, and Devices / Re: WIFI Shield firmware update 1.0.5 attempt on: April 23, 2014, 04:53:41 pm
There doesn't appear to be a problem. It looks like it worked to me. What makes you think there is a problem?

edit: Insure you do the same for wifi_dnld.elf
9  Using Arduino / Networking, Protocols, and Devices / Re: Problem with WifiShield and webclient example. Gateway always get 0.0.0.0 on: April 23, 2014, 10:10:56 am
Some routers are very picky about the static ip assignment. Mine aren't, so it doesn't really affect me if I use an IP within the dhcp range. My router will ping the dhcp ip it is about to issue, and if it gets a response, it marks that ip as "busy" and issues another ip.

If your router is not that flexible, it may not communicate with a static ip assignment within its dhcp range. Check your router and insure the ip you are using is not in the dhcp range.
10  Using Arduino / Programming Questions / Re: Code freezes if dsl line is down on: April 23, 2014, 10:02:22 am
There are a couple things are not correct.

1) Do not use the protocol on the server name
Code:
// change this...
char serverName[] = "http://www.abc.com";
...to this
char serverName[] = "www.abc.com";

2) This has the wrong parameters.
Code:
// change this...
Ethernet.begin(mac, ip, subnet, gateway);
...to this
Ethernet.begin(mac, ip, gateway, gateway, subnet);
The first gateway is actually the dns server. If you are using dns and a dns server, specify that in your network stuff and use it there. Like this:
Code:
IPAddress dnServer(1,2,3,4);

Ethernet.begin(mac, ip, dnServer, gateway, subnet);
11  Using Arduino / Programming Questions / Re: Code freezes if dsl line is down on: April 23, 2014, 08:34:16 am
If your code uses dns to resolve the domain name of the server, the dns server is not localnet, and the dsl is down, that code will never connect. If the internet part is down, the length of the delay will not matter. If your code can't connect, it can't connect.

Actually, you are lucky. Normally PaulS will refer you to http://www.snippets-r-us.com. Please post all your code.
12  Using Arduino / Networking, Protocols, and Devices / Re: Problem with WifiShield and webclient example. Gateway always get 0.0.0.0 on: April 23, 2014, 07:43:21 am
I checked your code, and mine works fine. It shows the gateway as 192.168.0.1, which is correct.

Two possibilities:
1) Your firmware upgrade didn't work.
2) Your dhcp server is not issuing a gateway.

Add this code to your sketch after the Serial.begin() call. It should show version 1.1.0 if all went well with your upgrade.
Code:
  // check for the presence of the shield:
  if (WiFi.status() == WL_NO_SHIELD) {
    Serial.println("WiFi shield not present");
    // don't continue:
    while(true);
  }

  // check firmware version
  Serial.print(F("Firmware version: "));
  Serial.println(WiFi.firmwareVersion());
13  Using Arduino / Programming Questions / Re: Problem: UDP Wraped with If Statement on: April 23, 2014, 07:17:48 am
I agree with PaulS. I also gave up guessing shortly after starting to program. That was in 1983. Note that number is not the correct format for a military 24 hour time.  smiley-wink

Add a Serial.prinln call to this if condition like I did below. Does it display "Changed" on the serial monitor when you think it should have changed?
Code:
   if ((v1 != IO1DigitalVals[i]) || (v2 != IO2DigitalVals[i]) || (v3 != IO3DigitalVals[i])) {
      IO1DigitalVals[i] = v1;
      IO2DigitalVals[i] = v2;
      IO3DigitalVals[i] = v3;
      evt = 1;

      // Here is a Serial debug message
      Serial.println("Changed");
   }
14  Using Arduino / Networking, Protocols, and Devices / Re: Failure to connect to DHCP on: April 23, 2014, 07:00:07 am
Remove the shield, When you start the compile/upload, press the reset button on the Arduino. When the "uploading" message appears, release the reset button.

Insure the shield is connected to the Arduino correctly. Maybe the pins aren't inserted fully into the sockets?

15  Using Arduino / Networking, Protocols, and Devices / Re: Failure to connect to DHCP on: April 22, 2014, 09:17:20 pm
Reboot the router, then reboot the Arduino. It may need to make another dhcp request once the router is rebooted.
Pages: [1] 2 3 ... 361