PWL (Phone Allow List)¶
The AT@PWL command is used to configure the mobile phone allowlist.
This allowlist can be used for the following functions:
Example:
AT@PWL=gl601###,1,+8618888888888|+8612345678,012F$
+ACK:PWL,123456789012345,C031,10,0,,012F,20210407101530,1234$
AT@PWL?gl601###,,0C37$
+QRY:PWL,123456789012345,C031,10,0,1,1,1,+861888888888|+8612345678,0C37,20210407101530,1234$
Parts |
Fields |
Length (Byte) |
Range/Format |
Default |
|---|---|---|---|---|
Head |
Header |
3 |
AT@ |
AT@ |
Command Word |
3 |
PWL |
PWL |
|
Leading Symbol |
1 |
= |
= |
|
Password |
8-16 |
gl601### |
||
Body |
Action |
1 |
0, 1, 2 |
|
Phone Number List |
N |
|||
Tail |
Sequence Number |
4 |
0000-FFFF (‘0’-‘9’, ‘A’-‘F’) |
|
Tail |
1 |
$ |
$ |
Action
0- Append the phone numbers carried in the ‘Phone Number List’ field to the terminal.
1 - Replace the phone numbers in the terminal with the phone numbers carried by the ‘Phone Number List’ field.
2 - Clear the phone numbers carried in the ‘Phone Number List’ field from the terminal. If the phone numbers to be deleted is not specified (that is, the ‘Phone Number List’ parameter is empty), the terminal will clear all phone numbers.
In particular, it will be 1 when reading this field.
Phone Number List
Specify the phone number(s). The terminal supports setting up to 20 phone numbers. The characters ‘|’ are used to connect each phone number. If a phone number is an international number, remember to add “+” and the area code.
For example, “+8618888888888” means one phone number +8618888888888, and “+8618888888888|+8612345678” means two phone numbers: +8618888888888 and +8612345678.
Note: The length of each phone number should not exceed 20 bytes.