Skip to contentSkip to conversation

Issue with an URC falling into an AT command response

DISCUSSION Bassem BOUBAKER 1 participant 1 message Feb 28, 2018

lore
Share & tools
lore
#0 lore raw

Hello Community,

I'm facing an issue with an ofono segfault because of an URC is received between the AT command and its response.

Below is my case:

	ofonod[826]: App: > AT^SMONI\r
	ofonod[826]: App: < \r\n^SREG: 2,0\r\n
	ofonod[826]: App: < \r\n^SMONI: Searching\r\nSearching\r\n\r\nOK\r\n

The URC ^SREG is captured in the callback function related to handling the response of AT^SMONI.

I have two questions here:

i) how can I isolate only the response of AT^SMONI without nasty hacking the response cb function.

ii) How can I force ofono to go through the registered callback of the URC ^SREG in this particular case.

Any ideas?

Thanks,
Bassem.