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

Increasing range of MFRC522 #11

Open
kevindekemele opened this issue Oct 15, 2019 · 2 comments
Open

Increasing range of MFRC522 #11

kevindekemele opened this issue Oct 15, 2019 · 2 comments

Comments

@kevindekemele
Copy link

kevindekemele commented Oct 15, 2019

Hello,

In the repo for the python version they claim to have increased the range:
mxgxw/MFRC522-python#30

How can this be done with this module?

I tried:

First I logged the byte that sets the antenna gain
console.log(this.readRegister(CMD.RFCfgReg)) which returns 72.
According to the datasheet of MRFC522, 72 corresponds to 33db.

I tried putting it on 112 (which is 48db) with

this.writeRegister(CMD.RFCfgReg, 0x07 << 4);

in index.js in the function reset();

But If I try to read the same byte later, again with
console.log(this.readRegister(CMD.RFCfgReg)) it still logs 72!

How do I increase the gain?

Thanks

@firsttris
Copy link
Owner

hello @kevindekemele
i say probably yes. but how is another question.
most of us do not have more knowledge then you have.

@crimson589
Copy link

Hello,

In the repo for the python version they claim to have increased the range:
mxgxw/MFRC522-python#30

How can this be done with this module?

I tried:

First I logged the byte that sets the antenna gain
console.log(this.readRegister(CMD.RFCfgReg)) which returns 72.
According to the datasheet of MRFC522, 72 corresponds to 33db.

I tried putting it on 112 (which is 48db) with

this.writeRegister(CMD.RFCfgReg, 0x07 << 4);

in index.js in the function reset();

But If I try to read the same byte later, again with
console.log(this.readRegister(CMD.RFCfgReg)) it still logs 72!

How do I increase the gain?

Thanks

Hey @kevindekemele did you have any further tries with this? I tried this and didn't notice any difference with the read range, on my end it seems to be writing successfully since reading it returns the new value.

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

No branches or pull requests

3 participants