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.

VLAN support feature in NDK (C6678)

  • Hi,

    I have few doubts over usage of vlan support feature in NDK.
    I have gone through section A.16. I understand that VLANAddDevice() is to be used to create a vlan with specific ID for a specified interface.
    This is the approach we are following :-
    1) add CFGTAG_IPNET entry in NDK for interface 1 and setup IP address manually to the specified interface
    2) VLANInit()
    3) NC_NetStart invocation
    4) VLANAddDevice() for the same interface and vlan ID 2 with some priority.
    5) Bind socket to that IP

    This leads to creation of new interface 2 having vlan ID 2 configured (eth0:2). We have specified interface 1 as argument to VLANAddDevice().
    Is this behavior expected? We intended vlan tagging to be configured for interface 1.
    Please send a test project showcasing vlan support in NDK on c6678 EVM.

    Regards,

    Rajesh Teli

  • NDK 2.21.0.32
  • DSP/BIOS 6.35.04.50
  • C6678
  • Welcome to the TI E2E forum. I hope you will find many good answers here and in the TI.com documents and in the TI Wiki Pages (for processor issues). Be sure to search those for helpful information and to browse for the questions others may have asked on similar topics (e2e.ti.com). Thank you.

    Note: We strongly recommend you to create new e2e thread for your queries instead of following up on an old/closed e2e thread, new threads gets more attention than old threads and can provide link of old threads or information on the new post for clarity and faster response.

  • Rajesh,

    The only C6678 NDK example is under pdk_c667x_2_0_1\packages\ti\transport\ndk\nimu\example\helloWorld, it doesn't use VLAN. Let me check if we have any show case for this.

    Regards, Eric

  • Hi Eric,

    I have not received any response from you on this. 

    Regards,

    Rajesh Teli

  • Hi Rajesh,
    I haven't gotten my hands on a VLAN example to send but to unblock you, another way to add VLAN support is using the NDK telnet console. If you connect to the telnet console and type vlan, should give you the commands you can use to add VLAN. Can you give this a try?

    Regards,
    Moses
  • Hi Moses,

    My end goal is to have VLAN tagging enabled at our integrated system. EVM example code would serve as a reference over which I can apply vlan tags on integrated system.

    Regards,

    Rajesh Teli

  • Hi Rajesh,
    In your NDK product, you can take a look at the C source file that adds VLAN support to the terminal I mentioned earlier. In <NDK_ROOT_DIR>/packages/ti/ndk/tools/console/convlan.c you can find example C code on using VLAN that you can leverage for your application.

    Let me know if this helps,
    Moses