Ace 2 USB-OTG host mode - Galaxy Ace II General

I've been looking for any info about Galaxy Ace 2 USB host for some time but I've found nothing useful so I'm starting this thread with some information I found on my own:
Ace 2 has Inventra HDRC USB Controller (HDRC = Highspeed Dual Role Controller). Stock kernel have the necessary drivers included. No need for usb_storage.ko so far (checked in '.config' from kernel sources from opensource.samsung.com. Ace itself does not contain /proc/config.gz). USB_OTG cable is detected by musb driver. It can be seen from the last line of /proc/MBUS. However host mode is not activated and that can be seen in /sys/devices/platfrom/mbus*/mode, it remains b_idle and VBUS is not turned on (no voltage).
Ace 2 contains some funny IC called FSA9485 USB Port Multimedia Switch Featuring Automatic Switching and Accessory Detection. According to the datasheet it contains internal charge pumps so Ace 2 should have everything for host mode. FSA9485 driver again detects otg cable according to dmesg.
Does somebody have a clue where's the problem? Why musb won't switch itself to host mode and fsa won't provide 5V power when they both detect the cable (pin 4 shorted to pin 5 (GND)). What is the relation between musb and fsa driver?
Btw. I have compiled working fuse.ko module so if somebody get the host mode working it'll be very little step to mounting external storage.

to the usb port is not energized, because of the limitation of voltage. for the same reason it is not possible acceleration processor. I think all problem of in file power_management.bin but I don`t know exactly

what is the purpose to mounting external storage while you can use usb utlities to connect to the pc?

riyosakura said:
what is the purpose to mounting external storage while you can use usb utlities to connect to the pc?
Click to expand...
Click to collapse
ever try OTG?
many things can do with the OTG,
for some reasons you can mounting a HDD ext. or a flashdisk devices into our device and read what's inside from your phone.
else you can mounting a joystick either ps2 or ps3 (with a cable of course) into our device and playing with that. or etc.
that's mean Mobile. that's mean simple and more important is you will not carried your pc on your back.

from18to15 said:
ever try OTG?
many things can do with the OTG,
for some reasons you can mounting a HDD ext. or a flashdisk devices into our device and read what's inside from your phone.
else you can mounting a joystick either ps2 or ps3 (with a cable of course) into our device and playing with that. or etc.
that's mean Mobile. that's mean simple and more important is you will not carried your pc on your back.
Click to expand...
Click to collapse
Dont know something like that can be done by OTG..
I've USB OTG helper installed in my SGAII,after installing busybox pro..but i'm not even give a try of that..I dont have a device to connect other device to my SGAII..
Thanks for the information..
Sent from my GT-I8160 using xda app-developers app

Anybody know something about ours phone, otg is supported or will be?
Sent from my GT-I8160 using xda app-developers app

lewsa17 said:
Anybody know something about ours phone, otg is supported or will be?
Sent from my GT-I8160 using xda app-developers app
Click to expand...
Click to collapse
As far as i know, our kernel doesn't seem to support it(read somewhere in forums)
Sent from my GT-I8160 using xda app-developers app

Can we use features from xperias kernel?
Sent from my GT-I8160 using xda app-developers app

Read the thread about oc by @ccnky
Sent from my GT-I8160 using xda app-developers app

Related

usb mode

usb mode keeps starting and shutting off very rapidly. i cant transfer files. what could cause this. and its a brand new phone by the way
roughneckboren said:
usb mode keeps starting and shutting off very rapidly. i cant transfer files. what could cause this. and its a brand new phone by the way
Click to expand...
Click to collapse
Are you talking about trying to transfer files to/from a USB flash drive? If so, I've encountered the same. I spoke to Samsung tech support and they confirmed that the I727 Skyrocket is not OTG USB Host Enabled... while the GS2 I777 stock kernel is Host enabled. That said, there was one member on this forum who states their stock Skyrocket is OTG USB Host enabled (allowing him to transfer files to/from a USB flash drive). We need a developer to advise if/when a kernel (preferable stock + otg USB host enabled) can be developed for our i727 Skyrocket.
If you talking about transferring files to a computer, you should have that capability. Make sure USB Debugging is checked on phone and you have the correct drivers installed on your PC.
I'm talking about transferring files(pictures,movies,etc..) I have USB debugging enabled and I downloaded the drivers presented on the forums here. It just connects then disconnects repeatedly. I'm pretty sure its a driver issue but I'm using the ones from xda. I'm not sure where to go from here. Any help would be appreciated
Sent from my Xoom using xda premium
roughneckboren said:
I'm talking about transferring files(pictures,movies,etc..) I have USB debugging enabled and I downloaded the drivers presented on the forums here. It just connects then disconnects repeatedly. I'm pretty sure its a driver issue but I'm using the ones from xda. I'm not sure where to go from here. Any help would be appreciated
Sent from my Xoom using xda premium
Click to expand...
Click to collapse
You're not supposed to use USB Debugging for transferring files like that.
Just turn off debugging.
Then when you plug in the USB cable, the notifications bar should let you know it's connected. So click on that notification about the USB, then click the option to "connect".
It's kind of redundant if you ask me, but it's how it works.
I know it don't have to be ticked to transfer files. It does it whether its on or off. I'm just trying to get it to stay locked in so my computer recognizes it
Sent from my Xoom using xda premium
And it also makes it quite frustrating to flash or anything via computer
Sent from my Xoom using xda premium
Well I'm not sure then. Here's a few things to try:
1) Different USB port on your computer. If you're using a rear port, then try a front port. Sometimes they use different chipsets.
2) Different USB cable. They can get flakey sometimes.
3) Go into 3E Recovery and clear cache. Could be a setting that got whacked out.
---------- Post added at 04:06 AM ---------- Previous post was at 04:06 AM ----------
roughneckboren said:
I know it doesn't have to be ticked to transfer files.
Click to expand...
Click to collapse
Sorry, pet peeve of mine.
Do you mean davlik cache?
Sent from my Xoom using xda premium

[Q] MTP mounting under Linux

I had ICS on a different tablet and had no trouble using mtp with Linux either through the device mounter (KDE/Plasma) or just using mtpfs. With the Samsung 5113 though I "see" the MTP device but it times out. Here's an mtp-detect log:
Code:
Device 0 (VID=04e8 and PID=6860) is a Samsung GT-P7310/P7510/N7000/I9100/Galaxy Tab 7.7/10.1/S2/Nexus/Note.
Found 1 device(s):
Samsung: GT-P7310/P7510/N7000/I9100/Galaxy Tab 7.7/10.1/S2/Nexus/Note (04e8:6860) @ bus 2, dev 26
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.
Any ideas? Yeah, I know I can use sshfs and a variety of other ways to get to the device. Just wondering why MTP seems broken.
Bumping this thread ...
I recently upgraded to Fedora 17 and found that libmtp has a known defect that prevents the tablet from connecting. Perhaps you've got the same issue on your nonfunctioning system.
Did you ever find a solution? I now copy files to/from my tablet using scp.
Sent from my GT-P3113 using xda app-developers app
jeffm5150 said:
Bumping this thread ...
I recently upgraded to Fedora 17 and found that libmtp has a known defect that prevents the tablet from connecting. Perhaps you've got the same issue on your nonfunctioning system.
Did you ever find a solution? I now copy files to/from my tablet using scp.
Sent from my GT-P3113 using xda app-developers app
Click to expand...
Click to collapse
No real solution. Like you, I use scp or ES Explorer or adb or some other mechanism.
I did a little more research this morning and got mtp to work between Fedora 17 and my 3113 tablet.
I did a couple things in total, although I'm thinking the 2nd one was the solution:
1) add vid/pid pair to my 51-android.rules file with 0755 permissions
2) disabled "USB debugging" under development settings. Apparently with that enabled, you can only move files with adb [push | pull].
Now I can connect my tablet to my Linux machine with a USB cable and create files/folders with the Linux file manager.
Hope it works for you as well. Copying with scp over wireless is pretty painful.
Sent from my GT-P3113 using xda app-developers app
jeffm5150 said:
I did a little more research this morning and got mtp to work between Fedora 17 and my 3113 tablet.
I did a couple things in total, although I'm thinking the 2nd one was the solution:
1) add vid/pid pair to my 51-android.rules file with 0755 permissions
2) disabled "USB debugging" under development settings. Apparently with that enabled, you can only move files with adb [push | pull].
Now I can connect my tablet to my Linux machine with a USB cable and create files/folders with the Linux file manager.
Hope it works for you as well. Copying with scp over wireless is pretty painful.
Sent from my GT-P3113 using xda app-developers app
Click to expand...
Click to collapse
Ah. I do development so never thought to try that. I already have the machine in my udev files. Turning off USB debug did not seem to work. I went back and killed my adb-server (which I confess was running) and that still didn't work. May try everything again after a clean boot. But the symptoms were the same.
Still, might be something to it.
The MTP mounted device now seems to work but it doesn't really seem to be stable or fast. I can copy small files easily but large files really don't seem to copy any quicker than scp. I did successfully copy a 1.7GB mp4 movie without any problems but it took almost 20 minutes with mtp/USB connection.
Sent from my GT-P3113 using xda app-developers app
jeffm5150 said:
The MTP mounted device now seems to work but it doesn't really seem to be stable or fast. I can copy small files easily but large files really don't seem to copy any quicker than scp. I did successfully copy a 1.7GB mp4 movie without any problems but it took almost 20 minutes with mtp/USB connection.
Sent from my GT-P3113 using xda app-developers app
Click to expand...
Click to collapse
Still can't get it to work. I already had the udev rules and turning off USB debug didn't help. We aren't the only ones with issues. Lots more detail here: http://forum.xda-developers.com/showthread.php?t=1077377
Also gphoto2 has some success in reading info from the "camera" (for example, battery level) but I still can't get it to see any files.
Are you running a stock kernel? I'm running the kernel that comes with CM9. I wonder if that has anything to do with it. Thx for the thread URL. I would like to get a reliable wired transfer solution.
Sent from my GT-P3113 using xda app-developers app
jeffm5150 said:
Are you running a stock kernel? I'm running the kernel that comes with CM9. I wonder if that has anything to do with it. Thx for the thread URL. I would like to get a reliable wired transfer solution.
Sent from my GT-P3113 using xda app-developers app
Click to expand...
Click to collapse
Well, I am semi-stock. It is the 4.0.4 stock with my own init.d add on and rooted. But yes, it is the stock kernel. I keep thinking of switching to CM9 but suspect it will cost me my IR blaster. I don't use it very often but I always think I will But I know it is just a matter of time before I switch.
Even stranger. If you click on the USB options and pick PTP mode, your root directory of internal and external show up and gphoto2 sees it all. But all the subdirectories are empty! So close, but no cigar. gphotofs, as you would expect, sees the same thing.
Update: ok so here's an answer for ADB: https://github.com/isieo/adbfs
Doesn't handle symlinks but on the other hand you can get to the whole file system.
One thing though, adb MUST be on your path for this to work. The adbfs file can be anywhere and it doesn't matter if it is with the adb executable or not.

[Q]How to Enable USB Host in CM10

I flashed CM10 stable, and installed USB Host Controller. It showed Found S3C USB Driver. But I plug my usb disk with Y cable, it can not be found! Could anybody get help?
Sent from my Nexus S using xda app-developers app
fox0001 said:
I flashed CM10 stable, and installed USB Host Controller. It showed Found S3C USB Driver. But I plug my usb disk with Y cable, it can not be found! Could anybody get help?
Sent from my Nexus S using xda app-developers app
Click to expand...
Click to collapse
You already use external power to power up your USB disk? Last time very few kernal support USB Host but can't remember default CM kernal support it. Maybe because I never try it.
deani77 said:
You already use external power to power up your USB disk? Last time very few kernal support USB Host but can't remember default CM kernal support it. Maybe because I never try it.
Click to expand...
Click to collapse
Yes, I use the external power. The app named USB Host Controller shows S3C USB Host Driver found. And I also found the driver in the source code of CM 10. https://github.com/CyanogenMod/android_kernel_samsung_crespo/tree/ics/drivers/usb
https://www.youtube.com/watch?v=1R16kf4WYtc&feature=youtube_gdata_player
Sent from my Full Android on Crespo
deani77 said:
https://www.youtube.com/watch?v=1R16kf4WYtc&feature=youtube_gdata_player
Sent from my Full Android on Crespo
Click to expand...
Click to collapse
Thank you! But I can't any help… T_T

My First Android App

I am working on building my first Android app, this app will allow me to use my phone with a USB device that will let my phone work as a remote for my TV.
I have already build my GUI layout and database, and they seem to be running good on my Note 2.
I am now stuck on trying to figure out how to connect this device to my phone.
The device I have is the USB IR Toy 2, here is the link
dangerousprototypes.com/docs/USB_Infrared_Toy
Any help is welcome, I am using the Android SDK to build this app.
Once I am done I will post my code here for you all to use as you wish.
no responses?
Is this not possible?
ZIGMA51 said:
I am working on building my first Android app, this app will allow me to use my phone with a USB device that will let my phone work as a remote for my TV.
I have already build my GUI layout and database, and they seem to be running good on my Note 2.
I am now stuck on trying to figure out how to connect this device to my phone.
The device I have is the USB IR Toy 2, here is the link
dangerousprototypes.com/docs/USB_Infrared_Toy
Any help is welcome, I am using the Android SDK to build this app.
Once I am done I will post my code here for you all to use as you wish.
Click to expand...
Click to collapse
Usb otg I assume to be to the solution.
Sent from my LG-LS970
desert54 said:
Usb otg I assume to be to the solution.
Sent from my LG-LS970
Click to expand...
Click to collapse
Usb otg?
ZIGMA51 said:
Usb otg?
Click to expand...
Click to collapse
Its a function that allows you to connect a usb device to a phone.
Sent from my LG-LS970
ok, I will need to look in to USB on the go more.
Is there any example code I can review, that might help?
ZIGMA51 said:
ok, I will need to look in to USB on the go more.
Is there any example code I can review, that might help?
Click to expand...
Click to collapse
What I know is that usb otg can only be done on certain chipsets, as for code source, I have no idea.
Sent from my LG-LS970
---------- Post added at 08:09 AM ---------- Previous post was at 07:59 AM ----------
Assuming that the note 2 supports USB Otg stock, You could just simply purchase a usb otg cable for it and work from there.
OK I got my device to connect to my phone, I even made it where when I connect my device it launches my app, but I am having issues with getting my phone to talk to my serial USB device.
Anyone have a idea how to do this?

[REQ] USB ext WIFI Dongles driver modules into 4.3/4.4 kernel

Hi! I was wondering if it was possible (it probably is) to merge ralink drivers into some i9300 kernel to make an eventual USB external Wifi adapter. More in detail, the modules i think would be mostly useful are the RT2080 ones, even i need specifically the rt3070 one. I saw that this was already done on Nexus7 devices, and wanted to ask if some dev could do this or some tips on how to do it by myself. Thank you
Sent from my GT-I9300 using xda app-developers app
nebular said:
Hi! I was wondering if it was possible (it probably is) to merge ralink drivers into some i9300 kernel to make an eventual USB external Wifi adapter. More in detail, the modules i think would be mostly useful are the RT2080 ones, even i need specifically the rt3070 one. I saw that this was already done on Nexus7 devices, and wanted to ask if some dev could do this or some tips on how to do it by myself. Thank you
EDIT 22/03
So i found out the xda-dev app Module Loader. Injected rt3070sta.ko module and successfully mounted my Zyxel NWD2105 Wifi dongle. But it seems phone doesnt care. I m on Slimkat 4.4 v3.8 on i9300. The question is: how do i now become able to use the dongle?
Click to expand...
Click to collapse
nebular said:
nebular said:
Hi! I was wondering if it was possible (it probably is) to merge ralink drivers into some i9300 kernel to make an eventual USB external Wifi adapter. More in detail, the modules i think would be mostly useful are the RT2080 ones, even i need specifically the rt3070 one. I saw that this was already done on Nexus7 devices, and wanted to ask if some dev could do this or some tips on how to do it by myself. Thank you
EDIT 22/03
So i found out the xda-dev app Module Loader. Injected rt3070sta.ko module and successfully mounted my Zyxel NWD2105 Wifi dongle. But it seems phone doesnt care. I m on Slimkat 4.4 v3.8 on i9300. The question is: how do i now become able to use the dongle?
Click to expand...
Click to collapse
You must boot from a linux distrubiton such as backtrack. But there is no native way that i know for doing that. Although there is one solution that you run linux background and connect to it by vnc viewer. Take a look at this
Click to expand...
Click to collapse
I built a few kernels for 4.3 and 4.4 with these modules, but the problem is once I built the kernel I lost the ability to mount the ext4 SD to be available within android. Only adb can see it.
What do you see in lsusb, or dmesg when you plug it in?
simply nothing. my rt3070 device is not even recognized by phone (i9300 with 4.4.4 Slimkat) after inserting specific .ko modules

Categories

Resources