Skip to main content
Email Password   helpLost your password?

Introduction

This is not a typical article. The focus is on Intelligent Mail Barcode (4 State Customer Barcode) or USPS OneCode implementation as a direct solution for anyone who needs it. The downloads include one VB.NET and one C# class – VS2008 with .NET 3.5 syntax - that generate the string expression of OneCode barcodes and decode a barcode string. The code (uncommented) is a modified fraction of the Pathenon project (covers all known 1D and 2D barcodes) that you will read here on The Code Project in the near future, hopefully. I've noticed that there is no related article, so there you are with an ASAP solution for this new USPS symbology.

Basic Information

Intelligent Mail Barcode, also known as the USPS OneCode Solution or USPS 4-State Customer Barcode (abbreviated 4CB, 4-CB, or USPS4CB), is the latest barcode symbology of the United States Postal Services. It combines routing ZIP code information and tracking information into a single 4-state code. It effectively encodes data from POSTNET and PLANET barcodes into a single barcode while providing a greater range of tracking data.

A 4-state barcode is based on a tracker with ascenders and descenders. The four possible states are tracker (neither ascender nor descender), full (both ascender and descender), ascender only, and descender only. The Intelligent Mail barcode consists of 65 bars as a result of encoding data fields of the following types:

Tracking Code

Routing Code

The above fields, with a maximum of 31 digits in length, are encoded via a complex process (involving big integers and transposed lookups) to bars expressed as a string with 65 characters in the range of A, D, T, F. More information and specifications can be found here.

Conclusion

Note once again that this is not a typical article, but a direct solution for people dealing with this complex barcode symbology.

Thanks for your time.

You must Sign In to use this message board.
 
 
Per page   
 FirstPrevNext
GeneralBarcode Pin
Jones xxx
14:19 26 May '09  
Generalhelp pls.... Pin
lakshmi priya.t.n
18:41 29 Jan '09  
AnswerRe: help pls.... Pin
drdigit
12:47 31 Jan '09  
GeneralCompilation error Pin
robertjb20
10:45 7 Jan '09  
AnswerRe: Compilation error Pin
drdigit
6:14 8 Jan '09  
GeneralHere is another Implementation for .Net (C#) using USPS provided dll and fonts Pin
Member 4229917
9:43 13 Nov '08  
QuestionIncorrect Decode Example Pin
voxdisc
17:35 10 Nov '08  
AnswerRe: Incorrect Decode Example Pin
bheiland
3:15 22 May '09  
GeneralRe: Incorrect Decode Example Pin
Gylfi Ingvason
9:59 27 May '09  
GeneralRe: Incorrect Decode Example Pin
bheiland
14:59 27 May '09  
AnswerRe: Incorrect Decode Example Pin
bheiland
15:04 27 May '09  
GeneralRe: Incorrect Decode Example Pin
bheiland
15:23 27 May '09  
GeneralRe: Incorrect Decode Example Pin
Gylfi Ingvason
8:02 28 May '09  
GeneralRe: Incorrect Decode Example Pin
bheiland
12:28 28 May '09  
GeneralRe: Incorrect Decode Example Pin
Gylfi Ingvason
6:20 29 May '09  
GeneralThank you for sharing your work... Pin
accusteve
9:08 4 Nov '08  
GeneralFailed Test Cases Pin
Member 4528292
5:56 22 Sep '08  
AnswerRe: Failed Test Cases Pin
drdigit
2:39 24 Sep '08  
QuestionPHP Version? :D Pin
voxdisc
22:30 19 Aug '08  
GeneralGREAT! Pin
hpellegrino
11:07 15 Aug '08  
GeneralCooool! Pin
tharpa
8:48 31 Oct '07  
QuestionOneCode string Decoder? Pin
res4
7:16 16 Oct '07  
AnswerRe: OneCode string Decoder? Pin
drdigit
23:53 16 Oct '07  
GeneralRe: OneCode string Decoder? Pin
tharpa
9:00 14 Mar '08  
NewsOneCode Decoder is finally here Pin
drdigit
15:36 16 Aug '08  


Last Updated 3 Oct 2008 | Advertise | Privacy | Terms of Use | Copyright © CodeProject, 1999-2009