Hello Community,
First time here.
I am interfacing a M7e Hecto with a ESP32. The M7e Hecto works fine when using USB and reads the rfid tags well.
When I try to use the PTH UART serial connection and use the Constant Read sketch, I get the message “Module failed to respond. Please check wiring”.
I have the following connections between the two:
-
ESP32 (Tx, Rx) connected to M7e Hecto (Rx, Tx).
-
M7e Hecto powered by a separate power supply - 5V and GND connected.
-
Connected GNDs together (3V3 and 5V supplies).
I have verified that the Arduino Library version is the latest 1.0.2.
The slide switch is on SER position.
“Constant Read” sketch fails with the message “Module Failed to Respond - Check Wiring”.
Here are the first few lines of the sketch:
/*
Reading multiple RFID tags, simultaneously!
By: Nathan Seidle @ SparkFun Electronics
Date: October 3rd, 2016
Constantly reads and outputs any tags heard
If using the Simultaneous RFID Tag Reader (SRTR) shield, make sure the serial slide
switch is in the ‘SW-UART’ position
*/
#include “SparkFun_UHF_RFID_Reader.h”
RFID rfidModule;
// By default, this example assumes software serial. If your platform does not
// support software serial, you can use hardware serial by commenting out these
// lines and changing the rfidSerial definition below
//#include <SoftwareSerial.h>
//SoftwareSerial softSerial(2, 3); //RX, TX
// Here you can specify which serial port the RFID module is connected to. This
// will be different on most platforms, so check what is needed for yours and
// adjust the definition as needed. Some examples are provided below
//#define rfidSerial softSerial // Software serial (eg. Arudino Uno or SparkFun RedBoard)
#define rfidSerial Serial1 // Hardware serial (eg. ESP32 or Teensy)
#define RXD1 16
#define TXD1 17
// Here you can select the baud rate for the module. 38400 is recommended if
// using software serial, and 115200 if using hardware serial.
//#define rfidBaud 38400
#define rfidBaud 115200
//#define moduleType ThingMagic_M6E_NANO
#define moduleType ThingMagic_M7E_HECTO
void setup()
{
Serial.begin(115200);
Serial1.begin(115200, SERIAL_8N1, RXD1, TXD1);
while (!Serial1); //Wait for the serial port to come online
if (setupRfidModule(rfidBaud) == false)
{
Serial.println(F(“Module failed to respond. Please check wiring.”));
//Serial.println(“setupRfidModule returned False”);
while (1); //Freeze!
}
Can someone please help me in identifying the issue.
Thanks,






