Sign in

username:

password:



Not a member?

Search rabbit-semi



Search tips

Subscribe to rabbit-semi



Ads

Discussion Groups

Discussion Groups | Rabbit-Semi | FTP, FAT and TCP problem

This is a group for folks designing and programming embedded systems using the Rabbit Semiconductor C-programmable microcontroller. Rabbit Semi is a spin-off from Z-World who makes a variety of embedded modules and tools. This group is not affiliated with either Rabbit or Z-World, but is a user forum for sharing ideas, asking questions, flaunting knowledge, and other typical user group stuff. The Rabbit is a powerful uC, supported by a full-featured C-compiler.

FTP, FAT and TCP problem - Ari Barbakos - Sep 11 7:57:56 2008

Using a RCM4300 with a 1GB SD Card as a data logger with messages
received via a TCP socket.

The RCM4300 also acts as an FTP server so the data logs can be
downloaded via FTP.

This all works perfectly fine.

However when I add the functionality to send a TCP packet from the
RCM4300 a strange situation arises. If there has been no previous FTP
connection to the device the messages are sent correctly. However if the
device has been accessed via FTP before a TCP message packet has
attempted sending the connection will continually fail. Conversely if
the TCP message packet has been sent before a FTP connection has been
established the FTP connection will never occur.

If the FTP connection has been established before a TCP message has been
sent the TCP message code fails at this point in the code:

tcp_open(&sendSock, 0, resolve(ip), port, NULL)

- The IP is valid and the port is 8000

To me this is saying that you cannot open a socket if there has ever
been a FTP connection.

If an TCP message has been sent before an FTP connection has been
established the FTP always fails to establish a connection.

After tracing the code in the ftp_server.lib line 1840, in the
ftp_tick() function

if(sock_established(state->s))

always returns 0 and never establishes the connection.

I am using firefox 3.0.1 to establish the FTP connection. I have also
used the FTP client FileZilla 3.1.2 and this has also failed.

I hope I have provided enough information. The situation is quite
confusing if any clarification is required I will happily try to provide
it.

It is essential that ftp access and TCP communication be implemented on
the one controller.

Any suggestions would be greatly appreciated.

Thanks in advance.

Ari


(You need to be a member of rabbit-semi -- send a blank email to rabbit-semi-subscribe@yahoogroups.com )


RE: FTP, FAT and TCP problem - Adnan Mohammad-Ali - Sep 14 19:09:29 2008

Hmm,

I'm actually having that exact same problem...any solutions?

From: r...@yahoogroups.com [mailto:r...@yahoogroups.com]
On Behalf Of Ari Barbakos
Sent: Thursday, 11 September 2008 7:04 PM
To: r...@yahoogroups.com
Subject: [rabbit-semi] FTP, FAT and TCP problem

Using a RCM4300 with a 1GB SD Card as a data logger with messages
received via a TCP socket.

The RCM4300 also acts as an FTP server so the data logs can be
downloaded via FTP.

This all works perfectly fine.

However when I add the functionality to send a TCP packet from the
RCM4300 a strange situation arises. If there has been no previous FTP
connection to the device the messages are sent correctly. However if the
device has been accessed via FTP before a TCP message packet has
attempted sending the connection will continually fail. Conversely if
the TCP message packet has been sent before a FTP connection has been
established the FTP connection will never occur.

If the FTP connection has been established before a TCP message has been
sent the TCP message code fails at this point in the code:

tcp_open(&sendSock, 0, resolve(ip), port, NULL)

- The IP is valid and the port is 8000

To me this is saying that you cannot open a socket if there has ever
been a FTP connection.

If an TCP message has been sent before an FTP connection has been
established the FTP always fails to establish a connection.

After tracing the code in the ftp_server.lib line 1840, in the
ftp_tick() function

if(sock_established(state->s))

always returns 0 and never establishes the connection.

I am using firefox 3.0.1 to establish the FTP connection. I have also
used the FTP client FileZilla 3.1.2 and this has also failed.

I hope I have provided enough information. The situation is quite
confusing if any clarification is required I will happily try to provide
it.

It is essential that ftp access and TCP communication be implemented on
the one controller.

Any suggestions would be greatly appreciated.

Thanks in advance.

Ari



(You need to be a member of rabbit-semi -- send a blank email to rabbit-semi-subscribe@yahoogroups.com )

Re: RE: FTP, FAT and TCP problem - Scott Henion - Sep 14 19:14:20 2008

Adnan Mohammad-Ali wrote:
>
> Hmm,
>
>
>
> I’m actually having that exact same problem...any solutions?
>

Sounds like there are not enough TCP sockets or buffers defined.

>
>
> *From:* r...@yahoogroups.com
> [mailto:r...@yahoogroups.com] *On Behalf Of *Ari Barbakos
> *Sent:* Thursday, 11 September 2008 7:04 PM
> *To:* r...@yahoogroups.com
> *Subject:* [rabbit-semi] FTP, FAT and TCP problem
>
>
>
> Using a RCM4300 with a 1GB SD Card as a data logger with messages
> received via a TCP socket.
>
>
>
> The RCM4300 also acts as an FTP server so the data logs can be
> downloaded via FTP.
>
>
>
> This all works perfectly fine.
>
>
>
> However when I add the functionality to send a TCP packet from the
> RCM4300 a strange situation arises. If there has been no previous FTP
> connection to the device the messages are sent correctly. However if
> the device has been accessed via FTP before a TCP message packet has
> attempted sending the connection will continually fail. Conversely if
> the TCP message packet has been sent before a FTP connection has been
> established the FTP connection will never occur.
>
>
>
> If the FTP connection has been established before a TCP message has
> been sent the TCP message code fails at this point in the code:
>
> tcp_open(&sendSock, 0, resolve(ip), port, NULL)
>
> - The IP is valid and the port is 8000
>
> To me this is saying that you cannot open a socket if there has ever
> been a FTP connection.
>
>
>
> If an TCP message has been sent before an FTP connection has been
> established the FTP always fails to establish a connection.
>
> After tracing the code in the ftp_server.lib line 1840, in the
> ftp_tick() function
>
> if(sock_established(state->s))
>
> always returns 0 and never establishes the connection.
>
>
>
> I am using firefox 3.0.1 to establish the FTP connection. I have also
> used the FTP client FileZilla 3.1.2 and this has also failed.
>
>
>
> I hope I have provided enough information. The situation is quite
> confusing if any clarification is required I will happily try to
> provide it.
>
>
>
> It is essential that ftp access and TCP communication be implemented
> on the one controller.
>
>
>
> Any suggestions would be greatly appreciated.
>
>
>
> Thanks in advance.
>
>
>
> Ari
--
------------------------------------------
| Scott G. Henion| s...@shdesigns.org |
| Consultant | Stone Mountain, GA |
| SHDesigns http://www.shdesigns.org |
------------------------------------------
Rabbit libs: http://www.shdesigns.org/rabbit/
today's fortune
Peter's Law of Substitution:
Look after the molehills, and the
mountains will look after themselves.

Peter's Principle of Success:
Get up one time more than you're knocked down.



(You need to be a member of rabbit-semi -- send a blank email to rabbit-semi-subscribe@yahoogroups.com )