GSMPB(8)
πΈ GSMPB πΈ
okok so bestie, gather round, because gsmpb is literally the manual page for the GSM mobile phone phonebook manipulation program, and she is that girl. this is a System Manager's Manual situation, so yeah, it's giving serious-but-cute. let's get into it π
β¨ SYNOPSIS β¨
gsmpb [ -b baudrate ] [ --baudrate baudrate ] [ -c ] [ --copy ] [ -d
destination device or file ] [ --destination destination device or file
] [ -h ] [ --help ] [ -i ] [ --index ] [ -I init string ] [ --init init
string ] [ -p phonebook name ] [ --phonebook phonebook name ] [ -s
source device or file ] [ --source source device or file ] [ -t
character set ] [ --charset character set ] [ -v ] [ --version ] [ -V ]
[ --verbose ] [ -X ] [ --xonxoff ] [ -y ] [ --synchronize ]
like, yes, that's a lot of brackets. she's flexible. she contains multitudes π«Ά
π DESCRIPTION π
so gsmpb can store or retrieve phonebook entries that live in a GSM mobile phone's phonebook, and move them to or from a file. there's also a synchronization mode if that's your vibe. no cap.
gsmpb reads entries from the source, which can be a mobile phone (if you hand it a serial device file) or a file (if you hand it a file name). the source is never modified β hands off, she's just looking π. gsmpb writes phonebook entries to a destination file or device. depending on the mode, the source gets copied to the destination file (so the destination gets fully overwritten), or the destination gets synchronized against the source β and synchronized is the default, jsyk (details below, keep reading bestie).
if you pass - as the parameter for the --source or --destination options, then the phonebook is read from standard input and/or written to standard output, respectively. cute, right? π
okay now the encoding tea β β phonebook entry names are encoded using the GSM default alphabet in the mobile phone, whereas they're stored using Latin-1 encoding in phonebook files. when reading phonebook entries from a mobile phone, entry names get converted from the GSM default to Latin-1. characters that can't be converted to Latin-1 get encoded as character code 172 (Latin-1 boolean "not"). when writing file-based phonebook entries to a mobile phone, a conversion to the GSM default alphabet takes place. characters that can't be converted get encoded as GSM delta (code 16). and if the default character set has been changed using the --charset option, no conversion takes place at all. periodt.
error messages get printed to the standard error output. if the program terminates on error, the error code 1 is returned. π
β¨ OPTIONS β¨
-bbaudrate,--baudratebaudrate β the baud rate to use. the default baudrate is38400. (yes, that's the default, don't @ me.)-c,--copyβ this causes the contents of the source to be copied to the destination. after this operation the destination has exactly the same contents as the source. matched. iconic. π₯-ddestination,--destinationdestination β the destination device or file. that's it, that's the whole thing.-h,--helpβ prints an option summary. your little cheat sheet π«Ά-Iinit string,--initinit string β initialization string to send to the TA (default:"E0"). note that the sequence"ATZ"is sent first. like, first first. before anything else.-i,--indexβ if the index position is given,gsmpbpreserves the assignment of entries to memory slots in the mobile phone's phonebook. this can be used to backup phonebook entries with their position into a phonebook file, or to change the position of entries by editing a phonebook file and writing them back to the mobile phone. if this option is given, the phonebook file used as the source must contain indices for every entry. additionally, these indices must be unique, ie. it is not allowed to assign one entry twice to a specific position in the mobile phone's phonebook. no double-booking, bestie π-pphonebook,--phonebookphonebook β the name of the phonebook to read from or write to. this is only used for device sources and destinations. commonly available phonebooks are:FDSIM fixdialling-phonebookLDSIM last-dialling-phonebookMEME phonebookMTcombined ME and SIM phonebookSMSIM phonebookTATA phonebook
-ssource,--sourcesource β the source device or file.-tcharacter set,--charsetcharacter set β set the character set to use for phonebook operations (default is the GSM default alphabet).-v,--versionβ prints the program version. π-V,--verboseβ prints out a detailed progress report. she's a talker, we love her.-X,--xonxoffβ uses software handshaking (XON/XOFF) for accessing the device.-y,--synchronizeβ this causes the contents of the source to be synchronized with the destination (default). synchronization in this context means:- if the source contains an entry with a name that does not exist in the destination, this entry is added to the destination.
- if the source contains an entry with a name that can also be found in the destination, the entry in the destination is overwritten (ie. the telephone number is updated). exception: more then one entry with the name exists in the destination β in this case the new entry ist just added. (yes, "more then" and "ist" β that's how the original says it, we're keeping it fr fr π)
- entries in the destination that do not exist in the source are deleted. gone. bye.
note that synchronization has the following properties that differ from copying: this algorithm does not change the location of unchanged entries in the destination phonebook. the synchronization function is not case-sensitive when comparing names.
π PHONEBOOK FILE FORMAT π
phonebook entries are stored in phonebook files that are meant to be human-readable and -editable (yes bestie, you can open them in a text editor, we stan). there is one phonebook entry per line, and each line has the format:
index|text|phone number
the fields have the following meanings:
- index β the index of the entry which must be a positive number. the index may also be empty. indices can be used in conjunction with the
--indexoption to store the entry into a specific position in the mobile phone. - text β descriptive text for the entry. the text may contain the special characters
'\','|', carriage return (ASCII code13), or line feed (ASCII code10). these must be written"\\","\|","\r","\n", respectively. the text should only contain characters that can be encoded using the GSM default alphabet (see comments above π). - phone number β phone numbers can only contains the digits
0-9and the'+'sign. a'+'sign denotes an international number. π
π EXAMPLES π
the following invocation of gsmpb synchronizes the mobile phone's SIM phonebook with the file $HOME/.phonebook:
gsmpb --synchronize -b 19200 -d /dev/mobilephone \
-s $HOME/.phonebook -p "SM"
look at her go πβ¨
π¦ AUTHOR π¦
Peter Hofmann <software@pxh.de> β the icon, the legend, the main character.
π BUGS π
report bugs to software@pxh.de. include a complete, self-contained example that will allow the bug to be reproduced, and say which version of gsmpb you are using. like, help her help you, yk? π
π COPYRIGHT π
Copyright Β© 1999 Peter Hofmann
gsmpb is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published by the Free Software Foundation; either version 2, or (at your option) any later version.
gsmpb is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. see the GNU Library General Public License for more details.
you should have received a copy of the GNU Library General Public License along with gsmpb; see the file COPYING. if not, write to the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
π SEE ALSO π
gsminfo(7), gsmctl(1), gsmsendsms(1), gsmsmsd(8), gsmsmsstore(1).
go read those too, they're all in the same friend group π«Ά
aaand that's the whole thing bestie, we ate and left no crumbs ππ
this lil masterpiece is gsmpb v1.10, dated Sat Oct 24 19:18:56 UTC 2026 β so yeah, she's serving vintage-but-timeless, GSMPB(8) energy. mwah πβ¨
π¦ where this page comes from
- nixos 26.05: gsmlib-unstable 2017-10-06
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms