albertjan/PipeToCom — Issue #6: Service not working (from technet)
Author: albertjan
Created: 2011-11-30 09:52:36+00:00
State: open

Hi,

i've tried everything to get NP2COM to work but without success.

I'm running Gentoo Linux in a virtual machine on Windows Server 2008 R2 (x64) with Hyper-V role.

First i activated the named pipes COM ports (pipe name: hv_linux_com1 and hv_linux_com2) in HyperV settings for my VM.

Then i installed NP2COMS:

C:\Utils\NP2COM>InstallUtil.exe NP2COMS.exe
Microsoft (R) .NET Framework Installation utility Version 4.0.30319.1
Copyright (c) Microsoft Corporation. All rights reserved.

Running a transacted installation.

Beginning the Install phase of the installation.
See the contents of the log file for the C:\Utils\NP2COM\NP2COMS.exe assembly's
progress.
The file is located at C:\Utils\NP2COM\NP2COMS.InstallLog.
Installing assembly 'C:\Utils\NP2COM\NP2COMS.exe'.
Affected parameters are:
logtoconsole =
logfile = C:\Utils\NP2COM\NP2COMS.InstallLog
assemblypath = C:\Utils\NP2COM\NP2COMS.exe
Installing service NP2COMService...
Service NP2COMService has been successfully installed.
Creating EventLog source NP2COMService in log Application...

The Install phase completed successfully, and the Commit phase is beginning.
See the contents of the log file for the C:\Utils\NP2COM\NP2COMS.exe assembly's
progress.
The file is located at C:\Utils\NP2COM\NP2COMS.InstallLog.
Committing assembly 'C:\Utils\NP2COM\NP2COMS.exe'.
Affected parameters are:
logtoconsole =
logfile = C:\Utils\NP2COM\NP2COMS.InstallLog
assemblypath = C:\Utils\NP2COM\NP2COMS.exe

The Commit phase completed successfully.

The transacted install has completed.

I've put the config files (hv_linux_com1.n2c and hv_linux_com2.n2c) in the same folder:

.
hv_linux_com1
COM1
9600
One
None
8

.
hv_linux_com2
COM2
9600
One
None
8

For testing purposes i'm using a Cisco routers serial console port connected to the COM1 port.

I verified the connection with Hyperterm from Windows -> ok.

The NP2COM service starts without any errors. Event log says: Service started succesfully.

I'm using Minicom within Gentoo Linux to connect to /dev/ttyS0 but it doesn't work. I've tried all connection settings possible.

One strange thing is, that the COM port is not blocked by NP2COM while the service is running.

This looks like NP2COM does not work at all and i don't know why and how to debug this properly. Please help!

Regards,

Axel