Show Posts
Pages: [1] 2 3 ... 360
1  Using Arduino / Networking, Protocols, and Devices / Re: Problems in connecting the arduino to internet using Wifi-shield on: Today at 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?
2  Using Arduino / Networking, Protocols, and Devices / Re: Mulitiple SPI devices. (NFC Shield v2, and SD shield V2) on: Today at 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.
3  Using Arduino / Networking, Protocols, and Devices / Re: Uploading file from SD card to remote server? on: Today at 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
4  Using Arduino / Networking, Protocols, and Devices / Re: SD card Intialise error on: Today at 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() {
}

5  Using Arduino / Networking, Protocols, and Devices / Re: SD card Intialise error on: Today at 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?
6  Using Arduino / Networking, Protocols, and Devices / Re: SD card Intialise error on: Today at 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);
7  Using Arduino / Networking, Protocols, and Devices / Re: Uploading file from SD card to remote server? on: Today at 05:53:30 am
Do you know if it's possible to the arduino to create 2 web server at the same Ip but port different.
Example control a led on 192.168.1.15:80
And retrieve file at 192.168.1.15:84
Yes.
http://forum.arduino.cc//index.php?topic=151224.msg1135615#msg1135615
8  Using Arduino / Networking, Protocols, and Devices / Re: Editing option In Websever on: Today at 05:42:14 am
Do you still have the SD card in the shield's slot? If so, I do not see in your code where you are disabling the SD card SPI. That could cause problems with the w5100.
9  Using Arduino / Networking, Protocols, and Devices / Re: SD card Intialise error on: Today at 05:38:49 am
Look through the Storage section of the forum for the formatting software that fat16lib recommends. Reformat the SD card and see if that helps. Mine did fine "out of the box", but I hear some SD cards don't.
10  Using Arduino / Networking, Protocols, and Devices / Re: Mulitiple SPI devices. (NFC Shield v2, and SD shield V2) on: Today at 05:30:38 am
You should disable all other SPI devices before starting any of them. The code below disables the SD card SPI before starting the NDEF reader so the SD card won't corrupt the SPI bus during the startup.
Code:
void setup(void) {
  Serial.begin(9600);

  // disable SD before starting NFC
  pinMode(7, OUTPUT);
  digitalWrite(7, HIGH);

  Serial.println("NDEF Reader");
  nfc.begin();
11  Using Arduino / Networking, Protocols, and Devices / Re: Uploading file from SD card to remote server? on: April 17, 2014, 08:21:35 am
Major problem with FTP uploads is the FTP server firewall.
If you can connect from the PC, but not from any external device, it is probably the PC firewall settings.
12  Using Arduino / Networking, Protocols, and Devices / Re: Minimum FTP Client on: April 17, 2014, 07:48:20 am
Is the section for writing to the file and saving it structured alright?
No. You must save only the data after the header. The data is separated from the header by a blank line (double carriage return/line feed).

I would also recommend checking the first line of the server response to insure the file was found.
13  Using Arduino / Networking, Protocols, and Devices / Re: Uploading file from SD card to remote server? on: April 17, 2014, 07:20:45 am
Major problem with FTP uploads is the FTP server firewall. If the command connection can be established, but the data connection attempt fails, that is normally the server firewall blocking the data connection port.

14  Using Arduino / Networking, Protocols, and Devices / Re: Minimum FTP Client on: April 17, 2014, 07:18:21 am
The server ip should be the ip of your server (PC). Replace the 'x' with your PC ip.
Code:
IPAddress server(192,168,x,x);
15  Using Arduino / Networking, Protocols, and Devices / Re: Minimum FTP Client on: April 17, 2014, 06:53:51 am
If the command connection opens and allows you to login, then fails at the data connection open, that is normally a FTP server firewall problem.

With the HTTP code, you can't use 127.0.0.1 for the server on the Arduino. That is localhost. If the server is on a localnet, you must use the local ip address of the server.
Pages: [1] 2 3 ... 360