Go Back   xda-developers > HTC Prophet: JAMin, XDA Neo, S200 > JAMin, XDA Neo, S200 General


Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 31st July 2006, 01:36 PM
dma147 dma147 is offline
Member
 
Join Date: Jul 2006
Location: Berlin
Posts: 37
Default how to manage different network profiles?

Hello all...

I'm searching since a few hours for a solution but there seems to be none...

I've to switch between at least three different WLAN networks every day. Most of them are providing dynamically IPs over a dhcp server but one important network needs a static IP configured on my network card. So I have to re-configure my "SDIO WLAN Wireless Adapter" every time when changing from one network into another...
That's really very annoying...

Now I'm thinking about to have something like network profiles which can be easily switched from the today screen...

Is there something out there which provides something like that?

Or is it possible to create something like a today plugin or similar which provides such network profiles?

Maybe this could be a good idea for a today plugin writer...

Please help.
__________________
Before asking
How to ask

Processor: OMAP850-195MHz
ROM: 2.15.4.29 GER
ExtROM: 2.15.4.115
Protocol: 4.1.13.09
Radio: 02.19.21
Reply With Quote
Sponsored Links

  #2  
Old 31st July 2006, 03:44 PM
siaccarino's Avatar
siaccarino siaccarino is offline
Junior Member
 
Join Date: Apr 2005
Location: Bremen
Posts: 13
Default

German speaking
http://www.ppc-welt.info/community/s...d.php?p=743295

English speaking
http://www.pocketmax.net/smf/index.php?topic=2650.0

Project home page
http://www.iaccarino.de/silvio/NetManager.htm

More about this project
http://www.iaccarino.de/silvio/stuff...ilerReadme.htm
Reply With Quote

  #3  
Old 31st July 2006, 10:49 PM
dma147 dma147 is offline
Member
 
Join Date: Jul 2006
Location: Berlin
Posts: 37
Default

Hi siaccarino...

this looks very good, thanks!

I've downloaded and installed phonealarm and I've also already configured some phonealarm profiles.
Then I've downloaded and unpacked your MobileProfiler to a path without spaces in the Programs folder on the device (not on the storage card).

After that I've configured my device with a static IP and all other thing I want to use for the "work" profile. Then I've started MobileProfiler.exe through my filemanager and selected "<new>" for the profile "work". It asked me for a name for the new snapshot, all went okay and like explained in all readmes and documentations.

I've done the same for the "home" profile, now with dynamic IP setting in the network card preferences.

After storing and soft resetting I've tried to switch the profiles and all was fine except the IP settings of my network card.

let's assume I've configured my device to use dynamic IP. When switching the profile from "home" to "work" there appears a message box which says that MobileProfiler will now change the network settings... but the IP setting of my network card is still dynamic but it should be static (192.168.100.100) as configured and saved when taking the snapshot in MobileProfiler.

Maybe you have an idea what's going wrong here? I've all done like it was explained everywhere...

