ascii conversion help needed


Results 1 to 13 of 13

Threaded View

  1. #3
    Join Date
    Jun 2005
    Location
    Up the bush, Western Plains, NSW Au
    Posts
    216


    Did you find this post helpful? Yes | No

    Thumbs up

    G'day Darrel,
    I have done a bit more on this, and finally got some on screen debugging done.
    What actually comes in is: 0,4,1,4,3,B,B,C,E,6 which I am sending off to EEPROM as 30,34,31,34,33,42,42,43,45,36 which is the ascii of the first lot, correct??
    I have wondered how to send off to EEPROM 0,4,1,4 etc as 04,14, etc making only 5 bytes in EEPROM rather than 10 with half the space used.
    Ending up with 04,14,3B,BC,E6 the decoded ascii for which are all sorts of things. Thus getting back to my first question, getting some sort of decimal number formula that could be used with pretty much any 10 input characters to produce unique values for each.
    I am reading the serial numbers off RFID tags and want to be able to say that card with serial number 04143BBCE6 is user number 356 (or something easily digested)
    As a follow up to that, it would be real good to say that card serial 3BBC67467C is user 1, card 0414BCCD65 is user 2 etc, up to only 7 users for each system.
    Is this confusing you as much as it is me??
    I have played with placing the data in fixed locations in EEPROM, like this. To program the cards in to the thing at first use: Location 1 holds the card serial number in the full 30,34,31, etc format. Location 2 which is 16 further down the eeprom holds the second card's serial. Location 3, another 16 further down holds the third card's serial etc...right down to Location 14 or so, which is the eeprom's maximum space.
    If I could use the half length serial numbers, then I could hold twice the number of cards and therefore users as well as making it easier to compare a newly read card with memory to see if a valid card was read.
    Boy, I'm starting to waffle now, it's getting late.
    PM
    Last edited by muddy0409; - 27th December 2006 at 13:42.

Similar Threads

  1. ASCII to Long conversion
    By TerdRatchett in forum mel PIC BASIC Pro
    Replies: 6
    Last Post: - 6th March 2009, 00:43
  2. A/D conversion problem in 18F2520, 2523, 2550 etc.
    By selimkara in forum mel PIC BASIC Pro
    Replies: 9
    Last Post: - 10th March 2008, 17:26
  3. SerIn2 ASCII Conversion
    By rwskinner in forum mel PIC BASIC Pro
    Replies: 12
    Last Post: - 4th March 2008, 22:41
  4. ASCII Viewer Needed
    By sougata in forum mel PIC BASIC Pro
    Replies: 7
    Last Post: - 19th January 2008, 06:29
  5. Conversion of 10-bit word into ASCII
    By Barry Johnson in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 16th January 2005, 15:26

Members who have read this thread : 0

You do not have permission to view the list of names.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts