Device manager / control Panal without graphical interface

M

Mike Engel

Hi all,

I am new to Windows XP Embedded and facing some problems, by including a new
hardware profile to my image. I want to include a new serial port. Normally
this is done over Control Panel->Add/Remove hardware, but my Winodws XP has
only a console and no graphical interface.

Is their a possibillity to add a new hardware to the device manager with
console commands?

Where are stored the information of the Device manager? Maybe it if possible
to modify such a file to include the new hardware.

Any help and advice is appreciaded

Mike Engel
 
S

Slobodan Brcin \(eMVP\)

M

Mike Engel

Hi Slobodan,

many thanks for your hepl. I found the devcon.exe tool and will try it now.
I actually need on that tool to make some device configuration on a run
Windows XP embedded.

Best regards,

Mike Engel
 
M

Mike Engel

Hi ,

how can I add a new device with devcon or exist their another program to
make that. It seems to me that you only can view your settings, but I would
like to add a new device to windows xp, like with Add/Remove in the Control
Panel.

Thanks all.

Best regards,

Mike Engel
 
B

Brad Combs

Mike,

Here is an example of a batch that I use to install a temperamental
framegrabber during FBA....

copy c:\Sensoray\sxdrv98.sys c:\windows\system32\drivers\sxdrv98.sys
copy c:\Sensoray\sx11.inf c:\windows\inf\sx11.inf
copy c:\sensoray\sx11.dll c:\windows\system32\sx11.dll
copy c:\Sensoray\sx11ex.dll c:\windows\system32\sx11ex.dll

c:\windows\devcon.exe update "c:\windows\inf\sx11.inf"
"PCI\VEN_109E&DEV_036E&SUBSYS_06116000"
c:\windows\devcon.exe update "c:\windows\inf\sx11.inf"
"PCI\VEN_109E&DEV_0878"

This should work for you, just replace all the necessary information with
your specific hardware.

HTH,
--
Brad Combs
Imago Technologies, LLC

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Have an opinion on the effectiveness of Microsoft Embedded newsgroups? Tell
Microsoft!
https://www.windowsembeddedeval.com/community/newsgroups
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 
M

Mike Engel

Hi ,

thanks for your help, but I think that what I wanted to do, is not possible
with devcon. I have a third serial port on a PCI to PC/104 card on my
Windows XP system. Unfornatly, I only have a console and no graphic. I want
to add this new hardware to my Windows XP system and looking for a method of
doing that.

On a normal PC you add a new hardware with the hardware assistent. I do not
know if something similar exist for a console based Windows XP embedded. A
tool that can add new hardware, configure the typ of hardware, etc.

Thanks to all for your help.

Best regards,

Mike Engel
 
S

Slobodan Brcin \(eMVP\)

Hi Mike,

If this is PnP card then you can trigger device reenumeration so PnP will
find and install this port.

devcon rescan

If not and feel like you want to program then look at the category of API
functions "Device Installation Functions"
look especially for the api functions like UpdateDriverForPlugAndPlayDevices

look at devcon update

And you can always make your config app.

Regards,
Slobodan

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Have an opinion on the effectiveness of Microsoft Embedded newsgroups? Tell
Microsoft!
https://www.windowsembeddedeval.com/community/newsgroups
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 
K

KM

Or, if the card is not PnP, at least you can manually install the driver on your XP Pro machine, capture all the registry entries
with the tools like RegSnap or InCtrl5 and deploy the registry to your XPe image along with the driver files.
This will emulate the installation. Labour-intensive but works.
 
M

Mike Engel

Hi

the PCI card is detected by the system, but the PC/104 card on the PCI card
not. The PC/104 card has a COM port card. I thought there is a tool similar
to hdwwiz.cpl to add new hardware under a console based image.

Can I change a current COM port to another port value and maybe change the
resource information?

IO: and IRQ:

Can I do this with devcon?

Where is the device manager file located or where does the DM get the
information of the installed hardware? Sorry for that stupied question, but
I am a newby in Windows XP.

Thanks,

Mike Engel

KM said:
Or, if the card is not PnP, at least you can manually install the driver
on your XP Pro machine, capture all the registry entries
with the tools like RegSnap or InCtrl5 and deploy the registry to your XPe
image along with the driver files.
 
S

Slobodan Brcin \(eMVP\)

You can do that by making your application.

Can you tell us what is PCI card used for and what is PC/104 card.

Is this some PCI to PCI bridge card, or something else?


Read more about related functions.
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/install/hh/
install/di-rtns_85ma.asp
Can I change a current COM port to another port value and maybe change the
resource information?
See prev answer, yes you can.
Can I do this with devcon?
I don't think that you can.
 