(Sorry for my bad english, I'm not a native speaker)
__________________
Before asking
How to ask

Processor: OMAP850-195MHz
ROM: 2.15.4.29 GER
ExtROM: 2.15.4.115
Protocol: 4.1.13.09
Radio: 02.19.21
Reply With Quote

  #4  
Old 1st August 2006, 01:31 AM
siaccarino's Avatar
siaccarino siaccarino is offline
Junior Member
 
Join Date: Apr 2005
Location: Bremen
Posts: 13
Default

try to enhance the CreateSnapshot.xml :
<characteristic-query type="CM_NetEntries" />
or
<characteristic-query type="CM_Networks" />

Prior this you may do some tests with a query.xml document and check the result.xml for the ip number...
Reply With Quote

  #5  
Old 1st August 2006, 02:23 AM
siaccarino's Avatar
siaccarino siaccarino is offline
Junior Member
 
Join Date: Apr 2005
Location: Bremen
Posts: 13
Default

I´ve finished some experiments:
create a query.xml:
Code:
<?xml version="1.0" encoding="utf-16"?>
<wap-provisioningdoc>
  <characteristic type="Registry">
     <characteristic-query type="HKLM\Comm\TNETWLN1\Parms\Tcpip" />
** </characteristic>
</wap-provisioningdoc>
Execute the query and pick up the parameters you need and add a parm-query for each in CreateSnapshot.xml. Eg. add this for the IP Address, the subnet and the dhcp client:
Code:
<characteristic type="Registry">
  <characteristic type="HKLM\Comm\TNETWLN1\Parms\Tcpip">
    <parm-query name="IpAddress" />
    <parm-query name="Subnetmask" />
    <parm-query name="EnableDHCP" />
</characteristic>
</characteristic>
Reply With Quote

  #6  
Old 1st August 2006, 10:16 AM
siaccarino's Avatar
siaccarino siaccarino is offline
Junior Member
 
Join Date: Apr 2005
Location: Bremen
Posts: 13
Default

I have updated the manual with a much more detailed part, how to change the IP settings via Mobile Profile snapshots:
http://www.iaccarino.de/silvio/stuff...ilerReadme.htm
Reply With Quote

  #7  
Old 1st August 2006, 11:03 AM
dma147 dma147 is offline
Member
 
Join Date: Jul 2006
Location: Berlin
Posts: 37
Default

Quote:
Originally Posted by siaccarino
I´ve finished some experiments:
create a query.xml:
Code:
<?xml version="1.0" encoding="utf-16"?>
<wap-provisioningdoc>
  <characteristic type="Registry">
     <characteristic-query type="HKLM\Comm\TNETWLN1\Parms\Tcpip" />
   </characteristic>
</wap-provisioningdoc>
Execute the query....
I've simply copy&paste'ed the above code into a query.xml then I've created a shortcut to "\Programme\MobileProfiler\MobileProfiler \Programme\MobileProfiler\query.xml" and run it.
There appear two msg boxes then. One at the bottom which tells me, that the results will be saved in \Programme\MobileProfiler\results.xml, and one in the middle of the screen which tells me: "Errorcode = CONFIG_E_BAD_XML"
The results.xml was not created.
But the file and its contents are looking okay for me?

Quote:
and pick up the parameters you need and add a parm-query for each in CreateSnapshot.xml. Eg. add this for the IP Address, the subnet and the dhcp client:
Code:
<characteristic type="Registry">
  <characteristic type="HKLM\Comm\TNETWLN1\Parms\Tcpip">
    <parm-query name="IpAddress" />
    <parm-query name="Subnetmask" />
    <parm-query name="EnableDHCP" />
</characteristic>
</characteristic>
__________________
Before asking
How to ask

Processor: OMAP850-195MHz
ROM: 2.15.4.29 GER
ExtROM: 2.15.4.115
Protocol: 4.1.13.09
Radio: 02.19.21
Reply With Quote

  #8  
Old 1st August 2006, 11:07 AM
dma147 dma147 is offline
Member
 
Join Date: Jul 2006
Location: Berlin
Posts: 37
Default

ahh, okay... I think "kate", the text-editor of KDE (Linux) is not Unicode'ed...
this can be the problem...

[edit]
but it can handle Unicode utf-16... so I've configured it and now I'm at modifying the files.... I'll report the success. Thanks
[/edit]
__________________
Before asking
How to ask

Processor: OMAP850-195MHz
ROM: 2.15.4.29 GER
ExtROM: 2.15.4.115
Protocol: 4.1.13.09
Radio: 02.19.21
Reply With Quote

  #9  
Old 1st August 2006, 11:13 AM
siaccarino's Avatar
siaccarino siaccarino is offline
Junior Member
 
Join Date: Apr 2005
Location: Bremen
Posts: 13
Default

you may use PHM Notepad on the Pocket PC - it is Unicode aware.
Reply With Quote

  #10  
Old 1st August 2006, 11:51 AM
dma147 dma147 is offline
Member
 
Join Date: Jul 2006
Location: Berlin
Posts: 37
Default

Cool... all works like a charm now!
Many thanks!

It switches between static and dynamic IP... very cool...
__________________
Before asking
How to ask

Processor: OMAP850-195MHz
ROM: 2.15.4.29 GER
ExtROM: 2.15.4.115
Protocol: 4.1.13.09
Radio: 02.19.21
Reply With Quote

Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 11:32 PM.


Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.