User Tools

Site Tools


ip-switch

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Last revisionBoth sides next revision
ip-switch [2020/12/10 19:42] ok1hraip-switch [2021/01/10 15:15] – [Hardware] ok1hra
Line 1: Line 1:
 ====== IP switch 0.4c ====== ====== IP switch 0.4c ======
 +Previous version 0.2 [[https://remoteqth.com/wiki/index.php?page=IP+Switch+with+ESP32-GATEWAY|here]]
 {{https://remoteqth.com/img/slide-ip-sw-rev4-01.jpg?600}}\\ {{https://remoteqth.com/img/slide-ip-sw-rev4-01.jpg?600}}\\
 ---- ----
Line 6: Line 7:
 ===== Key features ===== ===== Key features =====
   * **16** ethernet controlled outputs with optional expandable board   * **16** ethernet controlled outputs with optional expandable board
-  * Based on Olimex [[https://www.olimex.com/Products/IoT/ESP32/ESP32-GATEWAY/open-source-hardware|ESP32-GATEWAY]] ethernet module+  * Based on Olimex [[https://www.olimex.com/Products/IoT/ESP32/ESP32-GATEWAY/open-source-hardware|ESP32-GATEWAY rev.F or later]] ethernet module
   * Configure open emitter or open colector outputs   * Configure open emitter or open colector outputs
   * Simple "Wago" like terminal output connection   * Simple "Wago" like terminal output connection
Line 20: Line 21:
 {{https://remoteqth.com/img/wiki-ip-sw-rev4-03.png}}\\ {{https://remoteqth.com/img/wiki-ip-sw-rev4-03.png}}\\
   - **Power** supply (**12-14V DC**)   - **Power** supply (**12-14V DC**)
-  - **Ethernet** RJ45 connector+  - **Ethernet** RJ45 connector on ESP32-GATEWAY (need rev.F or later)
   - 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 27:
   - 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 **(50V/500mA MAX)** use for +  - **16 output** (50V/500mA MAX) 
-    relay **power** if use **open colector ULN** driver +  - **COMMON** connect dependency to use driver 
-    - relay **GND** if use **open colector MIC** driver+    - if use **open colector ULN** driver, connect COMMON to relay **+DC power**  
 +    - if use **open emiter MIC** driver, connect COMMON to relay **GND** 
 ==== Sources ==== ==== Sources ====
   * [[https://remoteqth.com/hw/ip-switch-04c.pdf|.PDF schematics]]   * [[https://remoteqth.com/hw/ip-switch-04c.pdf|.PDF schematics]]
Line 43: Line 45:
   - Download firmware from [[https://github.com/ok1hra/IP_switch|GitGub]]   - Download firmware from [[https://github.com/ok1hra/IP_switch|GitGub]]
   - Select menu Tools/Board:"OLIMEX ESP32-GATEWAY"   - Select menu Tools/Board:"OLIMEX ESP32-GATEWAY"
 +  - Select menu Tools/Board revision:"Revision F"
   - Connect micro USB between ESP32-GATEWAY and PC   - Connect micro USB between ESP32-GATEWAY and PC
   - Select menu Tools/Port/YOUR-CONNECTED-PORT   - Select menu Tools/Port/YOUR-CONNECTED-PORT
Line 71: Line 74:
     * 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 <code>y</code> 
-  * 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<code>Position  KEY 
-    * if you enter wrong three times, login will be blocked for next ten minutes+ 1-10     pP75tf8qrF 
 +11-20     y4SK57dpnC 
 +21-30     fpag8x9eZ4 
 +31-40     IsueSv4jCY 
 +41-50     pX3lpK4UPD 
 +51-60     ij1bbLEQRu 
 +61-70     XRr9dfoJje 
 +71-80     44u5MYQdcm 
 +81-90     B68NpG7F0t 
 +91-100    5mD04pAE6s</code> 
 +  * if you **enter wrong three times,** login will be **blocked for next ten minutes**
   * 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://remoteqth.com/img/wiki-ip-switch-esp32gateway-25.png?200}}   * Now logged in to CLI (command line interface) via telnet \\ {{https://remoteqth.com/img/wiki-ip-switch-esp32gateway-25.png?200}}
Line 117: Line 130:
   * **@** - restart IP switch    * **@** - restart IP switch 
  
 +----
 ==== For controlled from Manual IP switch ==== ==== For controlled from Manual IP switch ====
- 
   - Upload firmware by previous steps   - Upload firmware by previous steps
   - Set encoder range via CLI with command **n**   - Set encoder range via CLI with command **n**
Line 133: Line 146:
  
 **Show all outputs status**\\ **Show all outputs status**\\
-  - {{https://remoteqth.com/img/wiki-ip-switch-esp32gateway-19.png}}+  - \\ {{https://remoteqth.com/img/wiki-ip-switch-esp32gateway-19.png}}
   - Parameter of WiFi or ethrnet IP connect   - Parameter of WiFi or ethrnet IP connect
   - Firmware version   - Firmware version
Line 139: Line 152:
   - How source controled his   - How source controled his
   - Notice - show this page can extend reaction latency IP switch   - 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://remoteqth.com/img/wiki-ip-sw-rev4-02.png?1000}}\\
 +What you need
 +  * any version Raspberry PI
 +  * microSD card with [[https://www.raspberrypi.org/downloads/raspbian/|Raspbian Lite]]
 +  * 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://www.raspberrypi.org/documentation/remote-access/ssh/|SSH]]** <code>sudo raspi-config</code>
 +  * run command and write down the shown **IP address** <code>ip a</code>
 +  * you can disconnect HDMI monitor and USB keyboard
 +  * connect to Raspberry PI from any other PC
 +    * [[https://www.raspberrypi.org/documentation/remote-access/ssh/windows.md|windows]]
 +    * [[https://www.raspberrypi.org/documentation/remote-access/ssh/unix.md|Linux]]
 +    * [[https://www.raspberrypi.org/documentation/remote-access/ssh/ios.md|iOS]]
 +  * update system with run command <code>sudo apt-get update && sudo apt-get upgrade</code>
 +  * install screen fith command <code>sudo apt-get install screen</code>
 +  * run **screen** <code>screen /dev/ttyUSB0 115200</code>
 +  * now after pres **?** key show status information and you can **configure via CLI** \\ {{https://remoteqth.com/img/wiki-ip-sw-rev4-16.png?200}}\\
 +  * close screen with **CTRL+A K** and confirm **y**
 +  * disconnect from Raspberry PI use command <code>exit</code>
  
 ---- ----
Line 164: Line 204:
   - Plug **ESP32-GATEWAY** to main board and screw with two screws M3x4mm{{https://remoteqth.com/img/wiki-ip-sw-rev4-14.jpg?1000}} \\ \\   - Plug **ESP32-GATEWAY** to main board and screw with two screws M3x4mm{{https://remoteqth.com/img/wiki-ip-sw-rev4-14.jpg?1000}} \\ \\
   - 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://remoteqth.com/img/wiki-ip-sw-rev4-15.jpg?1000}} \\ \\   - 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://remoteqth.com/img/wiki-ip-sw-rev4-15.jpg?1000}} \\ \\
- 
- 
- 
-{{https://remoteqth.com/img/wiki-ip-sw-rev4-02.png?1000}}\\ 
- 
- 
  
ip-switch.txt · Last modified: 2021/05/15 20:46 by ok1hra