• Join
  • Sign In with my.TI Login
Texas Instruments
  • Products
  • Applications
  • Tools & Software
  • Support & Community
  • Sample & Buy
  • About TI
Sample & Purchase Cart Sample & Purchase Cart
  • Search
  • Advanced
TI E2E™ Community
  • Support Forums
  • Blogs
  • Groups
  • Videos
  • 简体中文
  • More ...
TI Home » TI E2E Community » Support Forums » Embedded Software » BIOS » BIOS forum » How to use two network interface simultaneously?
Share
BIOS
  • Forum
  • Announcements
Options
  • Subscribe via RSS

Forums

How to use two network interface simultaneously?

This question is answered
Anderson
Posted by Anderson
on Apr 09 2012 08:37 AM
Prodigy230 points
Hi,
My platform is TMDSEVM6472,ccsv4,DSP/BIOS 5.41.10.36.
The NDK'example shipped with TMDSEVM6472 only use one port(prot0 or port1), 
in my application I need two network interface ports,one connect to GigE Camera,and another connect to computer's network interface.
use the "helloworld" for a example,where should I change or add to satisfy my require?
        Does Nimu_eth.c?
Thank you !
Report Abuse
  • Reply
You have posted to a forum that requires a moderator to approve posts before they are publicly available.
All Replies
  • Anderson
    Posted by Anderson
    on Apr 10 2012 09:45 AM
    Prodigy230 points

    Hi,

              Anybody answer my question?thanks very much!

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Steven Connell
    Posted by Steven Connell
    on Apr 10 2012 20:00 PM
    Mastermind20600 points

    Hi Anderson,

    Are you using the MCSDK? If so, which version?

    Do you need to run NDK in your application on multiple cores, with each core using one EMAC port? Or only run NDK on one core but use two EMAC ports?

    Steve

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Anderson
    Posted by Anderson
    on Apr 10 2012 20:22 PM
    Prodigy230 points

    Hi,Steve

                  Thank you for your help!

                  I have not use the MCSDK at present, just use one core,but use two EMAC prots,   I think i will use multicore in the future,one core control one EMAC port.

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Steven Connell
    Posted by Steven Connell
    on Apr 11 2012 17:47 PM
    Verified Answer
    Verified by Anderson
    Mastermind20600 points

    Anderson,

    Ok,I was wondering about the MCSDK because the C6472 Ethernet driver was updated in the MCSDK, and so is newer and slightly different than the versions of the Ethernet drivers that shipped in NDK 2.0 and 2.01. 

    Anyway, I think what you need to do is use the NIMU APIs to register the second Ethernet port.  Do you know if it is the same PHY for both ports on that board?  If so, you should be able to just repeat what the driver code does for the first Ethernet port, but update the code to use the 2nd Ethernet port's MAC address and also register it with NIMU as a different interface.  You should see somewhere in the driver code an initalization function where the NIMURegister() function is called where that's being done.

    Furthermore, as another example of how to register another device with NIMU, you could look at the code for VLAN (virtual LAN), found in the stack source vlan.c).

    The function VLANAddDevice() allocates a new NETIF_DEVICE and registers it with NIMU.  That device is then used when sending and receiving data over the VLAN device.

    Lastly, you can find more info on NIMU in the NDK API Reference Guide.

    Steve

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Anderson
    Posted by Anderson
    on Apr 11 2012 19:37 PM
    Prodigy230 points

    Hi,Steve

               Thank you !

               I will try it in this way!

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
TI E2E™ Community
  • Support Forums
  • Blogs
  • Videos
  • Groups
  • Site Support & Feedback
  • Settings
TI E2E™ Community Groups
  • TI University Program
  • Make the Switch
  • Microcontroller Projects
  • Motor Drive & Control
Other Communities
  • Deyisupport
  • Designsomething.org
  • beagleboard.org
  • TI on Element 14
  • TI on TechXchangeSM
Other Technical & Support Resources
  • WEBENCH® Design Center
  • Product Information Centers
  • Technical Documents
  • TI Design Network
  • TI Technical Articles
  • TI Training

All content and materials on this site are provided "as is". TI and its respective suppliers and providers of content make no representations about the suitability of these materials for any purpose and disclaim all warranties and conditions with regard to these materials, including but not limited to all implied warranties and conditions of merchantability, fitness for a particular purpose, title and non-infringement of any third party intellectual property right. TI and its respective suppliers and providers of content make no representations about the suitability of these materials for any purpose and disclaim all warranties and conditions with respect to these materials. No license, either express or implied, by estoppel or otherwise, is granted by TI. Use of the information on this site may require a license from a third party, or a license from TI.

Content on this site may contain or be subject to specific guidelines or limitations on use. All postings and use of the content on this site are subject to the Terms of Use of the site; third parties using this content agree to abide by any limitations or guidelines and to comply with the Terms of Use of this site. TI, its suppliers and providers of content reserve the right to make corrections, deletions, modifications, enhancements, improvements and other changes to the content and materials, its products, programs and services at any time or to move or discontinue any content, products, programs, or services without notice.

Follow Us Texas Instruments on Facebook Texas Instruments on Twitter Texas Instruments on LinkedIn Texas Instruments on Google+
TI Worldwide | Contact Us | my.TI Login | Site Map | Corporate Citizenship | mobile m.ti.com (Mobile Version)

TI is a global semiconductor design and manufacturing company. Innovate with 100,000+ analog ICs and
embedded processors, along with software, tools and the industry’s largest sales/support staff.

© Copyright 1995-2013 Texas Instruments Incorporated. All rights reserved.
Trademarks | Privacy Policy | Terms of Use