-
Notifications
You must be signed in to change notification settings - Fork 96
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Problem with serial over ip with a esp32. #259
Comments
@danilodivaio, please can you share an image with connection details? Sharing code will also be helpful. |
hi, thanks for replying, what connection details should i share? |
The code in ESP32 is: WiFiServer server(23); void wifisetup(){ void setup() { // } //start UART and the server ArduinoOTA
ArduinoOTA.begin(); Serial.print("Ready! Use 'telnet "); int count; ArduinoOTA.handle(); if (wifiMulti.run() == WL_CONNECTED) {
ledState = not(ledState); } |
Can you please take a photo of how ESP32 is wired? Re code- there are few issues with the code you are using. Try using:
Cheers, |
@danilodivaio did you manage to solve the puzzle? If so, please advise. |
I have solved this problem. I solve it before change interface to IP100. Some more info in this ticket: #198 (comment) Serial on ESP32 need 3,3V level convertor from 5V uart. Thats all. |
If you have some updates to the wiki - Please update it so we get less help requests here. It is not my field of knowledge unfortunately to help others with these requests. |
Hello, my problem with ESP32 was solved here Schematic is here |
I have the same issue using my NodeMCU (ESP8266). I am using GPIO13/TX and GPIO13/RX with a pulldown resistor on GPIO15 to ensure booting. I have tried using esp-link, WiFiTelnetToSerial (8266) example, as well as the esphome. All cases I was able to connect to some random Mikrotik device I had with me and showed that I can connect to it remotely. So, going to try using the non swapped ports GPIO1/TC and GPIO3/RX. If this also does not work then I don't know what to try anymore. Been at it for a week. Do we have a minimum version for EVO firmware? I think I am on 6.X or something. (will double check) What I currently have, just modified this one for some LED flashing and OTA support. https://github.com/esp8266/Arduino/blob/master/libraries/ESP8266WiFi/examples/WiFiTelnetToSerial/WiFiTelnetToSerial.ino
Output from PAI
|
Do you use IP_CONNECTION_BARE: true ? |
Yeah, my config currently very simple.
I am using a max232n with 1uF Electrolytic capacitors. I don't have ceramic 1uf's and on the datasheet it indicates that electrolytic caps also fine. Can't get the nodemcu to use gpio1&3 as I think is due to the onboard ttl converter. Maybe need to find ceramics caps or try using my esp32f but feels like a bit of an overkill. |
Why max232? Here is not a RS232. Paradox has 5V uart and esp have a 3.3V uart. You need convert levels between 5V and 3.3V. Use my convertor. I published here if you will find. |
🤦♂️ Well, that would explain my issues... Thank you! |
Here you have an converter schematic for uart!!! This is not for powering of the ESP, for power you need dc/dc converter from 12V to 5V |
Can't I just use a voltage divider with resistors? 1k + 2.2k ? So max volts will be 3.438V |
You have a two data directions. The firs from paradox uart from 5V. Here you can use a divider and the second direct from esp 3.3V to pqradox 5v uart and here you need an amplifier with two transistors. This converter I have tried and working with PAI and esp32. |
thank you @proasnet - managed to get it working
|
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
Good morning, I try to connect to alarm panel (paradox EVO 192 by serial over ip with a esp32) but I've a problem:
2021-08-14 11:11:11,871 - INFO - PAI.paradox.connections.ip.connection - Connecting. Try 1/3
2021-08-14 11:11:11,988 - INFO - PAI.paradox.connections.connection - Connection established
2021-08-14 11:11:11,990 - INFO - PAI.paradox.paradox - Connecting to Panel
2021-08-14 11:11:17,004 - ERROR - PAI.paradox.paradox - Timeout while connecting to panel. Is an other connection active?
2021-08-14 11:11:17,006 - ERROR - PAI - Unable to connect to alarm
my configuration:
LOGGING_LEVEL_CONSOLE: 20
LOGGING_LEVEL_FILE: 40
CONNECTION_TYPE: IP
SERIAL_PORT: /dev/ttyUSB0
SERIAL_BAUD: 57600
IP_CONNECTION_HOST: 192...*
IP_CONNECTION_PORT: 23
IP_CONNECTION_PASSWORD: paradox
KEEP_ALIVE_INTERVAL: 10
LIMITS:
zone: auto
user: 1-10
door: ''
pgm: 1-5
partition: auto
module: ''
repeater: ''
keypad: ''
key-switch: ''
SYNC_TIME: true
SYNC_TIME_MIN_DRIFT: 120
PASSWORD: '0000'
MQTT_ENABLE: true
MQTT_HOST: core-mosquitto
MQTT_PORT: 1883
MQTT_KEEPALIVE: 60
MQTT_USERNAME: *********
MQTT_PASSWORD: **********
MQTT_HOMEASSISTANT_AUTODISCOVERY_ENABLE: true
COMMAND_ALIAS:
arm: partition all arm
disarm: partition all disarm
MQTT_COMMAND_ALIAS:
armed_home: arm_stay
armed_night: arm_sleep
armed_away: arm
disarmed: disarm
HOMEASSISTANT_NOTIFICATIONS_EVENT_FILTERS:
live,alarm,-restore
live,trouble,-clock
live,tamper
PUSHBULLET_CONTACTS: []
PUSHBULLET_EVENT_FILTERS:
live,alarm,-restore
live,trouble,-clock
live,tamper
PUSHOVER_EVENT_FILTERS:
live,alarm,-restore
live,trouble,-clock
live,tamper
PUSHOVER_BROADCAST_KEYS: []
SIGNAL_CONTACTS: []
SIGNAL_EVENT_FILTERS:
live,alarm,-restore
live,trouble,-clock
live,tamper
GSM_CONTACTS: []
GSM_EVENT_FILTERS:
live,alarm,-restore
live,trouble,-clock
live,tamper
IP_INTERFACE_ENABLE: false
IP_INTERFACE_PASSWORD: paradox
DUMMY_EVENT_FILTERS: []
IP_CONNECTION_BARE: true
how can i solve? Thanks to all!
The text was updated successfully, but these errors were encountered: