01-19-2018, 06:05 PM
hallo all,
i hawe huawei modem attached to tinkerboard with android 6, any version from 2017, i installed PPP3 widget for using internet over that modem, but problem, modem is not detected
i contacted author of ppp3 widget and he found solution
mr. author of android, can you change kernel using this solution?
thank you wery much
The Linux kernel for the Tinkerboard Android was patched so that every Huawei modem is mode-switched by the usb-storage driver.
https://github.com/TinkerBoard/android_ ... ual_devs.h
Code:
UNUSUAL_VENDOR_INTF(0x12d1, 0x08, 0x06, 0x50,
"HUAWEI MOBILE",
"Mass Storage",
USB_SC_DEVICE, USB_PR_DEVICE, usb_stor_huawei_init,
0),
And here is the function:
Code:
int usb_stor_huawei_init(struct us_data *us)
{
int idProduct;
idProduct = us->pusb_dev->descriptor.idProduct;
if (idProduct==0x1F01) {
int result ;
int act_len;
unsigned char cmd[32] = {0x55, 0x53, 0x42, 0x43, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x11,
0x06, 0x30, 0x00, 0x00, 0x01, 0x00, 0x01, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00};
result = usb_stor_bulk_transfer_buf(us, us->send_bulk_pipe, cmd, 31, &act_len);
printk("usb_stor_bulk_transfer_buf performing result is %d, "
"transfer the actual length=%d\n", result,act_len);
return result;
} else {
...
https://github.com/TinkerBoard/android_ ... ializers.c
This forces a certain mode that can't be overridden.
i hawe huawei modem attached to tinkerboard with android 6, any version from 2017, i installed PPP3 widget for using internet over that modem, but problem, modem is not detected
i contacted author of ppp3 widget and he found solution
mr. author of android, can you change kernel using this solution?
thank you wery much
The Linux kernel for the Tinkerboard Android was patched so that every Huawei modem is mode-switched by the usb-storage driver.
https://github.com/TinkerBoard/android_ ... ual_devs.h
Code:
UNUSUAL_VENDOR_INTF(0x12d1, 0x08, 0x06, 0x50,
"HUAWEI MOBILE",
"Mass Storage",
USB_SC_DEVICE, USB_PR_DEVICE, usb_stor_huawei_init,
0),
And here is the function:
Code:
int usb_stor_huawei_init(struct us_data *us)
{
int idProduct;
idProduct = us->pusb_dev->descriptor.idProduct;
if (idProduct==0x1F01) {
int result ;
int act_len;
unsigned char cmd[32] = {0x55, 0x53, 0x42, 0x43, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x11,
0x06, 0x30, 0x00, 0x00, 0x01, 0x00, 0x01, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00};
result = usb_stor_bulk_transfer_buf(us, us->send_bulk_pipe, cmd, 31, &act_len);
printk("usb_stor_bulk_transfer_buf performing result is %d, "
"transfer the actual length=%d\n", result,act_len);
return result;
} else {
...
https://github.com/TinkerBoard/android_ ... ializers.c
This forces a certain mode that can't be overridden.



![[-]](https://tinkerboarding.co.uk/forum/images/collapse.png)