Show Posts
Pages: 1 2 [3] 4 5 ... 391
31  Using Arduino / Networking, Protocols, and Devices / Re: I upload code to wifi shield but I can't connect to IP address on: July 17, 2014, 03:34:01 pm
That example is really not for a web browser. It is more for a telnet app. If you want to try to connect with a web browser, you must either change the server port from 23 to 80, or append the port to the ip in the browser address bar like this:
http://192.168.1.2:23

32  Using Arduino / Storage / Re: Problems with WIZnet W5100 ethernet shield on: July 17, 2014, 06:20:21 am
If there is a dhcp server on that network, then you have a problem with the connection from the w5100 to the router. Insure the cable is good and the ethernet interface lights are lit on the shield and the router.

There have been reports of solder bridges on some of the w5100 shields. You should check that also. Read this post and look at the pic links. They show examples of solder bridges.
http://forum.arduino.cc/index.php?topic=124366.msg934591#msg934591

edit: I see your pic of the router's dhcp entries. It appears the router is receiving the dhcp request.
33  Using Arduino / Storage / Re: Problems with WIZnet W5100 ethernet shield on: July 17, 2014, 06:09:17 am
OK, if your network has a dhcp server, then try this code to test the w5100 connection to the router. It should also display your localnet settings. If you have any questions about the values returned, post the output of the serial monitor here.
Code:
#include <SPI.h>
#include <Ethernet.h>

byte mac[] = {  0x00, 0xAD, 0xBE, 0xEF, 0xFE, 0xED };

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

  // disable SD SPI
  pinMode(4,OUTPUT);
  digitalWrite(4,HIGH);

  Serial.print(F("Starting ethernet..."));
  if(!Ethernet.begin(mac)) Serial.println(F("failed"));
  else {
      Serial.print(F("IP: "));
      Serial.println(Ethernet.localIP());
      Serial.print(F("Subnet: "));
      Serial.println(Ethernet.subnetMask());
      Serial.print(F("Gateway: "));
      Serial.println(Ethernet.gatewayIP());
      Serial.print(F("DNS server: "));
      Serial.println(Ethernet.dnsServerIP());
}

void loop() {
}
34  Using Arduino / Storage / Re: Problems with WIZnet W5100 ethernet shield on: July 17, 2014, 05:23:13 am
Try this test sketch. It checks the SPI connection between the Arduino and the w5100. If the serial monitor shows 192.168.2.2, then that part is working. If it shows anything else, like 0.0.0.0, then you have a problem there. Insure the shield is inserted 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 SPI
  pinMode(4,OUTPUT);
  digitalWrite(4,HIGH);

  // Start ethernet
  Serial.println(F("Starting ethernet..."));
  Ethernet.begin(mac, ip);
  digitalWrite(10,HIGH);
  Serial.println(Ethernet.localIP());

  delay(2000);
  Serial.println(F("Ready"));
}

void loop() {
}
35  Topics / Home Automation and Networked Objects / Re: Send an email or an SNMP-Trap if a digital input change from 0 to 1 on: July 16, 2014, 04:50:12 pm
Here is an example email sketch that evaluates and displays the responses of the email server so you know if it has actually been sent, and if not why it wasn't. It is an improved version of zoomkat's code.
http://playground.arduino.cc/Code/Email
36  Using Arduino / Networking, Protocols, and Devices / Re: Arduino Ethernet Shield on a 192.168.1.x IP Address on: July 16, 2014, 01:10:51 pm
Hi, I have been trying to use my Ethernet shield to set up a web server with my Arduino Uno. I set up the server with a 192.168.1.18 IP Address but when entering the IP into Chrome it cannot to the IP. However, when I use a 168.254.86.x IP Address I can connect to the server through chrome and it works. However, this will only work on the computer that my Arduino's Ethernet cable is plugged into. To the best of my knowledge it is a normal non-crossover cable. I cannot connect to that IP using any other device on the network.
I think it is probably due to your lack of understanding about networking and tcp/ip. The computer network interface is probably assigned a 168.254.86.x ip and 255.255.255.0 subnet mask. That means it will be able to access the Arduino, but unless you route that subnet from the localnet through your computer, you won't be able to access it.

I suggest you connect the Arduino directly to the router.
37  Using Arduino / Interfacing w/ Software on the Computer / Re: How to add .js and .css files in a arduino-SD card hosted website ? on: July 16, 2014, 09:11:44 am
Before I do that, you should post the contents of your "ajax_inputs" file. If it requires server side processing, the Arduino is not set up to do that by default.
38  Using Arduino / Networking, Protocols, and Devices / Re: arduino Wifi Shield with HDG204-chip - ad-hoc-connection or s.th. similar on: July 16, 2014, 09:08:25 am
According to the WiFi shield page, the access point must transmit a SSID, and I do not believe ad-hoc networks do that.
39  Using Arduino / Programming Questions / Re: WebServer GET and ajax-requests on: July 16, 2014, 08:13:19 am
Yo, then use my code and add the XML file type.
http://playground.arduino.cc/Code/WebServerST
Look for the "send Content-Type" comment and add XML to that list.

edit: Maybe you should post the contents of your "simple" ajax_inputs file. And remember the SD card library supports 8.3 format filenames.
40  Development / Other Software Development / Re: IDE 1.0.5 doesn't work properly with wifi module on: July 16, 2014, 07:56:21 am
Quote
The module is wifi r3 the chipset is at32uc3a1512 and HDG204 not same of what is reported in upgrade tutorial.
I checked with the manufacturer of the wifi ICs, and both require the firmware upgrade. Same firmware and procedure applies to both the HDG104 and HDG204.
http://www2.hd-wireless.se/

edit: Here is the thread that verifies the firmware upgrades work with your ICs.
http://forum.arduino.cc/index.php?topic=217333.0
41  Using Arduino / Project Guidance / Re: LCD keypad shield with a WiFi shield pin problems on: July 16, 2014, 07:44:34 am
Quote
The WiFi shield uses pins 4, 10, 11, 12, 13 as far as I know and the Ethernet shield uses the same.
Add D7 to that list for the WiFi shield. That is the handshake pin.
http://arduino.cc/en/Main/ArduinoWiFiShield
42  Using Arduino / Programming Questions / Re: WebServer GET and ajax-requests on: July 16, 2014, 07:29:29 am
Where is your "ajax_inputs" server side ActiveXObject processing? Is that a dynamically constructed file? I would guess yes.
43  Community / Website and Forum / Re: Is arduino forum under stress? on: July 16, 2014, 07:16:21 am
Are arduino suffering another DOS attack?
I would guess yes by the slow responses, or the servers are failing. The forum seems ok, but the auth server and the playground are almost unusable.
44  Using Arduino / Interfacing w/ Software on the Computer / Re: How to add .js and .css files in a arduino-SD card hosted website ? on: July 16, 2014, 07:11:38 am
I see no reason to debug your code. I have working server code on the playground that does not have all the limitations your code has. It will download any 8.3 format file from the SD card as long as it is a recognized file type.
http://playground.arduino.cc/Code/WebServerST

You would have to add the XML file type to my code, but with the examples I included, it shouldn't be difficult. Look for the "Send Content-Type" remark and add XML to that section.

edit: And even that may not work. The "ajax_inputs" XML code page is probably a dynamic page like PHP or ASP. And the file name is too long. The SD library supports 8.3 format file names only.
45  Using Arduino / Programming Questions / Re: Not writing to SD on: July 15, 2014, 08:02:56 pm
Explain what part of the code writes the "header". Is it this?
Code:
  myFile.println("ADC,Time");
Pages: 1 2 [3] 4 5 ... 391