Show Posts
Pages: 1 ... 166 167 [168] 169 170 ... 392
2506  Using Arduino / Networking, Protocols, and Devices / Re: W5100/Ethernet cannot use socket as UDP after using it as TCP on: April 28, 2013, 12:52:29 pm
It does nothing for "reliable". It waits 1 second. If no response, it bails.

And the remote server thing just went out the window. I forgot to remove my SD card again, and you code does not disable it. It is working fine with my domain and a remote dns server.
2507  Using Arduino / Networking, Protocols, and Devices / Re: W5100/Ethernet cannot use socket as UDP after using it as TCP on: April 28, 2013, 12:42:56 pm
That could be it. I just tried the same test using a remote dns server and my domain, and it crashed like the Hindenberg.  smiley-sad

Now I am back to a localnet dns server and it is ok.

@sonnyyu: No question there. Arduino NTP uses UDP.
2508  Using Arduino / Storage / Re: spi trouble when adding second device on: April 28, 2013, 12:22:32 pm
Quote
SDcard starts working AND the kta remains working??? But that is what I wanted... ;-)
OH NO!! I'll call Delta Force and send in an extraction team!!

edit: I always forget the smiley face.  smiley
2509  Using Arduino / Networking, Protocols, and Devices / Re: W5100/Ethernet cannot use socket as UDP after using it as TCP on: April 28, 2013, 12:12:04 pm
Maybe you are right. Maybe the delay waiting for the response from the dns server is not long enough. That could cause the dns fail.

edit: Your test is still running on my Arduino. It has not missed a beat since I started it.
Just so you know...
2510  Using Arduino / Networking, Protocols, and Devices / Re: W5100/Ethernet cannot use socket as UDP after using it as TCP on: April 28, 2013, 12:05:37 pm
I'm not firing at you.  smiley  I'm just stating a fact. I am not fond of UDP either as a reliable transfer, but we are subjected to it through theses services.
2511  Using Arduino / Networking, Protocols, and Devices / Re: W5100/Ethernet cannot use socket as UDP after using it as TCP on: April 28, 2013, 12:01:42 pm
@sonnyyu: That is a good thought, but NTP, DNS, and DHCP use UDP. You really can't avoid it.

2512  Using Arduino / Networking, Protocols, and Devices / Re: W5100/Ethernet cannot use socket as UDP after using it as TCP on: April 28, 2013, 11:47:44 am
I am concerned about DoS when publishing my public ip, and not because of this code. Here is my serial monitor display for a short run. It will go on for hours like this.
Quote
Start!
Socket#0:0x14 80 D:0.0.0.0(0)
Socket#1:0x0 0 D:0.0.0.0(0)
Socket#2:0x0 0 D:0.0.0.0(0)
Socket#3:0x0 0 D:0.0.0.0(0)
xx.xx.58.116
Socket#0:0x14 80 D:0.0.0.0(0)
Socket#1:0x0 1024 D:xx.xx.58.115(53)
Socket#2:0x0 0 D:0.0.0.0(0)
Socket#3:0x0 0 D:0.0.0.0(0)
xx.xx.58.116
Socket#0:0x14 80 D:0.0.0.0(0)
Socket#1:0x0 1036 D:xx.xx.58.115(53)
Socket#2:0x0 0 D:0.0.0.0(0)
Socket#3:0x0 0 D:0.0.0.0(0)
xx.xx.58.116
Socket#0:0x14 80 D:0.0.0.0(0)
Socket#1:0x0 1031 D:xx.xx.58.115(53)
Socket#2:0x0 0 D:0.0.0.0(0)
Socket#3:0x0 0 D:0.0.0.0(0)
new Client
Socket#0:0x17 80 D:192.168.1.254(3691)
Socket#1:0x17 80 D:192.168.1.254(3692)
Socket#2:0x14 80 D:0.0.0.0(0)
Socket#3:0x0 0 D:0.0.0.0(0)
GET / HTTP/1.1
Host: 192.168.2.2
Connection: keep-alive
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
User-Agent: Mozilla/5.0 (Windows NT 5.1) AppleWebKit/537.31 (KHTML, like Gecko) Chrome/26.0.1410.64 Safari/537.31
Accept-Encoding: gzip,deflate,sdch
Accept-Language: en-US,en;q=0.8
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.3

