ip-switch
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
ip-switch [2020/12/10 19:35] – [CLI commands] ok1hra | ip-switch [2021/05/15 20:46] (current) – ok1hra | ||
---|---|---|---|
Line 1: | Line 1: | ||
====== IP switch 0.4c ====== | ====== IP switch 0.4c ====== | ||
+ | Previous version 0.2 [[https:// | ||
{{https:// | {{https:// | ||
+ | |||
---- | ---- | ||
Line 6: | Line 8: | ||
===== Key features ===== | ===== Key features ===== | ||
* **16** ethernet controlled outputs with optional expandable board | * **16** ethernet controlled outputs with optional expandable board | ||
- | * Based on Olimex [[https:// | + | * Based on Olimex [[https:// |
* Configure open emitter or open colector outputs | * Configure open emitter or open colector outputs | ||
* Simple " | * Simple " | ||
Line 20: | Line 22: | ||
{{https:// | {{https:// | ||
- **Power** supply (**12-14V DC**) | - **Power** supply (**12-14V DC**) | ||
- | - **Ethernet** RJ45 connector | + | - **Ethernet** RJ45 connector |
- Optional **expand board** connector | - Optional **expand board** connector | ||
- **Output driver** with open collector or emiter | - **Output driver** with open collector or emiter | ||
Line 26: | Line 28: | ||
- Two **jumper** for select output driver are used | - Two **jumper** for select output driver are used | ||
- Connector for **16 relay board** connected wth flat cable | - Connector for **16 relay board** connected wth flat cable | ||
- | - **16 output** and common terminal | + | - **16 output** (50V/500mA MAX) |
- | - relay **power** if use **open colector ULN** driver | + | - **COMMON** connect dependency to use driver |
- | - relay **GND** if use **open | + | - if use **open colector ULN** driver, connect COMMON to relay **+DC power** |
+ | - if use **open | ||
==== Sources ==== | ==== Sources ==== | ||
* [[https:// | * [[https:// | ||
Line 43: | Line 46: | ||
- Download firmware from [[https:// | - Download firmware from [[https:// | ||
- Select menu Tools/ | - Select menu Tools/ | ||
+ | - Select menu Tools/Board revision:" | ||
- Connect micro USB between ESP32-GATEWAY and PC | - Connect micro USB between ESP32-GATEWAY and PC | ||
- Select menu Tools/ | - Select menu Tools/ | ||
Line 71: | Line 75: | ||
* Sessions may be saved for next time | * Sessions may be saved for next time | ||
* for connect press **Open** | * for connect press **Open** | ||
- | * Login confirm with press **y** | + | * Login confirm with press < |
- | * Now answer four times the question of what character is on random selected position, **in your key** (key saved from first step acces) | + | * Now answer four times the question of what character is on random selected position, **in your key** (key saved from first step acces). Key formated in groups of ten - FOR EXAMPLE< |
- | * if you enter wrong three times, login will be blocked for next ten minutes | + | 1-10 |
+ | 11-20 | ||
+ | 21-30 | ||
+ | 31-40 | ||
+ | 41-50 | ||
+ | 51-60 | ||
+ | 61-70 | ||
+ | 71-80 | ||
+ | 81-90 | ||
+ | 91-100 | ||
+ | | ||
* After login your IP address store to EEPROM and next key will be required **only if change your IP** address | * After login your IP address store to EEPROM and next key will be required **only if change your IP** address | ||
* Now logged in to CLI (command line interface) via telnet \\ {{https:// | * Now logged in to CLI (command line interface) via telnet \\ {{https:// | ||
Line 93: | Line 107: | ||
* if you need OFF all outputs after reboot watchdog, set smaller value than it | * if you need OFF all outputs after reboot watchdog, set smaller value than it | ||
* zero value disable this watchdog | * zero value disable this watchdog | ||
- | * **/** - set encoder range (2-g) for switching one from range | + | * **/** - set ENCODER RANGE (2-g) for switching one from range |
* **%** - enable/ | * **%** - enable/ | ||
- | * **!** - SET group for each button separately | + | * **!** - set group for each button separately |
* **:** - List group buttons | * **:** - List group buttons | ||
* in one group may be activate only one output | * in one group may be activate only one output | ||
Line 104: | Line 118: | ||
* ** * ** - enable/ | * ** * ** - enable/ | ||
* **+** - select get Network ID sufix from eeprom or hardware BCD switch | * **+** - select get Network ID sufix from eeprom or hardware BCD switch | ||
- | * **#** - set network | + | * **#** - set NETWORK |
* **Prefix** (four high bit) in hexadecimal format (0-f) | * **Prefix** (four high bit) in hexadecimal format (0-f) | ||
* in standart mode prefix expanded range of network ID | * in standart mode prefix expanded range of network ID | ||
Line 112: | Line 126: | ||
* in standart mode sufix use for identification | * in standart mode sufix use for identification | ||
* in Multi control mode define group ID (id for all shared devices) | * in Multi control mode define group ID (id for all shared devices) | ||
- | * **$** - enable/disable Multi control | + | * **$** - enable/DISABLE MULTI CONTROL |
* **&** - send broadcast packet for find control devices in local network | * **&** - send broadcast packet for find control devices in local network | ||
* **.** - if enable Multi control, show list detected IP switch by ID prefix | * **.** - if enable Multi control, show list detected IP switch by ID prefix | ||
* **@** - restart IP switch | * **@** - restart IP switch | ||
+ | |||
+ | ---- | ||
+ | ==== For controlled from Manual IP switch ==== | ||
+ | - Upload firmware by previous steps | ||
+ | - Set encoder range via CLI with command **n** | ||
+ | - Set source via CLI or web interface to **m** | ||
+ | - Set network ID prefix same on both devices via CLI in range **0-7** | ||
+ | - Select Network ID sufix same on both devices via CLI in range ID **0-7** | ||
+ | - Connect to same local network with DHCP as **Manual IP switch** | ||
+ | - After power up both devices, is automaticaly **pair** | ||
+ | |||
+ | ==== Web status page ==== | ||
+ | **How IP addres got the device from the DHCP server?**\\ | ||
+ | * show in serial terminal after reboot, or send ? character | ||
+ | * or find some [[https:// | ||
+ | |||
+ | **Show all outputs status**\\ | ||
+ | - \\ {{https:// | ||
+ | - Parameter of WiFi or ethrnet IP connect | ||
+ | - Firmware version | ||
+ | - Device uptime | ||
+ | - How source controled his | ||
+ | - Notice - show this page can extend reaction latency IP switch | ||
+ | |||
+ | ---- | ||
+ | |||
+ | ==== Strong secure remote manage ==== | ||
+ | |||
+ | Configuration available via serial CLI (command line interface). This interface can be safely accessed to the Internet and encrypted connections to manage all features \\ | ||
+ | {{https:// | ||
+ | What you need | ||
+ | * any version Raspberry PI | ||
+ | * microSD card with [[https:// | ||
+ | * micro USB cable | ||
+ | * 5V power adapter with micro usb cable | ||
+ | * ethernet connection | ||
+ | * for first start HDMI monitor and USB keyboard | ||
+ | How to start | ||
+ | * after first boot login to serial console with default login **pi** and password **raspberry** | ||
+ | * run command and **enable [[https:// | ||
+ | * run command and write down the shown **IP address** < | ||
+ | * you can disconnect HDMI monitor and USB keyboard | ||
+ | * connect to Raspberry PI from any other PC | ||
+ | * [[https:// | ||
+ | * [[https:// | ||
+ | * [[https:// | ||
+ | * update system with run command < | ||
+ | * install screen fith command < | ||
+ | * run **screen** < | ||
+ | * now after pres **?** key show status information and you can **configure via CLI** \\ {{https:// | ||
+ | * close screen with **CTRL+A K** and confirm **y** | ||
+ | * disconnect from Raspberry PI use command < | ||
---- | ---- | ||
Line 139: | Line 205: | ||
- Plug **ESP32-GATEWAY** to main board and screw with two screws M3x4mm{{https:// | - Plug **ESP32-GATEWAY** to main board and screw with two screws M3x4mm{{https:// | ||
- Insert **two output drivers** and plug **two jumpers** in position dependency to used driver. Horizontal for ULN open colector, vertical for MIC open emiter{{https:// | - Insert **two output drivers** and plug **two jumpers** in position dependency to used driver. Horizontal for ULN open colector, vertical for MIC open emiter{{https:// | ||
- | |||
- | |||
- | |||
- | {{https:// | ||
- | |||
- | |||
ip-switch.1607628900.txt.gz · Last modified: 2020/12/10 19:35 by ok1hra