debug the HW serial ...

Moderators: grovkillen, Stuntteam, TD-er

Post Reply
Message
Author
drnicolas
Normal user
Posts: 13
Joined: 25 Jul 2021, 17:15

debug the HW serial ...

#1 Post by drnicolas » 25 Jul 2021, 17:21

I am a total newbie, so please excuse my stupid questions.

I want to access a smart power meter (ED300L).
For this , I bought an IR read head and connected TX from my Wemo D1 mini to TX of the read head, RX to RX. Also 3v3 and GND

But I do not see any data.

Is there a way to debug the serial port of my ESP and see if and what data comes in

I am afraid, but at the moment I have no other opportunity to do this

Another question: At the moment my D1 mini is powered via the USB cable. Is that okay? and is the serial port of my ESP usable in this case?
Anyway, my ESP is accessable via the web-interface under its IP
Last edited by drnicolas on 25 Jul 2021, 17:25, edited 1 time in total.

User avatar
Ath
Normal user
Posts: 3416
Joined: 10 Jun 2018, 12:06
Location: NL

Re: debug the HW serial ...

#2 Post by Ath » 25 Jul 2021, 17:24

Have you disabled the Serial port on the Tools/Advanced page? Then any serial input should start working (but logging to the serial port will be disabled).
/Ton (PayPal.me)

User avatar
Ath
Normal user
Posts: 3416
Joined: 10 Jun 2018, 12:06
Location: NL

Re: debug the HW serial ...

#3 Post by Ath » 25 Jul 2021, 17:28

Oh, and you might want to connect the TX of your meter to the RX of the ESP (ESPEasy won't send anything to your meter, so the return signal, ESP-TX to meter-RX, doesn't need a connection).
/Ton (PayPal.me)

drnicolas
Normal user
Posts: 13
Joined: 25 Jul 2021, 17:15

Re: debug the HW serial ...

#4 Post by drnicolas » 25 Jul 2021, 17:32

Okay, I will check tomorrow.
But I have not seen the option so far.

drnicolas
Normal user
Posts: 13
Joined: 25 Jul 2021, 17:15

Re: debug the HW serial ...

#5 Post by drnicolas » 26 Jul 2021, 15:06

Another question:
in case, my smartmeter sends something and my read head can read it, do I see any debug output in the logs ?

User avatar
Ath
Normal user
Posts: 3416
Joined: 10 Jun 2018, 12:06
Location: NL

Re: debug the HW serial ...

#6 Post by Ath » 26 Jul 2021, 15:35

Only in the weblog, available from the webinterface Tools/Log, as the serial log will have to be disabled to allow uncompromised serial communication.

You can connect the read head directly to your serial monitor (usb/serial?) and use some kind of terminal like putty or Microsoft Terminal etc. to see what's sent out. Serial parameters should be as specified in the manual of the read head.
/Ton (PayPal.me)

drnicolas
Normal user
Posts: 13
Joined: 25 Jul 2021, 17:15

Re: debug the HW serial ...

#7 Post by drnicolas » 26 Jul 2021, 16:17

that sounds interesting.
To which pins do I have to connect the read head.
And which settings in the ESP config ?

SOrry for the stupid questions ....

User avatar
Ath
Normal user
Posts: 3416
Joined: 10 Jun 2018, 12:06
Location: NL

Re: debug the HW serial ...

#8 Post by Ath » 26 Jul 2021, 17:00

Assuming your read head has a serial connection, it can be directly connected to your usb/serial adapter, so the data will be directly shown in any terminal app you use on your computer. So nothing to connect or configure on the ESP side, I'd think. Wiring should be similar to how you connected the read head to the ESP though.
Your terminal should be configured to the settings of the read head (most likely 9600 baud, 1 startbit, 8 databits, 1 stop bit and no parity bit).
/Ton (PayPal.me)

Post Reply

Who is online

Users browsing this forum: Ahrefs [Bot] and 19 guests