Skip to content

Instantly share code, notes, and snippets.

@dwiash
Created September 1, 2013 13:43
Show Gist options
  • Save dwiash/6404554 to your computer and use it in GitHub Desktop.
Save dwiash/6404554 to your computer and use it in GitHub Desktop.
Smartfren CE81B Modem
# put this following lines into /etc/udev/rules.d/haier-port-blacklist.rules
ACTION!="add|change", GOTO="mm_haier_port_types_end"
SUBSYSTEM!="tty", GOTO="mm_haier_port_types_end"
SUBSYSTEMS=="usb", ATTRS{idVendor}=="201e", GOTO="mm_haier_vendorcheck"
GOTO="mm_haier_port_types_end"
LABEL="mm_haier_vendorcheck"
SUBSYSTEMS=="usb", ATTRS{bInterfaceNumber}=="?*",
ENV{.MM_USBIFNUM}="$attr{bInterfaceNumber}"
# Haier CE81B
ATTRS{idProduct}=="10f8", ENV{.MM_USBIFNUM}=="02", ENV{ID_MM_CANDIDATE}="0"
ATTRS{idProduct}=="10f8", ENV{.MM_USBIFNUM}=="01", ENV{ID_MM_CANDIDATE}="0"
ATTRS{idProduct}=="10f8", ENV{.MM_USBIFNUM}=="00", ENV{ID_MM_CANDIDATE}="0"
GOTO="mm_haier_port_types_end"
LABEL="mm_haier_port_types_end"
# then reload rules by issuing this line into your shell
sudo vim /etc/udev/rules.d/haier-port-blacklist.rules
# finally, issue this line every time you're going to plug your Smartfren CE81B Modem
sudo modprobe usbserial vendor=0x201e product=0x10f8
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment