4.27. RNDIS Device - Http Server

4.27.1. Overview

This example project shows USB RNDIS device implement http server

  • PC sees a network interface via Device Manager, the MAC address is 20:89:84:6A:96:AA.

  • Application program using lwip stack create a virtual network interface, the MAC address is 20:89:84:6A:96:00. DHCP, DNS and HTTP servers are implemented, and PC can access web pages through enumerated network interface.

4.27.2. Board Setting

  • Connect a USB port on PC to the PWR DEBUG port on the development board with a USB Type-C cable

  • Connect a USB port on PC to one of USB port on the development board with a USB Type-C cable

4.27.3. Running the example

  • Download the program and run. The computer will enumerate a network interface device with the following attributes: ethernet_property.png

  • Disconnect other network interface connections, keep only the enumerated network interface connections, open the Microsoft EDGE browser, and enter the web address: http://192.168.7.1 or http://rndis.hpm , the page will show as follows: website.png