Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/cbrand/eiscp-micropython
Micropython implementation of the Onkyo EISCP protocol
https://github.com/cbrand/eiscp-micropython
Last synced: 3 months ago
JSON representation
Micropython implementation of the Onkyo EISCP protocol
- Host: GitHub
- URL: https://github.com/cbrand/eiscp-micropython
- Owner: cbrand
- License: mit
- Created: 2021-01-01T17:40:00.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2022-07-11T10:38:46.000Z (over 2 years ago)
- Last Synced: 2024-07-03T14:35:55.147Z (4 months ago)
- Language: Python
- Size: 41 KB
- Stars: 3
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-micropython - eiscp-micropython - MicroPython port for the Onkyo-EISCP protocol used, among others, by Pioneer. (Libraries / Communications)
README
# EISCP Micropython #
[![PyPI](https://img.shields.io/pypi/v/eiscp-micropython) ![MIT Licensed](https://img.shields.io/pypi/l/eiscp-micropython)](https://pypi.org/project/eiscp-micropython/)
This is an implementation of the Onkyo EISCP protocol for running on Microcontrollers utilizing [MicroPython](http://www.micropython.org/).
It is a heavily stripped down version of the [Onkyo EISCP](https://github.com/miracle2k/onkyo-eiscp) library and supports
sending commands to connected devices in the same IP-Network.Compared to the original library, this one is also utilizing [uasyncio](https://docs.micropython.org/en/latest/library/uasyncio.html) for being able to run the project easily with other code.
## Usage ##
As an example turning on the first device in the network and changing the audio input.
```python
import uasyncio
import network
from eiscp import discoverwifi = network.WLAN(network.STA_IF)
wifi.active(True)
wifi.connect('SSID', 'PW')loop = uasyncio.get_event_loop()
clients = loop.run_until_complete(discover())
client = clients[0]
loop.run_until_complete(client.power_on())
loop.run_until_complete(client.command("SLI", "11"))
```## Testing ##
The EISCP library has been real world tested with an ESP32 microcontroller inside of the [ESP32 IR Remote Protocol](https://github.com/cbrand/esp32-ir-remote).
It communicates successfully to a [SX-S30DAB](https://intl.pioneer-audiovisual.com/products/2ch_components/sx-s30dab/).
## License ##
The project has been published via the MIT license.