AT Command

Description

AT+CPAS AT command returns of the module device status. Possible values are,
0 ready
1 unavailable
2 unknown
3 ringing
4 call in progress
5 asleep


Support

Module Tutorial
Usage
Command Possible response(s)
+CPAS +CPAS: +CME ERROR: 
+CPAS=? +CPAS: (list of supporteds) +CME ERROR: 

Examples

AT+CPAS
+CPAS: 0

OK
AT+CPAS=?
+CPAS: (0-5)

OK

KeywordsAT+CPAS syntax, examples, parameters, error, input, response.


Test AT+CPAS command with AT Command Tester





Try this script included in AT Command Tester Tool.

//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////

//Script-at_cpas.at

//Test AT+CPAS command

//AT+CPAS command is used to get phone activity status

//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////

 

//Get the list of supported responses

AT+CPAS=?

 

//WAIT for 1 sec

WAIT=1

 

//Get the phone activity status

//0 - Ready

// 2 - Unknown

// 3-  Ringing (Device is ready for commands ringer is active

// 4- Call in progress

AT+CPAS

 

//WAIT for 1 sec

WAIT=1

 

//Let us dial a call

ATD858787433;

 

//WAIT for 3 sec

WAIT=3

 

//Get phone activity status now

AT+CPAS

 

//WAIT for 1 sec

WAIT=1

 

//Hang up the call

ATH

 

//WAIT for 7 sec

WAIT=7

 

//Get phone activity status now

AT+CPAS


Output of above script in AT Command Tester Tool.

AT+CPAS=?

+CPAS: (0,3,4)

 

OK

 

AT+CPAS

+CPAS: 0

 

OK

Device is Ready.

 

ATD858787433;

OK

Voice call successfull

 

 

AT+CPAS

+CPAS: 4

 

OK

Call in progress.

 

ATH

OK

Call successfully dis-connected..

 

 

AT+CPAS

+CPAS: 4

 

OK

Call in progress.