chafon-rfid icon indicating copy to clipboard operation
chafon-rfid copied to clipboard

IndexError: bytearray index out of range CF-RU5309

Open ahvahsky2008 opened this issue 4 years ago • 6 comments

Try connect to device by com port. Whats wrong? image

ahvahsky2008 avatar Nov 12 '20 13:11 ahvahsky2008

Another user reported problems with the 53xx devices - see comments on 3966c4. So it's possible these aren't supported with the current code. Unfortunately I don't have one of these readers to test, the ones that have been tested are listed in README.md.

If either you or @Beastmazter have access to the manuals for this device and can post a link here then I can take a look over them to see if there's anything substantially different about them. Otherwise if you get it working via some other means please update this thread.

wabson avatar Nov 12 '20 15:11 wabson

@wabson Sorry, was lost down various rabbit oles then remembered I never got back to you. I do believe the 5300 series will not work, at least mine will not. It's HID, which pyserial does not support. The link to the documentation is http://www.chafon.com/DownLoad.aspx?page=3 The file is 5300 SDK. There are a few possible SDK downloads for this series of readers, however, i am fairly certain this is the best one.

I ended up getting an FM-503 so I could build the reader, antenna and pi into a smaller form factor. I have been using your project here as reference and help along the way. Thanks for making all this. Good luck with your project!

Beastmazter avatar Dec 07 '20 11:12 Beastmazter

I managed to make the correct reading, the manufacturer provided me with the sdk and now the code is in my repository

https://github.com/DomolinBolivia/CF-RU5309-RaspberryPi

SDK https://drive.google.com/drive/folders/1hPM4hObom5JWjDT9XOB34v9EcIeUUnZ6?usp=sharing

DomolinBolivia avatar May 07 '22 16:05 DomolinBolivia

Hello Everyone,

Been a long time since I world on this project, new job took all of my time and brain space. I am setting an alarm to dig through my files to see if I can find the manual for this, I know I had a lot of various files and things. Appreciate the responses. Now that I am happily divorced, I have been wanting to pick this project back up. but we will see, new job is very very demanding.

Have a good one!

On Thu, Nov 12, 2020 at 10:55 AM Will Abson @.***> wrote:

Another user reported problems with the 53xx devices - see comments on 3966c4 https://github.com/wabson/chafon-rfid/commit/3966c47795e70e6f2e7120bdaac51a8259881397. So it's possible these aren't supported with the current code. Unfortunately I don't have one of these readers to test, the ones that have been tested are listed in README.md https://github.com/wabson/chafon-rfid/blob/master/README.md.

If either you or @Beastmazter https://github.com/Beastmazter have access to the manuals for this device and can post a link here then I can take a look over them to see if there's anything substantially different about them. Otherwise if you get it working via some other means please update this thread.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/wabson/chafon-rfid/issues/5#issuecomment-726166198, or unsubscribe https://github.com/notifications/unsubscribe-auth/AQBLPQPFV3F5C7BM4VHOFLDSPQAO3ANCNFSM4TTJJKLQ .

Beastmazter avatar May 10 '22 15:05 Beastmazter

I need to modify and run the single-read.py for reading multiple rfid tags within a time duration (not all at once). When I use a while loop, I found a byte array index error. How can I continuously read tags?

ksandaru avatar Jul 10 '22 05:07 ksandaru

From what I've learned trying to connect my mu904 via serial port to raspberry pi the bytearray index out of range error occurs when empty bytearray is returned/read. So check first that you connection is working properly!

winkoman avatar Feb 27 '23 19:02 winkoman