K

KM

Mike,

I don't know if devcon can do what you need to. I don't think the tool is capable of change particular device configuration
settings.

You always can use DDK to set up your hardware without any hardware wizards.

Also, is it possible from your console based shell just to call "control hdwwiz.cpl" ? Would it help or you don't have any GUI at
all?
 
K

KM

And, btw, you can always change the INF file of your driver to specify resources like IOConfig, etc., and then install it with
devcon.
 
M

Mike Engel

Hi KM and Slobodan,

thanks a lot for your help and comments. The card is a PCI to PC/104 brigde.
I have a PC/104 card which has a serial port on it. The problem is that I am
not the one how makes th Windows XP Kernel. I only have a with this kernel
with console. I think for control.exe you need the explorer installed in
your system.

Can you use the hdwwiz.cpl form a normal Windows XP or W2K or does the
Windows XP Embedded has one?

I will have look at the *.inf files to see if I can change something for the
serial port. This means that the Device manager gather all the information
from the *.inf files?

If someone has an application that can do this or know such an application,
please let me know.

Best regards,

Mike Engel

KM said:
And, btw, you can always change the INF file of your driver to specify
resources like IOConfig, etc., and then install it with
 
K

KM

Mike,
Hi KM and Slobodan,

thanks a lot for your help and comments. The card is a PCI to PC/104 brigde.
I have a PC/104 card which has a serial port on it. The problem is that I am
not the one how makes th Windows XP Kernel. I only have a with this kernel

Not sure what you are trying to say here. Do you have Kernel only XPe image?
with console. I think for control.exe you need the explorer installed in
your system.

I am not sure about the Explorer dependency. But you can try a command like
"rundll32.exe shell32.dll,Control_RunDLL hdwwiz.cpl" to launch the applet.
Assuming you got all the components in the image (like "Primitive: Shell32",
"Primitive: Rundll32", and thier dependencies). You image size may grow much
with adding these components, though.
Can you use the hdwwiz.cpl form a normal Windows XP or W2K or does the
Windows XP Embedded has one?

Don't understand this question. Of course, you can use hdwwiz.cpl under 2K
and XP. XPe also has a component that holds the hdwwiz.cpl.
I will have look at the *.inf files to see if I can change something for the
serial port. This means that the Device manager gather all the information
from the *.inf files?

When you install the driver - yes. All the info about the driver is coming
from its INF unless there are some specific settings set by the driver
install package (very rarely, I think).
After that you have APIs (DDK functions) to get access to driver's
parameters, etc. Some settings may be in registry but it may not be a proper
way to gather the driver info.
If someone has an application that can do this or know such an
application, please let me know.

I don't know such app. I think it would be hard to write an app that will
allow you to access any driver parameters/settings in Windows. Drivers are
very diversed in that sense. Slobodan may correct me here as he is a DDK guy
:)

KM
 
M

Mike Engel

Hi KM,

thanks for the detailed information.

I only wanted to say that I do not have the XPe tools to generate a new XPe
neither do I have the DDK to make an application specific for my driver. I
have a Compact Flash with an XPe on it and now I try to get this Hardware
running. I wanted to use the standard serial driver of XPe. Therefore, I do
not have a special driver for my device, no installation.

I will try the application mentioned on my system. I tryed Control.exe and I
saw the error message that explorer is missing or necessary. I have change
the msports.inf file and will test it now if it works.

Thanks for you passion and help.

Best regards,

Mike Engel
 
M

Mike Engel

Hi KM,

I have a graphical interface now. I copied explorer.exe and explorer.scf to
my compact flash and than I was able to start control panel. I tryed
devmgmt.msc, but it doesn't work. It seems taht I mess more stuff for mmc or
iexplorer. I have created the new device with hdwwiz.cpl.

Do you know how can I change the COM port number? Actually it is COM3 but I
would like to change it to COM9.

Best regards,

Mike Engel
 
S

Slobodan Brcin \(eMVP\)

Hi Mike,

Ohh, beside that you don't have XPe tools, and DDK. You can use online DDK
doc from the net. But this is not important if only thing you want is to
change com names.

Use regedit to open registry.

Open HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Enum\ ........ \ Device
Parameters PortName REG_SZ "COM3" and change it to "COM9".
Reboot.

Depending on hardware type you will need to determine dots path.

Use find for "PortName" until you find value with "COM3".

Regards,
Slobodan

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Have an opinion on the effectiveness of Microsoft Embedded newsgroups? Tell
Microsoft!
https://www.windowsembeddedeval.com/community/newsgroups
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 

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