https://github.com/stestagg/irnetproxy
Multiple-client network proxy for the redrat irNetBox devices
https://github.com/stestagg/irnetproxy
Last synced: over 1 year ago
JSON representation
Multiple-client network proxy for the redrat irNetBox devices
- Host: GitHub
- URL: https://github.com/stestagg/irnetproxy
- Owner: stestagg
- Created: 2013-05-09T15:54:31.000Z (about 13 years ago)
- Default Branch: master
- Last Pushed: 2013-05-09T18:14:22.000Z (about 13 years ago)
- Last Synced: 2025-01-30T05:27:33.026Z (over 1 year ago)
- Language: Python
- Size: 125 KB
- Stars: 0
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
irNetProxy [](https://travis-ci.org/stestagg/irnetproxy)
==========
A network proxy for RedRat irNetBox MK-III infra-red blaster modules.
Based on the protocol document:
http://www.redrat.co.uk/products/IRNetBox_Comms-V3.X.pdf
This script allows many clients to connect to the device, and use the ports
concurrently. **Note**, this only makes sense for the Asynchronous IO
Output Commands, other commands will be run synchronously.
Usage
-----
```
$ irnetproxy -r
```
OR
```
$ irnetproxy --irnetbox-addresss --irnetbox-port 10001\
--listen-port 10001 --listen-address 127.0.0.1 -vv
Listening for connections on 127.0.0.1:10001
```
Features
--------
- Session multiplexing: irnetproxy dynamically maps Asyncronous Sequence IDs
on the fly, meaning that multiple clients can use the same Sequence ID
concurrently, and the irnet box will continue to work. Both the command
acknowledgement, and the subsequent Async complete message are always routed
to the correct client.
- On/Off management: irnetproxy will silently accept the on and off messages
(5 and 6). A standard ACK response is returned to the client, but the command
is never sent to the device. This allows multiple scripts to try to turn off
the device while other devices use it. irnetproxy issues the ON command when
it connects, and issues an OFF command when it is stopped.