Page 1 of 1

RFID ICODE FLOWCODE 6.1 avr

Posted: Sun Nov 09, 2014 7:05 pm
by coffy
FLOWCODE AVR 4 program works very well with atmega324p (icode).

Flowcode 6.1 AVR bug routines for reading and writing blocks (icode) :evil: , can you solve this problem
thank you.
BRUNO

Re: RFID ICODE FLOWCODE 6.1 avr

Posted: Mon Nov 10, 2014 5:28 pm
by Benj
Hello Bruno,

Please can you post a program that demonstrates the problem and we will look into it for you.

Re: RFID ICODE FLOWCODE 6.1 avr

Posted: Mon Nov 10, 2014 6:02 pm
by coffy
ok,

the same file flowcode 4 works very well on my cards,
program card reading icode
http://tsin.langevin-la-seyne.fr/SIN/se ... -rfid.html
bruno

Re: RFID ICODE FLOWCODE 6.1 avr

Posted: Tue Nov 11, 2014 3:41 pm
by LeighM
Hi,
I notice that you are printing the contents of 4 bytes of the card as a string.
Do you have a null terminated string already programmed into the card?
What results are you getting (versus what you expect) with this program?
(e.g. what does it display? what status LEDs do you get on Port B?)

Re: RFID ICODE FLOWCODE 6.1 avr

Posted: Tue Nov 11, 2014 5:06 pm
by coffy
hi,
I wrote "2012" in Section 5 with flowcode 4 on the card icode

when reading I do not have 134(0x86) on port B
icode each card gives me a different status code (never 134(0x86)), the macro blocks reading does not work.

in flowcode 4 avr with the same program I read "2012" without problem, flowcode 6 is bugged in Avr :evil:
bruno

Re: RFID ICODE FLOWCODE 6.1 avr

Posted: Tue Nov 11, 2014 5:23 pm
by LeighM
Have you got CTS pin connected?
What status LEDs do you get when a card is present?
We''ll try and repeat your tests with an AVR setup.

Re: RFID ICODE FLOWCODE 6.1 avr

Posted: Tue Nov 11, 2014 5:49 pm
by coffy
HI,
Getrfiduid-> port b: 134 ok.
ReadRFIDBlock (5,0)-> port b : not 134 ( not ok ).

No wiring problem (cts) for works with flowcode 4 avr
bruno

Re: RFID ICODE FLOWCODE 6.1 avr

Posted: Wed Nov 12, 2014 4:48 pm
by LeighM
Hi Bruno,
Thanks for the bug report.
Turned out to be a receiver timeout bug in the AVR CAL UART code (due to compiler optimisations).
But in the process of resolving the issue I made some improvements to the RFID component too.
Both updates attached.
Thanks and regards,
Leigh

Re: RFID ICODE FLOWCODE 6.1 avr

Posted: Wed Nov 12, 2014 6:25 pm
by coffy
hi,
ok, I just tested and now it works very well. :D :D
thank you
bruno