Interface Question - USB OTG Webcam - Android Q&A, Help & Troubleshooting

Hey guys, I am connecting my normal uvc webcam to my Galaxy s5 via USB OTG, and using the app called camerafi to display the stream.
Works great. But now I'm arresting to better understand the actual connection and how data is being transfered to the phone from the webcam.
I'm sure it's not via any network protocol, but I'm really not sure what interface connection is being used. And also how to check the connection, like using adb in some way.
Any help is super appreciated!
Travis

Related

[Q] Using SGSII As car PC

Hi Everyone!
I am currently planning on how i could use the SGS2 as a car pc.
Right now i already have a car pc running on my car with touchscreen monitor and everything.
While using vnc to connect to my cel and display it's video signal and touch controls works,it's very slow and unpractical in most cases.
I was wondering if i could find a way to connect the tv out directly to the monitor and have touchscreen through the USB host functionality (my lcd monitor has usb for touch with general drivers)
Does anybody know if this could work or not?
My idea is to get a MHL To VGA adapter (already found) which also has a usb port where i can insert the USB of the touchscreen and it should react as a usb mouse.
I'm not entirely sure if it will need drivers or not though.
Any idea? Thanks!
Nevermind.
Sent from my GT-I9100 using XDA Premium App

[Q] USB Video Capture via USB OTG

Does anyone know how I can use a standard USB video capture device (such as Hauppauge USB-Live2) on an Android device (e.g. Motorola Xoom) via the OTG connection?
Why? Reverse camera for a car, game console input etc...the uses are endless.
Do you think its something feasable or should I get a dedicated monitor for tne job?

Simultaneous Wifi and Ethernet Connection on AMLogicS802 powered device

Dear experts,
I have an issue with my Android multimedia device Orbsmart S82 which is powered by an AMLogic S802 chip. All my devices (phone, tablet, pc, NAS, orbsmart s82) are connected to the internet via Wifi.
To view HD-content on my TV, my plan was to connect my Orbsmart via ethernet cable to my NAS to receive stutter free video output. This works seamlessly. BUT: I cannot turn on Wifi and Ethernet on the Orbsmart at the same time. So each time I want to view content from my NAS, I have to go to the system settings and enable Ethernet. As Wifi gets disabled automatically by that action, I have to activate Wifi in the system settings in order to be able to view online content. But then, the ethernet interface is turned off again.
No matter what I try, only Wifi or Ethernet can be active.
Does anyone have a similar setup? What is your solution?
Thanks in advance!
In the meantime I found a possible explanation for the Orbsmart's behavior. Obviously, Android only allows one data connection at the same time per default. There seems to be a workaround if you can code. Unfortunately, I am not much of a coder...
http://stackoverflow.com/questions/18143534/android-ethernet-and-wi-fi-at-the-same-time
Any suggestions to fix this without coding are much appreciated.
I found a solution. It only works for me if I connect an Android compatible USB / Ethernet Adapter. If I configure both Wifi and Ethernet manually with different subnets, I can make both work simultaneously. I use this adapter: Assmann DN-10050-1 Digitus USB network adapter.
Cheers.

[Q] Use android device as a USB sound card or DAC/amp?

The sound card on my laptop is ageing and was not very good to begin with but the one in my phone is great. Is there a USB (not wireless) solution for my PC to detect my phone as a sound card and have the DAC in my phone process the digital audio signal and for me to listen through my phone's headphone jack?
Basically is there a solution that allows me to use my phone as an external usb headphone DAC/amp?
I've done some googling but not found any viable solution yet.
The first one I found that works is WiFiAudio, which you can get to work over USB by enabling USB Networking.
You have to run software on the PC (I tested from Windows 10). Don't know if there's Mac software but I'll be wanting it as well.
play.google.com /store/apps/details?id=com.vnd.wifi_audio
keithkimster said:
The first one I found that works is WiFiAudio, which you can get to work over USB by enabling USB Networking.
Click to expand...
Click to collapse
it's called USB Tethering in android, which is located in Portable Hotspot section.
We'd like to elaborate here a little as it took us some time to figure out how exactly to use our android as a sound card for a PC.
There's another app out there - SoundWire, which we used and known for some time, we haven't tried WiFiAudio, but found it. Think it's pretty similar.
So what those apps do is they let you connect to your android via LAN (WiFi in most cases unless u got ethernet cable in your phone) and they let you transmit sound to your phone. It's pretty simple and straightforward. The drawback is audio delay, which increases with buffer size. But good video player like MPC let's us change audio delay so we can make it play faster than video to compensate for that, takes a little time to figure out the delay tho.
SO we wanted to try it over usb cable, maybe it'd reduce/eliminate the delay heh. (it doesn't) That's how we found this post and we got kinda stumbled on "enabling USB Networking". Tried to look it up, read wiki and all. Turns out it's called USB Tethering in android, which is located in Portable Hotspot section. After enabling that - it adds a network on the PC, provided it's connected via usb cable ofc. Turned off all networking on android (WiFi, mobile) And it works. Though had to type in IP manually.
So now it can be used as a usb sound card without WiFi or anything. Still has a delay tho.
upd: Using a usb cable allows to reduce buffer size to minimum without getting any stutter leading essentially to no noticeable delay. Which is great.

SCRCPY - Connection Help.

i recently discovered scrcpy which imo is an excellent, and superior, alternative to vysor, teamviewer and the like (for my needs, i.e. simple remote control of android).
here's the thing tho, it works beautifully when i connect my pc and android directly using a usb type-c (android) to usb type-a (pc) cable, but it won't work when i connect an otg usb hub to the android and, from there, use a usb type-a cable to connect to my pc.
is this a well known limitation of otg hubs? or should this work? the usb type-a cable i'm using between the otg hub and pc is 2.0, do i need 3.0? or is there a special type-a otg cable i'm unfamiliar with?
i see that these is a way to use scrcpy via wifi using adb tcpip command, but i can't get it to work, and the github scrcpy thread doesn't seem to be very active.... perhaps there's a way to get it to work over ethernet as opposed to wifi? anyway, any help re the otg hub question would be greatly appreciated!
EDIT - problem solved: adb over ethernet instead of usb or wifi.
connected my android (galaxy view) to my network (ethernet) using the otg usb port and now, combined with the "adb over ethernet" app from the play store that i just discovered, the adb connection between my android and pc functions just as if they were connected by a usb cable, no more having to first connect the usb to get wifi to kick in, only to have to repeat this process again and again.
fwiw i finally got the samsung sidesync to work by installing the apk, which i thought would be a satisfactory alternative to scrcpy, and it was ok, but it's very intrusive on the pc side and the mirrored android display isn't that great, distorted, plus it has a chunky blue frame... but now i can use scrcpy, it's so lightweight, and the mirrored display is excellent, both snappy and scalable.
Can i use a type-c (android)to type-c (laptop) to use scrcpy
aeneas1 said:
i see that these is a way to use scrcpy via wifi using adb tcpip command
Click to expand...
Click to collapse
For others who find this in a search, you can get scrcpy to open up (and then kill the console to get it out of the way) on Android up to Android 11 using the "--tcpip=192.168.0.2:5555" option, but there's new capabilities in Android 12 now that eliminate totally the need for the initial USB connection.
In Android 12 you can also use scrcpy completely over Wi-Fi without first establishing the adb connection over USB like you need to do with Android 11.
There are new commands in the Android 12 Developer options to enable everything to be done over Wi-Fi which I've been using since May.

Categories

Resources