Uart + gprs


#1

OpenAT 2.10
This code does not work

adl_fcmSubscribe( ADL_FCM_FLOW_V24_MASTER | ADL_FCM_FLOW_GPRS_PREFERRED, _v24_ControlCbk, _v24_DataCbk );
...
ed_GprsSetConfig( &g_gprsParams );
ed_DialupConnectionStart( ed_DialupConnectionStartCbk );

ed_DialupConnectionStartCbk ( s32 event ) receive event ED_ERR_WM_PARSER_FLOW

But in this sequence it works correctly

ed_GprsSetConfig( &g_gprsParams );
ed_DialupConnectionStart( ed_DialupConnectionStartCbk ); 
...
wait for ED_OK_PPP event
...
adl_fcmSubscribe( ADL_FCM_FLOW_V24_MASTER | ADL_FCM_FLOW_GPRS_PREFERRED, _v24_ControlCbk, _v24_DataCbk );

What does error code “ED_ERR_WM_PARSER_FLOW” mean?


#2

Hello,

In the “[color=blue]Open AT 2.10 Development Guide” under the chapter “[color=blue]3.5 Flow Control Manager API”, subclause “[color=blue]3.5.2.4 Notes”…puh…
There is written:

…and since the ADL lib is based on the standard Open AT API thats valid for the ADL development as well…

ED_ERR_WM_PARSER_FLOW result code according to the documentation:

But I dont know in more detail. When do you get this result code?

/Snoooze


#3

Thats mean that I can’t open v24 flow in data mode before GPRS flow. :frowning:
I need to process data from v24 flow all the time (immediately after start), at the same time try (retry) open the socket.

adl_fcmSubscribe( ADL_FCM_FLOW_V24_MASTER | ADL_FCM_FLOW_GPRS_PREFERRED, _v24_ControlCbk, _v24_DataCbk );
...
ed_GprsSetConfig( &g_gprsParams );
ed_DialupConnectionStart( ed_DialupConnectionStartCbk );

ED_ERR_WM_PARSER_FLOW is the first response. And then unsolicited message
+CGEV: ME DEACT “IP”, “172.20.135.150”, 1

Thanks, I read that error description, but I hope that anyone can tell me more.