Galaxy S8 hardware question - Samsung Galaxy S8 Questions and Answers

Hey, I hope this is the right place to post this, if not please let me know
Usually the phone acts as a USB-Device (and thus can be charged) but in OTG mode it acts as a host and therefore will output 5v and not be charged.
Is it possible to make a solution (either programmatically or hardware-level) to make the phone be able to act as a USB-Host and also be charged during the process?
Usually devices that connect to the S8 OTG for example has a resistor with some value on the ground and ID pins of the connector and the value of the resistor indicates the type of device that connects to the phone it is also possible to externally connect the right resistor and make the phone "think" it is connected to some kind of a device that will make it perform the way I need it to? (Such as a docking station that charges the phone but also is a USB-device of the phone)
Also, assuming it's programmatically possible, is it possible with out rooting the phone?

Related

Mini USB to Serial Cable?

Hey guys!
I've searched and searched for something to allow me to transfer data via a serial cable from my phone to device.
Let me try to explain this.
HTC Wizard
Windows Mobile 6 (Explore 1.1)
I have style tap (palm os emulator)
Software for palm os for a stand alone fuel managment system (msefi.com)
So on my car, I use a serial cable to program and get realtime data.
Now I know they make bluetooth to serial adapters for around 70, but I was wondering if they make a mini usb to serial cable for the Mobile OS.
Anyone have any ideas?
Thanks
Chris
Well, you could theoretically get a USB to serial adapter that has a cable. Then cut the USB connector that goes to the PC off the cable and just splice the miniusb plug onto the end. I don't know about device support though I'm going to guess you would have to at least come up with a driver and the device might not support that type of functionality at all anyways.
Since the Wizard doesn't have a USB Host (aka USB OTG) the short answer is no. Even more importantly, the wizard won't power the serial adapter so the device is a dud to begin with.
The odds that the BT to RS232 connector method will work are far greater than the USB method.

sync and loading with USB-Carradio

Hey all,
Nowerdays there r cheap car radios with a USB-connector. So i asked myself if it would be possible to get the touch hd synchronized und loaded with only one usb-cable?
On the one hand it would get loaded by the radio and the other hand i could hear the music from the touch hd, with a direct connection.
Is that possible? If yes...with every Radio? what r the attentions i have to look for?
I assume with 'loaded' you mean 'charged'?
The car radio will have generic USB storage drivers, so HD could work as (overpriced/sized) USB memory stick. But to the radio, it would be only that, just a dumb USB memory. You can't use HTC player software.
Depending on the radio, it may have problems with long filenames, or files not in the root, or memory larger then 2Gb. And of course it may not play all MP3 sub-formats. But if the radio is recent, it probably plays most common formats and even larger USB memory.
Charging should work, but the radio may not be set up to deliver the full 500mA power so charging may be slow. Since the HTC is powered on, it may even consume more than it charges.
ye sry, i mean charge ofc
well...i wanted to use my hd for navigation and thought it would be nice to hear the files of my hd (ofc the radio needs to have mp3-support).
but the radio may not be set up to deliver the full 500mA power so charging may be slow
Click to expand...
Click to collapse
so charging is in general with 500mA? doesn't matter if connected to pc or directly at electricity? in that case i would have to look at it at the radio, maybe there r differences
usb charge if given 5volt usb is spc'd to provide max .5amps
amps are not pushed they are drawn so if you connect something
which draw .5amps it dont matter if you connect it to something
which can provide 1000amps
a device draw as much as it's resistence set it to
ohms law
amp == volt / ohm
It doesn't work that way AFAIK.
I tested it with Omnia before, with a simple FM transmitter...
I have installed a Blaupunkt headunit quite recently in my car, and I will try my Touch HD in drive mode with it when I go home from work...
I'll let you know the result...
Correct, current is drawn and if a device draws only 500mA, it does not matter how much the supply can deliver. However, if the supply can only deliver less, like 150mA, you cannot draw more from it. So it is always the minimum of supply and demand.
As to the USB-HTC:
USB can officially deliver up to 500mA, but equally officially, a device needs to first *ask* how much power it is allowed to take.
If the HTC detects a real USB data connection, it will ask the computer how much it is allowed to draw, which will never be more than 500mA, but it may even be less.
Your radio is a real USB data connection BUT as it was designed for only memory, it may not have the actual hardware to go up to 500mA. Or it may not have the communication protocol installed needed to answer a power-query. Therefore it may max out at 100mA.
If the HTC detects a 'dumb' power source (without data connection, only with power) it will draw 500mA.
If the HTC detects a 'dumb' power source with the 2th pin (pin B on the mini-USB) connected to ground, it assumes a extra powerful supply and will draw up to 2000mA.
The USB slot on my Sony car stereo will not charge the HTC Touch HD - not enough power. It will charge my old Polaris, however.
MY carradio charges the phone ...
but connecting as usb drive and charing the same time is working only some minutes beforeĀ“the phone is stopping to work..
-- reset needet.
so still charing possible if using as navigation system or music usb drive without charging.. don't know why.

Charger Recognized As USB Mass Storage

Hey guys. I seem to be having a problem with my Android HD2. It seems that the phone recognizes certain chargers as USB. The phone allows the option to enable USB Mass Storage and turns on debugging mode.
Normally, this wouldn't be a problem since the phone still charges fine, except for the fact that it limits the incoming current to 280mA. The main charger for my HD2 is a powermat which puts out 1A but when the phone is dropped onto the mat it recognizes it as USB and limits the charging current to 280mA so it charges rather slowly. All the powermat receiver door is connected by is 2 pins. The little 3 pin interface that is underneath the battery door is where it interfaces at via thw two outer pins one for + and one for -.
I thought I had seen this issue on XDA before but for the life of me I can't find the article. I thought I remembered someone saying that you had to short something with a resistor to stop the phone from thinking the charger is USB. Does anyone know of this problem?
I have the same issue and looking for any answers. Using Android 2.3.2 on HD2.
Sent from my HTC HD2 using XDA App
I've had this issue with apple chargers. I am guessing here but I think it is because the iphone chargers send some sort of authentication data to the phone as a measure against unauthorized chargers. See this link for more info
http://www.ladyada.net/make/mintyboost/icharge.html
makes total sense i have heard of that its sort of a self protection
Yes, the new batch of apple chargers have some of the USB pins connected together to indicate that the device may draw more than 400mA from the charger.
It prevents my eBook from charging completely!
The only real way to fix it would be to butcher a USB cable to only connect the 2 power lines.
there are a few threads that talk about how to make some in car chargers NOT get recognised as a car kit, and that uses the same technique mentioned above, , ,namely shorting some of the pins. I assume the same principle will work here. You just need to find out which pins it is.

Charge from USB?

This may seem like a really stupid question, but has anyone tried/succeeded in seeing if this device can charge off USB? That is really the only thing I dislike about it now that I have Dexter, I travel a lot and hauling an extra charger is just a pain.
What about charging thru the docking port if we had a usb cable to fit it?
im sure docking port would work, as it does work with folio100 as example.
but usb charge, is probably a no-go, i guess hardware needs to be redesigned to enable usb charging although kernel does allow you to enable it, but again, maybe a pin of the chip needs to attach to another location on board to enable it.
on folio100 it did not work.. and without kernel source to try changing/enabling it we dont know if it would work..
and remember the port is host/device based, so it might also be it only works when in device mode, which also means travellers would not be able to attach anything if they charge it.. so might be conflicting interests on how it should work. (if it worked)
Thanks for the reply.
I know I've seen this question asked elsewhere, but not for a while. You mentioned the docking port, have we seen ANYTHING that connects to it? even if not a full docking station, a cable to connect via USB to a computer.
Or has anyone figured out a pin map that someone could cobble together a cable

[Q] How to hack a single micro usb for charging and data transfer at same time

Hello guys, I'm trying to interface android tab with peripherals. Problem is, it is having only one micro USB port which is used for charging and otg/host, only one function is possible at a time .But I need to charge the tab and simultaneously transfer data to peripherals, say for example I need to use external mouse and charge the tab at same time.
So, is there any way to do it?
I know usb has 4 pins 5v,d+,d-,gnd. I thought to wire charging input power to tab pin 5v and gnd and pin D+,D-of tab to mouse D+, D- and giving external power supply to 5v and gnd pin of mouse.
Is this a right method? To charge and transfer the data at the same time?
Kindly help me. Suggest a better way to do it.
(mini & micro) USB connectors have 5 pins: Vbus, D-, D+, Id, Gnd.
For OTG, the Id pin is connected to Gnd.
It's like the old adage, "You can lead a horse to water, but you can't make him drink."
You can connect a peripheral to an OTG host and have it work fine.
You can then connect an external power supply across the Vbus and Gnd.
The problem is, how does your host device know that it can "drink"?
There are basically two ways.
If the host detects power on its input before it switches into OTG host mode it may continue to charge.
If the host is in OTG host mode, device-specific commands to the charging circuits may convince it to charge.
There may also be non-standard Id resistor values for signalling host & charge for some devices.
I think your mileage would vary very much depending on what devices your using. AOS was not meant to deal with people hacking on the USB port, and probably the code to implement those features depend on your HW/FW.
If its a Samsung, you can play with some resistor values like these:
http://forum.xda-developers.com/showpost.php?p=25532839&postcount=2
I think the USB "CarKit" specifications should allow you both to charge and "connect" in some way.
A more easy solution would be to use a BlueTooth mouse and keep charging as usual.

Categories

Resources