How can I configure a Huawei E3131 Modem (stick) on Haiku?

I am using an E3131 Huawei usb modem. How can I configure a Huawei E3131 Modem (stick) on Haiku? Please step by step.


This modem is currently not supported in Haiku.

Information for developers who are ready to compile and test code for a potential driver

From a quick web search, the first step will be to add some rules for it in the usb_modeswitch driver, because, by default, it shows up as a mass storage device. Once that’s done, we can have a look at it with listusb and see what kind of interface it is, and if a custom driver has to be written or ported.

→ listusb
0000:0000 /dev/bus/usb/0/hub “HAIKU Inc.” “UHCI RootHub” ver. 0110
12d1:1506 /dev/bus/usb/1/1 “Huawei Technologies Co., Ltd.” “Modem/Networkcard” ver. 0102
0000:0000 /dev/bus/usb/1/hub “HAIKU Inc.” “UHCI RootHub” ver. 0110
0000:0000 /dev/bus/usb/2/hub “HAIKU Inc.” “UHCI RootHub” ver. 0110

USB Information
device/vendor 0x12d1
device/id 0x1506
usb/class 0xff
usb/subclass 0x2
usb/protocol 0x2

Class info (Unknown) (255:2:2)
Device name Modem/Networkcard
device/bus usb
device/driver bus_managers/usb/device/driver_v1
device/flags 2
device/id 0x1506
device/pretty name USB device
device/vendor 0x12d1
Manufacturer Huawei Technologies Co., Ltd.
usb/class 0xff
usb/id 29
usb/protocol 0x2
usb/subclass 0x2

For Linux usb_modeswitch:

sudo usb_modeswitch -v 12d1 -p 15ca -V 12d1 -P 1506 -M 55534243000000000000000000000011000000000000000000000000000000

Huawei E3131

TargetVendor= 0x12d1
TargetProduct= 0x1506

So it looks like the modeswitch part is already done (the id is already 1506). Now someone must write a driver