AT命令手册上有详细的PB PDU编码格式
Appendix:Phonebook detail parameters
PDU:
Type | Length | Name | Description |
basic_number_st | variable | basic_number_info | basic number info including alpha name, BCD number and called party sub Address. |
Group_st | variable | all_group_info | the information of all the group |
name_element_st | name_len + 1 | second_name | second name |
email_st | variable | all_email_address | E-mail address |
additional_number_st | variable | all_additiontal_number_info | all additional number info |
Uint8 | 1 byte | hidden_flag | 0x00: phonebook entry not hidden other value: phonebook entry hidden |
name_element_st:
Type | Length | Name | Description |
Uint8 | 1 | name_len | the length of the name. |
Uint8 | name_len | pb_name[name_len] | the name element of this phone book entry. This field is mandatory only if name_len is not 0, and its length is name_len.
|
Phone_number_st:
Type | Length | Name | Description |
Uint8 | 1 | bcd_len | Length of BCD number/SSC contents., including ton_npi field and phone_number field. |
Uint8 | 1 | ton_npi | TON and NPI , This field is mandatory |
Uint8 | bcd_len-1 | phone_number[bcd_len-1] | The actual phone number (in digits) and some additional information. This field is mandatory |
sub_address_st:
Type | Length | Name | Description |
Uint8 | 1 | subadd_len | the length of the subaddress |
Uint8 | subadd_len | subadd_name[subadd_len] | the subaddress element of this phone book entry. This field is mandatory only if subadd_len is not 0, and its length is subadd_len. |
Basic_number_st
Type | Length | Name | Description |
name_element_st | name_len +1 | alpha name | Number alpha name |
phone_number_st | bcd_len + 1 | BCD number | BCD number including additional number |
sub_address_st | subadd_len + 1 | subadd | Called party sub address |
group_st:
Type | Length | Name | Description |
Uint8 | 1 | group_num | the number of the group , the max value is 10. |
Uint8 | group_num | group_id[group_num] | group id list This field is mandatory only if group_num is Not 0. |
Email_st:
Type | Length | Name | Description |
Uint8 | 1 | email_address_num | The number of the EMAIl file. |
Email_address_st | variable | email_info[email_address_number] | email information. This field is mandatory only if email_address_num is not 0. |
Email_address_st:
Type | Length | Name | Description |
Uint8 | 1 | email_address_len | the length of the e-mail address |
Uint8 | email_address_len | email_add[email_address_len] | e-mail address This field is mandatory only if email_address_len is not 0, and its length is email_address_len. |
Additional_number_st
Type | Length | Name | Description |
Uint8 | 1 | anr_num | The number of ANR file |
Additional_basic_number_st | variable | Additional_basic_number[anr_num] | All additional number info including name, number and called party sub address. |
Additional_basic_number_st
Type | Length | Name | Description |
Uint8 | 1 | anr_id | additional name identifier |
phone_number_st | bcd_len + 1 | BCD number | BCD number including additional number |
sub_address_st | subadd_len + 1 | Subadd | Called party sub address |
Notes: AT+CSCS does not effect on AT^DPBR, AT^DPBW,in addition the upper layer should organize and parse data ,and check thevalidity of data coding scheme.
This alpha‑tagging shall useither:
- - the SMS default 7‑bit coded alphabet as defined in TS 23.038 [5] with bit 8 set to 0. The alpha identifier shall be left justified. Unused bytes shall ‘e ’et to ‘FF’.
or:
- one of the UCS2 coded options as defined in the annex of TS 31.101 [11]