cnetz_magnetic(1)

πŸ“¦ version 0.0~git20251206.0c72677, in debian trixie, ubuntu questing, ubuntu resolute, ubuntu stonking

✨ NAME ✨

cnetz_magnetic β€” bestie, it's the C-Netz magnetic card simulator πŸ’³βœ¨, and its whole documentation home lives at http://osmocom-analog.eversberg.eu/docs/ 🫢

This is a section 1 page from the General Commands Manual β€” you know, the big book of "just type it and it runs" commands. πŸ’…


πŸŽ€ SYNOPSIS πŸŽ€

cnetz_magnetic [options] -a hw:0,0 <number> | service

So like… you hand it some options, you tell it where your audio is coming in with -a hw:0,0, and then you either give it a number or the word service. That's the whole vibe. 🌸

🌈 General options

🌈 General options

  • -h --help β€” the classic. Prints this help. That's it, that's the option. 🫢
  • --config [~/]<path to config file> β€” point it at a config file to use. If the path starts with ~/, the file lives in your home dir 🏠. Every single line in that config file is one option, and ngl β€” you must not write - or -- in there. Just the option, bare. Periodt.
  • -v --verbose <level> | <level>,<category>[,<category>[,...]] | list β€” the chatter dial πŸ—£οΈ. Throw list at it and it'll give you every level and category that exists. With just a level: it's a digit for the debug level, and the default is 3. With level plus categories: you give the level digit first, then one or more categories after it β†’ and if you don't name any category, all the categories get selected. Slay, everything at once. πŸ’…
  • -v --verbose date β€” this flavor makes the debug output show the date too πŸ“…βœ¨
  • -a --audio-device hw:<card>,<device> β€” pulls the input audio from your sound card's device number 🎧
  • -s --samplerate <sample rate> β€” the audio device sample rate in Hz. Default is 48000. 🎡
  • -w --write-wave <filename> β€” dumps the sound out as a wave file πŸ’ΎπŸ¦‹

πŸ’³ Magnetic card simulator options

  • -B --baud-rate <baud> β€” the playback baud rate. Default is 2666. πŸ”₯
  • -S --sicherung <security code> β€” the card's security code for simple authentication πŸ”. Default is '12345' (yes, really, iconic). πŸ‘‘

🧚 What you actually pass at the end

  • <number> β€” give any valid 7 digit subscriber number (optionally 8 digit, we're flexible ✨). It may be prefixed with 0160.
  • 'service' β€” the BSA44 service card πŸ› οΈ, which exists to unlock your phone after a battery replacement. The way that battery-swap amnesia is so real πŸ˜­πŸ”‹

Heads up bestie: in the config file, remember β€” one option per line, and no - or -- prefixes. Just don't do it. πŸ™ˆ

Anyway, that's the whole page 🫢 β€” straight from page 1 of the General Commands Manual, filed under the name cnetz_magnetic(1), brought to you by the fine folks over at http://osmocom-analog.eversberg.eu/docs/. Go forth and simulate some cards, mwah πŸ’‹πŸ’–