Hi,
I'm trying to make exactly the same thing with another reader, RC-522.
I was using Mysensor 1.3 and that works for most things but without possibillity to change status from my Vera.
So I decided to turn on 1.4.
I've update my gateway, change the Vera files, delete all nodes and sensors related to Mysensors in Vera. (just keep the MySensorGW Module.
And rewrite MyRFID code...
The problem is this reader is only SPI... But I'm not sure this is here my problem...
The code I'm using now:
MYRFID.ino
So the first problem is when using 1.4, I have make a test with DHT source code, launch node searching... This find 2 modules: One for temp and one for humidity... Those modules are working... I'm just surprized not to see the module "Arduino Node"...
I ve tested with my code and launch node searching, this have just created me the Arduino Node Module and not the Lock module...
When I check the serial debug information on my node I can see:
Setup is starting Up
sensor started, id 1
send: 1-1-0-0 s=255,c=0,t=17,pt=0,l=15,st=ok:1.4b1 (18848a2)
send: 1-1-0-0 s=255,c=3,t=6,pt=1,l=1,st=fail:0
send: 1-1-0-0 s=255,c=3,t=11,pt=0,l=11,st=fail:MYRFID Lock
send: 1-1-0-0 s=255,c=3,t=12,pt=0,l=3,st=fail:1.0
send: 1-1-0-0 s=1,c=0,t=19,pt=0,l=15,st=fail:1.4b1 (18848a2)
Close lock
send: 1-1-0-0 s=1,c=1,t=36,pt=2,l=2,st=fail:0
RF24 initialized and GW contacted
RFID Reader initialized
------- SETUP IS DONE --------
Cardnumber Read : 151612433071
Open lock
send: 1-1-0-0 s=1,c=1,t=36,pt=2,l=2,st=fail:1
Close lock
send: 1-1-0-0 s=1,c=1,t=36,pt=2,l=2,st=fail:0
send: 1-1-255-255 s=255,c=3,t=7,pt=0,l=0,st=fail:
Open lock
send: 1-1-0-0 s=1,c=1,t=36,pt=2,l=2,st=fail:1
Close lock
send: 1-1-0-0 s=1,c=1,t=36,pt=2,l=2,st=fail:0
Open lock
send: 1-1-0-0 s=1,c=1,t=36,pt=2,l=2,st=fail:1
Close lock
send: 1-1-0-0 s=1,c=1,t=36,pt=2,l=2,st=fail:0
Open lock
send: 1-1-0-0 s=1,c=1,t=36,pt=2,l=2,st=fail:1
Close lock
send: 1-1-0-0 s=1,c=1,t=36,pt=2,l=2,st=fail:0
send: 1-1-255-255 s=255,c=3,t=7,pt=0,l=0,st=fail:
Open lock
send: 1-1-0-0 s=1,c=1,t=36,pt=2,l=2,st=fail:1
Close lock
send: 1-1-0-0 s=1,c=1,t=36,pt=2,l=2,st=fail:0
Open lock
So As I understand, as the Sensor node could not receive the ack from the GW, it change back the status of the lock...
Did you have any recommandation? Idea?
Thank you.