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.

WebSock Camera SDK Example in Station Mode

Other Parts Discussed in Thread: CC3200

Hii,

   I want to configure the websock camera example in to the station mode so that my CC3200 can connect to the wifi access point . Please guide me to configure my CC3200 in station mode I tired but did not connect my CC3200 to wifi AP.  I refered this link  in which 7th reply from Ashish as per his suggestion I did changes but did not work , my CC3200 is not able to connect WiFi AP after making CC3200 in station mode. Many thanks.

Regards,

  • Hi Nikhil,

    Where in the connection process is the CC3200 failing? Do you encounter any errors returned from the sl_*() calls that you make?
    Does your code manage to run to the sl_WlanConnect() call, which is where the CC3200 attempts to connect to the AP? Is there any error that you get from that call?

    Without more debug information, figuring out what is wrong will be difficult. If you could debug and give me a clearer picture of what is going wrong, that would be greatly appreciated.

    Regards,
    Michael
  • Hi Michael,

    I successfully connected my CC3200 to the Access point by making CC3200 in station mode . Can you tell me how we can set a static IP to CC3200 as whenever the CC3200 gets connected to Access Point its IP chnages I want to set a static IP to it ????

    Regards,
    Nikhil
  • Hi Nikhil,

    To make the CC3200 use a static IP, you can use the sl_NetCfgSet() API as described in this post:
    e2e.ti.com/.../534734

    Regards,
    Michael
  • Hi Michael,

        Thank you for sending me the post link I will surely try it out. Can you help me out for another thing in Websock camera SDK example.

    In httpserverapp.c file I have the below code according to example this piece of code is storing data in pData and sending the image as response to client using sl_WebSocketSend, here I am trying to get the hello string instead of the image but I am not able to receive a response at client from Websock server. When I send a request from chrome browser by sending capture message the led glows on board and on checking the browser side I see that request is not yet completed and I am not getting any response. I have attached the images  .

    void CameraAppTask(void *param)
    {
    UINT8 Opcode = 0x02;
    struct HttpBlob Write;
    
    //InitCameraComponents(640, 480);
    
    while(1)
    {
    if(g_close == 0)
    {
    Write.uLength = StartCamera((char **)&Write.pData);
    unsigned char* c = "hello";
    Write.uLength = 6;
    Write.pData = (UINT8*)c;
    if(!sl_WebSocketSend(g_uConnection, Write, Opcode))
    {
    while(1);
    }
    }
    }
    }

    Help me out in achieving this . Many Thanks.

    Regards,

    Nikhil

  • Hi Nikhil,

    See my response to your new thread here:
    e2e.ti.com/.../672880

    Regards,
    Michael