License

GPL 3.0

Tags
Recommend Projects

esp32serial2tcpip

5 months ago 49
  • Description
  • Documents
  • BOM
  • Attachments
  • Members
  • Comments

Description

esp32serial2tcpip

ESP32 serial to to TCP/IP adapter as a wifi bridge between PARADOX and PAI.

What is it intended for

I made this adapter for easier integration between my PARADOX SP7000 alarm panel and PAI. (Paradox Alarm Interface) - a wonderful peace of software. I run PAI as add-on in my Home Assistant instalation, but there as many other ways how to run it.

Hardware

I ordered a custom pcb from JLCPCB. Here is a link to my project.

Connecting to Paradox panel:

Serial on Panel           esp32serial2tcpip
┌───────┐
│ Rx   ┌╵ ===================== > TX 
│ Tx   │  ===================== > RX 
│ GND  │  ===================== > GND 
│ AUX+ └╷ ===================== > 12V
└───────┘

Firmware

I use Tasmota. You can use my compiled version or compile your own - serial to TCP is not included in standard pre-compiled builds.

Tasmota template:

{"NAME":"esp32serial2tcpip","GPIO":[1,1,1,1,1,1,1,1,1,1,1,1,5504,5472,1,1,0,1,1,1,0,1,1,1,0,0,0,0,1,1,1,1,1,0,0,1],"FLAG":0,"BASE":1}

Tasmota rule You need to create rule so serial to TCP/IP is started every time tasmota boots. Go to tasmota console and issue this command:

rule1 ON System#Boot do TCPStart 23 endon ON System#Boot do TCPBaudRate 9600 endon

Don't forget to enable rule by issuing the following command in console:

rule1 1

PAI configuration:

The following settings needs to be set in your PAI configuration file.

# Connection Type
CONNECTION_TYPE: IP         # Serial or IP
# IP Connection Details
IP_CONNECTION_HOST: '192.168.1.10' # Address of the ESP32
IP_CONNECTION_PORT: 23             # Port of the ESP32
IP_CONNECTION_PASSWORD: 'paradox'  # IP Module password. "paradox" is factory default.
IP_CONNECTION_BARE: true           # Used this for base Serial over TCP tunnels

Alternative firmware

You can follow the instructions edit and load the following . Once done and available on your network you can connect it to your wifi and test it/locate the IP.

Documents

Schematics

20210413 copy

PCB_MDC PAI TCP BRIDGE ESP32

BOM

ID Name Designator Footprint Quantity BOM_Manufacturer Part
1 SW1 BOOT,RESET SW-SMD_L3.9-W3.0-P4.45 2 SKRKAEE020
2 4.7uF C14,C15 C0805 2 CL21A475KAQNNNE
3 1uF C16,C17 C0805 2 CL21B105KBFNNNE
4 Padarox in CN1 CONN-TH_XH2.54-4AW 1 XH2.54-4AW
5 Paradox out CN2 CONN-TH_XH2.54-4AW 1 XH2.54-4AW
6 GPIO HEADER H1 SMD-2X6P2.00 1 220-2SMT-2*6PH=4.3MM Gold-plated black
7 10K R6 R0805 1 0805W8F1002T5E
8 AMS1117-3.3_C165482 U1 SOT-223_L6.5-W3.5-P2.30-LS7.0-BR 1 AMS1117-3.3
9 MINI-360 U4 DSN-MINI-360 1 MINI-360
10 ESP-32S U5 WIFIM-SMD_ESP-32S 1 ESP-32S

Attachments

None

Members

Success
The owner does not allow comments in this project now

Comments (0)

goToTop
你现在访问的是EasyEDA海外版,使用建立访问速度更快的国内版 https://lceda.cn(需要重新注册)
如果需要转移工程请在个人中心 - 工程 - 工程高级设置 - 下载工程,下载后在https://lceda.cn/editor 打开保存即可。
有问题联系QQ 3001956291 不再提醒
svg-battery svg-battery-wifi svg-books svg-more svg-paste svg-pencil svg-plant svg-ruler svg-share svg-user svg-logo-cn svg-double-arrow
We use cookies to offer you a better experience. Detailed information on the use of cookies on this website is provided in our Privacy Policy. By using this site, you consent to the use of our cookies.