Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problem reading tags with RDM6300 #587

Closed
teodino93 opened this issue Mar 28, 2023 · 10 comments
Closed

Problem reading tags with RDM6300 #587

teodino93 opened this issue Mar 28, 2023 · 10 comments

Comments

@teodino93
Copy link
Contributor

Hi,
I'm using the dev branch and flashed the project on a D1 Mini, the RDM6300 TX is connected to the RX of the board and VCC and GND is shared between the two boards.
I can read the tags with an example sketch, but with esp-rfid nothing comes on the serial.
I tried to print the serial output from the genericRead function in rfid.esp and it's always 0, if I change the baud rate of the serial port to 9600 something is coming out but still isn't reading them as tags.

If you need more information feel free to ask.
Thank you

@teodino93 teodino93 changed the title Problema reading tags with RDM6300 Problem reading tags with RDM6300 Mar 28, 2023
@matjack1 matjack1 added this to the V2 milestone Mar 28, 2023
@matjack1
Copy link
Collaborator

hey @teodino93 can you share the sketch that works? Maybe we can start from there :)

Unfortunately I don't have a RDM6300 to test, so I need to rely on you helping me out, OK?

If there's anyone else that can help it would be really helpful, by the way.

@matjack1
Copy link
Collaborator

@teodino93 have a look at this: #558 might give you a hint?

@matjack1
Copy link
Collaborator

Actually, have you seen the doc:

immagine

It looks like you should connect RDM6300 TX to GPIO-03, right?

Let me know!

@teodino93
Copy link
Contributor Author

Hi!
I have used the example sketch on this library: https://github.com/arduino12/rdm6300
In my D1 mini the GPIO-3 is the RX pin, shared with the HardwareSerial.
The pin is correct because it reads a series of 0 when i approach the tag, but the RDM6300 needs a serial of 9600 baud, if I change it in the main code it reads the ID but the code after the but RFIDr.Available() is still false.
Can we think about using a different serial (or implementing that library) for reading the RDM6300?

@matjack1
Copy link
Collaborator

hey @teodino93 I saw the example, and it's using a different library and different approach. Probably would be better to switch to that library, or at least change approach in the serial usage, as they are doing in the example.

More information on the two serials here: https://arduino-esp8266.readthedocs.io/en/3.1.2/reference.html#serial if someone can help it would be nice! :) I'll give it a try at some point, but any help is appreciated.

@teodino93
Copy link
Contributor Author

Perfect! I think I can test something on saturday, I'll be in touch if i achieve something!

@teodino93
Copy link
Contributor Author

I've created the PR #591 to fix the problem, no need for the library i linked, we can use a SoftwareSerial just for the RDM6300

@matjack1 matjack1 removed this from the V2 milestone Oct 25, 2023
@matjack1 matjack1 added this to the V2 milestone Jan 16, 2024
@timknowlden
Copy link

I've created the PR #591 to fix the problem, no need for the library i linked, we can use a SoftwareSerial just for the RDM6300

How can i test? Im also using UART to send a number over serial. However my use case is from an rf receiver. I cant see any data being received on the esprfid when connected to GPIO4 or RX

@matjack1
Copy link
Collaborator

Hey @timknowlden are you using the code in the PR #591?

I've had successfully tested that PR. It needed a bit more polish, but it was working. Are you sending data at the right baud rate? You need to send data at 9600.

If you want to help on the PR I'm happy to guide you, it needs to add a bit of configuration and a bit of cleaning :)

@matjack1
Copy link
Collaborator

Fixed here: #655

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants