<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>MQX Software Solutions中的主题 Re: I have compiled and uploaded the Freescale 4.1.1 virtual_nic example - how do I verify it is working?</title>
    <link>https://community.nxp.com/t5/MQX-Software-Solutions/I-have-compiled-and-uploaded-the-Freescale-4-1-1-virtual-nic/m-p/366074#M12072</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Success, I have been able to ping this example.&amp;nbsp; But only after I change the IP address found in virtual_nic_enet.h.&amp;nbsp; If I don't change it to match the subnet of the network I plug the RS45 into, the ping does not work.&amp;nbsp; Further, when I am using the default IP address and I look at the output of "route print", I see values that come close but DO NOT MATCH the default IP address found in virtual_nic_enet.h. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Maybe to some this is just plain Windows-networking-101.&amp;nbsp; But to me it is darn confusing - and&amp;nbsp; I would really appreciate it if someone could set me straight.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For instance, if this example is truly only a Ethernet gate way between the USB world and the RJ45 world - then why is there even the need for an IP address?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 24 Nov 2014 21:32:46 GMT</pubDate>
    <dc:creator>rickstuart</dc:creator>
    <dc:date>2014-11-24T21:32:46Z</dc:date>
    <item>
      <title>I have compiled and uploaded the Freescale 4.1.1 virtual_nic example - how do I verify it is working?</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/I-have-compiled-and-uploaded-the-Freescale-4-1-1-virtual-nic/m-p/366073#M12071</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;[What I really want is to open a discussion on the virtual_nic Freescale example to understand it better.&amp;nbsp; But in other forums I find it more effective to ask one specific per thread.&amp;nbsp; Please let me know if that is not the culture here.]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have compiled and uploaded the Freescale 4.1.1 virtual_nic example to a Tower w/a K70.&amp;nbsp; I am working with IAR Workbench.&amp;nbsp; How do I verify it is working? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have read somewhere that this example only implements one direction of the Ethernet-over-USB to Ethernet connection. If so, I am at a loss to think of a good test for this example.&amp;nbsp; Further, inspecting the code, it looks symmetrical.&amp;nbsp; That is, I believe I see code for transmitting in both directions (USB port and RJ45 port).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In another post/thread, a Freescale employee said I should be able to PING the connection.&amp;nbsp; I tried this but apparently it did not work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-thank you&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Nov 2014 17:58:33 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/I-have-compiled-and-uploaded-the-Freescale-4-1-1-virtual-nic/m-p/366073#M12071</guid>
      <dc:creator>rickstuart</dc:creator>
      <dc:date>2014-11-24T17:58:33Z</dc:date>
    </item>
    <item>
      <title>Re: I have compiled and uploaded the Freescale 4.1.1 virtual_nic example - how do I verify it is working?</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/I-have-compiled-and-uploaded-the-Freescale-4-1-1-virtual-nic/m-p/366074#M12072</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Success, I have been able to ping this example.&amp;nbsp; But only after I change the IP address found in virtual_nic_enet.h.&amp;nbsp; If I don't change it to match the subnet of the network I plug the RS45 into, the ping does not work.&amp;nbsp; Further, when I am using the default IP address and I look at the output of "route print", I see values that come close but DO NOT MATCH the default IP address found in virtual_nic_enet.h. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Maybe to some this is just plain Windows-networking-101.&amp;nbsp; But to me it is darn confusing - and&amp;nbsp; I would really appreciate it if someone could set me straight.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For instance, if this example is truly only a Ethernet gate way between the USB world and the RJ45 world - then why is there even the need for an IP address?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Nov 2014 21:32:46 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/I-have-compiled-and-uploaded-the-Freescale-4-1-1-virtual-nic/m-p/366074#M12072</guid>
      <dc:creator>rickstuart</dc:creator>
      <dc:date>2014-11-24T21:32:46Z</dc:date>
    </item>
    <item>
      <title>Re: I have compiled and uploaded the Freescale 4.1.1 virtual_nic example - how do I verify it is working?</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/I-have-compiled-and-uploaded-the-Freescale-4-1-1-virtual-nic/m-p/366075#M12073</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I take that back.&amp;nbsp; No success here.&amp;nbsp;&amp;nbsp; I am trying to duplicate Freescale employee's Martin comment that he plugged a router into the TWR-SER RJ45.&amp;nbsp; But that does not create the expected network (It does create a new network but the expected routing is missing).&amp;nbsp; As a GOLD test I used a off-the-shelf TRENDNET Ethernet over USB to Ethernet 10/100BaseT converter dongle in place of the Freescale TWR running the Freescale CDC Ethernet over USB example.&amp;nbsp; That worked with the router.&amp;nbsp; It created a network and the Win7 box connected through the router's WIFI to the local network.&amp;nbsp; I repeated this GOLD test successfully using Ubuntu and all the same hardware (same Win7 box, TRENDNET &amp;amp; ASUS router).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any pointers getting this Freescale running like the TRENDNET dongle would be appreciated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 30 Nov 2014 20:49:48 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/I-have-compiled-and-uploaded-the-Freescale-4-1-1-virtual-nic/m-p/366075#M12073</guid>
      <dc:creator>rickstuart</dc:creator>
      <dc:date>2014-11-30T20:49:48Z</dc:date>
    </item>
    <item>
      <title>Re: I have compiled and uploaded the Freescale 4.1.1 virtual_nic example - how do I verify it is working?</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/I-have-compiled-and-uploaded-the-Freescale-4-1-1-virtual-nic/m-p/366076#M12074</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Tidying up this thread...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think the Freescale virtual_nic CDC Example has a problem in the USB to Ethenet direction.&amp;nbsp; I explain what I did here in this thread:&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.nxp.com/thread/61566"&gt;USB Virtual NIC&lt;/A&gt;&lt;/P&gt;&lt;P&gt;I'm not sure my solution is a good one.&amp;nbsp; But I can ARP and Ping now using my modified virtual_nic code.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Dec 2014 23:04:44 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/I-have-compiled-and-uploaded-the-Freescale-4-1-1-virtual-nic/m-p/366076#M12074</guid>
      <dc:creator>rickstuart</dc:creator>
      <dc:date>2014-12-03T23:04:44Z</dc:date>
    </item>
    <item>
      <title>Re: I have compiled and uploaded the Freescale 4.1.1 virtual_nic example - how do I verify it is working?</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/I-have-compiled-and-uploaded-the-Freescale-4-1-1-virtual-nic/m-p/366077#M12075</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you for your bug report.&lt;/P&gt;&lt;P&gt;It was reported to our internal bug database and it will be fixed in one of next MQX releases.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Have a great day,&lt;BR /&gt;RadekS&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------------------------------------&lt;BR /&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Dec 2014 16:22:06 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/I-have-compiled-and-uploaded-the-Freescale-4-1-1-virtual-nic/m-p/366077#M12075</guid>
      <dc:creator>RadekS</dc:creator>
      <dc:date>2014-12-04T16:22:06Z</dc:date>
    </item>
    <item>
      <title>Re: I have compiled and uploaded the Freescale 4.1.1 virtual_nic example - how do I verify it is working?</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/I-have-compiled-and-uploaded-the-Freescale-4-1-1-virtual-nic/m-p/366078#M12076</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think I found the problem.&amp;nbsp; In file "virtual_nic_enet.c" in "fuction VNIC_FEC_Send()"&amp;nbsp; if you change this code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD&gt;USB_mem_copy(ethernet_frame_ptr + 2 * MAC_ADDR_SIZE,&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&amp;nbsp;&amp;nbsp; &lt;/TD&gt;&lt;TD&gt;g_enet_hdr.TYPE, 2);&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD&gt;protocol = *((uint16_t *)(((ENET_HEADER_PTR)ethernet_frame_ptr)-&amp;gt;TYPE));&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD&gt;nic_pcb = _mem_alloc_system_zero(sizeof(PCB) + sizeof(PCB_FRAGMENT));&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD&gt;if(nic_pcb == NULL)&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;...to this...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD&gt;USB_mem_copy(ethernet_frame_ptr + 2 * MAC_ADDR_SIZE,&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&amp;nbsp;&amp;nbsp; &lt;/TD&gt;&lt;TD&gt;g_enet_hdr.TYPE, 2);&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD&gt;protocol = *((uint16_t *)(((ENET_HEADER_PTR)ethernet_frame_ptr)-&amp;gt;TYPE));&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD&gt;protocol = htons(protocol);&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD&gt;nic_pcb = _mem_alloc_system_zero(sizeof(PCB) + sizeof(PCB_FRAGMENT));&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD&gt;if(nic_pcb == NULL)&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The Type field sent out the RJ45 side will work for ARP &amp;amp; Ping.&amp;nbsp; It appears to work for other message but I wasn't testing for them specifically.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Dec 2014 20:48:35 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/I-have-compiled-and-uploaded-the-Freescale-4-1-1-virtual-nic/m-p/366078#M12076</guid>
      <dc:creator>rickstuart</dc:creator>
      <dc:date>2014-12-04T20:48:35Z</dc:date>
    </item>
  </channel>
</rss>

