Show Posts
Pages: 1 ... 186 187 [188] 189 190 ... 414
2806  Using Arduino / Networking, Protocols, and Devices / Re: DHCP Address Printer Sketch not responding on: May 05, 2013, 12:26:12 am
Try the SPI test sketch on this link.
http://arduino.cc/forum/index.php/topic,156082.msg1169948.html#msg1169948
Does it display 192.168.2.2? Or 0.0.0.0?
2807  Using Arduino / Project Guidance / Re: arduino ethernet shield on: May 04, 2013, 07:39:32 am
This may cause you some challenges if you didn't change it.
Code:
EthernetServer server(84); //server port
Maybe you should change that to the standard http port 80.
Code:
EthernetServer server(80); //server port
2808  Using Arduino / Networking, Protocols, and Devices / Re: LED will not turn on and off with Ethernet shild on: May 04, 2013, 06:54:33 am
Quote
Also my LED is on but its not full power it only has 2.5 volts it looks like its ruining on 1 volt
Probably because it is on only about half the time. The response from the server comes in packets. When you get a packet, the LED is on. When you empty the rx buffer of that packet, it takes a short time to get another, so the LED will be off until another packet arrives. It happens so fast you don't see the LED blinking on and off. Your eyes see it as dim.

You should try web client code that is verbose to find the problem. Here is mine.
http://playground.arduino.cc/Code/WebClient

edit: AND I do not see where you set the LED pin to OUTPUT. That will make it really dim. You are driving it with a weak pullup resistor.
2809  Using Arduino / Networking, Protocols, and Devices / Re: LED will not turn on and off with Ethernet shild on: May 03, 2013, 10:04:28 pm
This should not include the protocol or the server, just the directory/file. It should look like this:
Code:
   client.println("GET /arduino/display.php HTTP/1.0");

edit: Oops! I forgot the "HTTP/1.0". It's there now.
2810  Using Arduino / Networking, Protocols, and Devices / Re: send email to gmail ,sucess telnet and not work in arduino on: May 03, 2013, 11:02:40 am
Then your dns server entries are not set correctly in your network settings for that computer. That is telling you there is no dns server available.
2811  Using Arduino / Networking, Protocols, and Devices / Re: send email to gmail ,sucess telnet and not work in arduino on: May 03, 2013, 08:28:05 am
Then try the gmail email server directly. You should use a local gmail server, so do an nslookup for the ip. From a command prompt
Code:
nslookup
set query=mx
gmail.com
It should list a few email servers. Use the one with the lowest MX preference number. Here is mine:
Quote
C:\Documents and Settings\user>nslookup
Default Server:  ip68-105-28-16.at.at.cox.net
Address:  68.105.28.16

> set query=mx
> gmail.com
Server:  ip68-105-28-16.at.at.cox.net
Address:  68.105.28.16

Non-authoritative answer:
// here is the lowest MX preference
gmail.com       MX preference = 5, mail exchanger = gmail-smtp-in.l.google.com
gmail.com       MX preference = 10, mail exchanger = alt1.gmail-smtp-in.l.google.com
gmail.com       MX preference = 20, mail exchanger = alt2.gmail-smtp-in.l.google.com
gmail.com       MX preference = 30, mail exchanger = alt3.gmail-smtp-in.l.google.com
gmail.com       MX preference = 40, mail exchanger = alt4.gmail-smtp-in.l.google.com

gmail.com       nameserver = ns4.google.com
gmail.com       nameserver = ns1.google.com
gmail.com       nameserver = ns2.google.com
gmail.com       nameserver = ns3.google.com
// Here is the ip for that sever. Use it, but the one your nslookup shows
gmail-smtp-in.l.google.com      internet address = 74.125.134.26
gmail-smtp-in.l.google.com      AAAA IPv6 address = 2607:f8b0:4002:c02::1b
alt1.gmail-smtp-in.l.google.com internet address = 74.125.131.26
alt1.gmail-smtp-in.l.google.com AAAA IPv6 address = 2607:f8b0:400c:c02::1a
alt2.gmail-smtp-in.l.google.com internet address = 173.194.66.26
alt3.gmail-smtp-in.l.google.com internet address = 173.194.65.27
alt3.gmail-smtp-in.l.google.com AAAA IPv6 address = 2a00:1450:4013:c00::1a
alt4.gmail-smtp-in.l.google.com internet address = 173.194.70.26
alt4.gmail-smtp-in.l.google.com AAAA IPv6 address = 2a00:1450:4001:c02::1a
ns1.google.com  internet address = 216.239.32.10
ns2.google.com  internet address = 216.239.34.10
ns3.google.com  internet address = 216.239.36.10
ns4.google.com  internet address = 216.239.38.10
>
C:\Documents and Settings\user>
2812  Using Arduino / Networking, Protocols, and Devices / Re: send email to gmail ,sucess telnet and not work in arduino on: May 03, 2013, 08:17:53 am
i use my local computer as smtp server (192.168.1.2)
What email server program do you have installed in your local computer? Is it Exchange? Sendmail? PostFix?

Is your computer firewall allowing port 25 requests?
2813  Using Arduino / Networking, Protocols, and Devices / Re: send email to gmail ,sucess telnet and not work in arduino on: May 03, 2013, 08:08:15 am
What are you using for the email server ip/domain? Are you using a domain name or an ip?

2814  Using Arduino / Networking, Protocols, and Devices / Re: send email to gmail ,sucess telnet and not work in arduino on: May 03, 2013, 07:52:14 am
I like the screen shots. Post one of the serial monitor after an email send attempt.
2815  Using Arduino / Networking, Protocols, and Devices / Re: send email to gmail ,sucess telnet and not work in arduino on: May 03, 2013, 07:41:20 am
OK, are the network settings for the email code the same as you used for the web server?
2816  Using Arduino / Networking, Protocols, and Devices / Re: send email to gmail ,sucess telnet and not work in arduino on: May 03, 2013, 07:19:08 am
it work in telnet CMD in my pc and server is replay perfectly !
but in arduino didn't work ! how come!
OK, since you are hesitant to post the problem, I'll start with the basics.
Is your ethernet shield connected to a router with a CAT5 cable? It must be connected to the internet to work.
2817  Using Arduino / Networking, Protocols, and Devices / Re: send email to gmail ,sucess telnet and not work in arduino on: May 03, 2013, 04:39:17 am
Quote
still not working
If you are using the email code zoomkat suggested, where does it not work? It will display all the responses from the server.

edit: Here is a link to my latest email code. It has a timeout now.
http://playground.arduino.cc/Code/Email
2818  Using Arduino / Networking, Protocols, and Devices / Re: Problem with two servers on: May 02, 2013, 02:18:25 pm
The code you have in that attached file isn't even close to what I gave you. I never use the String data type.

Maybe you should select a simpler project next time. Two servers on one Arduino is a feat in itself. Most here have trouble with one. Search the forum for two servers on one Arduino. How many do you find?
2819  Using Arduino / Networking, Protocols, and Devices / Re: Problem with two servers on: May 02, 2013, 11:38:24 am
I need more than "it doesn't work". Where does it fail? On startup? When it gets a request? When it opens a file? If you are not sure, put stuff like this at or near code where it is failing.
Code:
Serial.println(F("I'm here #1"));
2820  Using Arduino / Networking, Protocols, and Devices / Re: UDP Broadcast with Ethernet Shield? on: May 02, 2013, 10:33:29 am
Basically, yes. But they must be listening for a broadcast on that port. DHCP servers listen on port 67.
Pages: 1 ... 186 187 [188] 189 190 ... 414