Show Posts
Pages: [1] 2 3 ... 359
1  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
2  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.
3  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.
4  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();
5  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.
6  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.
7  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.

8  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);
9  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.
10  Using Arduino / Networking, Protocols, and Devices / Re: Ethernet UDP hang on: April 17, 2014, 06:34:00 am
@Lugination: Looks like you did not add the include files required to compile the sketch. UDP requires these includes.
Code:
#include <SPI.h>
#include <Ethernet.h>
#include <EthernetUdp.h>
11  Using Arduino / Networking, Protocols, and Devices / Re: Minimum FTP Client on: April 17, 2014, 06:26:49 am
If you need only one text file from a server to the Arduino, you can use http protocol and a standard web server.

If you want to use my FTP code from the playground, I need to know what the response from the FTP download attempt.
Does it connect to the server?
Does it log in?
Does it open the data channel?
12  Using Arduino / Networking, Protocols, and Devices / Re: Ethernet shield Coding on: April 16, 2014, 04:43:05 pm
Is that a switch or a router?

Do you have a commercial account (static IP) with your ISP? If not commercial, it is probable that your ISP blocks certain ports, like port 80 requests from the internet.
13  Using Arduino / Programming Questions / Re: GSM 900 sms ÿÿ0€ error reading sms messages on: April 16, 2014, 08:30:20 am
I don't know about the GSM, but normally, Arduino functions return -1 when no characters are available from that device. That will display the funny y.
Funny y = ÿ = 255 = -1 = no characters available
14  Using Arduino / Networking, Protocols, and Devices / Re: Testing Ethernet shield example on: April 16, 2014, 06:43:48 am
Try this sketch. It tests the SPI bus and the SPI end of the w5100. Does it show 192.168.2.2 on the serial monitor? If it shows anything else, like 0.0.0.0, then check the shield connection to the Arduino. Insure all pins are inserted into the sockets.
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() {
}

BTW, the dhcp example I posted in Programming wouldn't work if you are connected directly to your PC. It doesn't have a dhcp server set up on that interface. That would have been helpful to know.
15  Using Arduino / Networking, Protocols, and Devices / Re: Ethernet shield Coding on: April 16, 2014, 06:37:14 am
I will reply to the post you started in Networking. It belongs there.
edit: I see a moderator merged both subjects. Thanks!  smiley
Pages: [1] 2 3 ... 359