GAMMU-DETECT(1)

πŸ’… gammu-detect(1) β€” the Gammu manual, bestie edition πŸŽ€

okay so picture this: you've got a phone, you've got a cable, you've got vibes, and absolutely no idea which of the eleven thousand possible device paths is the one. that's literally what gammu-detect is for, and it's from the Gammu manual, so you know it's the real deal. ✨


🌸 NAME 🌸

gammu-detect β€” Gammu device detection

Added in version 1.28.95. (iykyk, it's been iconic for a minute. πŸ‘‘)


πŸ¦‹ SYNOPSIS πŸ¦‹

gammu-detect [OPTIONS]

πŸ’– DESCRIPTION πŸ’–

it's a script that detects the devices you have available β€” the ones that might be suitable for the Gammu Utility <#gammu>. that's it. that's the whole job. she's a scout, not a detective. πŸ”

Note: this program lists all the devices that might be suitable. it does not do any probing on the devices themselves. no poking, no prodding, no vibe check of the actual hardware. it just tells you what's out there. πŸ’€

Currently it supports the following devices:

  • USB devices using udev
  • Serial ports using udev
  • Serial ports on Windows
  • Bluetooth devices using Bluez
Note: which devices it actually supports depends on your platform and the features that were compiled in. want to know what's actually baked into your build? run gammu-detect -v and she'll tell you. 🫢

This program follows the usual GNU command line syntax, with long options starting with two dashes (--). A summary of options is included below. no cap, here they are:


✨ OPTIONS ✨

  • -h, --help β€” shows a summary of the options. the classic "help me help you" move. πŸ™ˆ
  • -d, --debug β€” shows debugging output for detecting devices. turn this on when you want to see everything she's looking at, main character energy only. πŸ”₯
  • -v, --version β€” shows version information and the compiled in features. this is the one that answers "wait, what can this build even do?" 🌈
  • -u, --no-udev β€” disables scanning of udev. bye udev. πŸ‘‹
  • -b, --no-bluez β€” disables scanning using Bluez. bluetooth, but make it off. πŸ¦‹
  • -w, --no-win32-serial β€” disables scanning of Windows serial ports. windows serial? not today. πŸ’…

πŸ“ OUTPUT πŸ“

the output of gammu-detect is a configuration file for Gammu (see Gammu Configuration File <#gammurc>), with a configuration section for every device that might be used with the Gammu Utility <#gammu>. so like, she hands you a ready-to-go config. slay. πŸŽ€

Note: you get to choose which section the Gammu Utility <#gammu> uses by passing gammu -s <#cmdoption-gammu-s>. pick your fave. ⭐

and when you invoke it as gammu-detect -d, all the examined devices are also listed as comments in the output β€” so you can see exactly what she looked at before deciding. receipts, basically. 🧾


πŸ’œ EXAMPLE πŸ’œ

; Configuration file generated by gammu-detect.
; Please check The Gammu Manual for more information.

[gammu]
device = /dev/ttyACM0
name = Nokia E52
connection = at

[gammu1]
device = /dev/ttyACM1
name = Nokia E52
connection = at

[gammu2]
device = /dev/ttyS0
name = Phone on serial port 0
connection = at

[gammu3]
device = /dev/ttyS1
name = Phone on serial port 1
connection = at

[gammu4]
device = /dev/ttyS2
name = Phone on serial port 2
connection = at

[gammu5]
device = /dev/ttyS3
name = Phone on serial port 3
connection = at

[gammu6]
device = 5C:57:C8:BB:BB:BB
name = Nokia E52
connection = bluephonet

look at that. six devices, all sectioned up, all cute. Nokia E52 girlies rise. πŸ“±πŸ’–


🌟 Author 🌟

Michal ČihaΕ™ <michal@cihar.com> β€” the icon behind all of this. 🫑

2009-2015, Michal ČihaΕ™ <michal@cihar.com>


and that's the whole page, bestie β€” she's 1.45.0, dated Sep 16, 2026, and she ate. periodt. πŸ’…βœ¨πŸ¦‹

πŸ“¦ where this page comes from