Show Posts
Pages: [1] 2 3 ... 360
1  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.
2  Using Arduino / Networking, Protocols, and Devices / Re: WIFI Shield firmware update 1.0.5 attempt on: April 22, 2014, 09:13:00 pm
Look at reply #9 and reply #11. That is the output from a successful upgrade.
3  Using Arduino / Networking, Protocols, and Devices / Re: Failure to connect to DHCP on: April 22, 2014, 09:11:38 pm
Just switch it off and back on.
4  Using Arduino / Networking, Protocols, and Devices / Re: Failure to connect to DHCP on: April 22, 2014, 05:12:37 pm
You would have to check the router. Rebooting the router may help. After that, the router's dhcp lease list is a good place to start.

What make and model of router is the Arduino having a problem with?
5  Using Arduino / Networking, Protocols, and Devices / Re: Wifi shield and output pins on: April 22, 2014, 09:07:16 am
First, you should post what the symptoms are. Does the Arduino keep running or lock up? What is the serial monitor show when it fails?

You could be running out of SRAM. That causes weird fails.

You may not be waiting long enough for a response from the server. This doesn't wait for a response. You are supposed to wait for the server to close the connection before closing your end. This doesn't. And if the client is still connected, this won't close the connection.
Code:
  while (client.available()) {
    char c = client.read();
    Serial.write(c);
    response=response+c;
  }

  // if the server's disconnected, stop the client:
  // if the server is still connected, leave the connection open and lose the socket
  if (!client.connected()) {
    Serial.println();
    Serial.println("disconnecting from server.");
    client.stop();
  }
6  Using Arduino / Programming Questions / Re: [solved]NTP date and time updating but serial sais update is failed on: April 22, 2014, 06:36:22 am
I have managed to complete the full program and it worked perfectly at home. Then I moved my boards to another modem, changed my IPADDRESS according to ntslookup from command prompt but it did not connect.  I connected the laptop to the modem (via cable) and there was internet.  Do you know what I should do?
I'm not sure. It could be any of the following:
The NTP server is down.
The router is not connection tracking UDP packets.
The UDP forward chain is blocked on that router.
7  Using Arduino / Programming Questions / Re: Save settings on sd card on: April 19, 2014, 06:59:21 am
I use the SD card on the ethernet shield so I can replace the Arduino/shield, insert the old SD card into the new shield and use the same network settings without programming the settings into the Arduino. Just my preference...

BTW, if you store them in PROGMEM, you can't change them with this code.
8  Using Arduino / Programming Questions / Re: Save settings on sd card on: April 19, 2014, 06:50:58 am
I do that now and then. Here is how:
http://forum.arduino.cc/index.php?topic=128763.msg976118#msg976118
9  Using Arduino / Networking, Protocols, and Devices / Re: Mulitiple SPI devices. (NFC Shield v2, and SD shield V2) on: April 19, 2014, 06:40:13 am
I would change the SD shield slave select instead. Install the SD card on top of the NFC shield, first bending D10 just enough on the SD shield so it doesn't insert into the NFC shield, then install a jumper wire from D10 to D4.
10  Using Arduino / Networking, Protocols, and Devices / Re: Problems in connecting the arduino to internet using Wifi-shield on: April 18, 2014, 01:45:21 pm
I don't know where you got that code, but have you tried any of the examples included with the IDE? There are three examples, each using a different security method.
ConnectNoEncryption
ConnectWithWEP
ConnectWithWPA

Have you tested your shield to see if the firmware is current?
11  Using Arduino / Networking, Protocols, and Devices / Re: Mulitiple SPI devices. (NFC Shield v2, and SD shield V2) on: April 18, 2014, 12:34:25 pm
According to the links you posted:
D10 is the SPI slave select for the SD card.
D10 is the SPI slave select for the NFC card.

Did you do a little pin bending and jumpering? Other wise, these two won't work together. They have the same slave select pin.
12  Using Arduino / Networking, Protocols, and Devices / Re: Uploading file from SD card to remote server? on: April 18, 2014, 09:26:26 am
Here is server code that will upload to a client any 8.3 format file on the SD card.
http://playground.arduino.cc/Code/WebServerST
13  Using Arduino / Networking, Protocols, and Devices / Re: SD card Intialise error on: April 18, 2014, 07:43:33 am
Have you tried the ethernet part of the shield without the SD card inserted in the shield's slot? Maybe you have a SPI bus problem. Try this code. Does it display 192.168.2.2 on the serial monitor? If it displays anything else, like 0.0.0.0, then you have a SPI bus problem. Insure the shield is inserted correctly and fully into the Arduino, especially the ICSP pins.
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() {
}

14  Using Arduino / Networking, Protocols, and Devices / Re: SD card Intialise error on: April 18, 2014, 06:42:37 am
Quote
I am running below code on arduino UNO R3 with Ethernet shield.
The w5100 ethernet controller slave select is D10.
The SD card slave select is D4.

Unless you did some pin bending and a jumper, you can't change those.

Did you reformat the SD card as I recommended?
15  Using Arduino / Networking, Protocols, and Devices / Re: SD card Intialise error on: April 18, 2014, 06:28:55 am
You will have problems with that code if you do not disable the w5100 SPI. This I know for a fact. It caused me much grief until I discovered this. Add this digitalWrite() call to your code in the setup function.
Code:
  pinMode(10, OUTPUT);
  digitalWrite(10, HIGH);
Pages: [1] 2 3 ... 360