Show Posts
Pages: 1 [2] 3 4 ... 391
16  Community / Website and Forum / Re: He's back! on: July 20, 2014, 05:35:19 pm
Unless my tired old eyes deceive me, Nick Gammon is back and is a global moderator.
http://forum.arduino.cc/index.php?topic=256037.0

Welcome back Nick.

Pete
I second that! Others do too.
http://forum.arduino.cc/index.php?topic=255008.0
17  Using Arduino / Networking, Protocols, and Devices / Re: Wiring multiple devices to Arduino through SPI on: July 20, 2014, 05:48:57 am
Thanks for your answer.I looked at the pictures on your links.  Is it breadboard which allows to connect more than one wire to same(one) pin on Arduino?
Yes. You can make your own wires if you prefer, but for prototyping (testing) I prefer a breadboard for that.

18  Using Arduino / Storage / Re: Stacking Wifi-Shield and Data Logging Shield(adafruit) on MEGA on: July 19, 2014, 08:12:05 am
You are correct. I use this code with the WiFi shield and the SD card.
Code:
                  while(myFile.available()) {
                    tBuf[clientCount] = myFile.read();
                    clientCount++;
                    tBuf[clientCount] = 0;

                    if(clientCount > 63) {
                      client.write((byte*)tBuf,64);
                      clientCount = 0;
                    }

                  }
                  if(clientCount > 0) {
                    client.write((byte*)tBuf,clientCount);
                  }
                }
But be aware the server functions in the WiFi shield firmware are unreliable when accessed by more than one client at a time. It has a tendency to send corrupt or incorrect files to the clients.  smiley-sad
19  Using Arduino / Storage / Re: Stacking Wifi-Shield and Data Logging Shield(adafruit) on MEGA on: July 19, 2014, 07:39:31 am
It is true the HDG104/HDG204 and the SD cannot be active at the same time (both slave selects LOW simultaneously), they can be used together in the same sketch. Both libraries control the slave select pins for each device, so they will work together once the startups for both SPI devices are complete.
20  Using Arduino / Networking, Protocols, and Devices / Re: Arduino Ethernet shield connects to Router but not to PC on: July 19, 2014, 06:38:59 am
It is not the wireless connection properties you need to change. It will probably be listed as "Local Area Connection".

Open the command prompt and type ifconfig. It will show your network settings. Post the results of that and maybe I can help.
21  Using Arduino / Networking, Protocols, and Devices / Re: Wiring multiple devices to Arduino through SPI on: July 17, 2014, 08:47:50 pm
For prototyping, I prefer stuff like this. Already assembled and ready to go.

I use jumper wires like these. Male-to-male is what I use the most of.
http://www.adafruit.com/categories/125

Combine those with a breadboard like one of these.
http://www.adafruit.com/categories/124

Mix and match.  smiley
22  Using Arduino / Networking, Protocols, and Devices / Re: UDPSendReceiveString Problem on: July 17, 2014, 05:57:34 pm
Check the corp router's firewall rules. Maybe it is blocking UDP between local subnets.

Check the NAT/masquerade rules also. If the router masquerades UDP packets leaving the localnets, the packet will not arrive at the destination with the correct (expected) source IP, and when you attempt to return the packet, it will be sent to the wrong IP.
23  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

24  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.
25  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() {
}
26  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() {
}
27  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
28  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.
29  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.
30  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.
Pages: 1 [2] 3 4 ... 391