[How To] Add WiFi display device (MagicLink) to a OpenWrt router via USB

#1

Use MagciLink to let router visible and WiFi display(chromecast & airplay mirror) over USB network host for RNDIS.
I find a USB-to-HDMI cable MagciLink, which could do mirror display from PC to display device by using USB gadget ether


[Environment]
WiFi router: TPLink TL-WR902AC V3 with openwrt
[openwrt FW]:https://openwrt.org/toh/hwdata/tp-link/tp-link_tl-wr902ac_v3
Install TPLink TL-WR902AC V3 with openwrt

[topology]

prerequisites:

  • Set default user & passward to root/root.
  • Install modules
opkg update
opkg install kmod-usb-net kmod-usb-net-cdc-ether 
opkg install kmod-usb-net-rndis usb-modeswitch 
opkg install kmod-usb-dwc2 kmod-usb-net-ipheth 
opkg install luci-mod-rpc
  • Add usb0 to Lan interface.

(2)Plug MagickLink to openwrt wifi AP router usb port.


(3)Cell Phone link to wifi router
(4)Execute chromcast or airplay to wifi display.

3 Likes
#2

Is this required, or would "Set root's password to a secure password" be appropriate?

1 Like
#3

It's not necessary. It's just a accident.
I found MagicLink to use CGI command to get AP info with username(root)&password(root).

#4

This seems very interesting, thanks for sharing it!
Can you stream any content (video and audio) from iOS over AirPlay?

1 Like
#5

This device support Apple airplay.

2 Likes
#6

Awesome! Thanks your sharing.
Seems that can support on any router, not only for this product, right ?

#7

Again, many thanks for sharing this info!

#8

Great thing.

Probably worth mentioning that no all USB to HDMI adapters support mirroring. Some are just for power, so worth checking before buying.