Date issues?

6 views
Skip to first unread message

David M. N. Bryan

unread,
Feb 21, 2013, 3:25:59 PM2/21/13
to open-access-control

Hey folks!  I've got everything working, except the year- its dropping the last digit... ideas?

13:28:53  2/21/1 THU 13:28:53  2/21/1 THU User 116 authenticated.

Also, I want to be able to correlate the number on the key fobs with the number in the system- like if I enter in the full digits of the tag, the system should trans code that into the tag number and store it.  Ideas?

Code for the mega is here: http://code.google.com/p/open-access-control/source/browse/trunk/Open_Access_Control/Open_Access_Control_Mega_Hack_Factory_v3.ino

-David


Will Bradley

unread,
Feb 21, 2013, 3:56:42 PM2/21/13
to open-acce...@googlegroups.com

There's some kind of conversion routine like dividing or multiplying by 2 and maybe adding an offset of 1. I think each manufacturer has their own system.

--
You received this message because you are subscribed to the Google Groups "Open Access Control" group.
To unsubscribe from this group and stop receiving emails from it, send an email to open-access-con...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

Scott Bailey

unread,
Feb 21, 2013, 4:13:06 PM2/21/13
to open-acce...@googlegroups.com
I'll start with a recommendation: crank up your warnings!  -Wall then -Werror so you CANT ignore the errors.  HUGE.

Now I have a guess.  I'm guessing year is NOT a uint8_t.  Check the spec for the RTC lib and see what params it takes. 

And let us know what the fix was.

SB  
--
Scott Bailey

David M. N. Bryan

unread,
Feb 26, 2013, 4:55:35 AM2/26/13
to open-acce...@googlegroups.com
Found my issue- Had this set to cmdString[4][9] to the right value.... I'll commit it soon.  It was crashing and burning when trying to read to much data.

void readCommand() {                                              

  uint8_t stringSize=(sizeof(inString)/sizeof(char));                   
  char cmdString[7][9];                                             // Size of commands (7=number of items to parse, 9 = max length of each)


-David


Reply all
Reply to author
Forward
0 new messages