This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

remove web sever in image processing demo

Other Parts Discussed in Thread: TMS320C6678

Hi

I modified "image_proc_demo". I added TaskCreat() function in OpenNetwork() function and assigned my socket program to it.

My new modified project works correct. I receive data from LAN port by TCP protocol and I don't need the part of code related to web server, mailbox... . But when I comment this parts of code the connect() function doesn't work!! I comment lines 302 to 330 in "mcip_master_main.c" file as below:

What other modifications should I do?

Regards

  • Hi,
    Please try to understand the demo project before commenting the code. Thank you.
  • What is your processor ?
    Keystone 1 or Keystone 2 ?
    Able to solve the problem ?
  • Hi Titusrathinaraj

    My processor is keystone 1(tms320c6678) and I could not solve the problem. Please, tell me step by step to remove web server from the program.

    Used softwares:

    OS: win7 64bit

    CCS: 5.2

    MCSDK: 2_01_02_05

    NDK: 2_21_1_38

    CGT: 7.4.0

    SYS/BIOS: 6_33_6_50

    OMP: 1_1_3_02

    Best Regards

  • Hi Titus
    I'm waiting for you. Please, answer me.

    Regards
  • Hi Dariush,

    If you would like to remove the webserver, look into the web  related functions given at file, mcip_webpage.c and mcip_webpage_utils.c

    For example, try commenting out the "image_processing_webfiles_add()" and "image_processing_webfiles_remove()" in mcip_master_main.c

    Like wise, look at the significance of functions given at mcip_webpage_utils.c file as well.

    Dariush said:
    But when I comment this parts of code the connect() function doesn't work!! I comment lines 302 to 330 in "mcip_master_main.c" file as below

    Actually Mailbox IPC is not used for webserver. Mailboxes can be used to pass buffers from one task to another on the same processor.
    A Mailbox instance can be used by multiple readers and writers. The Mailbox module copies the buffer to fixed-size internal buffers. The size and number of these buffers are specified when a Mailbox instance is created (or constructed). A copy is done when a buffer is sent
    via Mailbox_post(). Another copy occurs when the buffer is retrieved via a Mailbox_pend().

    ------------------------------

  • Hi

    I appreciate your answer. When I said the connection() function doesn't work I mean the connection function in my TCP socket

    thread but I think you mean the connection function in web sever program.

    As I said at first I make a thread as below:

    I assigned my TCP function to it by name "EchoTcp". After that I want remove webserver. when I comment lines 302 t0 320 in

    "mcip_master_main.c" the connect() function in "EchoTcp" function doesn't work as shown below:

    I find out from your answer that I should define a buffer for my TCP socket connection in "master_main()" function by CfgAddEntry()

    function. Next I can remove lines 302 t0 320 in "mcip_master_main.c" and my connect() function in my TCP socket thread will work.

    Am I thinking right? If the answer is yes, how can I do it?

    Best Regards

  • Hi Dariush,

    This seems to be a project requirement and not a question about the processor.
    More over, this community only deals with questions on Keystone processors and not on softwares.

    As you, being the code modifier of the original code, it is difficult to understand for a third person ( particularly a community member ) about the project requirement, TCP socket inclusion etc.

    Your project requirement requires lot of code walk through, design on including the TCP socket, design on removing the webserver etc. I feel, this cannot be easily discussed, solved and developed through the community discussion.

    Thanks for understanding.

    -----