AT+CPBW confusion


+ Reply to Thread
Results 1 to 3 of 3

Hybrid View

  1. #1
    Join Date
    Jun 2021
    Posts
    2

    Default AT+CPBW confusion

    Hello all,
    I want to write to the SIM800L phonebook.
    From the Serial Com it is working but from the PIC I cannot get it to work.
    I am using a PIC16F1825 and the AT commands like this:
    no_ok_signal:
    HSerOut ["AT",13]
    HSerIn 4000,no_ok_signal,[Wait("OK")]
    DelayMS 1000
    HSerOut ["AT+CMGF=1",13]
    HSerIn 4000,no_ok_signal,[Wait("OK")]
    DelayMS = 1000
    HSerOut ["AT+CSCS=",34,"GSM",34,13]
    HSerIn 4000,no_ok_signal,[Wait("OK")]
    DelayMS 1000
    HSerOut ["AT+CPBS=",34,"SM",34,13]
    HSerIn 4000,no_ok_signal,[Wait("OK")]
    DelayMS 1000

    ‘Write phonebook entry to the first free location.
    HSerOut ["AT+CPBW=",34,"+277218xxxxx",34,13]
    ‘When I list the contents of the phonebook using a TTL to USB converter
    ‘and Serial Com I cannot find the number +277218xxxxx.
    AT+CPBR=1,100

    ‘But when I use Serial Com to write a phonebook entry it works.
    AT
    ‘Write phonebook entry to the first free location:
    AT+CPBW=,"+277218xxxxx"
    ‘List phonebook:
    AT+CPBR=1,100
    ‘The Response:
    +CPBR: 3,"+277218xxxxx ",145,""
    OK

    Can someone please point me in the right direction to use AT+CPBW

  2. #2
    Join Date
    Sep 2009
    Posts
    716

    Default Re: AT+CPBW confusion

    You don't have comma after = when sending from PIC.
    In serial comm you have =,
    Anyway I think correct syntax is AT+CPBW=1,"+22222222222" for writing to location 1.
    Last edited by pedja089; - 24th June 2021 at 16:07.

  3. #3
    Join Date
    Jun 2021
    Posts
    2

    Default Re: AT+CPBW confusion

    Thank you, the comma solved the problem

Similar Threads

  1. RS-232 confusion
    By Christopher4187 in forum General
    Replies: 11
    Last Post: - 17th March 2015, 15:16
  2. TMR0 Confusion
    By retepsnikrep in forum mel PIC BASIC Pro
    Replies: 15
    Last Post: - 19th August 2011, 11:55
  3. HPWM confusion
    By lerameur in forum General
    Replies: 12
    Last Post: - 5th November 2006, 10:09
  4. HPWM confusion
    By rossfree in forum mel PIC BASIC Pro
    Replies: 3
    Last Post: - 3rd November 2005, 16:50
  5. DIV32 confusion
    By dmairspotter in forum mel PIC BASIC Pro
    Replies: 4
    Last Post: - 7th October 2005, 21:24

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts