This tool can encode and decode the Universal Serial Number ("USN") format found on the products made by Mad Scientist Research LLC
To generate USNs, you need to point this tool at a MongoDB server which will track previously generated ones. The MongoDB can be reset whenever you are done for the day. It's only purpose is to keep track of the day's counts. MongoDB MUST not be relied on for any A&D inventory purposes!
The config file belongs in ~/.config/scienceguns/serialtool.json
Currently supported values:
{
"data_url": "https://scienceguns.com/data/",
"mongodb": {
"uri": "mongodb://drkrieger:guest@localhost:27017",
"database": "firearms",
"collection": "Serials"
}
}You can make sure you have the latest product model list via serialtool update using the data URL in the example JSON above.
The pattern itself is pretty easy to remember. Serial Tool is meant to make things faster and avoid mistakes.
The format is MMTYYYSSCCCC
MM- Denotes the model of product using the[0-Z][0-Z]format (ex:00,TJ, or1F)T- Denotes the type of firearm the weapon was when initially manufactured.R- RifleP- PistolF- FrameG- ShotgunB- Short Barreled RifleHShort Barreled ShotgunS- SuppressorA- Any Other WeaponM- Machine Gun
YYY- Denotes the year.- The first
Ycounts up sequentially from 1 through Z where1=20andA=29 - The remaining
YYis a normal 2-digit number meaning125=2025,201=2101, andA21=2921
- The first
SS- Denotes an internal supply chain logistics codeCCCC- Denotes the sequentially increasing unit count for that weapon model manufactured that day (or month for marking variance weapons). This number starts at0001and is padded with zeroes.
Two examples:
TIF125MS0023would be aThe Isotopemanufactured as a Frame in 2025. It would be the 23rd one made that year.TKR125MS0023would be aThe Kineticmanufactured as a Rifle in 2025. It would be the 23rd one made that year.
Mad Scientist Research is founded by a science loving engineer that sees value in thinking ahead on things like this. Having a single serial number format across all product lines makes record keeping easier for inventory, warranty work, determining what a thing is or was at time of manufacture, and worst case scenario, for tracing.