How to use the command AT+CPBR=?

How to use the command AT+CPBR=? (to read phone book entries)using SoftwareSerial.h library in my GSM module .plz help me

Do you know how to send AT+CPBR=? to the GSM module ?

that's iam asking sir
my aim is to read a phonebook enrtry from sim module
plz help its for my college project

plz help its for my college project

College students are expected to know that sending one AT command is just like sending any other AT command.

College students are supposed to be able to read. As in read the stickies at the top of the forum. As in read where it says “POST YOUR CODE!”.

College students are supposed to be able to follow directions.

Thachuthas:
that's iam asking sir
my aim is to read a phonebook enrtry from sim module
plz help its for my college project

Do you know how to sends any commands to the GSM module ?

void SendMessage()
{
  mySerial.println("AT+CMGF=1");    //Sets the GSM Module in Text Mode
  delay(1000);  // Delay of 1000 milli seconds or 1 second
  mySerial.println("AT+CMGS=\"+91xxxxxxxxxx\"\r"); // Replace x with mobile number
  delay(1000);
  mySerial.println("I am SMS from GSM Module");// The SMS text you want to send
  delay(100);
   mySerial.println((char)26);// ASCII code of CTRL+Z
  delay(1000);
}

AT+CMGS to send sms

Do you have an Arduino? Which one? Do you have a GSM module? Which one? Have you connected the Arduino and the GSM module? Have you installed a library for the module? Which one? Have you tried any of the examples that come with the library?

You see, we need information before we can even start to answer your question. Please read the “how to use the forum” stickies. They contain guidelines for asking questions and getting informed answers.

iam using arduino uno and AE gsm modem sim900a
iam connected GSM Tx –> Arduino pin 9 and GSM Rx –> Arduino pin 10
and iam used SoftwareSerial Library
and i have tried a program for sending and receiving sms code that i used is given

#include <SoftwareSerial.h>

SoftwareSerial mySerial(9, 10);

void setup()
{
  mySerial.begin(9600);   // Setting the baud rate of GSM Module  
  Serial.begin(9600);    // Setting the baud rate of Serial Monitor (Arduino)
  delay(100);
}


void loop()
{
  if (Serial.available()>0)
   switch(Serial.read())
  {
    case 's':
      SendMessage();
      break;
    case 'r':
      RecieveMessage();
      break;
  }

 if (mySerial.available()>0)
   Serial.write(mySerial.read());
}


 void SendMessage()
{
  mySerial.println("AT+CMGF=1");    //Sets the GSM Module in Text Mode
  delay(1000);  // Delay of 1000 milli seconds or 1 second
  mySerial.println("AT+CMGS=\"+91xxxxxxxxxx\"\r"); // Replace x with mobile number
  delay(1000);
  mySerial.println("I am SMS from GSM Module");// The SMS text you want to send
  delay(100);
   mySerial.println((char)26);// ASCII code of CTRL+Z
  delay(1000);
}


 void RecieveMessage()
{
  mySerial.println("AT+CNMI=2,2,0,0,0"); // AT Command to receive a live SMS
  delay(1000);
 }

What happens when you run that code?

this code works for
when i enter s in serial monter
it sends sms to the number
when i enter r
it recivecs the sms from my phone

So, where are you stuck with sending AT+CPBR=?
Do you get anything back from the GSM ?

to read a contact phone number from sim and to display it in serial moniter
can you plzz give the code for it

Plz give me the code for reading the contact from sim and display in the serial monitor

It sounds like you need to send the command using SoftSerial, read any response using SoftSerial and print it to the hardware Serial monitor. You seem to be doing all of that in the code you posted in reply #7. Does that code work and do you see anything in the Serial monitor ?

That #7 code is for sending and receiving SMs and it works it diplays the sms received

Can you plz the full code for reading a phone number and display it in the serial monitor
I dont no how to use the command for read the phone number

I do not have the code, nor do I have the hardware,

What do you get back over SoftSerial when you send the command ?

I dont know the syntax for that command

Any body plz help me how to read the phone number from sim

You’ve done the hard work…
You can already send AT+CMGS etc…
So write another function to send AT+CPBR…
Then see what comes back

Take a look at this page
http://m2msupport.net/m2msupport/sim-phonebook-at-commands/