Setting IP Address via program

G

Guest

Hello Again,

I wanted to ask this in a seperate question from the last one.

I will need to be able to place a specific IP address on the ppc for the
WiFi radio to connect to. Is there a way to do this during the cab install or
do I need to have a seperate program that sets up the IP address?

My ultimate goal is to have a cab file that will install the application and
it's support files along with setting the IP address for the WiFi radio in
the event that the PPC has been hard reset or the battery goes completely
down.

Thanks in advance,
 
P

Paul G. Tobey [eMVP]

And the address will be the same for every device in the world on which this
is installed? Seems wrong to me. I'm going to ask you to clear up what
you're actually trying to do, but let me try to clarify what IP addresses
and WiFi adapters do with each other. The adapter can be *assigned* an IP
address. This address belongs to the adapter and, if there's another device
with the same address, *bad things* will happen. Adapters don't 'connect
to' IP addresses, at least in the sense of that being something that you
would configure in the device registry, unless your program does something
with the value.

So, what address are you going to assign to the device? You can't assign
the same one to every device, which is the only way you could use the
registry settings in a setup project to install your application. The
second device that you installed the software on would have the same IP as
the first and both would stop working. Even if you write a separate setup
program to set the IP address, where is that value going to come from? How
will you assure that device #2 doesn't match device #1? Or device #347?

Paul T.
 
G

Guest

To clarify...

We have an application that we wrote to run on the PPC and each and every
night at 2am the device will use WiFi to attach to a special "COMMBOX" (the
IP address) and transfer data and look to see if it has to pick up any data.
(This will be a PPC/COMMBOX pair and only one location will have a matched
set.)

So, if the PPC gets toasted or a hard-reset is done I want to be able to
restore the program and settings back to it's original values by simply
tapping on an install icon from the storage card.

------------------------------------------
Noble D. Bell
AgForest Partners, Inc.



Paul G. Tobey said:
And the address will be the same for every device in the world on which this
is installed? Seems wrong to me. I'm going to ask you to clear up what
you're actually trying to do, but let me try to clarify what IP addresses
and WiFi adapters do with each other. The adapter can be *assigned* an IP
address. This address belongs to the adapter and, if there's another device
with the same address, *bad things* will happen. Adapters don't 'connect
to' IP addresses, at least in the sense of that being something that you
would configure in the device registry, unless your program does something
with the value.

So, what address are you going to assign to the device? You can't assign
the same one to every device, which is the only way you could use the
registry settings in a setup project to install your application. The
second device that you installed the software on would have the same IP as
the first and both would stop working. Even if you write a separate setup
program to set the IP address, where is that value going to come from? How
will you assure that device #2 doesn't match device #1? Or device #347?

Paul T.
 
P

Paul G. Tobey [eMVP]

So, you want to put your own settings into the registry and nothing else.
An install project can do that. If you're using VS2005, create a new Smart
Device CAB distribution project and set up the files to be installed in the
usual way. On the View menu, choose Editor and select Registry. Add the
keys that you want.

Paul T.

Noble Bell said:
To clarify...

We have an application that we wrote to run on the PPC and each and every
night at 2am the device will use WiFi to attach to a special "COMMBOX"
(the
IP address) and transfer data and look to see if it has to pick up any
data.
(This will be a PPC/COMMBOX pair and only one location will have a matched
set.)

So, if the PPC gets toasted or a hard-reset is done I want to be able to
restore the program and settings back to it's original values by simply
tapping on an install icon from the storage card.

------------------------------------------
Noble D. Bell
AgForest Partners, Inc.
 
G

Guest

Hi Paul,

My bad. We are using VS2003, and we need to have the install file be one
that can be ran from the PPC and not be required to run from the desktop.

Is this all still possible in 2003? We are going to upgrade to 2005 in
December but I need to get this working now in 2003.

Thanks for all your help..


--
------------------------------------------
Noble D. Bell
AgForest Partners, Inc.
 
P

Paul G. Tobey [eMVP]

I'd just be looking at it, which you can do, too. Search the help for "cab
install registry" and see what you find. You have to edit the INF file, if
I remember (I *never* do installers for smart device projects).

Paul T.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top