Python Forum
Auto re-pair / re-sync Controller via Script?
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Auto re-pair / re-sync Controller via Script?
#1
Hi guys, first of all, I have no code to show - I'm sorry.

I want to use the same (PlayStation) Controller on Windows 10 and on the Nvidia Shield 2019 Pro. Shield is on HDMI1 and Windows 10 is on HDMI2.

Right now I have to re-pair/re-sync the controller on each OS manually. Not very user-friendly since I constantly switch between Windows 10 and the Shield.

Not only do I use the controller to play games on Windows 10 but I also use as it as a remote control. Especially on the Shield.

Is it possible to automate the pairing process via a script? Maybe a Python script?

Any help is highly appreciated!
Reply
#2
No idea. I'm not even sure how you'd run a python script on the shield. It's basically android, so you might have to create an app.

Windows you could run a script easily, but the question is how to control the bluetooth. I found some command line tools for windows (which python could run), but the websites they are on seem sketchy. (Google "windows bluetooth command line tools").

I took a quick peek at the pybluez webpage, but that package seems to be more about communicating over bluetooth than controlling the windows bluetooth configuration.
User3000 likes this post
Reply
#3
hi, thank you for the reply! I don't know if it helps but I have rooted the Shield.

I'll look deeper into the page you provided.

And if anyone has another idea please let me know. This is pretty important to me.

Thanks!
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Problem with pymodbus - ModuleNotFoundError: No module named 'pymodbus.client.sync' stsxbel 2 23,567 Nov-02-2023, 08:20 AM
Last Post: South_east
  Python and DMX (aka, light controller) ScottAF 4 2,646 Apr-06-2023, 07:09 PM
Last Post: ScottAF
  How can flask find the controller? 3lnyn0 3 1,314 Jul-08-2022, 10:05 AM
Last Post: Larz60+
  Getting the maximum value:key pair from a dictionary sean1 2 1,422 Jan-17-2022, 01:04 PM
Last Post: DeaD_EyE
  asyncio calls within sync function ( Websocket on_open) orion67 0 1,399 Jan-16-2022, 11:00 AM
Last Post: orion67
  Controller Buzzer as Distance Decreases barkster 6 2,073 Nov-01-2021, 03:26 PM
Last Post: barkster
  How to extract specific key value pair from string? aditi06 0 2,520 Apr-15-2021, 06:26 PM
Last Post: aditi06
  Tuning PID controller Sancho_Pansa 4 4,338 Nov-09-2020, 07:51 AM
Last Post: Sancho_Pansa
  Xbox Controller arki 0 1,705 Jun-30-2020, 10:32 AM
Last Post: arki
  Pycharm sync PTPeter 1 1,941 Apr-22-2020, 03:50 PM
Last Post: DeaD_EyE

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020