www.beck-ipc.com
www.beck-ipc.comwww.beck-ipc.com  | ImprintImprint
FAQFAQ  | SearchSearch  |
RegisterRegister   |LoginLogin

Multitasking Web Server and FTP Client

Questions and discussions about the hardware of the IPC@CHIP® products SC123, SC143, SC23 and SC24.
Hi everybody, we are going to use the SC24 Embedded Web-Controller (we are still waiting for the DK55 to check functionalities) for develop a project as described below:
- Web server for remote monitoring using web browsers
- FTP client for download/upload files

Is it possible to develop a multi-thread application so to perform FTP operations with concurrent web server requests? Or may I stop the web server requests during FTP file transfers?
Which is the limit for simultaneous web server requests? Is there a memory configuration limit or a number of session limit (or other)?

Thank you in advance
Alessandro

Hello Alessandro,

The Web Server is part of the operating system and will function idependently from any self-implemented FTP client (you just have to be careful to avoid any conflicts at the transport layer).

Multithreading is not supported (and it is rather unusual to use mutithreading in embedded applications). I am not sure I understand how multithreading is relevant to your question, though... Are you sure you are not talking about multitasking? In that case you can check out our introduction document about multitasking on our x86 microcontrollers at:

http://www.beck-ipc.com/files/api/scxxx ... asking.htm

...as well as our API documentation at:

http://www.beck-ipc.com/files/api/scxxx ... _index.htm

The limit for simultaneous web server requests as well as the memory limit of the Web Server can be set via the CHIP.INI settings file on the device. You can read about all the possible settings here:

http://www.beck-ipc.com/files/api/scxxx/config.htm

The web server is configured in the [WEB] section of the CHIP.INI file.

The CONNECTIONS key sets the limit for simultaneous web server requests (default is 8, maximum is 30 although you will have to be careful as too many requests will affect memory and CPU usage).

The WEBSERVERSTACK key sets the size of the memory stack of the webserver (default is 2048 Bytes, maximum is 65500 Bytes).

You can also set the TCP/IP stack memory block size via the TCPIPMEM key in the [IP] section.

I hope I could answer your questions.
Michael G. Etairidis
Software Development
Beck IPC GmbH

Dear Michael, thanks for your soon reply.

Yes, I made mistake, I meant multitasking...
When you wrote "you just have to be careful to avoid any conflicts at the transport layer" you are talking about the data transport from the SC24 to my embedded CPU I suppose. The Ethernet layer I think can be used from my FTP client without taking care any web server (CGI) elaboration, am I right?

Thanks
Last edited by 3pelectronics on 22.10.2015, 13:41, edited 1 time in total.

Hello Alessandro,

I am glad I could be of assistance.

I meant that you will have to be careful when implementing your FTP client and, for example, not use the same port as the web server (this is true for all TCP/IP stacks, not just ours).

You can find a short introduction to our web server that is included in the RTOS, here:

http://www.beck-ipc.com/files/api/scxxx/webserv.htm

As you can see, the web server uses port 80 by default (although this can be configured in the CHIP.INI file as well). You will have to be careful to not use the port 80 for your FTP client as well.

Again, this is standard TCP/IP practice. Just implement as you would for any other OS.
Michael G. Etairidis
Software Development
Beck IPC GmbH

Return to SC1x3/SC2x


Who is online

Users browsing this forum: No registered users and 2 guests


cron