[Q] ICS OTG ZTE MF820 LTE dongle - Android Q&A, Help & Troubleshooting

when I use OTG cable plug the ZTE MF820 LTE Dongle, android can detect its model but the 3g/4g not work .
I checked there is a file
/etc/usb_modeswitch.d/19d2_0166
###########################
ZTE MF820 4G LTE
DefaultVendor= 0x19d2
DefaultProduct=0x0166
TargetVendor= 0x19d2
TargetProduct=0x0167
MessageEndpoint=0x01
MessageContent=55534243123456782400000080000685000000240000000000000000000000
CheckSuccess=20
here is a part of the message from the logcat:
D/MountService( 146): sendStorageIntent Intent { act=unmounted dat=file:///mnt/usbhost1 (has extras) }
D/MountService( 146): volume state changed for /mnt/usbhost1 (unmounted -> removed)
D/MountService( 146): sendStorageIntent Intent { act=android.intent.action.MEDIA_REMOVED dat=file:///mnt/usbhost1 (has extras) }
D/[CORE_SERVICE]( 2057): Receive media broadcast
D/[NOTIFICATION]( 2057): ignore a notification because of not accepted
I/StorageNotification( 213): Media {/mnt/usbhost1} state changed from {unmountable} -> {unmounted}
D/VoldCmdListener( 82): volume shared /mnt/sdcard ums
I/StorageNotification( 213): Media {/mnt/usbhost1} state changed from {unmounted} -> {removed}
.
.
.
D/APPTrafficLogic( 1867): 10053--android.process.acore--0--0--
I/USB3G ( 92): event { 'add', '/devices/platform/sw_hcd_host0/usb1/1-1', 'usb', '', 189, 9 }
I/USB3G ( 92): path : '/sys/devices/platform/sw_hcd_host0/usb1/1-1'
I/USB3G ( 92): VID :size 5,vid_path '/sys/devices/platform/sw_hcd_host0/usb1/1-1/idVendor',VID '19d2
I/USB3G ( 92): '.
I/USB3G ( 92): PID :size 5,Pid_path '/sys/devices/platform/sw_hcd_host0/usb1/1-1/idProduct',PID '0167
I/USB3G ( 92): '.
I/USB3G ( 92): cmd=/system/etc/usb_modeswitch.sh /system/etc/usb_modeswitch.d/19d2_0167 &,
I/USB3G ( 92): excute ret : 0,err:No such file or directory
what is the problem? thank you for any advice.

I rename the 19d2_0166 to 19d2_0167
and run
/# system//etc/usb_modeswitch.sh system/etc/usb_modeswitch.d/19d2_0167
Reading config file: /etc/usb_modeswitch.d/19d2_0167
* usb_modeswitch: handle USB devices with multiple modes
* Version 1.2.0 (C) Josua Dietze 2011
* Based on libusb0 (0.1.12 and above)
! PLEASE REPORT NEW CONFIGURATIONS !
DefaultVendor= 0x19d2
DefaultProduct= 0x0166
TargetVendor= 0x19d2
TargetProduct= 0x0167
TargetClass= not set
TargetProductList=""
DetachStorageOnly=0
HuaweiMode=0
SierraMode=0
SonyMode=0
QisdaMode=0
GCTMode=0
KobilMode=0
SequansMode=0
MobileActionMode=0
CiscoMode=0
MessageEndpoint= not set
MessageContent="55534243123456782400000080000685000000240000000000000000000000"
NeedResponse=0
ResponseEndpoint= not set
InquireDevice disabled
Success check enabled, max. wait time 20 seconds
System integration mode disabled
usb_set_debug: Setting debugging level to 15 (on)
usb_os_find_busses: Found 003
usb_os_find_busses: Found 002
usb_os_find_busses: Found 001
usb_os_find_devices: Found 001 on 003
usb_os_find_devices: Found 002 on 002
usb_os_find_devices: Found 001 on 002
error obtaining child information: Inappropriate ioctl for device
usb_os_find_devices: Found 019 on 001
usb_os_find_devices: Found 001 on 001
error obtaining child information: Inappropriate ioctl for device
Looking for target devices ...
searching devices, found USB ID 1d6b:0001
searching devices, found USB ID 0bda:8176
searching devices, found USB ID 1d6b:0002
searching devices, found USB ID 19d2:0167
found matching vendor ID
found matching product ID
adding device
searching devices, found USB ID 1d6b:0001
Found devices in target mode or class (1)
Looking for default devices ...
searching devices, found USB ID 1d6b:0001
searching devices, found USB ID 0bda:8176
searching devices, found USB ID 1d6b:0002
searching devices, found USB ID 19d2:0167
found matching vendor ID
searching devices, found USB ID 1d6b:0001
No devices in default mode found. Nothing to do. Bye.
is that miss something ?

Related

[Q] archos detects my canon powershot camera but doesn't show the pictures

Hi,
When I plug my canon powershot camera into the archos 101 usb, it recognises my camera (message "external camera connected" or something like that) but when I look into the folder, it's empty... it doesn't show my pictures stored on the camera's sd card
anybody any ideas?
external hd drives, mouse, usb sticks etc all work fine
Cheers
B
berre said:
When I plug my canon powershot camera into the archos 101 usb, it recognises my camera (message "external camera connected" or something like that) but when I look into the folder, it's empty... it doesn't show my pictures stored on the camera's sd card
Click to expand...
Click to collapse
Most camera's have a setting to change the usb mode from PTP to USB STORAGE. Have you tried to change that?
I've went through the menu's of my camera but doesn't look like it has this setting...
cheers
B
berre said:
I've went through the menu's of my camera but doesn't look like it has this setting...
Click to expand...
Click to collapse
When You connect your camera to a computer what OS is the computer running?
How is the SD card in your camera formatted?
Are the photos take in RAW format and not JPG??? Your archos won't be able to view RAW, which is a shame...
OS is XP, pictures are jpeg format.
I'll see if I can find out how the SD is formatted tonight.
cheers
b
file system of the SD card is FAT
I've tried connecting a USB card reader to read the SD card but I get the same behaviour as when I try to connect my phone
see topic http://forum.xda-developers.com/showthread.php?t=1123491
so I'm kinda stuck on getting the images on my archos 101... a person in the other topic suggested installing urukdroid, would this help?
cheers
B
I have the same problem. It worked fine before, then one day I connected it and it wasn't working. Didn't change anything on the camera.
It is sadly a known problem with the 101 that the USB breaks.
The only chance you have is to RMA the device
fzelle said:
It is sadly a known problem with the 101 that the USB breaks.
The only chance you have is to RMA the device
Click to expand...
Click to collapse
There's nothing in this thread that says hardware failure. Why would you say the only choice is to RMA it?
berre: You should do some testing mate. Install OSMonitor and use it to watch the dmesg output when you plug in the usb devices. Test a few USB Flash Drives, wireless mice, etc. As I've said, I certainly have trouble with some USB devices, but it's not an RMA situation.
As for getting the pictures on your 101, copy them to your PC, then copy over wifi, or connect the A101 to your PC, or use a microSD card in your camera with a microsd adapter, then you can just put it straight into the 101. Or move them to a usb flash drive if you can find a working one.
this is my alogcat
seems like it's discovering my camera (detects that it's a canon) but there's an error message "Parameter 'INTERFACE' not found"
anybody any idea what this means?
D/dalvikvm(12735): GC_FOR_MALLOC freed 3809 objects / 173920 bytes in 115ms
W/InputManagerService( 1319): Window already focused, ignoring focus gain of: [email protected]
D/WifiService( 1319): ACTION_BATTERY_CHANGED pluggedType: 0
D/SiMiClock( 1717): onUpdate
I/cat ( 1174): <7>usb usb2: usb resume
I/cat ( 1174): <7>hub 2-0:1.0: hub_resume
I/cat ( 1174): <7>hub 2-0:1.0: port 1: status 0101 change 0001
I/cat ( 1174): <7>hub 2-0:1.0: state 7 ports 1 chg 0002 evt 0000
I/cat ( 1174): <7>hub 2-0:1.0: port 1, status 0101, change 0000, 12 Mb/s
I/cat ( 1174): <6>usb 2-1: new high speed USB device using musb_hdrc and address 4
I/cat ( 1174): <7>usb 2-1: default language 0x0409
I/cat ( 1174): <6>usb 2-1: New USB device found, idVendor=04a9, idProduct=30fc
I/cat ( 1174): <6>usb 2-1: New USB device strings: Mfr=1, Product=2, SerialNumber=0
I/cat ( 1174): <6>usb 2-1: Product: Canon Digital Camera
I/cat ( 1174): <6>usb 2-1: Manufacturer: Canon Inc.
E/NetlinkEvent( 1223): NetlinkEvent::FindParam(): Parameter 'INTERFACE' not found
I/Vold ( 1223): handleUsbEvent(): Missing property, ignoring event
I/cat ( 1174): <7>usb 2-1: uevent
I/cat ( 1174): <7>usb 2-1: usb_probe_device
I/cat ( 1174): <6>usb 2-1: configuration #1 chosen from 1 choice
I/cat ( 1174): <7>usb 2-1: adding 2-1:1.0 (config #1, interface 0)
I/cat ( 1174): <7>usb 2-1:1.0: uevent
I/Vold ( 1223): Starting gphotofs
I/StorageNotification( 1319): Media {/mnt/storage/extcamera} state changed from {unmounted} -> {mounted}
W/StorageNotification( 1319): setMediaStorageNotification type=4 icon=17302220 visible=true
D/MediaScannerReceiver( 4966): Just got intent Intent { act=android.intent.action.MEDIA_MOUNTED dat=file:///mnt/storage/extcamera cmp=com.android.providers.media/.MediaScannerReceiver (has extras) }
I/BootReceiver( 6648): Got intent with action android.intent.action.MEDIA_MOUNTED
I/cat ( 1174): <7>/mnt/flash/releases/G8A/v2.3.25-r85838/arcbuild/linux/drivers/usb/core/inode.c: creating file '004'
I/cat ( 1174): <7>hub 2-0:1.0: state 7 ports 1 chg 0000 evt 0002
I/cat ( 1174): <7>hub 2-0:1.0: port 1 enable change, status 00000503
D/AosUpdate:MediaMountReceiver(12628): android.intent.action.MEDIA_MOUNTED / file:///mnt/storage/extcamera
D/dalvikvm(28664): GC_EXPLICIT freed 17329 objects / 1063424 bytes in 77ms
D/WifiService( 1319): ACTION_BATTERY_CHANGED pluggedType: 0
D/SiMiClock( 1717): onUpdate
I/ActivityManager( 1319): Starting activity: Intent { act=archos.intent.action.FILE_MANAGER dat=file:///mnt/storage/extcamera flg=0x10000000 cmp=com.archos.fm/.FileManager bnds=[0,58][980,122] }
V/alogcat (12735): save instance
V/alogcat (12735): paused
D/FileManager(12638): onResume: register the ActivityBackgroundResizer
D/ActivityBackgroundResizer(12638): onGlobalLayout
D/ActivityBackgroundResizer(12638): onGLobalLayout: 980x600
D/ActivityBackgroundResizer(12638): onGlobalLayout: no resizing required (980x600)
I/ActivityManager( 1319): Displayed activity com.archos.fm/.FileManager: 533 ms (total 533 ms)
D/alogcat (12735): stopping ...
D/alogcat (12735): stopped
W/KeyCharacterMap(12638): No keyboard for id -1
W/KeyCharacterMap(12638): Using default keymap: /system/usr/keychars/qwerty.kcm.bin
D/dalvikvm(12638): GC_EXTERNAL_ALLOC freed 3643 objects / 184896 bytes in 74ms
D/dalvikvm(12638): GC_EXTERNAL_ALLOC freed 678 objects / 38768 bytes in 55ms
D/dalvikvm(12638): GC_EXTERNAL_ALLOC freed 7 objects / 232 bytes in 27ms
D/dalvikvm(12638): GC_EXTERNAL_ALLOC freed 7 objects / 216 bytes in 27ms
D/dalvikvm(12638): GC_EXTERNAL_ALLOC freed 8 objects / 264 bytes in 27ms
D/dalvikvm(12638): GC_EXTERNAL_ALLOC freed 196 objects / 7064 bytes in 27ms
W/KeyCharacterMap(12638): No keyboard for id -1
W/KeyCharacterMap(12638): Using default keymap: /system/usr/keychars/qwerty.kcm.bin
D/alogcat (12735): stopping ...
D/alogcat (12735): canceling periodic saves
V/alogcat (12735): started
V/alogcat (12735): resumed
D/alogcat (12735): starting ...
W/IInputConnectionWrapper(12638): showStatusIcon on inactive InputConnection
D/dalvikvm(31530): GC_FOR_MALLOC freed 310 objects / 443984 bytes in 124ms
D/dalvikvm(31530): GC_FOR_MALLOC freed 222 objects / 439856 bytes in 75ms
D/SiMiClock( 1717): onUpdate
D/dalvikvm(31530): GC_FOR_MALLOC freed 167 objects / 435048 bytes in 38ms
D/dalvikvm(31530): GC_FOR_MALLOC freed 73 objects / 430536 bytes in 76ms
D/dalvikvm(31530): GC_FOR_MALLOC freed 70 objects / 430424 bytes in 77ms
I/cat ( 1174): <7>hub 2-0:1.0: state 7 ports 1 chg 0000 evt 0002
I/cat ( 1174): <7>hub 2-0:1.0: port 1, status 0100, change 0001, 12 Mb/s
I/cat ( 1174): <6>usb 2-1: USB disconnect, address 4
I/cat ( 1174): <7>usb 2-1: unregistering device
I/cat ( 1174): <7>usb 2-1: usb_disable_device nuking all URBs
I/cat ( 1174): <7>usb 2-1: unregistering interface 2-1:1.0
I/Vold ( 1223): Stopping gphotofs
I/cat ( 1174): <7>usb 2-1:1.0: uevent
I/StorageNotification( 1319): Media {/mnt/storage/extcamera} state changed from {mounted} -> {unmounted}
D/VoldCmdListener( 1223): volume shared /mnt/storage ums
W/StorageNotification( 1319): setMediaStorageNotification type=4 icon=0 visible=false
D/MediaScannerReceiver( 4966): Just got intent Intent { act=android.intent.action.MEDIA_EJECT dat=file:///mnt/storage/extcamera cmp=com.android.providers.media/.MediaScannerReceiver }
E/NetlinkEvent( 1223): NetlinkEvent::FindParam(): Parameter 'INTERFACE' not found
I/Vold ( 1223): handleUsbEvent(): Missing property, ignoring event
I/cat ( 1174): <7>usb 2-1: uevent
I/BootReceiver( 6648): Got intent with action android.intent.action.MEDIA_EJECT
I/logwrapper(12750): /usr/bin/gphotofs terminated by exit(1)
I/cat ( 1174): <7>hub 2-0:1.0: debounce: port 1: total 100ms stable 100ms status 0x100
I/cat ( 1174): <3>init: untracked pid 12770 exited
I/cat ( 1174): <7>hub 2-0:1.0: hub_suspend
I/cat ( 1174): <7>usb usb2: bus auto-suspend
D/dalvikvm( 4966): GC_EXPLICIT freed 1213 objects / 61504 bytes in 91ms
D/dalvikvm( 6648): GC_EXPLICIT freed 201 objects / 11520 bytes in 73ms
W/KeyCharacterMap(12735): No keyboard for id -1
W/KeyCharacterMap(12735): Using default keymap: /system/usr/keychars/qwerty.kcm.bin
The (1223) shows that message is actually a different process, so I don't think that's related. Look at this line though:
/StorageNotification( 1319): Media {/mnt/storage/extcamera} state changed from {unmounted} -> {mounted}
Notice it says /mnt/storage/extcamera? And "state changed from unmounted to mounted"? Have you looked in that directory? I bet your pics are there.
nope, I think I checked that yesterday and folder was empty... I'll double-check tonight but unless there's a second extcamera folder, it was empty
cheers
b
confirmed, that directory is empty as well.
brgds
b
Maybe i'm wrong, but i think that this isn't the pictures folder, but the access to the camera, maybe Android want to use your camera as a camera (and not as a storage)
I don't really know, but, with my little linux knowledge i think that it's possible.
(In Linux everything is a file, even the hardware)
eagleofdeath13 said:
Maybe i'm wrong, but i think that this isn't the pictures folder, but the access to the camera, maybe Android want to use your camera as a camera (and not as a storage)
I don't really know, but, with my little linux knowledge i think that it's possible.
(In Linux everything is a file, even the hardware)
Click to expand...
Click to collapse
Everything is possible in Linux, but in this case, the mount is being handled by gphotofs, which is a PTP camera storage driver. It's supposed to mount PTP cameras as R/W filesystems, allowing you to access the stored photos. It's independently developed though, so I'm not sure where it got built in.
Gphotofs does not fully support Canon cameras, supposedly Canon locked their PTP to read only, and it's looks like development stopped in 2008, but it seems like it should still show the files though.
I know it's a big step, but I'd try Urukdroid. I don't have a Canon around to test with, but I'd be interested to see what happens. The 1.0 easy install can be done and set up in less than 10 minutes, with no linux or even windows knowledge needed.
One question though. In the log it shows the camera being disconnected and then gphotofs unmounts it. Does this happen immediately after mounting, or did you unplug the usb? If the log shows "/StorageNotification( 1319): Media {/mnt/storage/extcamera} state changed from {mounted} -> {unmounted}" before you actually disconnect the camera, then at least I know why the extcamera directory is empty. That would just leave overamping and canon PTP incompatibilty as the prime suspects.
msticninja said:
One question though. In the log it shows the camera being disconnected and then gphotofs unmounts it. Does this happen immediately after mounting, or did you unplug the usb? If the log shows "/StorageNotification( 1319): Media {/mnt/storage/extcamera} state changed from {mounted} -> {unmounted}" before you actually disconnect the camera, then at least I know why the extcamera directory is empty. That would just leave overamping and canon PTP incompatibilty as the prime suspects.
Click to expand...
Click to collapse
I unplugged the usb so that's normal... first I'm gonna try another usb sd card reader as workaround
I'm not scared of urukdroid but a bit reluctant to void my warranty, especially seen the USB issue which seems to be quite common. I also want to see what the new firmware is all about (next week?)
But I think I might be going for urukdroid anyways as my storage for apps is running out
cheers
B
berre said:
I unplugged the usb so that's normal... first I'm gonna try another usb sd card reader as workaround
I'm not scared of urukdroid but a bit reluctant to void my warranty, especially seen the USB issue which seems to be quite common. I also want to see what the new firmware is all about (next week?)
But I think I might be going for urukdroid anyways as my storage for apps is running out
cheers
B
Click to expand...
Click to collapse
Hmm, I wonder about gphotofs then. If I get some time I'll research it. As far as Uruk, Archos trolls the forums. They've seen our firmware, and they can't really make a case for it doing any real damage. If you have to send it back for replacement, just reflash the original firmware. They don't bother asking, and so far everybody I know with the "SDE Watermark" has gotten a replacement without issue.

[Q] MTP installation on debian doesn't work

Hello,
I've compiled the latest version of libmtp (1.1.2) and installed properly. It seems that the device is recognized but still without the ability to connect to it. Here is the log. I got two different outputs. So I'll post both of them:
1.
Code:
libmtp version: 1.1.2
Listing raw device(s)
Device 0 (VID=04e8 and PID=6860) is a Samsung GT-P7510/Galaxy Tab 10.1/S2/GT-N7000/Galaxy Nexus.
Found 1 device(s):
Samsung: GT-P7510/Galaxy Tab 10.1/S2/GT-N7000/Galaxy Nexus (04e8:6860) @ bus 1, dev 12
Attempting to connect device(s)
PTP_ERROR_IO: failed to open session, trying again after resetting USB interface
LIBMTP libusb: Attempt to reset device
inep: usb_get_endpoint_status(): No such device
outep: usb_get_endpoint_status(): No such device
usb_clear_halt() on IN endpoint: No such device
usb_clear_halt() on OUT endpoint: No such device
usb_clear_halt() on INTERRUPT endpoint: No such device
ignoring usb_claim_interface = -9ignoring usb_claim_interface = -22LIBMTP PANIC: failed to open session on second attempt
Unable to open raw device 0
OK.
2.
Code:
libmtp version: 1.1.2
Listing raw device(s)
Device 0 (VID=04e8 and PID=6860) is a Samsung GT-P7510/Galaxy Tab 10.1/S2/GT-N7000/Galaxy Nexus.
Found 1 device(s):
Samsung: GT-P7510/Galaxy Tab 10.1/S2/GT-N7000/Galaxy Nexus (04e8:6860) @ bus 1, dev 13
Attempting to connect device(s)
PTP_ERROR_IO: failed to open session, trying again after resetting USB interface
LIBMTP libusb: Attempt to reset device
LIBMTP PANIC: failed to open session on second attempt
Unable to open raw device 0
OK.
I've read about a samsung-proprietary mtp protocol which would not work with libmtp. I hope those rumors are wrong, aren't they?
I'd really appreciate any help. I've been working on it for a couple of days and it starts really anoying me.
regards, hornby
I have the same issue. I am trying to connect my Linux Mint Debian machine to my SGS2 running CM9 nightly. Debian can see the device but communication is a nogo.
Here is mtp-detect:
Code:
~ $ mtp-detect
libmtp version: 1.1.2
Listing raw device(s)
Device 0 (VID=04e8 and PID=6860) is a Samsung GT-P7510/Galaxy Tab 10.1/S2/GT-N7000/Galaxy Nexus.
Found 1 device(s):
Samsung: GT-P7510/Galaxy Tab 10.1/S2/GT-N7000/Galaxy Nexus (04e8:6860) @ bus 1, dev 9
Attempting to connect device(s)
ignoring usb_claim_interface = -110Android device detected, assigning default bug flags
USB low-level info:
Using kernel interface "usbfs"
bcdUSB: 512
bDeviceClass: 0
bDeviceSubClass: 0
bDeviceProtocol: 0
idVendor: 04e8
idProduct: 6860
IN endpoint maxpacket: 512 bytes
OUT endpoint maxpacket: 512 bytes
Raw device info:
Bus location: 1
Device number: 9
Device entry info:
Vendor: Samsung
Vendor id: 0x04e8
Product: GT-P7510/Galaxy Tab 10.1/S2/GT-N7000/Galaxy Nexus
Vendor id: 0x6860
Device flags: 0x08008106
Device info:
Manufacturer: samsung
Model: GT-I9100
Device version: 1.0
Serial number: ????????
Vendor extension ID: 0x00000006
Vendor extension description: microsoft.com: 1.0; android.com: 1.0;
Detected object size: 64 bits
Extensions:
microsoft.com: 1.0
android.com: 1.0
Supported operations:
1001: get device info
1002: Open session
1003: Close session
1004: Get storage IDs
1005: Get storage info
1006: Get number of objects
1007: Get object handles
1008: Get object info
1009: Get object
100a: Get thumbnail
100b: Delete object
100c: Send object info
100d: Send object
1014: Get device property description
1015: Get device property value
1016: Set device property value
1017: Reset device property value
101b: Get partial object
9801: Get object properties supported
9802: Get object property description
9803: Get object property value
9804: Set object property value
9805: Get object property list
9810: Get object references
9811: Set object references
95c1: Unknown (95c1)
95c2: Unknown (95c2)
95c3: Unknown (95c3)
95c4: Unknown (95c4)
95c5: Unknown (95c5)
Events supported:
0x4002
0x4003
0x4004
0x4005
Device Properties Supported:
0xd401: Synchronization Partner
0xd402: Friendly Device Name
0x5003: Image Size
Playable File (Object) Types and Object Properties Supported:
3000: Undefined Type
3001: Association/Directory
3004: Text
3005: HTML
3008: MS Wave
3009: MP3
300b: MPEG
3801: JPEG
3802: TIFF EP
3807: GIF
3808: JFIF
380b: PNG
380d: TIFF
b901: WMA
b902: OGG
b903: AAC
b982: MP4
b983: MP2
b984: 3GP
ba05: Abstract Audio Video Playlist
ba10: WPL Playlist
ba11: M3U Playlist
ba14: PLS Playlist
ba82: XMLDocument
b906: FLAC
Storage Devices:
StorageID: 0x00010001
StorageType: 0x0003 fixed RAM storage
FilesystemType: 0x0002 generic hierarchical
AccessCapability: 0x0000 read/write
MaxCapacity: 12332314624
FreeSpaceInBytes: 6137163776
FreeSpaceInObjects: 1073741824
StorageDescription: Internal Storage
VolumeIdentifier: (null)
Special directories:
Default music folder: 0x0000001a
Default playlist folder: 0xffffffff
Default picture folder: 0x0000001f
Default video folder: 0xffffffff
Default organizer folder: 0xffffffff
Default zencast folder: 0xffffffff
Default album folder: 0xffffffff
Default text folder: 0xffffffff
MTP-specific device properties:
Friendly name: (NULL)
Synchronization partner: (NULL)
libmtp supported (playable) filetypes:
Folder
Text file
HTML file
RIFF WAVE file
ISO MPEG-1 Audio Layer 3
MPEG video stream
JPEG file
GIF bitmap file
JFIF file
Portable Network Graphics
TIFF bitmap file
Microsoft Windows Media Audio
Ogg container format
Advanced Audio Coding (AAC)/MPEG-2 Part 7/MPEG-4 Part 3
MPEG-4 Part 14 Container Format (Audio+Video Emphasis)
ISO MPEG-1 Audio Layer 2
Abstract Playlist file
XML file
Free Lossless Audio Codec (FLAC)
ERROR: Could not close session!
inep: usb_get_endpoint_status(): No such device
outep: usb_get_endpoint_status(): No such device
usb_clear_halt() on IN endpoint: No such device
usb_clear_halt() on OUT endpoint: No such device
usb_clear_halt() on INTERRUPT endpoint: No such device
OK.

[HOW-TO] Bluetooth tethering - Internet - ROOT req.!

Hello guys this is my first HOW to so please be a lil bit patient.
Questions and comments are welcomed of course!
Because I sent my SGS 2 for repair I took my older blackberry from my box with old garbage and tried to think about internet connection.
BB doesn't have wifi hotspot or something like this so how can we dial up internet connection from android?
Here we go.
Some stuff which must be installed before procedure:
1) ROOTed device
2) Busybox installed
3) Linux in loop device - maybe this is not needed but I am lazy ass and this was the fastest solution.
Procedure:
First of all we need to determine what is your bluetooth address (blackberry in my case).
For this one you have two options.
1) Determine it on your PC (I don't have windows so I will describe linux method only)
Turn bluetooth on your PC on.
Turn bluetooth on your cellphone and enable device discovery (device needs to be visible!!)
Open terminal and write:
Code:
hcitool scan
You will get something like this: " f4:0b:93:08:a0:16 "
Write it down you will need it for later use.
2) How to determin a bluetooth address on android
Because standart busybox and asus rom don't have hcitool we will need to use it from Linux environment (from loop device).
So if you haven't installed linux distro in loop file do it! It's up to you which one you preffere. I made following steps in ubuntu 12.04.
After installing ubuntu to the loop device start it and write from command line:
Code:
sudo apt-get update && sudo apt-get install bluetooth
Ok now we have tools for bluetooth installed.
Now turn on bluetooth on your android, turn on bluetooth on cellphone (discovery enabled).
chroot into your linux in loop and write:
Code:
hcitool scan
Write down your address like in the example above.
Now we need to determine which number of channel is dialup networking
This command is included in android terminal with busybox so you don't have to write it in the loop linux distro.
So write in the terminal like SU:
Code:
sdptool browse f4:0b:93:08:a0:16 <--- here is YOUR address of bluetooth cellphone
You will get something like this:
Code:
Browsing F4:0B:93:08:A0:16 ...
Service Name: Dialup Networking
Service RecHandle: 0x10000
Service Class ID List:
"Dialup Networking" (0x1103)
"Generic Networking" (0x1201)
Protocol Descriptor List:
"L2CAP" (0x0100)
"RFCOMM" (0x0003)
Channel: 1
Profile Descriptor List:
"Dialup Networking" (0x1103)
Version: 0x0100
Service Name: Voice gateway
Service RecHandle: 0x10001
Service Class ID List:
"Headset Audio Gateway" (0x1112)
"Generic Audio" (0x1203)
Protocol Descriptor List:
"L2CAP" (0x0100)
"RFCOMM" (0x0003)
Channel: 2
Language Base Attr List:
code_ISO639: 0x656e
encoding: 0x6a
base_offset: 0x100
Profile Descriptor List:
"Headset" (0x1108)
Version: 0x0100
Service Name: Hands-free
Service RecHandle: 0x10002
Service Class ID List:
"Handsfree Audio Gateway" (0x111f)
"Generic Audio" (0x1203)
Protocol Descriptor List:
"L2CAP" (0x0100)
"RFCOMM" (0x0003)
Channel: 3
Language Base Attr List:
code_ISO639: 0x656e
encoding: 0x6a
base_offset: 0x100
Profile Descriptor List:
"Handsfree" (0x111e)
Version: 0x0105
Service Name: Advanced Audio
Service Provider: BlackBerry
Service RecHandle: 0x10003
Service Class ID List:
"Audio Source" (0x110a)
Protocol Descriptor List:
"L2CAP" (0x0100)
PSM: 25
"AVDTP" (0x0019)
uint16: 0x102
Profile Descriptor List:
"Advanced Audio" (0x110d)
Version: 0x0102
Service Name: AVRCP Remote Control
Service Provider: BlackBerry
Service RecHandle: 0x10004
Service Class ID List:
"AV Remote" (0x110e)
Protocol Descriptor List:
"L2CAP" (0x0100)
PSM: 23
"AVCTP" (0x0017)
uint16: 0x102
Profile Descriptor List:
"AV Remote" (0x110e)
Version: 0x0103
Service Name: AVRCP Remote Control Target
Service Provider: BlackBerry
Service RecHandle: 0x10005
Service Class ID List:
"AV Remote Target" (0x110c)
Protocol Descriptor List:
"L2CAP" (0x0100)
PSM: 23
"AVCTP" (0x0017)
uint16: 0x102
Profile Descriptor List:
"AV Remote" (0x110e)
Version: 0x0103
Service Name: SIM Access
Service RecHandle: 0x10006
Service Class ID List:
"SIM Access" (0x112d)
"Generic Telephony" (0x1204)
Protocol Descriptor List:
"L2CAP" (0x0100)
"RFCOMM" (0x0003)
Channel: 4
Profile Descriptor List:
"SIM Access" (0x112d)
Version: 0x0102
Service Name: Phonebook Access PSE
Service RecHandle: 0x10007
Service Class ID List:
"Phonebook Access - PSE" (0x112f)
Protocol Descriptor List:
"L2CAP" (0x0100)
"RFCOMM" (0x0003)
Channel: 5
"OBEX" (0x0008)
Language Base Attr List:
code_ISO639: 0x656e
encoding: 0x6a
base_offset: 0x100
Profile Descriptor List:
"Phonebook Access" (0x1130)
Version: 0x0100
#
In the example above we need to find dialup networking (you can grep it of course but the name can be a little different).
When you locate in your output this sevice (once again Dialup networking), look for channel.
In my case channel is 1.
Code:
Service Name: Dialup Networking
Service RecHandle: 0x10000
Service Class ID List:
"Dialup Networking" (0x1103)
"Generic Networking" (0x1201)
Protocol Descriptor List:
"L2CAP" (0x0100)
"RFCOMM" (0x0003)
Channel: 1
Write the channel number down.
Now you have your address and we won't need linux distro anymore (in this case )
Now run android terminal and write:
Code:
su
mount -o remount,rw -t ext4 /dev/block/mmcblk0p1 /system
This will remount system for read and write.
Now download latest package of berry from this address:
https://bitbucket.org/tcolar/berry4all/downloads
and save it unpacked to somewhere on sdcard.
These configurations file are for blackberry but with some modifications it can work for another cellphones !!!!!!!!!
We will use configuration files in the folder config.
I am from Czech republic and I use T-Mobile.
It unfortunately means that I didn't have right dial configuration file in the config folder. So I took tmobile and tmobile-bb-chat and rename it to tmobilecz and tmobilecz-chat. After that I created folder on the sdcard called chatscripts and moved tmobilecz-chat there.
File tmobilecz needs to be moved to the /etc/ppp/peers.
So here is how to do that from android terminal:
Code:
su
cp /sdcard/download/berry/config/tmobile /etc/ppp/peers/tmobilecz
mkdir /sdcard/chatscripts && cp /sdcard/download/berry/config/tmobile-bb-chat /sdcard/chatscripts/tmobilecz-chat
Here is output of my configs:
Code:
/ $ su
# cat /etc/ppp/peers/tmobilecz
# was tested as working by Me
#460800
115200
/dev/rfcomm1
## No detach = PPP dialing stays in foreground
nodetach
#noipdefault
defaultroute
#nomultilink
#ipcp-restart 7
#ipcp-accept-local
#ipcp-accept-remote
#lcp-echo-interval 0
#lcp-echo-failure 99
#nopcomp
#noaccomp
#noauth
nomagic
#noccp
#crtscts
#pap-timeout 20
#pap-restart 20
#lcp-restart 10
#novj
user "gprs"
password "gprs"
usepeerdns
#debug debug debug
# does not exist in all pppd versions (osx)
#replacedefaultroute
connect "/system/bin/chat -f /sdcard/chatscripts/tmobilecz-chat"
and chat file:
Code:
/ $ cat /sdcard/chatscripts/tmobilecz-chat
TIMEOUT 10
ABORT 'BUSY'
ABORT 'NO ANSWER'
ABORT 'ERROR'
ABORT "NO DIALTONE"
ABORT VOICE
ABORT RINGING
SAY 'Starting GPRS connect script\n'
'' 'BBT_OS'
'' 'ATZ'
OK 'AT+CGDCONT=1,"IP","internet.t-mobile.cz"'
ABORT 'NO CARRIER'
SAY 'Dialing...\n'
OK 'ATD*99#'
CONNECT
~p
/ $
Now we have configs on the place last thing is that we need initiate dun connection between android and phone.
You can imagine it like a tunnel for dialing, so it needs to be established before dialing (pppd daemon).
Now we will use our determined bluetooth address and chanel with rfcomm command.
Android terminal like SU:
Code:
su
rfcomm bind /dev/rfcomm1 f4:0b:93:08:a0:16 1
rfcomm is utility for creating connecting, bind option will create device under /dev/rfcomm1, after bind is bluetooth address and at the end is 1 this is number of channel.
THIS COMMAND NEEDS TO BE RUN AFTER EACH REBOOT when you want to dial internet from your phone.
During this commnd you can receive request for pairing, do it of course.
After this command run as root pppd daemon with your config file, in my case named tmobilecz:
Code:
su
pppd call tmobilecz
If you have nodetach option in the peers config file like me, dial process stays in the foreground. You can close it by ctrl+c or closing terminal window.
After pppd you should receive ip address by the phone and connectio to the internet!!
WOALA!
If it is not working or you want to check what is going on during dialing install application ALOGCAT from market and filter messages with pppd only.
If you have difficulties write it down and I will try to help you.
After this setup everytime when you want connect to the internet through phone you have to write this in terminal (i created script for myself but it's up to you)
EXAMPLE:
android terminal:
Code:
su
rfcomm bind /dev/rfcomm1 f4:0b:93:08:a0:16 1
pppd file /etc/ppp/peers/tmobilecz
That's all!
When I have a time I will better format and color this post.
Now I have to cut my grass in the garden sorry
placeholder for future use
deadlocked007 said:
You do know you could've just used pdanet tablet
Sent from my PG86100 using XDA
Click to expand...
Click to collapse
Code:
This software allows you to get FULL Internet on an Android tablet if you have an Android phone.
I don't have android phone so answer is no it can't be used.

[Q] i9300 USB Error on BT3900U

Hi,
Internation Pardus v15 image on rooted i9300, works very well except for this really odd USB connection error when connecting it to my Sony BT3900u car stereo, it was previously connecting without issue on the v15 Pardus build but for unknown reasons to myself now always presents an error.
Does anyone have any ideas as to what might be causing this issue? Any help would be greatly appreciated.
After getting this issue the first time, I ran through a full rebuild, wiped phone/cache/dalvick and error still persisted post rebuild.
Model:
GT-i9300
Android Version:
4.2.2
Baseband
I9300XXEMA5
Kernel version:
3.0.31-702147
Build Number:
Pardus HD Rom XV XXUDME7
Logcat:
E/MTPRx ( 8982): Read Error Came false
E/ ( 8982): read error [0] [Success]
E/MTPRx ( 8982): state from USB_STATE eventDISCONNECTED
E/MTPRx ( 8982): /data/data/com.samsung.android.MtpApplication/gadgetDisconnectAndConnect.txt: open failed: ENOENT (No such file or directory)
E/MTPRx ( 8982): stop observing and calling usbRemoved
E/MTPRx ( 8982): In usbRemoved Status bar enabled
E/MTPRx ( 8982): Sending Broadcast
E/MtpService( 8982): onDestroy.
E/MtpService( 8982): Unregister Mtp disable Receiver
E/MtpService( 8982): Receiver not registered: [email protected]
E/MtpService( 8982): unregistering mtpMediaReceiver in UnregisterAllIntent
E/MtpService( 8982): Receiver not registered: [email protected]
E/MTPJNIInterface( 8982): noti = 3
E/ ( 8982): ****** [mtp_usb_mtp_finalize] mtp_close_fd Calling
E/ ( 8982): [mtp_close_fd] fd = 50...
E/ ( 8982): [mtp_close_fd] USB endpoint [50] closed...
E/ ( 8982): ****** [mtp_usb_mtp_finalize] Updating the gInitializeFlag Flag to FALSE
E/ ( 8982): ****** [mtp_usb_mtp_finalize] Calling mtp_stop_io
E/SEC PowerHAL( 2447): sysfs_write : Error opening /sys/class/input/input1/enabled: No such file or directory
E/SEC PowerHAL( 2447): sysfs_write : Error opening /sys/class/input/input8/enabled: No such file or directory
E/videowall-TranscodeReceiver(10572): broadcastMSG : android.intent.action.ACTION_POWER_DISCONNECTED
E/MTPRx (10600): In MtpReceiverandroid.hardware.usb.action.USB_STATE
E/MTPRx (10600): check value of boot_completed is1
E/MTPRx (10600): check booting is completed_sys.boot_completed
E/MTPRx (10600): Sd-Card path/storage/extSdCard
E/MTPRx (10600): Status for mount/Unmount :mounted
E/MTPRx (10600): SDcard is available
E/MTPRx (10600): The value of first_boot is 1
E/MTPRx (10600): [ 662] The value of first_boot is 1NORMAL SEQUENCE
E/MTPRx (10600): Received USB_STATE with sdCardLaunch = 0
E/MTPRx (10600): configured is false
I'm guessing this is the correct part of the log that pretains to the MTP/USB part. If not I have attached a full log.
Try typing this in a terminal window or adb shell on your phone:
Code:
touch /data/data/com.samsung.android.MtpApplication/gadgetDisconnectAndConnect.txt
Or, make a txt file called gadgetDisconnectAndConnect and place it in /data/data/com.samsung.android.MtpApplication folder.
xpmode said:
Try typing this in a terminal window or adb shell on your phone:
Code:
touch /data/data/com.samsung.android.MtpApplication/gadgetDisconnectAndConnect.txt
Or, make a txt file called gadgetDisconnectAndConnect and place it in /data/data/com.samsung.android.MtpApplication folder.
Click to expand...
Click to collapse
Hi, thanks for the reply.
I did that as quoted, nothing seems to have changed, What should I be looking for?
Thanks!

Archos 101 g9 8gb & Huawei modem E173u-1[No driver found]

Hi, I am having issues with a Huawei modem E173u-1 on my tablet Archos 101 g9 8gb
driver not found.
Can you help me, pls?
USB_ModeSwitch log from Wed Apr 09 17:50:44 PKT 2014
Raw args from udev: 1-1/1-1:1.0
Using top device dir /sys/bus/usb/devices/1-1
----------------
USB values from sysfs:
manufacturer HUAWEI
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.14fe
! matched. Reading config data
devList 1:
config: TargetVendor set to 12d1
config: TargetProduct set to 1506
Driver module is "option", ID path is /sys/bus/usb-serial/drivers/option1
Logger is: /system/bin/log
Command to be run:
usb_modeswitch -I -W -D -s 20 -u -1 -b 1 -g 2 -v 12d1 -p 14fe -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.4 (C) Josua Dietze 2012
* Based on libusb0 (0.1.12 and above)
! PLEASE REPORT NEW CONFIGURATIONS !
DefaultVendor= 0x12d1
DefaultProduct= 0x14fe
TargetVendor= 0x12d1
TargetProduct= 0x1506
TargetClass= not set
TargetProductList=""
DetachStorageOnly=0
HuaweiMode=0
SierraMode=0
SonyMode=0
QisdaMode=0
GCTMode=0
KobilMode=0
SequansMode=0
MobileActionMode=0
CiscoMode=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/002 ...
Looking for default devices ...
bus/device number matched
searching devices, found USB ID 12d1:14fe
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 0x01 (out) and 0x81 (in)
USB description data (for identification)
-------------------------
Manufacturer: HUAWEI
Product: HUAWEI Mobile
Serial No.: not provided
-------------------------
Looking for active driver ...
OK, driver found; name unknown, limitation of libusb1
OK, driver "unkown" detached
Setting up communication with interface 0
Using endpoint 0x01 for message sending ...
Trying to send message 1 to endpoint 0x01 ...
OK, message successfully sent
Resetting response endpoint 0x81
Could not reset endpoint (probably harmless): -34
Resetting message endpoint 0x01
Could not reset endpoint (probably harmless): -6
Device is gone, skipping any further commands
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.) ...
Waiting for device file system (4 sec.) ...
Waiting for device file system (5 sec.) ...
Waiting for device file system (6 sec.) ...
Waiting for device file system (7 sec.) ...
Reading attributes ...
Mode switch has completed
Mode switching was successful, found 12d1:1506 (HUAWEI: 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 /sbin/insmod
Trying to find and install main driver module "option"
Trying to find module "option"
Loading support module /lib/modules/usb_wwan.ko
Error: insmod: cannot insert '/lib/modules/usb_wwan.ko': Invalid module format (-1): Exec
format error
Loading main driver module "option"
Error: insmod: cannot insert '/lib/modules/option.ko': Invalid module format (-1): Exec
format error
Falling back to "usbserial"
Module "usb_serial" not found, can't do more here
Driver binding seems to have failed
All done, exiting
please answer!!!
i'm solved the problem by replacing the nucleus

Categories

Resources