Welcome to Soft32 Forums!
FAQFAQ    SearchSearch      ProfileProfile    Private MessagesPrivate Messages   Log inLog in

GPRS with Connection Manager and DMProcessConfigXML

 
   Soft32 Home -> PDA -> Pocket PC Developer Networking RSS
Next:  Active Sync USB Connection Problem  
Author Message
Fabio Sobral

External


Since: Jan 16, 2009
Posts: 5



(Msg. 1) Posted: Thu Jan 22, 2009 2:26 pm
Post subject: GPRS with Connection Manager and DMProcessConfigXML
Archived from groups: microsoft>public>pocketpc>developer>networking (more info?)

Hi folks.

I tried getting a GPRS connection created and used programatically without
touching the Connection Manager, but couldn't get it done. So I decided to
learn something about the Connection Manager learned about the
DMProcessConfigXML.
Using it with CM_GPRSEntries and CM_Planner, I managed to create a GPRS
connection using the IID_DestNetInternet network and made it the preferred
connection for the said network. And finally, I connect with
ConnMgrEstablishConnectionSync.
However, this only works if the IID_DestNetInternet network (usually known
as Internet or My ISP) is selected to be used by applications on the
Connection Manager.
If another network is selected (like "My Work Network") the connection fails.

Is there a way to programatically (this includes xml) to select the network
to be used at runtime?
Or better, is there a way to just ask the Connection Manager to use the
params I want (apn, username...), instead of having the trouble of changing
the device's configuration?

Thanks in advance.
Back to top
Login to vote
Fabio Sobral

External


Since: Jan 16, 2009
Posts: 5



