OpenAMS reads the RFID tag on a spool, works out which bay the spool is in, and links that bay to the spool in Spoolman. The panel, the display and your slicer then show the right material, colour and weight. This page explains how that works, what the panel tells you about a bay's tag, and how Spoolman keeps exactly one spool per real spool, even though a Bambu Lab spool carries two tags.
| Unit | Who reads the tag | What you see |
|---|---|---|
| An AMS with the OpenAMS mainboard (OpenAMS 1) | OpenAMS, with two readers, each between two bays | The bay's tag state (below) and the RFID mark once the tag is matched to its bay |
| An AMS 1, AMS 2 Pro or AMS HT on its stock firmware, through a Cortex Bridge | The AMS itself | The AMS reports only its stored tray setting, which looks the same whether it read a tag or someone set the tray by hand. OpenAMS cannot tell the two apart, so these bays never show the RFID mark; link them in Spoolman from the panel's suggestions or by hand |
The rest of this page is about units whose tags OpenAMS reads itself.
A Bambu Lab spool carries a tag on each side, so the AMS can read it whichever way round you load it. The two tags have different UIDs but carry the same tray UUID, the spool's own serial number. OpenAMS identifies the spool by that tray UUID, so:
Other tags (a Spoolman link tag written by the spool station, for example) are identified by their UID.
A reader sits between two bays, and a spool's tag sits on its flange, so the reader sees the tag only during part of a turn, and it may see a neighbour's tag too. OpenAMS decides by motion: a tag that comes or goes while only one of the reader's bays is turning belongs to that bay. Bays turn on their own when you insert a spool (positioning), at every load and at every unload, so most tags are matched without you doing anything.
openams_tag_cache.json. The file sits next to oams.cfg, or next to printer.cfg if you keep your [oams] sections there. A spool is not decoded twice, and a restart does not forget which bay holds which spool.The slot's details (the spool menu on the web panel, the slot sheet on the display) show the bay's tag state. The tile itself carries the RFID mark only for a tag matched to that bay.
| The bay shows | What it means | What to do |
|---|---|---|
| The RFID mark on the tile | The tag is matched to this bay | Nothing |
| "Tag not read yet. It is read at the first load." | The spool's tag has not passed the reader yet | Nothing: it is read at the first load. Re-read reads it now |
| "Tag seen, slot not confirmed", with a material and a colour | A tag was seen, but it could belong to either bay of that reader | If it is this bay's spool, press It is this slot. Otherwise load the spool, or press Re-read |
| Two spools answered. Load this spool or press "It is this slot". | Two spools' tags moved while only this spool turned (the neighbour was moved by hand), or two spools went into one reader's bays together | Load this spool: its tag passing the reader settles it. Or press It is this slot |
| A different spool's tag appeared here. Load this spool or press "It is this slot". | Another spool's tag moved past this bay while its spool stayed in place | Load this spool, which settles it either way, or press It is this slot |
| This tag is also in slot <slot>. Load this spool or press "It is this slot". | The same spool seems to be in two bays | Check the other slot. Load this spool, or press It is this slot, which takes the tag from the other slot. Once the other slot no longer holds the tag (you took that spool out), Re-read turns this one into "Tag seen, slot not confirmed" |
| An info alert: "… same tag identity as …" | Two spools carry copies of one tag (clones of one tag dump) | Spoolman counts both against one spool: the second tag's UID has already been added to the first spool's Card UIDs. To keep them apart, move that UID: remove it from the first spool's Card UIDs and add it to the other spool's. Copies that share the UID too cannot be told apart; assign one of the bays by hand |
Re-read only reads the tags at rest, so it settles a disagreement only once it is gone, for example when the other slot no longer holds the tag. Loading the spool or It is this slot settles any of them; so does taking the spool out. If It is this slot finds another tag in the field than the one the slot showed, it shows that tag first; press it again to confirm.
A spool without a tag simply shows no tag once the unit has turned it for a while (loads and unloads; turning it by hand does not count).
A Bambu tag that could not be decoded three times (it rested at the edge of the reader's field, or the spool was moving) shows as an unknown tag. Re-read, putting the spool back in, or the tag coming back into the field tries again.
From the console:
OAMS_RFID_SCAN OAMS=<n> BAY=<bay> reads the bay's reader again and answers attributed <key>, candidate <key>, conflict <reason> or no tag in the field. On a bay in conflict it answers conflict <reason> again unless the disagreement is gone (above).OAMS_RFID_SCAN OAMS=<n> BAY=<bay> ASSERT=1 is It is this slot: it matches the one tag in the reader's field at that moment to that bay, also on a bay in conflict, and takes it from any other bay that held it. On a bay that showed a different tag as "not confirmed", the first run only shows the tag now in the field; run it again to confirm. It refuses with "Two tags answer this reader; turn the other spool away" when the field holds two spools' tags, and when the field is empty or the bay has no spool.Two extra fields on each spool, which OpenAMS creates in Spoolman for you:
A tag that has been read but not decoded yet only looks up its UID; nothing is ever created from a bare UID. With Spoolman offline, reads are queued and replayed in the same order, so the two tags of one spool still end up as one spool.
Spools created twice for one real spool (by an older version, or by another tool, one per tag) are not merged by themselves. List them, together with the spools that have a UID but no Tray UID yet:
curl http://<printer>:7125/server/openams_spoolman/duplicates
Merge two of them into one. Without "confirm": true this only shows what it would change:
curl -X POST http://<printer>:7125/server/openams_spoolman/merge -H 'Content-Type: application/json' -d '{"keep": 12, "merge": 15, "confirm": true}'
The kept spool gets both spools' UIDs and the Tray UID, the other spool is archived, and any bay linked to it is relinked to the kept spool.
Bambu Lab unless you set another with tag_vendor: under [openams_spoolman] in moonraker.conf.These [mfrc522] options tune how tags are matched to bays. The defaults are starting values; leave them unless a tag is matched to the wrong bay or too slowly.
| Option | Default | What it does |
|---|---|---|
focus_poll_interval: |
0.1 s |
How often the reader of a turning bay is read |
field_debounce: |
2 |
Reads in a row before a tag counts as arrived or gone |
handling_window: |
30 s |
How long after you insert a spool its insertion counts as evidence |
orphan_window: |
120 s |
How long a tag change seen while no bay was turning is remembered; it then counts for the next spool you insert under that reader |
static_samples: |
8 |
Reads during one bay's real turn in which a tag stays in the field before that tag counts as the other bay's (a tag that never changes while this spool turns is not on this spool) |
static_turn_time: |
3 s |
How long a bay must turn before its turn counts as real |
static_turn_length: |
630 mm |
Filament through the unit (one turn of a full spool) that makes a turn real; a tag coming or going on that bay does too. A bay only flagged as turning, while its spool stands still, proves nothing |
no_tag_turn_time: |
30 s |
Real turning with no tag seen before a bay counts as having no tag |
bays_a:, bays_b: |
0,1 and 2,3 |
Which bays each reader sees |