(example config):
# /etc/usb_modeswitch.d/12d1:1c0b TargetVendor=0x12d1 TargetProduct=0x14fe MessageContent="55534243123456780000000000000011062000000100000000000000000000" Or programmatically with libusb :
def disconnect_3g(): subprocess.run(["poff", "huawei-e173"]) Add a health check (ping or check interface status):



