Skip to content

ESP32 seems RX is ok but not TX #29

@Maigre

Description

@Maigre

Hi,
i am trying to wire the RFID module to an ESP32 devkit.
I use a BSS138 level shifter (and also tried with a 4050 level shifter)

I can receive communication from the RFID module, but any attempt to send seems to fail.

Code:
`#include <Arduino.h>
#include <SparkFun_UHF_RFID_Reader.h>

RFID nano;

void setup()
{
Serial.begin(115200);
nano.enableDebugging(Serial);

Serial1.begin(115200);
nano.begin(Serial1);
}

void loop()
{
nano.getVersion();
}`

The log says:
sendCommand: [FF] [00] [03] [1D] [0C]
Time out 1: No response from module

If i reset the RFID module by grounding enable pin i can see:
sendCommand: [FF] [00] [03] [1D] [0C]
response: [FF] [14] [04] [00] [00] [14] [12] [08] [00] [30] [00] [00] [02] [20] [22] [08] [04] [01] [0B] [01] [25] [00] [00] [00] [10]
Wrong opcode response

which i guess is the firmware version sent at boot (as mentioned in examples).
The "wrong opcode response" is logical since it was asking for getVersion and got something else instead.
It shows that RFID -> ESP32 serial is working.

So it seems that my ESP32 can receive data from the module,
but any command sent does timeout without answer...

Any clue ?
Thanks !

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions