Show Posts
Pages: 1 ... 156 157 [158] 159 160 ... 391
2356  Using Arduino / Programming Questions / Re: Pullup Resistor Anomaly on Pin 13 on: June 03, 2013, 03:45:43 am
If there is nothing else connected to D13, it is floating. D13 connects to a high impedance op-amp to drive the LED. If you leave the input floating, the state of the output is not guaranteed. If D13 floats to a HIGH state, the LED lights.
2357  Using Arduino / Project Guidance / Re: Manage SD files remotely from PC. on: June 02, 2013, 11:09:50 am
I used PuTTY to test this stuff. It works just like I am telling you. The w5100 does not indicate "connected" on a socket until it has something in the rx buffer. You can connect, and the shield shows nothing. Send that one GET line to put something in the rx buffer, and suddenly you are connected.

If that is not the way it turns out for you, I would like to know that.
2358  Using Arduino / Project Guidance / Re: Manage SD files remotely from PC. on: June 02, 2013, 08:46:17 am
Take a look at this code:
http://playground.arduino.cc/Code/FTP
The first thing it does after the connection is established is wait for the FTP server to send a "hello". I would guess that the connection is not showing as established because that particular code is not sending the hello. The web browser may actually establish the connection to the ethernet shield, but when it does not receive a "hello" from the Arduino, then you get the unsafe port message. I have not checked the network packets.

edit: That is why I posted this warning in reply #9:
Quote
Don't mix protocols. The server response for a FTP connection is different than a HTTP connection.
2359  Using Arduino / Project Guidance / Re: Manage SD files remotely from PC. on: June 02, 2013, 07:43:19 am
Quote
It's clear this is on the right lines because changing the client has changed the behaviour, but according the the evidence given it shouldn't have made any difference - the problem described was that the server did not see any incoming connect request.
It did not receive a connection request because IE and Chrome do not allow any type of port 21 connection. Chrome displays the message "unsafe port" and does not attempt to establish a connection. Try it!

edit: You would have the same problem with a SMTP server. The client does not send a request. The server sends a "hello" first. Then the SMTP client responds to that hello. In this case, you do not show a connection until the client sends something. But the client will not send anything until the server sends a "hello". But you are not sending a "hello". Deadlock.

If you want to test this, fire up PuTTY and connect to the Arduino with port 21 and RAW mode. When it connects, don't enter anything. Check the Arduino. No connection. Now type "GET / HTTP/1.0" and press the enter key only once. Now you will get a "connection" message on the arduino, but it will not send a response until you press the enter key again.
2360  Community / Bar Sport / Re: Keep weapons off Arduino forum and website on: June 02, 2013, 07:01:29 am
Just to make my position clear, I am not as much of a pacifist as it appears from that one statement. It is  bad enough that these weapons are in the hands of the military establishments worldwide, but to have them in the hands of drug cartels or terrorist organisations, that is something completely different.

I am not against the personal possession of guns like revolvers and shotguns, just certain types. Here are some weapons I do not think civilians should be able to own:
automatic AK-47
40mm grenade launcher
105mm howitzer
RPG
cruise missile
TOW missile
2361  Community / Bar Sport / Re: Keep weapons off Arduino forum and website on: June 01, 2013, 03:32:46 pm
I did not mean to make it sound funny. It is a potential reality. I was only comparing the severity of the damage. That is one of the reasons I do not help with GPS and navigational problems.

edit: If you found it disturbing and maybe a bit scary, then that is the effect I was going for.
2362  Community / Bar Sport / Re: Keep weapons off Arduino forum and website on: June 01, 2013, 01:41:05 pm
Quote
I have noticed a few topics which involve technical discussions related to weapons - guns and shooting.
Guns and shooting? What? A range of a mile or so. Jeez!! I thought you were talking about real weapons. You know what I mean, the ones that reach you from several states away and take out several people at once. The victim looks up and has time to say "OH, SH.." just before BOOM!!
2363  Using Arduino / Project Guidance / Re: Manage SD files remotely from PC. on: June 01, 2013, 01:19:04 pm
Quote
I have no idea what is the difference between ftp.exe and PuTTy.
The fact is that work differently,
and client PuTTY is detected by function server.available()
That is what I was saying. HTTP and FTP are different responses from the server. You can't put a HTTP server on a FTP port, then use a FTP program. You must use a RAW TCP type connection.
2364  Using Arduino / Project Guidance / Re: Manage SD files remotely from PC. on: June 01, 2013, 06:33:56 am
Quote
I think that is part of bootloader,
I also think that: bootloader controls the ping responses.
No. I tested this with my equipment and code. Mega 2560 with an ethernet shield. It worked great with PuTTY. Failed miserably with IE and Chrome.

Don't mix protocols. The server response for a FTP connection is different than a HTTP connection.

Do you have PuTTY installed on your computer?
2365  Using Arduino / Project Guidance / Re: Manage SD files remotely from PC. on: June 01, 2013, 05:02:49 am
What software are you using to test the connection? Don't use a web browser. IE and Chrome will not open a connection to port 21. I use PuTTY.
I use port 21 and RAW. Set "close window on exit" to never so you can see the response.
2366  Using Arduino / Project Guidance / Re: Manage SD files remotely from PC. on: June 01, 2013, 04:17:23 am
FTP requires two connections. One command and one data. I don't have a FTP server yet, but I do have a FTP client example in the playground.
http://playground.arduino.cc/Code/FTP

edit: Don't use this. It causes an upload fail on many versions of the Mega2560 bootloader.
Code:
    Serial.println("1 client !!!");
Remove one of the exclamation marks like this:
Code:
    Serial.println("1 client !!");
2367  Using Arduino / Installation & Troubleshooting / Re: Basic newbie help! on: June 01, 2013, 03:52:30 am
Click on the error messages and press CTRL A. That should highlight all the messages. Press CTRL C to copy to the clipboard. Then CTRL V to paste.
2368  Using Arduino / Networking, Protocols, and Devices / Re: Arduino WiFi shield + Python on: May 31, 2013, 05:48:37 am
That is not UDP. That is TCP. The docs state that server.write() sends that character or string to every TCP client connected to the w5100. It is not a network broadcast. It sends only to connected TCP clients.
Quote
...but even if it stops, I still want the value transmitted.
You mean a UDP broadcast? If that is what you want, this is not the way to do it.
2369  Using Arduino / Networking, Protocols, and Devices / Re: Arduino WiFi shield + Python on: May 31, 2013, 04:51:12 am
What device are you sending this to?
Code:
  server.write(tempOut);
You are sending this whether there is a client connected or not?
2370  Using Arduino / Programming Questions / Re: Debug: Getting error while converting data from char to int after on: May 31, 2013, 03:25:42 am
The answer is:
Code:
char fcall[16][4]; // used to extract number from sting as characters
Pages: 1 ... 156 157 [158] 159 160 ... 391