I will have a PC with XP embedded connected to a S7 board with Ethernet.
I there a way for the S7 board to deposit a file on a disk shared by the PC ?
A kind of Net Share on PC side, that would be accessible with FileX ?
As far as I'm aware, NetX does not support network drive features in Windows OS's (this is on the application layer, so you can use existing NetX Services to develop an application that does that). The simplest way for you to "send" files to the computer running Win XP would be to run an FTP Server (I know CoreFTP works well: http://www.coreftp.com/) and then use NetX FTP Client module to connect to the server and access the file system (there's no FileX API for it, however).
In reply to Karol:
Thank you Karol.
Is there some API to use FTP client and FileX on a SDcard to deposit the file on the server ?
I imagine the other way would be to use a FTP server on the S7 side ?
Would it be more complicated and need more resources ?
In reply to Pascal DEPLANQUES:
If I understand a question correctly, you'd like the Synergy board to read the SD card and deposit the file onto remote server. This is very much possible by using FTP client and FileX on SD Block Media. You will need to read your file into a buffer in RAM, before opening a file for write on an FTP server using nx_ftp_client_file_open() and nx_ftp_client_file_write().
Yes, this is my question.
However, the file to deposit is large, over 10MBytes, so does the FTP write accept Offset feature to send it packet by packets ?
I believe the write pointer is always placed at the end of the file, so you can stream the data out to the server using consecutive write commands.
Very good thank you Karol.
In reply to Surojit:
When you transmit a packet with NetX, you don't call nx_packet_release() (unless there is an error in transmission). The packet is released by NetX after the packet has been transmitted (and in the case of TCP it has been acknowledged). However the function nx_ftp_client_file_write() will release the packet internally if there is an error :-
What is the return value from the API nx_ftp_client_file_write()? How many packets do you have in the packet pool used for transmission? Do you have separate packet pools for transmitting and receiving, or only one packet pool?
In reply to Jeremy: