read rx pin

Moderators: grovkillen, Stuntteam, TD-er

Post Reply
Message
Author
bledad
Normal user
Posts: 82
Joined: 23 Nov 2020, 10:57
Location: France

read rx pin

#1 Post by bledad » 08 Oct 2021, 15:48

Hello ,
i try read rx pin , but nothing
i enable serial port , put baud rate
Serial Log Level :debug dev
and nothing read in log
i am with esp12f and 20115 - Mega ( pygit2_not_installed !!! )

i've try with raspberry and it's ok

I do not know how to do
can you help please ?

TD-er
Core team member
Posts: 8643
Joined: 01 Sep 2017, 22:13
Location: the Netherlands
Contact:

Re: read rx pin

#2 Post by TD-er » 08 Oct 2021, 20:44

The RX pin on the ESP module is for the ESP to receive data.
You should check the TX pin on the ESP module (connected to the RX of your device that's trying to read data)

bledad
Normal user
Posts: 82
Joined: 23 Nov 2020, 10:57
Location: France

Re: read rx pin

#3 Post by bledad » 09 Oct 2021, 15:54

ok, the tx ( attiny13 ) go to rx esp12 , with converter +5v to +3.3v .
howto i can see read ?
on log with " Serial Log Level :debug dev" ??
thank's

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

Re: read rx pin

#4 Post by Ath » 09 Oct 2021, 16:26

What are you trying to achieve? (as in: the big picture)
/Ton (PayPal.me)

bledad
Normal user
Posts: 82
Joined: 23 Nov 2020, 10:57
Location: France

Re: read rx pin

#5 Post by bledad » 09 Oct 2021, 16:30

i try read rfid with this
rfid.jpg
rfid.jpg (306.57 KiB) Viewed 6060 times

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

Re: read rx pin

#6 Post by Ath » 09 Oct 2021, 17:13

I can't read that language, nor select it to drop in Google translate, but if you mention RFID, I can point you directly to 4 RFID adapters already supported by ESPEasy:
Wiegand RFID reader (Wiegand serial protocol)
PN532 RFID reader (I2C bus)
ID12LA/RDM6300 RFID reader (Standard serial port, no documentation available, unfortunately, but this should be useful)
MRFC522 RFID reader (SPI bus)
/Ton (PayPal.me)

bledad
Normal user
Posts: 82
Joined: 23 Nov 2020, 10:57
Location: France

Re: read rx pin

#7 Post by bledad » 09 Oct 2021, 17:29

I can't read that language, nor select it to drop in Google translate
because i cannot pdf file attachments

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

Re: read rx pin

#8 Post by Ath » 09 Oct 2021, 17:32

Reading from the serial port can be done via the Serial Server plugin (available in Normal and Test builds), or the Serial Proxy plugin (available in the test_C builds).

But then you still have to 'decode' the output of the module to extract the RFID card scanned.
/Ton (PayPal.me)

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

Re: read rx pin

#9 Post by Ath » 09 Oct 2021, 17:38

Maybe you need to activate (or add) a pull-up resistor on the TX output from that module, as it is open-collector, so it won't pull the signal to high. And the pull-up installed in the ESP is quite weak, so adding a 4k7 or 10k resistor might help.

Please be aware that ESP's are not 5V compatible (I think a RPi is), so if you have used that module with 5V on an ESP you may have damaged that pin already...
/Ton (PayPal.me)

TD-er
Core team member
Posts: 8643
Joined: 01 Sep 2017, 22:13
Location: the Netherlands
Contact:

Re: read rx pin

#10 Post by TD-er » 09 Oct 2021, 23:06

Ath wrote: 09 Oct 2021, 17:38 [...]
Please be aware that ESP's are not 5V compatible (I think a RPi is), so if you have used that module with 5V on an ESP you may have damaged that pin already...
About the 5V tolerance of the ESP, there is still some debate.
The R'pi is absolutely NOT 5V tolerant.

bledad
Normal user
Posts: 82
Joined: 23 Nov 2020, 10:57
Location: France

Re: read rx pin

#11 Post by bledad » 10 Oct 2021, 09:02

bledad wrote: 09 Oct 2021, 15:54 ok, the tx ( attiny13 ) go to rx esp12 , with converter +5v to +3.3v .
howto i can see read ?
on log with " Serial Log Level :debug dev" ??
thank's
thank 's , but this is not the subject because ( TX attiny > 2.2k > RX esp > 3.3k ground )

so how to i can see read ?
on log with " Serial Log Level :debug dev" ??
even if what comes out is incomprehensible , how to read

bledad
Normal user
Posts: 82
Joined: 23 Nov 2020, 10:57
Location: France

Re: read rx pin

#12 Post by bledad » 11 Oct 2021, 10:53

please can you tell me on which pin plug rdm6300 > esp8266 ( d1 wemos )?
thank

User avatar
ThomasB
Normal user
Posts: 1064
Joined: 17 Jun 2018, 20:41
Location: USA

Re: read rx pin

#13 Post by ThomasB » 11 Oct 2021, 23:06

please can you tell me on which pin plug rdm6300 > esp8266 ( d1 wemos )?
I've never used the RDM6300 but I quickly reviewed the plugin's source code. I see that it uses the default ESP8266 serial port. So your RDM6300 serial output connects to ESP8266 "RX" pin.

IMPORTANT: Along with installing the plugin, you MUST go to ESPEasy's web interface and set Tools->Advanced-SerialLog to "NONE."
No need to change the baud rate, the plugin does that (uses 9600).

Also, I recall that some versions of the D1 Mini have omitted the "isolation" resistor that belongs between ESP8266's RX pin and USB chip's TX pin. If this resistor (typically 470 ohms) is omitted the external RX signal will not work correctly. That's because without it the USB chip's driven TX signal will attenuate the external RX signal.

If this resistor is already present then there is another issue to resolve; I suspect your external resistor attenuator level convertor will be incompatible in this situation. Instead, you should use a "real" 5V->3.3V logic interface (IC, transistors, etc).

However, I'm 99.9% convinced that the ESP8266 is 5V tolerant. So if it was me I would skip the level conversion and just directly connect the TX output pin to the ESP8266 RX input pin. Do this at your own risk; My good luck doing that sort of thing to the ESP8266 might not be the same for you.

Beyond this I don't have any other suggestions to help you achieve success.

- Thomas

bledad
Normal user
Posts: 82
Joined: 23 Nov 2020, 10:57
Location: France

Re: read rx pin

#14 Post by bledad » 12 Oct 2021, 14:56

thank you Thomas
i will use a esp32 and micropython , I move faster because I can read my rfid on uart2 ,

Post Reply

Who is online

Users browsing this forum: No registered users and 14 guests