Skip to contentSkip to conversation

Waiting "PB DONE" message before create the phonebook

DISCUSSION Viallard Anthony 2 participants 2 messages Sep 15, 2015

lore
Share & tools
lore
#0 lore raw

Hi,

My module (SIMCOM5216) sends "PB DONE" when the phonebook is ready. So, I would like to wait for this message before instantiated the phonebook interface in ofono.

In the phonebook AT driver, there is a quirk for ifx vendor. So, I try to do the same thing, not with the "+PBREADY" message, but with "PB DONE" and it doesn't work.

I don't known where to put my quirk. Can you give me some hints ?

Regards,
Anthony Viallard.

#1 lore raw

Hi Anthony,

Quoted 6 lines · Viallard Anthony

Hi,

My module (SIMCOM5216) sends "PB DONE" when the phonebook is ready. So, I would like to wait for this message before instantiated the phonebook interface in ofono.

Quoted 6 lines

In the phonebook AT driver, there is a quirk for ifx vendor. So, I try to do the same thing, not with the "+PBREADY" message, but with "PB DONE" and it doesn't work.

I don't known where to put my quirk. Can you give me some hints ?

A quirk setting is usually done in two places:

1. The atom driver itself. e.g. drivers/atmodem/phonebook.c
2. The modem driver. Instead of passing 0 as the second argument, you pass in the vendor quirk. e.g.:

	ofono_phonebook_create(modem, VENDOR_QUIRK, "atmodem", ...);

Hope this helps.

Regards,
-Denis