USB Sniffer - Verizon Galaxy S 5 Q&A, Help & Troubleshooting

Does anyone know a software that you can use to capture the commands comming throught the usb? seems like a good way to be able to catch some of the specific commands sent to usb. Kinda looking for a different project but i think it would be very useful for any project.

Related

USB data input use on a non USB Host smartphone

Hy everyone,
First of all, thanks for this great forum which never fails to impress me.
I have a question which some of you might help answering: I'm wondering if it's possible to use the mini-usb port of my smartphone to get some data input.
Let me explain myself a bit more: I know that smartphones (HTC Touch for me) aren't USB hosts. However, the data connexions are still present.
Here's what I'd like to do: even though the smartphone can't control another peripheral, I'd like that external peripheral to send data to the smartphone, and the smartphone to use that data to control the screen. That would give an alternative way of controlling the screen.
The input would come from another touch surface, so my guess is that using the data to control the screen shouldn't be much of a problem.
So? Any idea if it's possible? What kind of platform/language would be nice to do that? C#?
(I have JAVA development experience, but I'm quite a newbie as far as Win Mobile devs are concerned. I'm willing to learn though
I think I searched this forum (and others) quite extensively before posting. If by any chance I missed a related post, I'd be glad to know about it
No ideas? Anyone?
Last up before I stop...
prob. not
i dont think that is technically possible. i think one has to be the host, and that host provides power. so to power the input device(im thinking keyboard) it would need the smartphone/ppc to be a host....
but i have no clue in this area...maybe someone could prove me wrong?
Hey, thanks for your answer.
The powering issues could be overcomed by cutting the cables and giving power from an external power source (I think several people have tried doing it, I need to find the links again). By the way, the peripheral itself is plugged on 110V, so there's plenty of available power
I'm not seeking here to "control" the device, just to aquire the signal it's sending... Does that seem feasible, or does the peripheral need to be somehow "activated" by a Host before sending anything?
Well, in order to get data, the host must ask the slave each time it needs some. Other things must be done by the host, like usb enumeration. That means there has to be a host or it won't work, unless you use usb on-the-go, but I do not know many devices that support it.
according to the qualcomm website, the msm chipsets support otg

USB host

I've been searching but I haven't been able to find an answer...does the hd2 support USB host while running android? I'd like to b able to connect a web cam to it...I've have also found Bluetooth webcams, also wondering if using one of those with the hd2 would b possible....I'd just like to b able to video chat with the hd2 and I wouldn't mind carrying an attachment....
Sent from my Nexus One using XDA App
Hello,
Is there a chance to have USB host on HD2 under android builds ?
If not can we know what is the main problem ?
Android is based on a linux kernel isn't it ?
So, if USB host is supported under linux builds, why is it impossible on android ?
Thanks to teatch me !
I don't think android in general allows USB host on any device... that's the problem. The linux kernel supports it, but android doesn't. If you use ubuntu you can have usb host on the HD2.
Actually, the Notion Ink Adam runs Android and has USB host mode. With a bit of kernel hackery, this could well be possible on the HD2.
Using a USB Y-cable and providing external power, it should be possible to connect all sorts of things. I'm patiently waiting for this capability as I have a USB SSD HDD that I connect to my car's head unit that I'd like to connect to my phone when I'm at work
Major_Sarcasm said:
Actually, the Notion Ink Adam runs Android and has USB host mode. With a bit of kernel hackery, this could well be possible on the HD2.
Using a USB Y-cable and providing external power, it should be possible to connect all sorts of things. I'm patiently waiting for this capability as I have a USB SSD HDD that I connect to my car's head unit that I'd like to connect to my phone when I'm at work
Click to expand...
Click to collapse
You're right, I have seen other android tablets with usb host, too. I remember seeing the devs explain somewhere why android on the hd2 doesn't have usb host... I thought I remember it sounding like it wouldn't be able to happen until a later version of android... but I could be wrong or misunderstood. I'll try to find where I read this.
Sent from my HTC bravo using XDA App
Hi.
http://forum.xda-developers.com/showthread.php?p=10797562
It's an easy way to use the USB connector in host mode, works under ubuntu.
with some adaptors you can build it also by using an y- cable.
But I think android for HD2 doesn't support anny usb features until now, perhaps someone will activate it in the kernel.
regards
mf_1
Yes, most of us are aware that host mode is usable whilst running Ubuntu. The problem is that Ubuntu is not really convenient as a main phone OS; Android is and some devices seem to have host mode while running Android.
Hopefully one of the devs will see this thread and give some insight.

Have you ever had this requested?

I want to be able to plug a standard usb webcam "type" device into my A500.
I bought off a usb microscope off Ebay. It is recognized under windows xp - 7 as a usb hid device. It did not even come with a driver disk, since everything recognized it automagically. I tried it last night under 3 different linux distro's and they detected it with no issue.
Does anyone know of a way? It would be so much easier to carry the tablet with me, vs a laptop, not to mention much better battery life so I can be in the field longer without a recharge.
I think the A500 needs root for it to go into host mode. Do you have it rooted? I don't think I have heard of any webcam device working on Android with a simple plug and play, but who knows.
[email protected] said:
I think the A500 needs root for it to go into host mode. Do you have it rooted? I don't think I have heard of any webcam device working on Android with a simple plug and play, but who knows.
Click to expand...
Click to collapse
Oh yeah I'm rooted, running a custom rom. I'm not scared to get my hands dirty either if someone knows of a solution
Hello, I'm looking also to find a solution for a webcam. But no lock so far.
Once I tried one on a older tablet running 1.6 and it worked but as it had the drivers build in loaded but I had to use a special camera apk.
So I think we need to have two things (maybe this is obvious for you)
1) the correct drivers loaded (we need to find them)
2) The correct app that let us choose the usb camera as I think they enumerate starting as 0... Or can create one
But to me the hardest part is finding the correct drivers.
Could you share the a link to that ebay microscope ? I might get one of the same so we can play with the same thing.
Thx

