AdamLaurie / RFIDler

RFIDler - Software defined RFID (LF) Reader/Writer/Emulator
Other
450 stars 97 forks source link

Save reading, load reading, small bitcount calculator #17

Closed holiman closed 9 years ago

holiman commented 9 years ago
#./rfidler.py /dev/RFIDler 'set tag askraw' 'potset h 150' 'set fc 745' 'set rate 33' dump 6000
sending 'SET TAG ASKRAW'
sending 'POTSET H 150'
sending 'SET FC 745'
sending 'SET RATE 33'
Wrote dump to dump_20141121-075357.xml
AdamLaurie commented 9 years ago

Thanks for this - looks useful, but you can't use the command "DUMP" as it conflicts with an existing command in RFIDler itself. I would suggest "STORE". Also, I would prefer it if the command allowed filename prefix. The auto adding of time/datestamp is good, but you need to be able to specify the path and base filename.

holiman commented 9 years ago

I've fixed that now, and also fixed a bug where the three first ANALOGUE values were overwriten. I also started an autocorrelation graph, but that is commented out, since I haven't gotten it to work quite as it should.

holiman commented 9 years ago

Oh, and on another note.. I don't quite see how the 'scale' - factor in analogue.c was supposed to work. Does it do what you intended it to do ? It looks like you had in mind to make 'scale' a float, but in order for that to function properly, you'd probably be better off implementing a sample interpolator also. Right now, the receiver happily plots 9000 points, but only 4500 will be filled with data.

AdamLaurie commented 9 years ago

Scale is basically using a fixed size array to store data, so simply discards samples as appropriate. It would be better to average them somehow, but I was worried about this affecting the real-time nature of the data collection.