SCRCPY - Connection Help. - Android Q&A, Help & Troubleshooting

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.

Related

Micro usb audio connector

Is it possible to use the micro USB audio connector for audio? After rooting, the audio application of the android does not recognize the mp3 files to play. Why not let it do so?
I think that would require USB host mode like on the Samsung galaxy. I think that means needing extra hardware doesn't it? -otherwise I would expect every phone to be capable of it
edit: It is possible but you can fry stuff. Info on NookColor forum
USB host = great possible enhancement?
I wanted to post to proper thread, however I am new here I was not allowed to post on developers forum. So I hope that this post will still somehow find its way there. It also includes your original question.
Since some USB features are now claimed to be working, I wanted to ask directly poping out questions:
http://forum.xda-developers.com/showthread.php?p=21669750
Is it possible to...
1.) disable on-screen keyboard while using USB one?
2.) connect USB soundcard like: http://www.usbgear.com/computer_cable_details.cfm?sku=USBG-X2X&cats=121&catid=121%2C136%2C134
To allow listening mp3, Skype calls.... ?
3.) connect USB Ethernet card like: http://www.usbgear.com/205528.html
4.) to connect other cool usb stuff like: GSM, printers ... whatever
thanks you developer guys, I hope I'll once manage some time to learn more about the system and developement so that I could contribute too !
thanks to androind and nook simple touch creators!
mrWax said:
Is it possible to...
1.) disable on-screen keyboard while using USB one?
2.) connect USB soundcard like: http://www.usbgear.com/computer_cable_details.cfm?sku=USBG-X2X&cats=121&catid=121%2C136%2C134
To allow listening mp3, Skype calls.... ?
3.) connect USB Ethernet card like: http://www.usbgear.com/205528.html
4.) to connect other cool usb stuff like: GSM, printers ... whatever
thanks you developer guys, I hope I'll once manage some time to learn more about the system and developement so that I could contribute too !
thanks to androind and nook simple touch creators!
Click to expand...
Click to collapse
Currently the answer to all of the above is no
The USB host mode patch was done for a specific project (USB keyboard support) and while I have been spending some time playing around with Bluetooth I'm not aware of any other dev(s) working on expanding this atm.
Stuff like audio, networking and Bluetooth requires _a_lot_ more than just the kernel accepting to communicate with the device.
thats shame. allowed skype calls would be great
Skype calls are working on my nook with OTG + USB audio card on usb host mode. But it is a bit difficult ))).
To update these older posts:
Yes, it is possible to disable the soft keyboard when using a USB keyboard.
See NullKbd in the signature.
Yes, Skype works fine.
litvinov said:
But it is a bit difficult ))).
Click to expand...
Click to collapse
Where is the difficulty?
Do a logcat and look for overruns and errors.
There were a few mods done to make Skype work.
so an external usb sound card is working?
Yes, an external USB audio adapter can work.
As a portable solution it's a bit cumbersome.
I don't know what current they usually draw, but my cheapy one draws 75 mA.
A desktop solution with powered hub (charging the Nook), a USB adapter and speakers works fine.
Would USB headphones work directly on that port? I have USB OTG cable and some USB sound card somewhere so I can check with regular 3.5mm jack headphones without trouble when I find some time to do it but I just wonder if anyone tried USB headphones on it and what they think of it. Is it worth of a hassle to buy one for NST?
Some USB devices use a multiplexor on the USB micro connector and can send actual analog audio down the connector.
Many Androids support USB host mode and can support an audio USB adapter, including the ones that go for < $10.
The NST (earlier Nooks with OMAP processors) don't have complete software support for USB host mode but can be coerced into working.
The Glows (later Nooks with IMX processor) don't have complete software or hardware support for USB host mode but can be coerced into working.
The Glow4 (7.8") has audio.

Port replicator

Has anyone tried or know if i can connect usb port replicator to an android phone with OTG cable.
The idea s can i essentially connect 2 monitors to an android device and then use them with VNC to connect to actual computers therefore being able to use the tablet/phone as a very portable computer.
Regards
just tried it with an otg adapter on my note 3 and a lenovo port replicator.
usb ports work fine (keyboard, mouse etc) but I cannot get the monitor to light up...

[Q] MK809III TV Stick and usb hub

Hi all, I have a MK809III tv stick with Android 4.4.2 running. I use it as a mini PC with a LCD screen. I have attached to its USB OTG ports a quadrate 2.0 4 ports USB HUB (google for this and you can see it) , and connected to it, a PS/2 keyboard (using an usbtoPs2 adapter), an usb mouse, a usb ethernet dongle, and a usb sound card dongle. When I use this combo, all works fine, the mouse can drag and select, also wheel works, the keyboard works fine, the ethernet run smooth, and the sound works as player and mic recorder, the only thing not works is to reboot the tv stick, and launch android again (with other MK89III tv stick this also works flawlessly), to get this, I must to unplug RJ45 or usb ethernet. But this last question is not my main problem. The main problem is that I can not make the combo work anyway if I change usb hub model, If I use a 2.0 usb square hub (no name brand) with a little blue led installed, all works fine, but using other hub (I have tested two others), thare is no way to work. The main situation is that the hub stops work, and all item connected not works at all. But commonly, mouse works with a bad behaviour in button response, usb sound disconnects suddenly, or usb ethernet lagg or not works at all. My question is about this behaviour with usb hubs, if there is a special requirements in hardware to match an usb hub with this kind of android devices, or if thare are some drivers that can solve this.
Thank in advance.
Solved
I have solved the two main problems in order to use my MK809III RK3188 as a mini pc with usb hub and rj45 ethernet. The hub must to be a chip on board one, no an all-in-one glued ultra-cheap type, this is a mark of better quality and response, then you can conect keyboard/mouse, usb or ps2 with usb converters, usb sound, and usb pendrives. The ethernet must be an ASIX AX88772C, this a true usb ethernet 100mbps (7MB/s real) device, since I use it there is no lag, no boot errors, no delays or shorts in Tx/Rx. That´s all.

Interface Question - USB OTG Webcam

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

Portable BT Keyboard does not work if connected by USB

I bought a Rapoo e6500 portable bluetooth keyboard
https://www.youtube.com/watch?v=mvim6Gh4hR0
It works perfectly in wireless with either my Android tablet or with my desktop computer
However, it also has a mini USB port (for recharging)
But if I switch BT off and connect it via USB it does not get recognized at all
How come?
Could it be that the USB connection carries only charge and no data?
If I connect it to a linux running computer and give the command lsusb the keyboard does not show up....
Android doesn't work like that. Only charging and mtp protocols are the only ones.

Categories

Resources