RFID ICODE FLOWCODE 6.1 avr

A forums to allow bugs and problems with Flowcode v6 to be reported and resolved.

Moderator: Benj

coffy
Posts: 24
Joined: Tue Feb 12, 2013 5:31 pm
Location: france
Been thanked: 3 times
Contact:

RFID ICODE FLOWCODE 6.1 avr

Postby coffy » Sun Nov 09, 2014 7:05 pm

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

User avatar
Benj
Matrix Staff
Posts: 14371
Joined: Mon Oct 16, 2006 10:48 am
Location: Matrix TS Ltd
Has thanked: 4447 times
Been thanked: 4146 times
Contact:

Re: RFID ICODE FLOWCODE 6.1 avr

Postby Benj » Mon Nov 10, 2014 5:28 pm

Hello Bruno,

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

coffy
Posts: 24
Joined: Tue Feb 12, 2013 5:31 pm
Location: france
Been thanked: 3 times
Contact:

Re: RFID ICODE FLOWCODE 6.1 avr

Postby coffy » Mon Nov 10, 2014 6:02 pm

ok,

the same file flowcode 4 works very well on my cards,
program card reading icode
http://tsin.langevin-la-seyne.fr/SIN/serrure-codee-rfid.html
bruno
Attachments
UID.fcfx
(8.93 KiB) Downloaded 69 times
Last edited by coffy on Mon Nov 17, 2014 7:27 pm, edited 1 time in total.

User avatar
LeighM
Matrix Staff
Posts: 1913
Joined: Tue Jan 17, 2012 10:07 am
Has thanked: 460 times
Been thanked: 646 times
Contact:

Re: RFID ICODE FLOWCODE 6.1 avr

Postby LeighM » Tue Nov 11, 2014 3:41 pm

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?)

coffy
Posts: 24
Joined: Tue Feb 12, 2013 5:31 pm
Location: france
Been thanked: 3 times
Contact:

Re: RFID ICODE FLOWCODE 6.1 avr

Postby coffy » Tue Nov 11, 2014 5:06 pm

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

User avatar
LeighM
Matrix Staff
Posts: 1913
Joined: Tue Jan 17, 2012 10:07 am
Has thanked: 460 times
Been thanked: 646 times
Contact:

Re: RFID ICODE FLOWCODE 6.1 avr

Postby LeighM » Tue Nov 11, 2014 5:23 pm

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.

coffy
Posts: 24
Joined: Tue Feb 12, 2013 5:31 pm
Location: france
Been thanked: 3 times
Contact:

Re: RFID ICODE FLOWCODE 6.1 avr

Postby coffy » Tue Nov 11, 2014 5:49 pm

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

User avatar
LeighM
Matrix Staff
Posts: 1913
Joined: Tue Jan 17, 2012 10:07 am
Has thanked: 460 times
Been thanked: 646 times
Contact:

Re: RFID ICODE FLOWCODE 6.1 avr

Postby LeighM » Wed Nov 12, 2014 4:48 pm

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
Attachments
RFID.fcpx
(11.45 KiB) Downloaded 71 times
AVR_CAL_UART.c
(61.01 KiB) Downloaded 65 times

coffy
Posts: 24
Joined: Tue Feb 12, 2013 5:31 pm
Location: france
Been thanked: 3 times
Contact:

Re: RFID ICODE FLOWCODE 6.1 avr

Postby coffy » Wed Nov 12, 2014 6:25 pm

hi,
ok, I just tested and now it works very well. :D :D
thank you
bruno
These users thanked the author coffy for the post (total 2):
Benj (Wed Nov 12, 2014 6:29 pm) • LeighM (Thu Nov 13, 2014 10:05 am)
Rating: 10.53%