Activation Codes and Methods, Hardware Details, Sniffing
Post Reply
stevenfalco
Posts: 1
Joined: 29 Sep 2022, 20:33

TP-Link UE300 10/100/1000 LAN

Post by stevenfalco » 29 Sep 2022, 20:56

I just purchased a TP-Link UE300 10/100/1000 LAN module, and it is recognized as a cd-rom drive by my Raspberry Pi.

When the device first comes up, it has the following lsusb parameters:

Bus 002 Device 004: ID 2357:8151 TP-Link USB 10/100/1000 LAN

I was able to get it to work by adding /usr/share/usb_modeswitch/2357:8151 with these contents:

Code: Select all

# TP-Link UE300
TargetVendor=0x2357
TargetProduct=0x0601
ResetUSB=1
and I also added a rule in /etc/udev/rules.d/40-tplink.rules with these contents:

Code: Select all

ACTION!="add|change", GOTO="modeswitch_rules_end"

SUBSYSTEM!="usb", ACTION!="add",, GOTO="modeswitch_rules_end"

ATTR{idVendor}=="2357", ATTR{idProduct}=="8151", RUN+="usb_modeswitch '/%k'"

LABEL="modeswitch_rules_end"
Now, this device comes up properly when I boot the Raspberry Pi. BTW, I tried using "StandardEject=1" instead of "ResetUSB=1", but that didn't work. Apparently a reset is needed.

I see that there is already an entry for the TP-Link UE300, but that entry is for a vendor/product ID of 2357:0600. I'm guessing that TP-Link has changed the product ID in their current production.

It would be great if this alternate entry could be added, so it works "out of the box" for other folks.

Post Reply