{"id":1451,"date":"2012-08-25T23:39:14","date_gmt":"2012-08-26T06:39:14","guid":{"rendered":"http:\/\/m2msupport.net\/m2msupport\/?page_id=1451"},"modified":"2018-12-14T23:17:06","modified_gmt":"2018-12-15T07:17:06","slug":"sim-phonebook-at-commands","status":"publish","type":"page","link":"https:\/\/m2msupport.net\/m2msupport\/sim-phonebook-at-commands\/","title":{"rendered":"SIM Phonebook AT Commands"},"content":{"rendered":"<p>With <a href=\"http:\/\/m2msupport.net\/m2msupport\/download-at-command-tester\/\">Online AT Command Tester<\/a> tool, you read\/add\/edit\/delete phonebook entries on the device.<\/p>\n<p><a href=\"http:\/\/m2msupport.net\/m2msupport\/download-at-command-tester\/\"><img decoding=\"async\" src=\"http:\/\/www.m2msupport.net\/m2msupport\/wp-content\/themes\/admired\/images\/phone_book.PNG\" width=\"98%\" height=\"98%\"\/><\/a><\/p>\n<p>List all the avaialble phonebooks,<\/p>\n<p><a href=\"&lt;a title=&quot;AT+CPBR=?&quot; href=&quot;http:\/\/m2msupport.net\/m2msupport\/download-at-command-tester\/?at_comm=AT%2bCPBS&amp;amp;at_comm_parm=AT%2bCPBS=?&quot;&gt;AT+CPBS=?&lt;\/a&gt;\">AT+CPBS=?<\/a><br \/>\n+CPBS: (&#8220;SM&#8221;,&#8221;DC&#8221;,&#8221;LD&#8221;,&#8221;ON&#8221;,&#8221;\u0016\u0006&#8221;,&#8221;\u00ab\u00b6\u00c7\u000e$QCSIMSTAT&#8221;,&#8221;IMSTAT&#8221;)<br \/>\nOK<\/p>\n<p>The SIM phone book is usually referred by the &#8220;SM&#8221; name.<br \/>\nSelect the SIM phonebook<br \/>\nAT+CPBS=&#8221;SM&#8221;<br \/>\nOK<\/p>\n<p>Get the ranges of the phonebook entries<br \/>\nhref=&#8221;http:\/\/m2msupport.net\/m2msupport\/download-at-command-tester\/?at_comm=AT%2bCPBS&amp;amp;at_comm_parm=AT%2bCPBR=?&#8221;&gt;AT+CPBR=?&lt;\/a&gt;&#8221;&gt;AT+CPBR=?<br \/>\n+CPBR: (1-100),40,25<br \/>\nOK<br \/>\nAbove response indicates that the phonebook supports 100 entries. The maximum length of the text entry<br \/>\nis 40 and the maximum lenght of the phonenumber is 25.<\/p>\n<p>To read a phonebook entry,<br \/>\n<a href=\"http:\/\/m2msupport.net\/m2msupport\/download-at-command-tester\/?at_comm=AT%2BCPBR&amp;at_comm_parm=AT%2BCPBR=1\">AT+CPBR=1<\/a><\/p>\n<p>+CPBR: 1,&#8221;1391812&#8243;,129,&#8221;Daniel&#8221;,,&#8221;&#8221;,0,,<br \/>\nOK<\/p>\n<p>The first response after the semicolon(:) is the phonebook entry which in this case is &#8216;1&#8217;. Then the phone number (1391812) is shown.The next response(129) is the type of number. Here the possible types of numbers,<br \/>\n129 &#8211; National number type<br \/>\n161 &#8211; National number type<br \/>\n145 &#8211; INternational number type<br \/>\n177 &#8211; Network specific number<\/p>\n<p>After the number type, the text name (&#8220;Daniel&#8221;) is shown.<\/p>\n<p>To write an entry to the current phonebook,<\/p>\n<p><a href=\"http:\/\/m2msupport.net\/m2msupport\/download-at-command-tester\/?at_comm=AT%2BCPBW&amp;at_comm_parm=AT%2BCPBW=,&quot;6187759088&quot;,129,&quot;Adam&quot;\">AT+CPBW=,&#8221;6187759088&#8243;,129,&#8221;Adam&#8221;<\/a><\/p>\n<p>OK<\/p>\n<p>A new entry is written to teh next available index. The phone number (6187759088) and the name (Adam) are given with in quotes. The type of the phone number(129) is also specified.<\/p>\n<p>To read back the phonebook entry,<br \/>\n<a href=\"http:\/\/m2msupport.net\/m2msupport\/download-at-command-tester\/?at_comm=AT%2BCPBR&amp;at_comm_parm=AT%2BCPBR=1,10\">AT+CPBR=1,10<\/a><\/p>\n<p>+CPBR: 1,&#8221;1391812&#8243;,129,&#8221;Daniel&#8221;,,&#8221;&#8221;,0,,<br \/>\n+CPBR: 2,&#8221;6187759088&#8243;,129,&#8221;Adam&#8221;,,&#8221;&#8221;,0,,<br \/>\nOK<\/p>\n<p>To delete a phonebook entry,<br \/>\n<a href=\"http:\/\/m2msupport.net\/m2msupport\/download-at-command-tester\/?at_comm=AT%2BCPBW&amp;at_comm_parm=AT%2BCPBW=2\">AT+CPBW=2<\/a><\/p>\n<p>OK<br \/>\nAbove command deletes the 2nd entry from the phonebook. Now when you reaback the phonebook,<br \/>\n+CPBR: 1,&#8221;1391812&#8243;,129,&#8221;Daniel&#8221;,,&#8221;&#8221;,0,,<br \/>\nOK<\/p>\n<p>To search for a phonebook entry,<br \/>\n<a href=\"http:\/\/m2msupport.net\/m2msupport\/download-at-command-tester\/?at_comm=AT%2BCPBF&amp;at_comm_parm=AT%2BCPBF=&quot;Daniel&quot;&quot;\">AT+CPBF=&#8221;Daniel&#8221;<\/a><br \/>\n+CPBF: 1,&#8221;1391812&#8243;,129,&#8221;Daniel&#8221;,&#8221;&#8221;,0<br \/>\nOK<br \/>\nIf the search is sucessful, the phonebook entry is displayed.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>With Online AT Command Tester tool, you read\/add\/edit\/delete phonebook entries on the device. List all the avaialble phonebooks, AT+CPBS=? +CPBS: (&#8220;SM&#8221;,&#8221;DC&#8221;,&#8221;LD&#8221;,&#8221;ON&#8221;,&#8221;\u0016\u0006&#8221;,&#8221;\u00ab\u00b6\u00c7\u000e$QCSIMSTAT&#8221;,&#8221;IMSTAT&#8221;) OK The SIM phone book is usually referred by the &#8220;SM&#8221; name. Select the SIM phonebook AT+CPBS=&#8221;SM&#8221; OK Get &hellip; <a href=\"https:\/\/m2msupport.net\/m2msupport\/sim-phonebook-at-commands\/\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"software_howto.php","meta":{"footnotes":""},"class_list":["post-1451","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/m2msupport.net\/m2msupport\/wp-json\/wp\/v2\/pages\/1451","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/m2msupport.net\/m2msupport\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/m2msupport.net\/m2msupport\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/m2msupport.net\/m2msupport\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/m2msupport.net\/m2msupport\/wp-json\/wp\/v2\/comments?post=1451"}],"version-history":[{"count":17,"href":"https:\/\/m2msupport.net\/m2msupport\/wp-json\/wp\/v2\/pages\/1451\/revisions"}],"predecessor-version":[{"id":16831,"href":"https:\/\/m2msupport.net\/m2msupport\/wp-json\/wp\/v2\/pages\/1451\/revisions\/16831"}],"wp:attachment":[{"href":"https:\/\/m2msupport.net\/m2msupport\/wp-json\/wp\/v2\/media?parent=1451"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}