Skip to content

Write

Everything on these pages was done on a swipe badge encoded for an access control system. Site code 114, badge number 048592, holder MARTINEZ/D.

1 Empty
The WRITE panel with an Import from Database button above three empty fields labeled Track 1, Track 2 and Track 3, and a WRITE TO CARD button
2 Typed
The same panel with Track 1 reading %B114048592^MARTINEZ/D^0000? and Track 2 reading ;114048592? and Track 3 left empty
3 Confirm
A WRITE TO CARD dialog warning IMPORTANT Use a BLANK card for writing, with CANCEL and WRITE buttons
Empty fields, the credential typed in, and the confirmation that stands between you and a blank.
  1. Import sits above the fields, so it is offered before typing.
  2. Live with empty fields. It refuses the write rather than arming on nothing.
  3. Track 1, credential plus holder.
  4. Track 2, the credential alone. This is the one that matters.
  5. Left empty on purpose. A track you do not need is one more thing to reject.
  6. Use a blank. This is the warning that saves a working badge.
  7. WRITE arms. The swipes come after.
  1. Tap WRITE. Three fields appear, one per track.
  2. Type the tracks. Sentinels are added for you if you leave them off, so 114048592 in Track 2 becomes ;114048592?.
  3. Leave Track 3 empty. Writing a track you do not need only gives a reader more to reject.
  4. Tap WRITE TO CARD and confirm.
  5. A toast tells you how many swipes to make. Swipe once for each track you filled.

The swipe count comes from a toast, not a banner

Section titled “The swipe count comes from a toast, not a banner”

You do not have to count the filled fields yourself. The moment the confirmation is accepted, and before the write command goes out, one toast appears with the number in it.

Filled tracksThe toast
OneSwipe the card 1 time
TwoSwipe the card 2 times
ThreeSwipe the card 3 times

Those three are the only ones you will see. With all three fields empty, WRITE TO CARD refuses before the confirmation with No track data to write, so there is no zero case.

The toast appears once, up front, not once per track. It is also the only on-screen instruction during a write. The persistent status banner that a read and an erase both put up is deliberately suppressed here, because the toast already carries the count.

When a write fails, the message names the reason

Section titled “When a write fails, the message names the reason”

A failed write raises an error toast built from the device’s own status byte. The track number is prefixed to it, and because the mapped message already starts with Write error, the words appear twice. A card that was not blank reads exactly like this on screen:

MSRX6
Track 2 write error: Write error: Card not blank - erase first

Nine device failures can reach you, and the write stops at the first track that returns one. Tracks already written before the failure stay written.

The message after the prefixWhat it means and what to do
Write error: Read/write errorThe device could not read back what it put on the stripe. Reswipe. A repeat on a fresh blank points at the head rather than the card.
Write error: Invalid command format (device rejected command before swipe)The device refused the command and no swipe ever happened. Nothing was written. Disconnect and reconnect the reader, then retry.
Write error: Track encoding error - check data formatA character in that field cannot be encoded on that track. Track 2 and Track 3 are numeric only, Track 1 is alphanumeric. Retype the field.
Write error: Invalid commandThe device did not recognize the command at all. Treat it the same as a rejected format and reconnect.
Write error: Card not blank - erase firstThe blank already carries data. Run ERASE on it and write again.
Write error: Card jammed or swipe too fastThe swipe was too quick or the card stalled in the slot. Swipe again, slower and in one motion.
Write error: Device busyA previous operation has not finished. Wait, then retry.
Write error: Internal errorThe device reported a fault in itself. Power cycle the reader.
Write error: Write mode swipe error (bad/failed swipe)The swipe was seen but the encode did not take. Swipe again, and if it repeats on the same blank, change blanks.

A tenth outcome is not a status byte at all. If the device answers with something the app cannot place, the toast reads Track 2 write failed - no confirmation. Nothing is known about the stripe at that point, so read the card back before you do anything else with it.

Everything above assumed you are typing the credential. You rarely are. A badge you read an hour ago is already in the card database, and the whole round trip out to it and back is four screens.

1 Empty
The WRITE panel with an Import from Database button above three empty fields labeled Track 1, Track 2 and Track 3, and a WRITE TO CARD button
2 Database
The card database with a Project picker set to All, filter chips for ALL, RFID, PIN and MAGSTRIPE, and a MAGSTRIPE record tagged to the Cypress Ridge project reading Type Access Control, Credential 114048592, Holder D MARTINEZ, Coercivity HICO
3 Filled
Back on the WRITE panel with Track 1 reading %B114048592^MARTINEZ/D^0000? and Track 2 reading ;114048592? both filled from the record, and Track 3 showing the empty sentinel pair
4 Write
A WRITE TO CARD dialog warning IMPORTANT Use a BLANK card for writing, with CANCEL and WRITE buttons, over the filled track fields
Out to the database, pick the record, back with the tracks filled, then the same confirmation a typed write gets.
  1. Sits above the fields, so the import is the first thing offered rather than typing.
  2. Stays live with empty fields and refuses the write rather than arming on nothing.
  3. Narrows the list to one engagement before you go looking.
  4. The classification the record was saved with, so you know what you are about to write.
  5. Check this before you pick a blank. The write panel does not repeat it.
  6. Filled from the record, sentinels and all.
  7. An empty track comes back as its two sentinels. Leave it, it is not written.
  8. Identical to a typed write from here. The import changed where the data came from, nothing else.
  9. Still one swipe per filled track once this is confirmed.
  1. Tap WRITE. The three track fields come up empty, with Import from Database above them.
  2. Tap Import from Database. The card database opens on every record, not just magstripe ones.
  3. Narrow it. The MAGSTRIPE chip drops everything that is not a swipe record, and the Project picker at the top drops everything outside the engagement you are working.
  4. Tap the record. The database closes, the tracks land in the fields, and the panel is back in write mode.
  5. Tap WRITE TO CARD, confirm, and swipe once per filled track.

The record carries what it was classified as when it was saved, so an access control badge comes back reading Type: Access Control, Credential and Holder, with no expiry and no service code to mislead you about what you are writing.