EP-4738711-A2 - SYSTEMS AND METHODS FOR ENCODING AND DECODING DATA
Abstract
A method for decoding data packet comprising: retrieving, by a processor (1702), header data (1506) and encoded data (1504) from a data packet (1500) received from a storage media (116,118); parsing, by the processor (1702), the encoded data (1504) to categorize a plurality of binary bits in the encoded data into a plurality of encoded data portions based on at least the header data (1506), wherein parsing the encoded data comprises determining semantic information associated with the encoded data based on the header data, wherein the encoded data is categorized into the plurality of encoded data portions based on the semantic information; determining, by the processor (1702), a plurality of decoding schemes to decode the plurality of encoded data portions based on the header data; and decoding, by the processor(1702), at least one of the plurality of encoded data portions using the plurality of decoding schemes to generate at least one of a first data portion and a second data portion, wherein a first encoded data portion of the plurality of encoded data portions is decoded using a first decoding scheme of the plurality of decoding schemes and a second encoded data portion of the plurality of encoded data portions is decoded using a second decoding scheme of the plurality of decoding schemes different from the first decoding scheme.
Inventors
- MARTINEZ, RENE
- RAMAMURTHY, SHASHIDHAR
- PETERNEL, James
Assignees
- Hand Held Products, Inc.
Dates
- Publication Date
- 20260506
- Application Date
- 20201202
Claims (15)
- A method for decoding data packet comprising: retrieving, by a processor (1702), header data (1506) and encoded data (1504) from a data packet (1500) received from a storage media (116,118); parsing, by the processor (1702), the encoded data (1504) to categorize a plurality of binary bits in the encoded data into a plurality of encoded data portions based on at least the header data (1506), wherein parsing the encoded data comprises determining semantic information associated with the encoded data based on the header data, wherein the encoded data is categorized into the plurality of encoded data portions based on the semantic information; determining, by the processor (1702), a plurality of decoding schemes to decode the plurality of encoded data portions based on the header data; and decoding, by the processor (1702), at least one of the plurality of encoded data portions using the plurality of decoding schemes to generate at least one of a first data portion and a second data portion, wherein a first encoded data portion of the plurality of encoded data portions is decoded using a first decoding scheme of the plurality of decoding schemes and a second encoded data portion of the plurality of encoded data portions is decoded using a second decoding scheme of the plurality of decoding schemes different from the first decoding scheme.
- The method of claim 1, wherein the first encoded data portion is encoded using a first encoding scheme and the second encoded data portion is encoded using a second encoding scheme, wherein the first encoding scheme is determined in response to determining that a count of characters in the first data portion is a multiple of an integer in a first range between a first threshold count value and a second count threshold value.
- The method of claim 1, wherein parsing, by the processor (1702), the encoded data further comprises: retrieving a binary bit of the plurality of binary bits from the encoded data; and categorizing the binary bit into an encoded data portion of the plurality of encoded data portions based on one or more characteristics associated with the binary bit, wherein the one or more characteristics includes a position of the binary bit in the encoded data that is representative of semantic information associated with the binary bit, and wherein the semantic information associated with the position of each of one or more characters in the encoded data comprises a shipping number, a service level, an identifier number, and a zip code.
- The method of claim 1, wherein the storage media corresponds to at least one of a print media (118), or a Radio Frequency (RF) tag (116).
- The method of claim 2, further comprising: categorizing a first set of binary bits of the encoded data into the first encoded data portion and a second set of binary bits of the encoded data into the second encoded data portion; and determining that the first set of binary bits in the first encoded data portion and the second set of binary bits in the second encoded data portion are generated by encoding a first set of characters in the first data portion and a second set of characters in the second data portion using the first encoding scheme and the second encoding scheme, respectively.
- The method of claim 1, further comprising determining a data category based on the header data (1506), wherein the data category is at least one of: shipping number or SKU.
- The method of claim 1, wherein the first decoding scheme is a Uniform Resource Names (URN) 40 decoding scheme, and wherein the second decoding scheme is a URN 40 lite decoding scheme.
- The method of claim 2, wherein the first encoding scheme is a Uniform Resource Names (URN) 40 encoding scheme, and wherein the second encoding scheme is a URN 40 lite encoding scheme.
- An apparatus (108) comprising: a memory device (1704) comprising a set of executable instructions; a processor (1702) communicatively coupled to the memory device, the processor configured to: receive data packet (1500) to be decoded from a storage media (116, 118), wherein the data packet comprises a first data packet field and a second data packet field; retrieve header data (1506) and encoded data (1504) from the first data packet field and the second data packet field, respectively; parse the encoded data to categorize a plurality of binary bits in the encoded data into a plurality of encoded data portions based on at least the header data, wherein parsing the encoded data comprises determining semantic information associated with the encoded data based on the header data, wherein the encoded data is categorized into the plurality of encoded data portions based on the semantic information; determine a plurality of decoding schemes to decode the plurality of encoded data portions based on the header data; and decode at least one of the plurality of encoded data portions using the plurality of decoding schemes to generate at least one of a first data portion and a second data portion, wherein a first encoded data portion of the plurality of encoded data portions is decoded using a first decoding scheme of the plurality of decoding schemes and a second encoded data portion of the plurality of encoded data portions is decoded using a second decoding scheme of the plurality of decoding schemes different from the first decoding scheme.
- The apparatus (108) of claim 9, wherein the first encoded data portion is encoded using a first encoding scheme and the second encoded data portion is encoded using a second encoding scheme, and wherein the first encoding scheme is determined in response to determining that a count of characters in the first data portion is a multiple of an integer in a first range between a first threshold count value and a second count threshold value.
- The apparatus (108) of claim 9, wherein the processor (1702) is further configured to: retrieve a binary bit of the plurality of binary bits from the encoded data (1504); and categorize the binary bit into an encoded data portion of the plurality of encoded data portions based on one or more characteristics associated with the binary bit, wherein the one or more characteristics include a position of the binary bit in the encoded data that is representative of semantic information associated with the binary bit.
- The apparatus (108) of claim 11, wherein the semantic information associated with the position of each of one or more characters in the encoded data comprises a shipping number, a service level, an identifier number, and a zip code.
- The apparatus (108) of claim 9, wherein the storage media corresponds to at least one of a print media (118), or a Radio Frequency (RF) tag (116).
- The apparatus (108) of claim 10, wherein the processor (1702) is further configured to: categorize a first set of binary bits of the encoded data into the first encoded data portion and a second set of binary bits of the encoded data into the second encoded data portion; and determine that the first set of binary bits in the first encoded data portion and the second set of binary bits in the second encoded data portion are generated by encoding a first set of characters in the first data portion and a second set of characters in the second data portion using the first encoding scheme and the second encoding scheme, respectively.
- The apparatus (108) of claim 10, wherein the first encoding scheme is a Uniform Resource Names (URN) 40 encoding scheme, and wherein the second encoding scheme is a URN 40 lite encoding scheme.
Description
TECHNOLOGICAL FIELD Exemplary embodiments of the present disclosure relate generally to encoding and decoding data and, more particularly, to methods and systems for encoding and decoding data to/from a storage medium. BACKGROUND Typically, an amount of storage space required to store data on a storage medium such as, but not limited to, an RFID tag and a print media may be dependent on a size of the data. For example, a string of 100 characters may require more storage space in comparison to a string of 50 characters. In some scenarios, the storage space available in such storage media may be limited, which, in turn, limits, in some examples, the amount of data that can be stored on such storage media. Applicant has identified a number of deficiencies and problems associated with conventional systems and methods for encoding and decoding data. Through applied effort, ingenuity, and innovation, many of these identified problems have been solved by developing solutions that are included in embodiments of the present disclosure, many examples of which are described in detail herein. BRIEF SUMMARY Various embodiments illustrated herein disclose a method that includes receiving, by a processor, data to be encoded onto a storage media, wherein the data corresponds to an item and is assigned to a data category. The method further includes parsing, by the processor, data into a plurality of data portions, based on one or more first characteristics associated with each of one or more characters in the data, wherein the one or more first characteristics include at least a position of the one or more characters in the data. the method further includes encoding, by the processor, the plurality of data portions using a plurality of encoding schemes, to generate a data packet, such that a first data portion of the plurality of data portions is encoded using a first encoding scheme of the plurality of encoding schemes and a second data portion of the plurality of data portions is encoded using a second encoding scheme of the plurality of encoding schemes, wherein the first encoding scheme is different from the second encoding scheme. Furthermore, the method includes transmitting the data packet to a storage media for storage of the data packet on the storage media. Various embodiments illustrated herein disclose an encoder apparatus that includes a memory device comprising a set of executable instructions. Further encoder apparatus includes a processor communicatively coupled to the memory device. The processor is configured to receive data to be encoded onto a storage media, wherein the data corresponds to an item and is assigned to a data category. The processor is further configured to parse data into a plurality of data portions, based on one or more first characteristics associated with each of one or more characters in the data, wherein the one or more first characteristics include at least a position of the one or more characters in the data and a semantic information associated with the position of the one or more characters in the data. further, the processor is configured to select a plurality of encoding schemes to encode the plurality of data portions based on one or more second characteristics associated with each data portion of the plurality of data portions, wherein the one or more second characteristics comprises at least a count of a set of characters in each data portions of the plurality of data portions. furthermore, the processor is configured to encode the plurality of data portions using a plurality of encoding schemes, to generate encoded data, such that a first data portion of the plurality of data portions is encoded using a first encoding scheme of the plurality of encoding schemes and a second data portion of the plurality of data portions is encoded using a second encoding scheme of the plurality of encoding schemes, wherein the first encoding scheme is different from the second encoding scheme; Additionally, the processor is configured to generate a data packet based on the encoded data. Finally, the processor is configured to transmit the data packet to the storage media. Various embodiment illustrated herein disclose a computer-readable medium, comprising a memory that stores computer-executable instructions and a processor that executes the computer-executable instructions to perform operations, comprising parsing data into a plurality of data portions, based on a characteristic associated with a character in the data, wherein the characteristic comprises at least a position of the character in the data. the operation further comprises encoding the plurality of data portions using a plurality of encoding schemes, to generate a data packet, such that a first data portion of the plurality of data portions is encoded using a first encoding scheme of the plurality of encoding schemes and a second data portion of the plurality of data portions is encoded using a second encoding scheme of the