(Msg. 2) Posted: Fri Jan 23, 2009 6:36 am
Post subject: RE: GPRS with Connection Manager and DMProcessConfigXML [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Just to clarify, I want to select the preferred network (Connections >
Advanced > Select Networks), not the preferred connection of a network.

And a little update:
I tried using CM_Mappings to map a dummy url to a network and see if
ConnMgrMapURL would ignore the selected network and find my connection, but
it didn't work.

I'll start poking the registry...


"Fabio Sobral" wrote:

> Hi folks.
>
> I tried getting a GPRS connection created and used programatically without
> touching the Connection Manager, but couldn't get it done. So I decided to
> learn something about the Connection Manager learned about the
> DMProcessConfigXML.
> Using it with CM_GPRSEntries and CM_Planner, I managed to create a GPRS
> connection using the IID_DestNetInternet network and made it the preferred
> connection for the said network. And finally, I connect with
> ConnMgrEstablishConnectionSync.
> However, this only works if the IID_DestNetInternet network (usually known
> as Internet or My ISP) is selected to be used by applications on the
> Connection Manager.
> If another network is selected (like "My Work Network") the connection fails.
>
> Is there a way to programatically (this includes xml) to select the network
> to be used at runtime?
> Or better, is there a way to just ask the Connection Manager to use the
> params I want (apn, username...), instead of having the trouble of changing
> the device's configuration?
>
> Thanks in advance.
Back to top
Login to vote
Fabio Sobral

External


Since: Jan 16, 2009
Posts: 5



(Msg. 3) Posted: Fri Jan 23, 2009 10:54 am
Post subject: RE: GPRS with Connection Manager and DMProcessConfigXML [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Nevermind.
Finally made it with CM_ProxyEntries.




"Fabio Sobral" wrote:

> Just to clarify, I want to select the preferred network (Connections >
> Advanced > Select Networks), not the preferred connection of a network.
>
> And a little update:
> I tried using CM_Mappings to map a dummy url to a network and see if
> ConnMgrMapURL would ignore the selected network and find my connection, but
> it didn't work.
>
> I'll start poking the registry...
>
>
> "Fabio Sobral" wrote:
>
> > Hi folks.
> >
> > I tried getting a GPRS connection created and used programatically without
> > touching the Connection Manager, but couldn't get it done. So I decided to
> > learn something about the Connection Manager learned about the
> > DMProcessConfigXML.
> > Using it with CM_GPRSEntries and CM_Planner, I managed to create a GPRS
> > connection using the IID_DestNetInternet network and made it the preferred
> > connection for the said network. And finally, I connect with
> > ConnMgrEstablishConnectionSync.
> > However, this only works if the IID_DestNetInternet network (usually known
> > as Internet or My ISP) is selected to be used by applications on the
> > Connection Manager.
> > If another network is selected (like "My Work Network") the connection fails.
> >
> > Is there a way to programatically (this includes xml) to select the network
> > to be used at runtime?
> > Or better, is there a way to just ask the Connection Manager to use the
> > params I want (apn, username...), instead of having the trouble of changing
> > the device's configuration?
> >
> > Thanks in advance.
Back to top
Login to vote
menu at bottom with MFC

External


Since: Feb 11, 2009
Posts: 1



(Msg. 4) Posted: Wed Feb 11, 2009 11:32 pm
Post subject: RE: GPRS with Connection Manager and DMProcessConfigXML [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Hi Fabio ,


I have entered 3 entries for access points in connection
settings in device .And trying to choose one entry .
In my case DMProcessConfigXML returns S_OK .But the access point is not
getting selected.
Because when I try ConnMgrEstablishConnectionSync it attempts connection
with wrong access point.
Can you please pinpoint where I am going wrong?



"Fabio Sobral" wrote:

> Hi folks.
>
> I tried getting a GPRS connection created and used programatically without
> touching the Connection Manager, but couldn't get it done. So I decided to
> learn something about the Connection Manager learned about the
> DMProcessConfigXML.
> Using it with CM_GPRSEntries and CM_Planner, I managed to create a GPRS
> connection using the IID_DestNetInternet network and made it the preferred
> connection for the said network. And finally, I connect with
> ConnMgrEstablishConnectionSync.
> However, this only works if the IID_DestNetInternet network (usually known
> as Internet or My ISP) is selected to be used by applications on the
> Connection Manager.
> If another network is selected (like "My Work Network") the connection fails.
>
> Is there a way to programatically (this includes xml) to select the network
> to be used at runtime?
> Or better, is there a way to just ask the Connection Manager to use the
> params I want (apn, username...), instead of having the trouble of changing
> the device's configuration?
>
> Thanks in advance.
Back to top
Login to vote
vjsharma_29

External


Since: Mar 23, 2009
Posts: 1



(Msg. 5) Posted: Mon Mar 23, 2009 2:58 am
Post subject: RE: GPRS with Connection Manager and DMProcessConfigXML [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

see the follwoing link
http://social.msdn.microsoft.com/Forums/en-US/windowsmobiledev/thread/...3eee5-a

"menu at bottom with MFC" wrote:

> Hi Fabio ,
>
>
> I have entered 3 entries for access points in connection
> settings in device .And trying to choose one entry .
> In my case DMProcessConfigXML returns S_OK .But the access point is not
> getting selected.
> Because when I try ConnMgrEstablishConnectionSync it attempts connection
> with wrong access point.
> Can you please pinpoint where I am going wrong?
>
>
>
> "Fabio Sobral" wrote:
>
> > Hi folks.
> >
> > I tried getting a GPRS connection created and used programatically without
> > touching the Connection Manager, but couldn't get it done. So I decided to
> > learn something about the Connection Manager learned about the
> > DMProcessConfigXML.
> > Using it with CM_GPRSEntries and CM_Planner, I managed to create a GPRS
> > connection using the IID_DestNetInternet network and made it the preferred
> > connection for the said network. And finally, I connect with
> > ConnMgrEstablishConnectionSync.
> > However, this only works if the IID_DestNetInternet network (usually known
> > as Internet or My ISP) is selected to be used by applications on the
> > Connection Manager.
> > If another network is selected (like "My Work Network") the connection fails.
> >
> > Is there a way to programatically (this includes xml) to select the network
> > to be used at runtime?
> > Or better, is there a way to just ask the Connection Manager to use the
> > params I want (apn, username...), instead of having the trouble of changing
> > the device's configuration?
> >
> > Thanks in advance.
Back to top
Login to vote
Display posts from previous:   
Related Topics:
Releasing a Connection Manager connection in Pocket PC 2003 - Hello, I am trying to use ConnMgrReleaseConnection to close a connection that I establish with..

Acquiring an exclusive 802.11 connection using Connection .. - Is it possible to use ConnMgrMapConRef() to force the Connection Planner use an 802.11 connection just like we could d...

Activate GPRS connection and RADIO connection via source c.. - Hi all, I need to call some api or similar, to open via source code the GPRS connection (as you do manually when open....

connection manager - Hi, I am using the connection manager API's for my iPaq 2215 with PPC 2003 on it. Is there a way to update the phone..

Connection Manager - Dear all, hoping someone helps me out. my task is to monitor GPRS connection on a PPC. when I read the document,..

How does WZC use the connection manager? - In WM5 if I disable WZC and then use Ndisuio to connect to a wireless network, even though I connect and get an IP..
       Soft32 Home -> PDA -> Pocket PC Developer Networking All times are: Pacific Time (US & Canada) (change)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You can edit your posts in this forum
You can delete your posts in this forum
You can vote in polls in this forum

Categories:
 Windows
 Linux
 Mac
  PDA


[ Contact us | Terms of Service/Privacy Policy ]