Author Message

<  The PPP Widget Family for Android  ~  "Driver Not Found" for HTC One S with HUAWEI EC156

PostPosted: Wed Nov 20, 2013 12:17 am Reply with quote
Posts: 7Joined: Tue Nov 19, 2013 11:47 pm
USB_MODSWITCH was to my rescue when I started using Ubuntu some time back and I am sure its going to rescue me on my android as well. Thanks for this very useful utility. This is why I liked linux in the first place :)

On my rooted phone, I have installed the PPP Widget. When I connect my USB Modem (Tata Photon Plus, HUAWEI EC156), ModeSwitch seems to happen fine.

Device ID on plugging in: 12d1:1505
After ModeSwitch I get : 12d1:140b

Its also indicated similarly in the logs. However, there is no driver found after that. I looked around to see if there are any drivers for this device/ kernal but did not find one. The details are below.

Phone Name: HTC VLE_U (HTC One S)
Android Version: 4.1.1
Kernal version: 3.4.10-g0f5103e (Stock HTC ROM)


The log from the widget is below. Please help

Code:
PPP Widget version 1.3.3
USB_ModeSwitch log from Wed Nov  20 02:46:06 IST 2013

Raw args from udev: 1-1.1/1-1.1:1.0

Using top device dir /sys/bus/usb/devices/1-1.1
----------------
USB values from sysfs:
  manufacturer    HUAÿWEI TECHNOLOGIES
  product    HUAWEI Mobile
  serial    ÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ
----------------
bNumConfigurations is 1 - don't check for active configuration
SCSI attributes not needed, moving on
checking config: /data/data/de.draisberghof.pppwidget/app_tmp/12d1.1505
! matched. Reading config data
devList 1:
config: TargetVendor set to 12d1
config: TargetProductList set to 140b,1506,150f,150a
Driver module is "option", ID path is /sys/bus/usb-serial/drivers/option1

Command to be run:
usb_modeswitch -I -W -D -s 20 -u -1 -b 1 -g 20 -v 12d1 -p 1505 -f $cB

Verbose debug output of usb_modeswitch and libusb follows
(Note that some USB errors are to be expected in the process)
--------------------------------

Reading long config from command line

* usb_modeswitch: handle USB devices with multiple modes
* Version 1.2.7 (C) Josua Dietze 2012
* Based on libusb0 (0.1.12 and above)

! PLEASE REPORT NEW CONFIGURATIONS !

DefaultVendor=  0x12d1
DefaultProduct= 0x1505
TargetVendor=   0x12d1
TargetProduct=  not set
TargetClass=    not set
TargetProductList="140b,1506,150f,150a"

DetachStorageOnly=0
HuaweiMode=0
SierraMode=0
SonyMode=0
QisdaMode=0
QuantaMode=0
GCTMode=0
KobilMode=0
SequansMode=0
MobileActionMode=0
CiscoMode=0
BlackberryMode=0
PantechMode=0
MessageEndpoint=  not set
MessageContent="55534243123456780000000000000011062000000100000000000000000000"
NeedResponse=0
ResponseEndpoint= not set

InquireDevice disabled
Success check enabled, max. wait time 20 seconds
System integration mode enabled

Use given bus/device number: 001/020 ...
Looking for default devices ...
bus/device number matched
  searching devices, found USB ID 12d1:1505
   found matching vendor ID
   found matching product ID
   adding device
Found device in default mode, class or configuration (1)
Skipping the check for the current configuration
Using interface number 0
Using endpoints 0x08 (out) and 0x87 (in)

USB description data (for identification)
-------------------------
Manufacturer: HUA�WEI TECHNOLOGIES
     Product: HUAWEI Mobile
  Serial No.: �������������������
-------------------------
Looking for active driver ...
OK, driver found; name unknown, limitation of libusb1
OK, driver "unkown" detached
Setting up communication with interface 0
Using endpoint 0x08 for message sending ...
Trying to send message 1 to endpoint 0x08 ...
OK, message successfully sent
Resetting response endpoint 0x87
Resetting message endpoint 0x08
Could not reset endpoint (probably harmless): -34
Bus/dev search active, referring success check to wrapper. Bye.

ok:busdev
--------------------------------
(end of usb_modeswitch output)

Checking success of mode switch for max. 20 seconds ...
Waiting for device file system (1 sec.) ...
Waiting for device file system (2 sec.) ...
Waiting for device file system (3 sec.) ...
Reading attributes ...
Mode switch has completed
Mode switching was successful, found 12d1:140b (HUAÿWEI TECHNOLOGIES: HUAWEI Mobile)
Device class of first interface is ff
Now checking for bound driver ...
No driver has bound to interface 0 yet
Module loader is /system/bin/insmod
Trying to find and install main driver module "option"

Checking for active driver path: /sys/bus/usb-serial/drivers/option1

Driver not active, try to find module "option"

Can't find module "option"

Existing path found:
No way to use driver "option"
- try falling back to "usbserial"
Module "usb_serial" not found, can't do more here
Driver binding did not work for this device

All done, exiting


Thanks in advance :)


Offline Profile
PostPosted: Wed Nov 20, 2013 5:21 am Reply with quote
Posts: 1156Location: Koh Samui, THJoined: Wed Jul 11, 2012 3:14 pm
It would help if you could attach a stock rom module from your device to the post - just one. The smallest one is probably "scsi_wait_scan.ko" which usually sits in "/lib/modules" (only visible with root access, e.g. with "Root Explorer").


Offline Profile
PostPosted: Wed Nov 20, 2013 8:03 am Reply with quote
Posts: 7Joined: Tue Nov 19, 2013 11:47 pm
Hi, please find the module attached.
Attachments:
scsi_wait_scan.ko [31.81 KiB]
Downloaded 235 times

Offline Profile
PostPosted: Wed Nov 20, 2013 8:27 pm Reply with quote
Site AdminPosts: 6362Joined: Sat Nov 03, 2007 12:30 am
Please understand that Wifi-only devices get a higher priority regarding creation of modules. You may need some patience.


Offline Profile
PostPosted: Thu Nov 21, 2013 7:12 am Reply with quote
Posts: 7Joined: Tue Nov 19, 2013 11:47 pm
I understand. Thanks for your response see and the good work which made it easy / possible to use my photon device on Ubuntu. I am sure that once you have had time to look into it, my android will be able to use it too.

Thanks again


Offline Profile
PostPosted: Mon Dec 09, 2013 12:48 pm Reply with quote
Posts: 7Joined: Tue Nov 19, 2013 11:47 pm
Hi, I would need to travel next weekend and will need to rely on my photon for connectivity. Any chance of creating the driver before that? I can help create it and volunteer to create additional drivers if someone can explain how this is done.Thanks in Advance. :)


Offline Profile
PostPosted: Mon Dec 09, 2013 11:19 pm Reply with quote
Posts: 22Joined: Fri Dec 06, 2013 4:06 pm
varunksl wrote:
Hi, I would need to travel next weekend and will need to rely on my photon for connectivity. Any chance of creating the driver before that? I can help create it and volunteer to create additional drivers if someone can explain how this is done.Thanks in Advance. :)


Try this modules
Attachments:
HTC_One_S-3.4.10-0f5103e.ZIP [335.6 KiB]
Downloaded 260 times

Offline Profile
PostPosted: Tue Dec 10, 2013 1:28 am Reply with quote
Posts: 7Joined: Tue Nov 19, 2013 11:47 pm
I tried the attached modules. They dont work. I tried the following, as mentioned in the "Driver Not Found" thread. Please note, I did not have my usb key attached to my phone at this time. So, please let me know if I need to have that.

Quote:
Installation

Just download the packages for your specific device and put the unpacked files to this folder (on your device):

[sdcard]/pppwidget/lib

