how much info in 88 bytes?

Discussion in 'other software & services' started by HURST, Apr 30, 2008.

Thread Status:
Not open for further replies.
  1. HURST

    HURST Registered Member

    Joined:
    Jul 20, 2007
    Posts:
    1,419
    Hi

    I need to know roughly how much info can be squeezed into 88 bytes...
    numbers, chars, etc..

    I can't find an answer in google...
     
  2. WYBaugh

    WYBaugh Registered Member

    Joined:
    Jan 23, 2003
    Posts:
    122
    Location:
    Florida
    What is the processor of the machine your running this on? Is it 32 or 64 bit?

    If 32 then an int is 4 bytes. So you could save a -2147483648 through 2147483647 number in the 4 bytes.

    A character should be 1 byte so you could store a string of 88 bytes.

    Here's a chart I found that looks to be UNIX based but may help you in your search:

    Char_t ............. Signed Character 1 byte
    UChar_t ............ Unsigned Character 1 byte
    Short_t ............ Signed Short integer 2 bytes
    UShort_t ........... Unsigned Short integer 2 bytes
    Int_t .............. Signed integer 4 bytes
    UInt_t ............. Unsigned integer 4 bytes
    Long_t ............. Signed long integer 8 bytes
    ULong_t ............ Unsigned long integer 8 bytes
    Float_t ............ Float 4 bytes
    Double_t ........... Float 8 bytes
    Text_t ............. General string
    Bool_t ............. Boolean (0=false, 1=true)
    Byte_t ............. Byte (8 bits)
    Version_t .......... Class version identifier
    Option_t ........... Option string
    Ssiz_t ............. String size

    Edit: Just wrote a quick C# program and the values above jive.
     
    Last edited: Apr 30, 2008
  3. HURST

    HURST Registered Member

    Joined:
    Jul 20, 2007
    Posts:
    1,419
    Actually I need to know how long can a numer or an alfanumeric string be, on a 88 bytes RFID tag.

    Thanks for your answer BTW
     
  4. WYBaugh

    WYBaugh Registered Member

    Joined:
    Jan 23, 2003
    Posts:
    122
    Location:
    Florida
    RFID....will need to dig into that
     
  5. WYBaugh

    WYBaugh Registered Member

    Joined:
    Jan 23, 2003
    Posts:
    122
    Location:
    Florida
    Here's a breakdown of a 96 bit RFID:

    Header, which is 8 bits and is common for all SGTIN-96 tags
    Filter, which is three bits and specifies if the tagged object is an item, case or pallet
    Partition, which is three bits and indicates how the subsequent fields are divided to get the correct data for each
    Company Prefix, which is 20-40 bits (depending on the Partition) and contains the company's EAN.UCC Company Prefix
    Item Reference, which is 24-4 bits (depending on the Partition) and contains the item's GTIN item reference number
    Serial Number, which is 38 bits and contains the item's unique serial number


    Found here: http://www.devx.com/enterprise/Article/32251


    Here's another example:

    Text Encoding Example:

    The following VB code encodes a text string into a 96 bit RFID tag. Up to 11 characters may be encoded in a 96 bit tag; 88 bits are used to encode text (8 bits per character).

    string Name = "John Smith"
    rfidWriter.DataToEncode = "~n0080~t088" & Name


    From: http://www.idautomation.com/rfid_faq.html

    Bill
     
  6. HURST

    HURST Registered Member

    Joined:
    Jul 20, 2007
    Posts:
    1,419
    Thanks man!

    Just the kind of info I needed!
     
Loading...
Thread Status:
Not open for further replies.