client disconnected
xx.xx.58.116
Socket#0:0x0 1026 D:xx.xx.58.115(53)
Socket#1:0x17 80 D:192.168.1.254(3692)
Socket#2:0x14 80 D:0.0.0.0(0)
Socket#3:0x0 0 D:0.0.0.0(0)
new Client
Socket#0:0x14 80 D:xx.xx.58.115(53)
Socket#1:0x17 80 D:192.168.1.254(3692)
Socket#2:0x17 80 D:192.168.1.254(3693)
Socket#3:0x0 0 D:0.0.0.0(0)
GET / HTTP/1.1
Host: 192.168.2.2
Connection: keep-alive
Cache-Control: max-age=0
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
User-Agent: Mozilla/5.0 (Windows NT 5.1) AppleWebKit/537.31 (KHTML, like Gecko) Chrome/26.0.1410.64 Safari/537.31
Accept-Encoding: gzip,deflate,sdch
Accept-Language: en-US,en;q=0.8
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.3

client disconnected
xx.xx.58.116
Socket#0:0x14 80 D:xx.xx.58.115(53)
Socket#1:0x0 1038 D:xx.xx.58.115(53)
Socket#2:0x17 80 D:192.168.1.254(3693)
Socket#3:0x0 0 D:0.0.0.0(0)
xx.xx.58.116
Socket#0:0x14 80 D:xx.xx.58.115(53)
Socket#1:0x0 1034 D:xx.xx.58.115(53)
Socket#2:0x0 80 D:192.168.1.254(3693)
Socket#3:0x0 0 D:0.0.0.0(0)
new Client
Socket#0:0x17 80 D:192.168.1.254(3694)
Socket#1:0x17 80 D:192.168.1.254(3695)
Socket#2:0x14 80 D:192.168.1.254(3693)
Socket#3:0x0 0 D:0.0.0.0(0)
GET / HTTP/1.1
Host: 192.168.2.2
Connection: keep-alive
Cache-Control: max-age=0
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
User-Agent: Mozilla/5.0 (Windows NT 5.1) AppleWebKit/537.31 (KHTML, like Gecko) Chrome/26.0.1410.64 Safari/537.31
Accept-Encoding: gzip,deflate,sdch
Accept-Language: en-US,en;q=0.8
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.3

client disconnected
xx.xx.58.116
Socket#0:0x0 1029 D:xx.xx.58.115(53)
Socket#1:0x17 80 D:192.168.1.254(3695)
Socket#2:0x14 80 D:192.168.1.254(3693)
Socket#3:0x0 0 D:0.0.0.0(0)
new Client
Socket#0:0x14 80 D:xx.xx.58.115(53)
Socket#1:0x17 80 D:192.168.1.254(3695)
Socket#2:0x17 80 D:192.168.1.254(3698)
Socket#3:0x0 0 D:0.0.0.0(0)
GET / HTTP/1.1
Host: 192.168.2.2
Connection: keep-alive
Cache-Control: max-age=0
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
User-Agent: Mozilla/5.0 (Windows NT 5.1) AppleWebKit/537.31 (KHTML, like Gecko) Chrome/26.0.1410.64 Safari/537.31
Accept-Encoding: gzip,deflate,sdch
Accept-Language: en-US,en;q=0.8
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.3

client disconnected
xx.xx.58.116
Socket#0:0x14 80 D:xx.xx.58.115(53)
Socket#1:0x0 1024 D:xx.xx.58.115(53)
Socket#2:0x17 80 D:192.168.1.254(3698)
Socket#3:0x0 0 D:0.0.0.0(0)
a
Socket#2:0x0 0 D:0.0.0.0(0)
Socket#3:0x0 0 D:0.0.0.0(0)
xx.xx.58.116
Socket#0:0x14 80 D:0.0.0.0(0)
Socket#1:0x0 1024 D:xx.xx.58.115(53)
Socket#2:0x0 0 D:0.0.0.0(0)
Socket#3:0x0 0 D:0.0.0.0(0)
xx.xx.58.116
Socket#0:0x14 80 D:0.0.0.0(0)
Socket#1:0x0 1036 D:xx.xx.58.115(53)
Socket#2:0x0 0 D:0.0.0.0(0)
Socket#3:0x0 0 D:0.0.0.0(0)
xx.xx.58.116
Socket#0:0x14 80 D:0.0.0.0(0)
Socket#1:0x0 1031 D:xx.xx.58.115(53)
Socket#2:0x0 0 D:0.0.0.0(0)
Socket#3:0x0 0 D:0.0.0.0(0)
new Client
Socket#0:0x17 80 D:192.168.1.254(3691)
Socket#1:0x17 80 D:192.168.1.254(3692)
Socket#2:0x14 80 D:0.0.0.0(0)
Socket#3:0x0 0 D:0.0.0.0(0)
GET / HTTP/1.1
Host: 192.168.2.2
Connection: keep-alive
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
User-Agent: Mozilla/5.0 (Windows NT 5.1) AppleWebKit/537.31 (KHTML, like Gecko) Chrome/26.0.1410.64 Safari/537.31
Accept-Encoding: gzip,deflate,sdch
Accept-Language: en-US,en;q=0.8
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.3

client disconnected
xx.xx.58.116
Socket#0:0x0 1026 D:xx.xx.58.115(53)
Socket#1:0x17 80 D:192.168.1.254(3692)
Socket#2:0x14 80 D:0.0.0.0(0)
Socket#3:0x0 0 D:0.0.0.0(0)
new Client
Socket#0:0x14 80 D:xx.xx.58.115(53)
Socket#1:0x17 80 D:192.168.1.254(3692)
Socket#2:0x17 80 D:192.168.1.254(3693)
Socket#3:0x0 0 D:0.0.0.0(0)
GET / HTTP/1.1
Host: 192.168.2.2
Connection: keep-alive
Cache-Control: max-age=0
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
User-Agent: Mozilla/5.0 (Windows NT 5.1) AppleWebKit/537.31 (KHTML, like Gecko) Chrome/26.0.1410.64 Safari/537.31
Accept-Encoding: gzip,deflate,sdch
Accept-Language: en-US,en;q=0.8
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.3

client disconnected
xx.xx.58.116
Socket#0:0x14 80 D:xx.xx.58.115(53)
Socket#1:0x0 1038 D:xx.xx.58.115(53)
Socket#2:0x17 80 D:192.168.1.254(3693)
Socket#3:0x0 0 D:0.0.0.0(0)
xx.xx.58.116
Socket#0:0x14 80 D:xx.xx.58.115(53)
Socket#1:0x0 1034 D:xx.xx.58.115(53)
Socket#2:0x0 80 D:192.168.1.254(3693)
Socket#3:0x0 0 D:0.0.0.0(0)
new Client
Socket#0:0x17 80 D:192.168.1.254(3694)
Socket#1:0x17 80 D:192.168.1.254(3695)
Socket#2:0x14 80 D:192.168.1.254(3693)
Socket#3:0x0 0 D:0.0.0.0(0)
GET / HTTP/1.1
Host: 192.168.2.2
Connection: keep-alive
Cache-Control: max-age=0
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
User-Agent: Mozilla/5.0 (Windows NT 5.1) AppleWebKit/537.31 (KHTML, like Gecko) Chrome/26.0.1410.64 Safari/537.31
Accept-Encoding: gzip,deflate,sdch
Accept-Language: en-US,en;q=0.8
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.3

client disconnected
xx.xx.58.116
Socket#0:0x0 1029 D:xx.xx.58.115(53)
Socket#1:0x17 80 D:192.168.1.254(3695)
Socket#2:0x14 80 D:192.168.1.254(3693)
Socket#3:0x0 0 D:0.0.0.0(0)
new Client
Socket#0:0x14 80 D:xx.xx.58.115(53)
Socket#1:0x17 80 D:192.168.1.254(3695)
Socket#2:0x17 80 D:192.168.1.254(3698)
Socket#3:0x0 0 D:0.0.0.0(0)
GET / HTTP/1.1
Host: 192.168.2.2
Connection: keep-alive
Cache-Control: max-age=0
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
User-Agent: Mozilla/5.0 (Windows NT 5.1) AppleWebKit/537.31 (KHTML, like Gecko) Chrome/26.0.1410.64 Safari/537.31
Accept-Encoding: gzip,deflate,sdch
Accept-Language: en-US,en;q=0.8
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.3

client disconnected
xx.xx.58.116
Socket#0:0x14 80 D:xx.xx.58.115(53)
Socket#1:0x0 1024 D:xx.xx.58.115(53)
Socket#2:0x17 80 D:192.168.1.254(3698)
Socket#3:0x0 0 D:0.0.0.0(0)
2513  Using Arduino / Networking, Protocols, and Devices / Re: W5100/Ethernet cannot use socket as UDP after using it as TCP on: April 28, 2013, 11:38:28 am
Give me a bit to setup the test again. I am testing the ethernet shield's dhcp client function. I think my router has a bug in the dhcp server service. I will replace my public ip with a phoney. I don't need any DoS attacks. I get enough, thanks.

Check back in a bit... smiley
2514  Using Arduino / Interfacing w/ Software on the Computer / Re: Asking for help to execute a PHP script on: April 28, 2013, 10:21:22 am
Quote
My updateDB2.php are working when execute from my Browser (http://localhost/updatedb2.php)
That is a browser on the server. That is not a good test. Try that from another computer on the localnet.

I was involved in another thread like this, but I can't find it right now. There was a setting in the php extensions that allowed only localhost access only. If I find it, I'll post again.
2515  Using Arduino / Storage / Re: spi trouble when adding second device on: April 28, 2013, 09:43:58 am
Now disable the SD and try accessing the KTA.
Code:
void setup() {
  Serial.begin(9600);

  // disable the SD
  pinMode(10, OUTPUT);
  digitalWrite(10, HIGH);

  // now try accessing your KTA here
}
I think you are catching on to this.  smiley
2516  Using Arduino / Storage / Re: spi trouble when adding second device on: April 28, 2013, 06:16:01 am
Try the SD first. Disable the KTA259 SPI first, then see if the SD works ok alone.
Code:
void setup() {
  Serial.begin(9600);

  // disable the KTA259 SPI
  pinMode(9, OUTPUT);
  digitalWrite(9, HIGH);

  Serial.print(F("Starting SD..."));
  if(!SD.begin(10)) Serial.println(F("failed"));
  else Serial.println(F("ok"));
Does the SD start ok?
2517  Using Arduino / Networking, Protocols, and Devices / Re: Inserting graph javascript into sample web server code? on: April 28, 2013, 06:08:14 am
And it works ok when you tested it in a web server like IIS or Apache? Get the script working first, then import it to the Arduino.
2518  Using Arduino / Networking, Protocols, and Devices / Re: Inserting graph javascript into sample web server code? on: April 27, 2013, 11:12:17 pm
There is already an example of JavaScript in that server code. Here it is:
Code:
         client.println(F("<head><script type=\"text/javascript\">"));
          client.println(F("function show_alert() {alert(\"This is an alert\");}"));
          client.println(F("</script></head>"));

You can split the lines like this if you wish.
Code:
         client.println(F("<head><script type=\"text/javascript\">"));
          client.println(F("function show_alert() {"));
          client.println(F("  alert(\"This is an alert\");"));
          client.println(F("}"));
          client.println(F("</script></head>"));

It will look like this if you view the page source:
Quote
<head><script type="text/javascript">
function show_alert() {
  alert("This is an alert");
}
</script></head>

edit: Missed some double quotes. Got 'em.
2519  Using Arduino / Project Guidance / Re: Arduino Uno+Ethernet Shield+DHT 11 project on: April 27, 2013, 10:36:28 am
That would be a delay out of your control. It is the time it takes to establish the connection, verify your account stuff, insert/retrieve the data into the database, then send a response.
2520  Using Arduino / Project Guidance / Re: Arduino Uno+Ethernet Shield+DHT 11 project on: April 27, 2013, 10:13:27 am
Quote
I have used the following code and it works, i can see the grapichs and the temp and humidity level on the cosm portal but ive got a big delay between measurements..  
Big delay? Like 15 to 20 seconds? Or a couple hours?

edit: Is that big delay between measurements?
Or from the time the measurement is sent to the time it is displayed on the webpage?
Pages: 1 ... 166 167 [168] 169 170 ... 392