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

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
https://drive.google.com/file/d/1CLhG8q8J5wFs6OABotCcVxnX0xo_q1kx/view?usp=sharing
[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]
https://drive.google.com/file/d/1EKxOpTce0VCt75hRt-KlTweoAWdP3b_f/view?usp=sharing

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.
https://drive.google.com/file/d/1Tchwmt51BpkgWkqNJK_UGozUo89UtBfB/view?usp=sharing
(3)Cell Phone link to wifi router
(4)Execute chromcast or airplay to wifi display.

4 Likes

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

1 Like

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).

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

1 Like

This device support Apple airplay.

2 Likes

Again, many thanks for sharing this info!

Great thing.

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

Anyone know if this would work for most USB to HDMI display adapter, or just only work for magiclink?

Need more information please. Some images broken.