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.

RTOS/SIMPLELINK-WIFI-CC3120-SDK-PLUGIN: RTOS/SIMPLELINK-WIFI-CC3120-SDK-PLUGIN

Part Number: SIMPLELINK-WIFI-CC3120-SDK-PLUGIN


Tool/software: TI-RTOS

Hello,

I am using CC3120BOOST with  MSP-EXP432E401Y. The example code being used with this combination is "ethernet_wifi_tcp_echo_MSP_EXP432E401Y_tirtos_css" obtained by installing "simplelink_sdk_wifi_plugin_1_60_00_07". In the file 'ethernet_tcp_handler.c', I am trying to open Ethernet RAW socket using BSD as 

server = socket(AF_RAWETH, SOCK_RAWETH , 0 );

This is giving me error as 'AF_RAWETH is undefined' and  'SOCK_RAWETH is undefined'.

My query is :

1) "${COM_TI_SIMPLELINK_MSP432E4_SDK_INSTALL_DIR}/source/ti/net/bsd" and "${COM_TI_SIMPLELINK_MSP432E4_SDK_INSTALL_DIR}/source/ti/ndk/inc" are 

added in the include options of the example. Why the two symbols are then undefined?

2) What should be done so that my code gets build for Ethernet Raw socket using BSD socket call 'socket'?

3) Am I using the right way to open Raw socket for Ethernet? If no, how can I open the Raw socket on Ethernet side?

Thanks,

Vaishali.

  • Hello Vaishali,

    As requested in the following forum post, can you explain which APIs are you using: e2e.ti.com/.../2605690

    The following are the supported options in the file "./source/ti/net/bsd/sys/socket.h" in the MSP432E4 SDK v2.20.

    The defines that you are using are not supported. Can you trying using the defines that are supported?

    #define SOCK_STREAM
    #define SOCK_DGRAM
    #define SOCK_RAW
    #define AF_UNSPEC
    #define AF_INET
    #define AF_INET6
    #define AF_RF
    #define AF_PACKET

    Thanks,
    Sai
  • Hello Vaishali,

    There are couple of forum post floating around this topic. I will close this post as I believe that the following post has a detailed answer that will answer this question. If you think the following post does not answer your question, you can open this post by replying to this post.

    e2e.ti.com/.../705579

    Thanks,
    Sai