pywakeps4onbt


Namepywakeps4onbt JSON
Version 0.8.0 PyPI version JSON
download
home_pagehttps://github.com/FreeTHX/pywakeps4onbt
SummaryA Python library to wakeup Ps4 on BlueTooth
upload_time2022-12-18 23:00:31
maintainer
docs_urlNone
authorFreeTHX
requires_python
licenseApache License 2.0
keywords wake ps4 on bt home assistant
VCS
bugtrack_url
requirements pyusb
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # PyWakePs4 On BlueTooth
This is a simple Python library to switch on a ps4 using Bluetooth
Based on :
- [PS4 Dev Wiki](https://www.psdevwiki.com/ps4/DS4-BT#Bluetooth_Addressing) Spoofing and HCI CC
- [bdaddr](http://blog.petrilopia.net/linux/change-your-bluetooth-device-mac-address/) BT spoofing first imp
- [bdaddr github](https://github.com/pauloborges/bluez/blob/master/tools/bdaddr.c) ... and another one available on github
- [Frank Zhao](https://eleccelerator.com/unpairing-a-dualshock-4-and-setting-a-new-bdaddr/) Article to get DS4 and PS4 BT Addr 

The main objective is to include it into [Home Assistant](https://www.home-assistant.io/ "Home Assistant") components to provide a "Wake Ps4 On Bt" service.

## Supported Devices
The module tests the adapter support via a ```hci_read_local_manufacturer``` python implementation and read the ```manufacturer``` returned value from ```OCF_READ_LOCAL_VERSION```  
Currently supported adapters :
- Broadcom devices (```manufacturer = 15```)
- Cypress Semiconductor devices (```manufacturer = 305```)

## Get Bluetooth addresses over USB
Plug the DualShock4 controler on your computer using micro USB cable.  
Once ```pywakeps4onbt``` is installed, run the following command from a python shell:
```python
>>> import wakeps4onbt
>>> wakeps4onbt.get_bt_addr()
{'dsbt_address': '00:1F:E2:12:34:56', 'ps4bt_address': '90:CD:B6:12:34:56'}
```

## No external dependency
Recent versions (0.7+) do not use external dependencies for bluetooth and HCI.

            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/FreeTHX/pywakeps4onbt",
    "name": "pywakeps4onbt",
    "maintainer": "",
    "docs_url": null,
    "requires_python": "",
    "maintainer_email": "",
    "keywords": "wake ps4 on bt home assistant",
    "author": "FreeTHX",
    "author_email": "freethx.dev@gmail.com",
    "download_url": "https://files.pythonhosted.org/packages/b1/8b/876e52e86be5c7cf94d9e88aeaf5b2769cd4b57b0fcef0d7171897729ed0/pywakeps4onbt-0.8.0.tar.gz",
    "platform": null,
    "description": "# PyWakePs4 On BlueTooth\nThis is a simple Python library to switch on a ps4 using Bluetooth\nBased on :\n- [PS4 Dev Wiki](https://www.psdevwiki.com/ps4/DS4-BT#Bluetooth_Addressing) Spoofing and HCI CC\n- [bdaddr](http://blog.petrilopia.net/linux/change-your-bluetooth-device-mac-address/) BT spoofing first imp\n- [bdaddr github](https://github.com/pauloborges/bluez/blob/master/tools/bdaddr.c) ... and another one available on github\n- [Frank Zhao](https://eleccelerator.com/unpairing-a-dualshock-4-and-setting-a-new-bdaddr/) Article to get DS4 and PS4 BT Addr \n\nThe main objective is to include it into [Home Assistant](https://www.home-assistant.io/ \"Home Assistant\") components to provide a \"Wake Ps4 On Bt\" service.\n\n## Supported Devices\nThe module tests the adapter support via a ```hci_read_local_manufacturer``` python implementation and read the ```manufacturer``` returned value from ```OCF_READ_LOCAL_VERSION```  \nCurrently supported adapters :\n- Broadcom devices (```manufacturer = 15```)\n- Cypress Semiconductor devices (```manufacturer = 305```)\n\n## Get Bluetooth addresses over USB\nPlug the DualShock4 controler on your computer using micro USB cable.  \nOnce ```pywakeps4onbt``` is installed, run the following command from a python shell:\n```python\n>>> import wakeps4onbt\n>>> wakeps4onbt.get_bt_addr()\n{'dsbt_address': '00:1F:E2:12:34:56', 'ps4bt_address': '90:CD:B6:12:34:56'}\n```\n\n## No external dependency\nRecent versions (0.7+) do not use external dependencies for bluetooth and HCI.\n",
    "bugtrack_url": null,
    "license": "Apache License 2.0",
    "summary": "A Python library to wakeup Ps4 on BlueTooth",
    "version": "0.8.0",
    "split_keywords": [
        "wake",
        "ps4",
        "on",
        "bt",
        "home",
        "assistant"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "md5": "a4fa62687c02120250a111888a25a19e",
                "sha256": "dccf256832b9b9d0752451c1e3e13c936b03eb7660206c2e4aa452a17fba4c2a"
            },
            "downloads": -1,
            "filename": "pywakeps4onbt-0.8.0-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "a4fa62687c02120250a111888a25a19e",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": null,
            "size": 9043,
            "upload_time": "2022-12-18T23:00:29",
            "upload_time_iso_8601": "2022-12-18T23:00:29.881656Z",
            "url": "https://files.pythonhosted.org/packages/b4/2a/62e2b88f94fe4736ad0368a13f58eb3a64959b5b3a03ad455a8bb25d5d55/pywakeps4onbt-0.8.0-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "md5": "5c859fb1f49cd270b7fa077de37fe082",
                "sha256": "9ad37c51788f1fc2fa5a06f1f591872396977c9d45f0b1b2cc28367831ed419e"
            },
            "downloads": -1,
            "filename": "pywakeps4onbt-0.8.0.tar.gz",
            "has_sig": false,
            "md5_digest": "5c859fb1f49cd270b7fa077de37fe082",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": null,
            "size": 8848,
            "upload_time": "2022-12-18T23:00:31",
            "upload_time_iso_8601": "2022-12-18T23:00:31.541757Z",
            "url": "https://files.pythonhosted.org/packages/b1/8b/876e52e86be5c7cf94d9e88aeaf5b2769cd4b57b0fcef0d7171897729ed0/pywakeps4onbt-0.8.0.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2022-12-18 23:00:31",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "github_user": "FreeTHX",
    "github_project": "pywakeps4onbt",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": false,
    "requirements": [
        {
            "name": "pyusb",
            "specs": []
        }
    ],
    "lcname": "pywakeps4onbt"
}
        
Elapsed time: 0.03431s