Hello,
I'm searching for a small tool (just an exe), to switch the blueetooth via command line for exemple (Bluetooth.exe /on and Bluetooth.exe /off)
Any ideas ?
Related
I want to connect to my office LAN with a Spectec WiFi card. To do that I have to enter a 63 character WPA Key, maybe it's my great wisdom (sorry age) but try as I may I cannot enter that code accurately.
Has anybody any ideas how to put it in? Even disabling the *s would help then I could see errors and correct them or perhaps a proper keyboard.
My idea:
you can install MyMobiler on your pc (if you're using windows), connect Treo via cable or bluetooth. MyMobiler will give you control of your Treo from pc (must be AS connected). Then you can go to wifi settings and enter wpa key with pc keyboard or write in in notepad (or any text editor - then you'll have clear - not masked - text), copy and paste into Treo's settings (copy-paste from pc to Treo works nice).
how to solve error "WSARecv and WSARecvFrom to indicate that the remote party has in"
Hi,
Iam Developing an application in which i have windows mobile connected to one pc.
We are having 2 PCs and 1 handset(Windows Mobile).
Handset is connected to PC-1 via USB .
Both PC-1 and PC2 are in the network.
In our Project we are invoking mobile by using PC.
we are using CeCreateProcess() function (RAPI API) for invoking mobile Application.
I deployed mobile agent exe in mobile.
Scenario-1: Open a command prompt in PC-1 Execute PCAgent_CLI.exe in command prompt Result :code works fine.
Scenario-2: In PC-2, open a command prompt From PC-2, telnet to PC-1 Execute PCAgent_CLI.exe here we are getting error. Actually we are getting error in CeCreateProcess() function.
Error is returned by WSARecv and WSARecvFrom to indicate that the remote party has initiated a graceful shutdown sequence.
How can I solve this issue??
Rekha.
Application allows you quickly enable debug via WiFi. You don't need run any commands on your PC after, just install our program on your computer.
Root needed. Widget available.
Program for PC you can download here: http://bartwell.ru/soft/android/easyremoteadb/EasyRemoteADB.exe
Usage:
1. Connect your PC and smartphone to WiFi.
2. Run Easy Remote ADB on your PC. If you run it first time, right click tray icon, choose "Set ADB path" and set path to ADB (as usually it C:\Program Files\Android\android-sdk\platform-tools\adb.exe).
3. Run Easy Remote ADB on your smartphone and press "Turn on" button.
If it doesn't work you can see log on PC: right click tray icon and choose "View log". If your PC doesn't receive commands from smartphone check your network configuration and firewall.
Home page: http://bartwell.ru/soft/android/easyremoteadb/
Android Market: market://search?q=pname:ru.bartwell.easyremoteadb
Android Market Web: https://market.android.com/details?id=ru.bartwell.easyremoteadb
This script is for non rooted phones, as on rooted ones TCP listening for adb can be configured on the device and it doesn't need to be plugged to the USB beforehand, meanwhile on un-rooted ones it should be apparently done after every phone reset. I've made this script so I don't have to manually enter commands every time eye wish to start scrcpy after a phone reset. The script also minimizes which also hides the scrcpy command line afterwards, but can also be hidden.
What it does:
- Minimizes the window
- Issues "ifconfig" to the device to get its IP.
- Enables port listening and connects to the device over WiFi
- Waits a bit
- Starts scrcpy.
Usage:
- Connect the phone
- Allow the dialog on the phone //if asked
- Open the script
- Allow the dialog on the phone //if asked
- You can disconnect the device
- Should be all.
The script has to be placed in the scrcpy's directory to work, and should only work correctly with one device connected.
To hide the window you can change the following line:
Code:
ctypes.WinDLL('user32').ShowWindow(ctypes.WinDLL('kernel32').GetConsoleWindow(),6)
to :
ctypes.WinDLL('user32').ShowWindow(ctypes.WinDLL('kernel32').GetConsoleWindow(),0)
and if you wish to run scrpy with some arguments you can do so by editing the following line:
Code:
os.system("scrcpy -s "+AyyyP+":4774")
where you can either add other arguments befor the "-s" part or after the ":4774" like so:
os.system("scrcpy -m 720 -s "+AyyyP+":4774")
or so:
os.system("scrcpy -s "+AyyyP+":4774 -m 720")
the changes should be doable in almost any text editor. Scrcpy attributes can be currently found here.
Also python 3.x has to be installed on the PC which should be obtainable here.
Sidenote: File is located in a .zip so I was able to upload it, just extract it beforehand.
If you have any questions feel free to ask .
Reserved.
Thank you for this python scrcpy script on behalf of everyone who loves scrcpy/sndcpy mirroring onto the PC as I do, where I'd like to take the developer up on his offer of:
If you have any questions feel free to ask
Click to expand...
Click to collapse
As most people know, Android 10 and below allowed wireless adb connections AFTER a USB connection was first established (adb tcpip 5555 && adb connect [IP]:5555), but that changed (for the better) in Android 11 and above with the new new Developer options Wireless debugging random port assignments (adb connect [IP]:[PORT] or adb pair [IP]:[PORT] [PIN]) such that the adb wireless connection never needs USB cable ever again.
Given Android 11 allows Developer options Wireless debugging via a random port, and Android 12 new Developer options Wireless debugging allows that to be accessed even easier with a new Developer options Wireless debugging tile, the only thing missing is a way to get, after the fact, the random port assignment that Android uses for the adb wireless connection to your PC.
[adb,scrcpy,vysor] What ports does Android 12 randomly set when Wi-Fi connecting via Wireless debugging adb "pair" or "connect" commands?
Does anyone know how to obtain that random Android port address from the PC?
I am asking for detailed instructions on how to install it on the galaxy s22U? I can't handle it on my own.
Basically I need to have Android's desktop mode enabled on the phone's screen always.
For your curiosity, I can't connect phone via any hdmi cable, as it's a microusb only old phone, but I use scrcpy to control my phone via my PC, (yes, keyboard, mouse, and display works perfectly this way).
I'd use desktop mode even without scrcpy though.
I've already enabled the setting in dev options, but reportedly it only is enabled for external displays by default
I have root (Magisk), and Custom ROM etc.
Hey! I'm a bit late, but I kind of came across a solution here: https://github.com/Genymobile/scrcpy/issues/1413#issuecomment-640273175
To summarize: create a virtual external display on your phone and connect to it with Scrcpy. Using Taskbar or any other desktop-friendly launcher is recommended.
My setup:
Redmi Note 9 Pro with Android 11 lineage-18.1-20220902-nightly (not available to download anymore, but I guess it doesn't matter.
Ubuntu 14.04 x64 (yes, on 2023, I'm working on upgrading) running scrcpy (v1.21-2-g5704ec6, Rev: 358, Tracking: latest/edge) via snap.
adb version (added to my $PATH so that snap uses this version of adb)
Android Debug Bridge version 1.0.39
Revision 3db08f2c6889-android
Developer options enabled (aside of adb debugging)
Enabled freeform windows
Forced desktop mode
Basic instructions:
Create a virtual displayVía adb o terminal (without "adb shell", and I did it as root) define one or multiple virtual displays like this:
Code:
adb shell settings put global overlay_display_devices 3840x2160/480\;3840x2160/480\;3840x2160/480\;3840x2160/480
This is my command for a single display at 225 DPI:
Code:
adb shell settings put global overlay_display_devices 1915x998/225
You can delete all displays with this command
Code:
adb shell settings put global overlay_display_devices \"\"
Find the virtual display numberYou can see all your displays on Android with this command:
Code:
adb shell dumpsys display | grep -E 'Display [0-9]{1,2}'
You will get an output like this:
Code:
Display 1:
Display 19:
Display 21:
If you added a single display, that will be always the last one, if I'm not mistaken.
Connect to the displayAdd the --display parameter to your connection command:
Code:
scrcpy --display 21
Instructions for a script:This how I actually connect to my phone:
Code:
adb shell settings put global overlay_display_devices \"\"
adb shell settings put global overlay_display_devices 1915x998/225
VirtualExternalDisplay=`adb shell dumpsys display | grep -E 'Display [0-9]{1,2}' | tail -1 | sed s/\:// | awk '{print$2}'`
scrcpy -b24M --display-buffer=5 -S -w --display $VirtualExternalDisplay --encoder OMX.qcom.video.encoder.avc
I use a script to connect that includes the lines above, which do this:
Remove all virtual displays on Android (not critical, but cleaner for a loop)
Define one virtual external display.
Define a variable with the display number digits, assuming it's the last one on the output. My scripts suck but do the job for me; there's probably more efficent ways of getting the digits with regex and sh!t.
Connect to the display using the variable as the display number. There's other parameters on the command because it's the real command I use, I'm still playing around with settings to see how can I get the best quality, but they aren't required for what we're doing here.
Notes:Each virtual display appears as a transparent floating window on your device's real screen, what could be annoying if you want to real display while using virtual external displays.
Yes, it works via adb over wifi.
If your scrcpy version doesn't have the -K, --hid-keyboard or it doesn't work, you can use NoKeyboard.
I think that's all, I hope someone finds this helpful...