Testing (troubleshooting and experimenting only)

Usually, you can see in PPP Widget's "USB Log" if the drivers that you installed in the "lib" folder were loaded correctly.

To test manually if the kernel accepts the modules, open a terminal app on your device, run "su" to become root, and navigate to the "lib" folder where your modules are.
Code:
$ su
# cd /sdcard/pppwidget/lib

From there, run the command:
Code:
# insmod <module_filename>

Start with "usb_wwan.ko". If there is no error, you are a lucky winner. Otherwise, run the "dmesg" command and note the last line of the output which should give you some more information about the problem.


I did get the below error.

Quote:
u0_a227@android:/ $ su
root@android: # cd /sdcard/pppwidget/lib
root@android:/sdcard/pppwidget/lib #
insmod usb_wwan.ko
insmod: init_module 'usb_wwan.ko' failed (No such file or directory)
255|root@android:/sdcard/pppwidget/lib # ls
option.ko
usb_wwan.ko
usbserial.ko
root@android:/sdcard/pppwidget/lib #
insmod option.ko
insmod: init_module 'option.ko' failed (No such file or directory)
255|root@android:/sdcard/pppwidget/lib # dmesg


I than ran dmesg as suggested and the rather verbose output, Which I could not understand is attached.
Attachments:
error loading drivers.txt [129.43 KiB]
Downloaded 229 times

Offline Profile
PostPosted: Tue Dec 10, 2013 1:58 am Reply with quote
Posts: 22Joined: Fri Dec 06, 2013 4:06 pm
Try to load "insmod usbserial.ko" if successful load usb_wwan then option. and log dmesg


Offline Profile
PostPosted: Tue Dec 10, 2013 2:07 am Reply with quote
Posts: 7Joined: Tue Nov 19, 2013 11:47 pm
Worked like a charm!!
One suggestion though.. we should mention that sequence in the "Driver not found" sticky thread. So, I am going to try it with actual device attached once I have it with me. I am sure it will work this time. Once it does, I will notify so that this driver can be added to drivers page for everybody else to use.

Quote:
u0_a227@android:/ $ su
root@android:/ # cd sdcard
root@android:/sdcard # cd pppwidget
root@android:/sdcard/pppwidget # cd lib
root@android:/sdcard/pppwidget/lib # ls
option.ko
usb_wwan.ko
usbserial.ko
root@android:/sdcard/pppwidget/lib # insmod usbserial.ko
root@android:/sdcard/pppwidget/lib # insmod usb_wwan.ko
root@android:/sdcard/pppwidget/lib # insmod option.ko


Offline Profile
PostPosted: Tue Dec 10, 2013 6:57 am Reply with quote
Posts: 1156Location: Koh Samui, THJoined: Wed Jul 11, 2012 3:14 pm
SileNTViP wrote:
Try this modules


Some huge drivers in there, did you forget to strip symbols?


Offline Profile
PostPosted: Tue Dec 10, 2013 12:13 pm Reply with quote
Posts: 22Joined: Fri Dec 06, 2013 4:06 pm
Try striped modules
Attachments:
HTC_One_S-3.4.10-0f5103e.ZIP [29.97 KiB]
Downloaded 424 times

Offline Profile
PostPosted: Wed Dec 11, 2013 1:33 am Reply with quote
Posts: 7Joined: Tue Nov 19, 2013 11:47 pm
Yup, still works great and much smaller. Thanks :)


Offline Profile
PostPosted: Wed Dec 18, 2013 11:23 am Reply with quote
Site AdminPosts: 6362Joined: Sat Nov 03, 2007 12:30 am
SileNTViP,

thank you very much for your help here!

I'm heavily time-constrained at the moment, so your work is extremely welcome!


Offline Profile

Display posts from previous:  Sort by:

All times are UTC + 1 hour [ DST ]
Page 1 of 1
14 posts
Users browsing this forum: No registered users and 3 guests
Search for:
Post new topic  Reply to topic
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum