SparkFun Simultaneous RFID Reader - M6E Nano

I just bought a product recently. I am trying to connect with ESP32, but not having any success (using software serial, I2C). I also have a hard time finding ways to communicate through I2C and SPI.

On the other side, I have a Raspberry Pi board and I am trying to install the ThigMagic Mercury API-python wrapper, not have enough material to make it a success.

Please help me to solve this issue.

Thank you

There is no I2C or SPI interface on the M6E shield so you’re not going to have much luck with those.

I’d suggest using an Uno V3 and a windows computer for troubleshooting before attempting to port over to ESP.

Hello

Thank you for your answer. so why does that board have I2C and SPI pins ?

Right now, I am trying Raspberry Pi 3b+ with SparkFun Simultaneous RFID Reader - M6E Nano. I tried different resources to install several libraries, and packages in Python. But when I import mercury and use it’s function, python is not able to find any.

Please provide a pathway to install and run this board with raspberry pi.

THank you

Thank you for your answer. so why does that board have I2C and SPI pins ?

It doesn't.

Have a look at https://github.com/paulvha/ThingMagic for different utilities.

To get started on Raspberry PI look at https://github.com/paulvha/ThingMagic/t … ingstarted.

Look at post viewtopic.php?f=118&t=59095&p=239409&hi … on#p239187 for Python info.

YellowDog:

Thank you for your answer. so why does that board have I2C and SPI pins ?

It doesn't. [/quote]

SCL and SDA are given on the board next to Li-ion battery port

https://www.sparkfun.com/products/14066

Those are just silkscreen labels for the Arduino pins under the shield, the shield and M6E doesn’t actually use them. Check the schematic diagram for the shield and that will show you which pins are actually in use.

https://cdn.sparkfun.com/datasheets/Sen … Reader.pdf

paulvha:
Have a look at https://github.com/paulvha/ThingMagic for different utilities.

To get started on Raspberry PI look at https://github.com/paulvha/ThingMagic/t … ingstarted.

Look at post https://forum.sparkfun.com/viewtopic.ph … on#p239187 for Python info.

Thank you for sources…

To get started on Raspberry PI look at https://github.com/paulvha/ThingMagic/t … rted…I am taking look at this, should I download entire repository or just getting started folder for my raspberry pi?

Also, I had installed python-mercuryapi, I am getting error here see the attached screen shot

The screenshots are a bit hard to see.

How do you connect to the Raspberry Pi?

Is there a device /dev/ttyUSB0?

Do you have the right permissions ?

That’s what my “IDLE Shell” showing me the result…

Traceback (most recent call last):

File “/home/rohan/python-mercuryapi/test.py”, line 6, in

reader = mercury.Reader(“tmr:///dev/ttyUSB0”, baudrate=115200)

TypeError: No such file or directory

How do you connect to the Raspberry Pi?
- I have connected M6E-NANO board using serial (Rx1, Tx0)…to Raspberry pi 3b+ 5V, GND, GPIO 14 (TXD0), GPIO15(RxD0)
Is there a device /dev/ttyUSB0?
- Yes it’s connected to it.
Do you have the right permissions ?
- Yes I check the configuration of Raspberry pi, it’s ON. (UART is NO)

You have not connected to USB0 but to the serial connection. If you connect the nano with a serial/USB board, it will become a USB device.

On a Pi3 the UART0 is used for Bluetooth (which you will have to disable). Next to that the console output is also standard redirected to serial which you will have to disable with raspi-config. See https://pinout.xyz/pinout/pin8_gpio14/#

Then select the serial0 or serial1 like :

reader = mercury.Reader(“tmr:///dev/serial1”, baudrate=115200)

Perfect I made all changes. Screen shot attached.

There is no error, but not reading my tags.

My physical connections :-

Pi3 ----- Nano

5V<—>5V

GND<—>GND

GPIO14<—>Pin1 Rx(next to buzzer)

GPIO15<—>Pin2 Tx(Next to buzzer)

Switch position…HW-UART

Seems like the power from Pi3 is not enough…?

I am using the same tag sold by sparkfun UHF tags.

looks like progress… but I do not see the mode printed nor the supported regions. Not sure the communication with the board is working.

I am puzzled by the raspi-config output. Looks completely different than the latest version output of raspi-config.

HW connection.

If the switch is set to HWUART

connect pin14 (raspberry Pi tx) to the Nano RX (pin 0)

connect pin15 (raspberry Pi rx) to the Nano TX (Pin 1)

OR even better (The FTDI does not use the UART switch)

connect pin14 (raspberry Pi tx) to the Nano FTDI RX

connect pin15 (raspberry Pi rx) to the Nano FTDI TX

Software

Try to read with power of 500 and put the tag nearly on top of the on-board Nano antenna

Trying using one of the c-samples. the Sources are in …/c/src/samples and after being compiled in …/c/src/api

I made the hardware connection as you mentioned.

Raspberry Pi to FTDI

Put my card/tag right next to the Reader and try to read…

Not sure what does it mean to use c-samples ? I can see all ".c and .h " files in …/c/scr/samples. Do you mean import as a package in my program, Like including the library in the Arduino program…

Did you install and compiled the mercuryAPI library on the RaspberryPi ? The python part is just a wrapper around the mercuryAPI

Ohhh now I see, it’s two different things.

No, I think I downloaded and haven’t installed this. Let me check for installation…and get back to you

I am not sure I follow

https://github.com/gotthardp/python-mercuryapi

and

https://pypi.org/project/python-mercuryapi/0.5.3/

I think I still need to install…

Photos showing how things are connected to your M6E board would be helpful. And a photo of the bottom of the board as well.

I am trying to install MercuryAPI on my Raspberry Pi3, and while installing I am facing some errors. Please help me to figure it out.

Please see the attached Screenshot.

I am just following the steps “ThingMagic-MercuryAPI-Quick-Start-Guide.pdf”, the command works for me this command( . /readasync tmr:///dev/ttyUSB0 –ant 1 ) is not working and showing me “Error connecting reader: No such file or directory”.

Help me figure it out, please

Sure, here are the connection photos of my hardware. The tag is right next to the antenna, as shown in the picture.