Show Posts
Pages: 1 ... 166 167 [168] 169 170 ... 360
2506  Using Arduino / Networking, Protocols, and Devices / Re: Sudden unreliability with my network-enabled Arduino project on: March 04, 2013, 10:11:43 am
That suggests you need good power. I would have answered sooner, but I just now explained to the property manager of one of the condos I service that had a wireless fail this morning, that even a $300 router needs to be plugged in to work correctly.
2507  Using Arduino / Programming Questions / Re: Data download FTP on: March 04, 2013, 09:05:36 am
@OP: outBuf is the array that holds the 64 byte buffer for the dclient.write(). It sends one 64 byte packet rather than 64 one-byte packets.

@lesto: No, I have not tried telnet to download a file.
2508  Using Arduino / Programming Questions / Re: FTP - I can get it to work over LAN - I want it over Wifi - I'm close - help! on: March 04, 2013, 08:24:58 am
I think the FTP code is relatively "squeaky clean". It has never failed me unless I try something I know will make it fail, like attempting to upload or download files that I do not have permission to read or write.

With the w5100, it doesn't fail the OP.
Quote
I can do the ethernet with my eyes closed now. 
2509  Using Arduino / Programming Questions / Re: FTP - I can get it to work over LAN - I want it over Wifi - I'm close - help! on: March 04, 2013, 07:32:28 am
Quote
Have you ever successfully done FTP over Wifi tim?  Or does anyone know anyone who has?
No. I have an ethernet shield only. Normally, the transport is not a problem. I use fiber-optic, wireless, and CAT5 on some connections and they work fine. The transport layer is supposed to be transparent to the protocol, and on my systems, it is.

That does not mean the wifi shield does not have limitations. I have not looked at the actual hardware on the shield. The manufacturer wants me to register to get the datasheet, but I get enough spam mail now, and don't need any more advertising. I wanted to check if it had multiple sockets available like the w5100. The w5100 has 4, so this is not a problem for it, but may affect the wifi.

Network speed should not be a problem. I inserted Serial.println("Packet") and delay() statements into the loop to test that, and there was no problem if the delay was less than about 10 seconds.

edit: This appears to be where your code fails. This is the first send attempt on the command port after the data port is opened, so I guess the wifi shield may have a problem with multiple sockets open simultaneously.
Code:
#ifdef FTPWRITE
  client.write("STOR ");
  client.println(fileName);
#else
  client.write("RETR ");
  client.println(fileName);
#endif

I do use wireless devices to connect my ethernet shield to the internet. This is my fav.
http://routerboard.com/RB433UAH
It not only provides wireless, but also usb power AND a way to connect to the serial monitor remotely through a ssh connection.
2510  Using Arduino / Programming Questions / Re: Data download FTP on: March 04, 2013, 06:47:07 am
Quote
What is: strtok(outBuf,"(,") , atoi(tStr), there is functions ??? They're not declared anywhere.
These are standard C functions.
Quote
And what mean hiPort = hiPort | loPort; ?
Those bytes are used to build the passive FTP data port (integer).
Quote
And what is the goal of this function...
That function reads the response after each send. The first character is the numeric return code. If the first character of that number is greater than 3, then the send (request) produced an error.
Code:
if(respCode >= '4')
2511  Using Arduino / Programming Questions / Re: FTP - I can get it to work over LAN - I want it over Wifi - I'm close - help! on: March 03, 2013, 07:07:41 am
Which way is the transfer? If you are using "STOR", then it should be transferring from the SD to the FTP server. After you send the "STOR filename", you should wait for a response on the command channel (client), not the data channel (dclient). That seems to be where the "client issues" is being printed if nothing on the data channel. But there won't be anything received (inbound) on the data channel. The FTP server is waiting for the Arduino to send on the data channel.

edit: Other than that, it sounds like you have it working now. If so, congrats! That was no easy feat. I am impressed.  smiley

You must evaluate the command channel response from the FTP server after sending either "STOR filename" or "RECV filename". The ability to log in to the server does not guarantee write or read permissions for every file in that directory.
2512  Using Arduino / Networking, Protocols, and Devices / Re: Minimum FTP Client on: March 02, 2013, 05:36:07 pm
That should not be difficult. Remove
the part between the "#ifdef FTPWRITE" and the "#else"
or
the part between the "#ifndef FTPWRITE" or "#else" and #endif".

All are in the doFTP() function. There are only 4. I did the hard part.  smiley
2513  Using Arduino / Networking, Protocols, and Devices / Re: corrupted data with : Leonardo + Ethernet Shield + WebRepeatingClient on: March 02, 2013, 03:09:34 pm
The SD does not interfere with the tcp or udp, but it does interfere with the SPI bus. They both share that.
2514  Using Arduino / Networking, Protocols, and Devices / Re: corrupted data with : Leonardo + Ethernet Shield + WebRepeatingClient on: March 02, 2013, 12:16:49 pm
Does the ethernet shield have a uSD card in the slot?
2515  Using Arduino / Networking, Protocols, and Devices / Re: Motion Sensor Interference Problem? on: March 02, 2013, 07:10:23 am
Post your code. My crystal ball is still in the shop waiting for parts.  smiley-wink
2516  Using Arduino / Networking, Protocols, and Devices / Re: Getting simple data from a website on: March 01, 2013, 07:08:53 am
This client code works for me.
http://playground.arduino.cc/Code/WebClient
2517  Using Arduino / Networking, Protocols, and Devices / Re: Minimum FTP Client on: March 01, 2013, 07:01:49 am
Do you mean this code?
http://playground.arduino.cc/Code/FTP

Do you have a Mega2560 or Uno? If you have an Uno, there is just enough memory to use one part of the FTP client code, either upload or download, but not both. You can use both at the same time if you have a Mega.

edit: If you are not familiar with FTP, two ethernet sockets and the SD must be open at the same time. That takes a bit of memory, and is not that easy to understand.

The reason it is written with the defines is if you have a Mega, you can replace the defines with if..else statements to use both upload and download with the minimum code size.
2518  Using Arduino / Networking, Protocols, and Devices / Re: Problem about UDP send with ethercard ENC28J60 on: February 28, 2013, 06:30:58 pm
Did you notice the w5100 code starts UDP listening on a port. I did not see that in the ENC28J60 code. There must be a similar function.
Code:
  Udp.begin(localPort);
2519  Using Arduino / Programming Questions / Re: Why does this program only work when I use a Serial.* statement in it? on: February 28, 2013, 06:09:48 pm
I'm running your original code with the Serial stuff remarked out. The D13 led blinks half bright once a second.
2520  Using Arduino / Programming Questions / Re: Why does this program only work when I use a Serial.something statement in it? on: February 28, 2013, 05:41:19 pm
So you removed the driver board connections completely? It is no longer connected to the Arduino at all, and the LED doesn't blink without the Serial calls?

The motor driver may have a problem.
Pages: 1 ... 166 167 [168] 169 170 ... 360