USB Detect - Very Confused

Hi, I've been reading, re-reading and reading the Android SDK docs about USB connection.
I have developed and application which is quite useful however, after many days and hours of research I cannot for the life of me figure out how to detect:
When my handheld device is attached to any device (macbook, PC, laptop)
Communicate between connected device and handheld using USB
Detect keystrokes on connected device - when I type on the, for example, laptop which my handheld is connected to using USB I'd like to detect when I type on my laptop
Detect any other events such as opening of a browser, application or whatever on connected device using USB
I don't know the vendor information of device what the handheld will be connected to using a USB cable.
Can anyone point me in the right direction, I'm not asking for a solution more a tips, hints and maybe someone knows a library which already handles what I need to solve?
Many thanks in advance.
Detect Connected Laptop/Desktop Events USB
*edit* What I need is a way to find detect keyboard strokes from the device connected to my Android smartphone.
Is it possible to detect whether the handheld is connected to a desktop/laptop and using USB detect the events on the laptop/desktop?
It's looking impossible at the moment. I have spent quite a few days just figuring it out and have got no where.
Thanks in advance.
chronograff said:
Hi, I've been reading, re-reading and reading the Android SDK docs about USB connection.
I have developed and application which is quite useful however, after many days and hours of research I cannot for the life of me figure out how to detect:
When my handheld device is attached to any device (macbook, PC, laptop)
Communicate between connected device and handheld using USB
Detect keystrokes on connected device - when I type on the, for example, laptop which my handheld is connected to using USB I'd like to detect when I type on my laptop
Detect any other events such as opening of a browser, application or whatever on connected device using USB
I don't know the vendor information of device what the handheld will be connected to using a USB cable.
Can anyone point me in the right direction, I'm not asking for a solution more a tips, hints and maybe someone knows a library which already handles what I need to solve?
Many thanks in advance.
Click to expand...
Click to collapse

[Q] Can SGS5 be used as ANT+ USB stick?

I was wondering if the SGS5 can be connected to a windows computer in such a way that it acts as an ANT+ USB stick?
I have a windows app that I need ANT+ for but don't have a stick - figured I'd see if my phone could do it before I bought one.
..
fffft said:
The S5 is capable of this. Whether anyone has written a script or app to do yet, I don't know. You would have to do a search to discern that.
If you need MSC /UMS (mass storage mode), I believe you will need a custom kernel with MSC support as MSC is an older protocol depreciated if favour of the better designed MTP in Android.
.
Click to expand...
Click to collapse
Thanks, that's good to know it's at least possible. I don't think I'll need mass storage mode, just the ability to send / receive commands via ANT from the computer. I have the interface app, just not whatever it would take to make the computer recognize the phone as an ANT USB stick.
I searched XDA and Google, haven't found anything thus far and I lack the ability to do this myself :/
..
fffft said:
Unless your comment about finding nothing in a search was wry wit or hyperbole.. you might want to try sharpening your search skills.
A cursory Google search appears to find a lot of ant+ posts and apps in the Play store too.
.
Click to expand...
Click to collapse
I found lots of ANT+ apps to use the SGS 5 to connect to ANT+ devices and connect TO USB sticks but not to use it AS one - so that my computer sees the phone as an ANT+ USB stick.
Perhaps I'm missing it though, would you mind posting one of the links if you've found one?
..
fffft said:
It's not at all clear to me what you are doing with ant+ so I didn't try sorting through the search results.
Just pointed out that there were quite a few to look at because your previous post about searching was ambiguous. Taken literally, you said that you didn't have any search hits at all. But your last post implies that you actually meant relevant hits.
.
.
Click to expand...
Click to collapse
Sorry about that. Yea, I did find lots of posts about ANT+ and I've installed a lot of apps both on my PC and phone to see if I could figure something out but thus far it's been a no-go on my computer seeing it as an ANT+ USB.
To be more specific, if anyone cares, I have a Falco e-assist hub on my bike and the config of the hub is corrupt. I have a program that can reset / configure the hub but it requires my PC have an ANT+ USB stick to connect to it.

Categories

Resources