Skip to content
This repository has been archived by the owner on Jan 22, 2019. It is now read-only.

Installation Guide #10

Closed
kaznad opened this issue Jan 10, 2012 · 69 comments
Closed

Installation Guide #10

kaznad opened this issue Jan 10, 2012 · 69 comments

Comments

@kaznad
Copy link

kaznad commented Jan 10, 2012

Hi, Please advise how do I install this service? Thanks :)

@albertjan
Copy link
Owner

After you've installed .net 3, 3.5 and 4. You can run %WINDIR%\Microsoft.NET\Framework\v4.0.30319\InstallUtil -t Path\To\NP2COMS.exe

Use NP2COMV to make a .n2c file drop that in the Path\To\NP2COMS.exe

delete example.n2c

run: c:\>net start NP2COMService

or go to services and start it.

Goodluck

@kaznad
Copy link
Author

kaznad commented Jan 10, 2012

Hi Albert,

Thank you so much for your help. I am able to install it now.

Now I am not sure how to use the NP2COMV tool.

I would like to install a GPRS Modem. How should I go about doing it?

Lastly I would like to thank you again for taking the time to send me the
installation guide.

:)

Regards,
Zak

On Tue, Jan 10, 2012 at 4:57 PM, Albert-Jan Nijburg <
reply@reply.github.com

wrote:

After you've installed .net 3, 3.5 and 4. You can run
%WINDIR%\Microsoft.NET\Framework\v4.0.30319\InstallUtil -t Path\To\NP2COMS.exe

Use NP2COMV to make a .n2c file drop that in the Path\To\NP2COMS.exe

delete example.n2c

run: c:\>net start NP2COMService

or go to services and start it.

Goodluck


Reply to this email directly or view it on GitHub:
#10 (comment)

@albertjan
Copy link
Owner

Hi, you create a virtual comport on your virtual machine using the settings dialog like so:

settings hyper-v

remember the name you gave the serialport on the virtual machine here

this is what you look for in the combobox on the left in NP2COMV:

NP2COMV

on the rigth in NP2COMV you use the correct SerialPort settings (they're probably correct as default).

Then you press Write config file. This writes a n2c file to the directory of NP2COMV.

Copy this file to Path\To\NP2COMS.exe remember to delete the example file.

@kaznad
Copy link
Author

kaznad commented Jan 11, 2012

Hi,

I have an error message when I click on test. I followed your example.
Named Pipe has been assigned as comport. and the Namedpipe in the NP2COMV
is also sert as .\pipe\comport I get an error as below.

[image: Capture.JPG]

See the end of this message for details on invoking
just-in-time (JIT) debugging instead of this dialog box.

************** Exception Text **************
System.ArgumentNullException: Value cannot be null.
Parameter name: input
   at System.Text.RegularExpressions.Regex.Match(String input)
   at NP2COMV.Form1.button1_Click(Object sender, EventArgs e)
   at System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent)
   at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
   at System.Windows.Forms.Control.WndProc(Message& m)
   at System.Windows.Forms.ButtonBase.WndProc(Message& m)
   at System.Windows.Forms.Button.WndProc(Message& m)
   at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)

@albertjan
Copy link
Owner

This exception occurs when the selectedItem of combobox is empty. It's probably a bug on my side, I'll have a look at it. To fix it in the meantime: select the correct namedpipe from the combobox instead of typing it in. I should be in the list if the virtual machine created it.

Remember NP2COM should be run on the host machine. Not on the virtual machine.

@kaznad
Copy link
Author

kaznad commented Jan 11, 2012

Hi,

Thanks for the advice.

I tried the named pipe from the list which is lsass. I entered it in the
hyperv settings as well.

When I tried to use the GPRS modem in the virtual server i did not work.

How do I test if the service is working? In the tool, when I click test,
nothing appears below. This is when the NP2com server is stopped. If the
service is started and I test, it crashed.

Any way to test this?

On Wed, Jan 11, 2012 at 5:22 PM, Albert-Jan Nijburg <
reply@reply.github.com

wrote:

This exception occurs when the selectedItem of combobox is empty. It's
probably a bug on my side, I'll have a look at it. To fix it in the
meantime: select the correct namedpipe from the combobox instead of typing
it in. I should be in the list if the virtual machine created it.

Remember NP2COM should be run on the host machine. Not on the virtual
machine.


Reply to this email directly or view it on GitHub:
#10 (comment)

@albertjan
Copy link
Owner

\\.\pipe\lsass is a system pipe. Do not touch. just name the pipe comport like I showed you in the example. Maybe restart your virtual machine. After you've done that, start NP2COMV now \\.\pipe\comport should then be in the dropdown list. Then try it.

@kaznad
Copy link
Author

kaznad commented Jan 12, 2012

Hi,

I tried to use the pipename comport in both the vitual server settings and
the write the config file pipe name as comport as well. When I tried to
click on test on the NP2COMV tool, i get a com1 access denied. Then I tried
to stop the NP2COM server and tried again the button change from test to
testing but there was no output in the bottom. The modem does not work as
well.

Please advise.

On Wed, Jan 11, 2012 at 6:47 PM, Albert-Jan Nijburg <
reply@reply.github.com

wrote:

'.\pipe\lsassis a system pipe. Do not touch. just name the pipe comport like I showed you in the example. Maybe restart your virtual machine. After you've done that, start NP2COMV now.\pipe\comport`
should then be in the dropdown list. Then try it.


Reply to this email directly or view it on GitHub:
#10 (comment)

@kaznad
Copy link
Author

kaznad commented Jan 13, 2012

Hi,

It finally works!

It was a stupid mistake on my part. I should have used com port 3 instead.

The only thing now is, it sometimes doesn't work and I have to restart the
virtual server.
Is there anything I can do to fix this. Once the server is live, it is not
practical to restart the server.

On Thu, Jan 12, 2012 at 11:45 AM, Mohd Zakaria kazak21@gmail.com wrote:

Hi,

I tried to use the pipename comport in both the vitual server settings and
the write the config file pipe name as comport as well. When I tried to
click on test on the NP2COMV tool, i get a com1 access denied. Then I tried
to stop the NP2COM server and tried again the button change from test to
testing but there was no output in the bottom. The modem does not work as
well.

Please advise.

On Wed, Jan 11, 2012 at 6:47 PM, Albert-Jan Nijburg <
reply@reply.github.com

wrote:

'.\pipe\lsassis a system pipe. Do not touch. just name the pipe comport like I showed you in the example. Maybe restart your virtual machine. After you've done that, start NP2COMV now.\pipe\comport`
should then be in the dropdown list. Then try it.


Reply to this email directly or view it on GitHub:
#10 (comment)

@albertjan
Copy link
Owner

Hi,

Thats cool.

It's absolutely not practical to restart the vm once it's live.

But I need more information than "it stops working".

Do you have a logfile with such a failure it in? NP2COMS should log some stuff.

Does it happen at random or when you do something special?

@RanmaKei
Copy link

I notice it loses communication in a 24 hour period. Currently, I have a task scheduled to restart the service in 24 hours, and then it is able to reestablish communication. Also restarting a VM seems to also break the communication, so I have a shutdown and start-up script on the VM to restart the HOST's NP2COMS service. I'm not sure if this is bad to restart the service when the port is constantly being used, but it seems like the only option to make it reliable.

@albertjan
Copy link
Owner

@RanmaKei Does the service crash or does just "stop working"? Restarting the vm resets the namedpipe I'll have to look into that, I think I should be able to see when that happens and then reconnect to the pipe. I'd expected to get an exception when the connection is dropped. What do you use as a vm os?

@norm8332
Copy link

Hello, First I'd like to thank you for this program..I have it working but as above while the service continues to run it does stop functioning at one point. I'm still testing to attempt to find out when and why but I believe it is when my host backup of the VMs runs. It suspends/pauses the VMs for a minute. restarting the np2coms service makes it work again without restarting the guest. The guest OS in this case is QNX 4.5 (linux -like) OS. Thanks

@albertjan
Copy link
Owner

Hi! @norm8332 you're welcome. I have to setup my dev environment for this I think I can check what the state of the pipe is. And then when it goes down restart it asap. I don't think I can asure not to drop any bytes. Most com applications aren't really fault tolerant they don't expect the connection to be down. So I don't know wether or not your guest os and the application there will handle this correctly.

@hicham47
Copy link

Hi !

i have probleme to start the service NP2COMService
and access denied with com1

thanks to help me

ps : 2008 R2 server + Hyper-v and VM = 2003 server

@albertjan
Copy link
Owner

Have you tried running it as administrator? Isn't there another program using the comport.

@hicham47
Copy link

yes local account running service is local administrator and comport is not used

thanks

@albertjan
Copy link
Owner

the other pipetocom app is also off?

@albertjan
Copy link
Owner

Windows is almost always right here. You either don't have enough rights or it's used by a different program.

@hicham47
Copy link

I have tested it in my pc running W7 Pro 64 : i have running CMD as administrator and service runs with no problem

i'm trying to unstall and re install to in my 2008 server

thanks

@hicham47
Copy link

np2com

on the 2008 server I still have the same problem although the service is installed as administrator

@albertjan
Copy link
Owner

Can you post the logs too? Have a look at this tool if you can get some more info.
http://technet.microsoft.com/en-us/sysinternals/bb896644.aspx

@hicham47
Copy link

DEBUG 17:13:11,085 NP2COMService OnStart - Loaded (1) connection files
DEBUG 17:13:51,023 NP2COMService OnStart - Loaded (1) connection files
etc.......

NP2COMV.EXE.CONFIG :

NP2COMS.INSTALLLOG :
assemblypath = E:\Support\NamedPipe2COM\NP2COMS.exe
Suppression de la source EventLog NP2COMService.
Le service NP2COMService est en cours de suppression du système...
Le service NP2COMService a été retiré avec succès du système.
Installation de l'assembly 'E:\Support\NamedPipe2COM\NP2COMS.exe'.
Les paramètres affectés sont :
logtoconsole =
t =
logfile = E:\Support\NamedPipe2COM\NP2COMS.InstallLog
assemblypath = E:\Support\NamedPipe2COM\NP2COMS.exe
Installation du service NP2COMService en cours...
Le service NP2COMService a été installé avec succès.
Création d'une source EventLog NP2COMService dans le journal Application...
Validation de l'assembly 'E:\Support\NamedPipe2COM\NP2COMS.exe'.
Les paramètres affectés sont :
logtoconsole =
t =
logfile = E:\Support\NamedPipe2COM\NP2COMS.InstallLog
assemblypath = E:\Support\NamedPipe2COM\NP2COMS.exe

@albertjan
Copy link
Owner

Or whats the contents of the config file? comport.n2c. And there maybe some information in your windows events. eventvwr

@hicham47
Copy link

N2C file :

<?xml version="1.0"?>
<Settings xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  <MachineName>.</MachineName>
  <NamedPipe>comport</NamedPipe>
  <ComPort>COM1</ComPort>
  <BaudRate>38400</BaudRate>
  <StopBits>One</StopBits>
  <Parity>None</Parity>
  <DataBits>8</DataBits>
</Settings>

in the Windows event viewer
n2p

@albertjan
Copy link
Owner

Are you sure there is a COM1? and are you absolutely sure nothing else uses the comport?

@hicham47
Copy link

There are COM1 and COM2 and no device connected at time
PORTMON says "not connected"
and when i select COM2 on the NP2COMV.EXE it says "No response" and crash

@albertjan
Copy link
Owner

when you start to service you should turn np2comv off. Other than that I can't help you any further.

@ghost
Copy link

ghost commented Mar 2, 2015

Hello
I have a problem.
I run this OK:
%WINDIR%\Microsoft.NET\Framework\v4.0.30319\InstallUtil -t Path\To\NP2COMS.exe

Then i run NP2COMV to generate new config file. I setup parameters and try to save. I have an error on the screen.
bug

I have installed Microsoft .NET Framework 4.5.1 (4.5.50938)

Please help me...

@eddelac
Copy link

eddelac commented Mar 11, 2015

I've followed the install steps with success, registered the service, created the named pipe, created the config file using the named pipe, saved the config file on the same path, deleted the example config.

But the service stops just after starting it. The virtual machine is on. I'm im missing something?

@dcrowson
Copy link

I found this to happen if the device using the com/serial port wasn’t running or connected.

Dan


Dan Crowson

IS Director

CMS Communications, Inc.

722 Goddard Ave

Chesterfield MO 63005

dcrowson@cmsc.com mailto:dcrowson@cmsc.com

www.cmsc.com http://www.cmsc.com/

Expertise you need, the choice you deserve.

From: Edgar de la Cruz [mailto:notifications@github.com]
Sent: Wednesday, March 11, 2015 3:49 PM
To: albertjan/PipeToCom
Cc: dcrowson
Subject: Re: [PipeToCom] Installation Guide (#10)

I've followed the install steps with success, registered the service, created the named pipe, created the config file using the named pipe, saved the config file on the same path, deleted the example config.

But the service stops just after starting it. The virtual machine is on. I'm im missing something?


Reply to this email directly or view it on GitHub #10 (comment) . https://github.com/notifications/beacon/AIZ2sWoHMGxP1f5WPwB-0kQtmwE1plUWks5n0KG9gaJpZM4AlvyR.gif

@eddelac
Copy link

eddelac commented Mar 11, 2015

@PiterEL I had the same problem, it seems to be related with the folder permissions. Try running the program as Administrator.

@albertjan
Copy link
Owner

@PiterEL It might be due to the fact your running vmware. It creates a namedpipe with a weird name. @eddelac Might be right aswel.

@PiterEL the config files are really easy to edit by hand. have a look at example.n2c you can probably edit that to fit your needs.

@albertjan
Copy link
Owner

@eddelac did you fix your problem? There is a log file in the directory. If you could open a new issue and post that logfile there. I can have a look and see whats going wrong.

@fgmike
Copy link

fgmike commented May 14, 2015

Hi,

Getting the same error as @PiterEL. The named pipe in the example file, should I change that from com to .\pipe\comport for example?

How else should I edit it, as I cannot see an existing named pipe on my Hyper-V Server 2012 R2 listed when I run np2comv.

Any chance also of fixing the image examples in your setup instructions above? I could not see it to compare.

Trying to get my head around these named pipes is causing some extra grey hairs.

Any help Appreciated.

@dayers
Copy link

dayers commented May 22, 2015

Just set this up successfully mapping a hyperv vm com port to a physical com port. I followed the steps below in order:

  1. Install tera term on host machine to give you something to test your terminal connection with.
  2. Install driver for usb to serial cable if required.
  3. Insert usb to serial cable.
  4. Launch tera term - select serial - check com usb to serial cable inserted in is port listed. Use device manager com ports or at a command prompt type c:\change port /query.
  5. Install NP2com - You can run %WINDIR%\Microsoft.NET\Framework\v4.0.30319\InstallUtil -t Path\To\NP2COMS.exe.
  6. Create named pipe for vm - launch hyperV manager - highlight VM (vm off at this point) - select settings in lower windows - com1 - enter a name for pipe e.g comportvm. Leave remote computer box inactive.
  7. Start VM (login not reuired at this point).
  8. Run NP2com\NP2comv.exe as an administrator to create a N2C profile;
    Select pipe name from right named pipe drop down box - comportvm - this is near the bottom of the list
    Select the settings you want to use -serial port, baud rate, stop bits and parity i.e com4, 9600, 8, none, 1
  9. Select write config file from options on right hand side.
  10. Name and save the file in the NP2COM folder. This is the config file associated with the named pipe from the VM.
  11. Goto services on the host machine and start the NP2COMService. (USB to Serial Cable must be connected at this point).
  12. Logon to vm - install and launch tera term - select com port to use for connection - hit return until output returned.

issues

Named pipe created on VM will net be visible in NP2comv untill vm is started;
NP2comservice will not start unless usb to serial cable connected;

@vibac
Copy link

vibac commented Jul 30, 2015

albertjan,

I have a questions regarding the install and I am hoping you or someone here can assist me, do we need to complete this installation on both host and guest?

@albertjan
Copy link
Owner

Do you have .net 3.5 and less installed? ;)

Sent from my iPhone

On 30 jul. 2015, at 19:50, vibac notifications@github.com wrote:

albertjan,

I have a questions regarding the install and I am hoping you or someone here can assist me, do we need to complete this installation on both host and guest?

I also keep getting this error message when trying to register the service;
C:\Windows\system32>c:\windows\microsoft.net\framework\v4.0.30319\installutil.ex
e C:\NP2COM\NP2COMS.exe
Microsoft (R) .NET Framework Installation utility Version 4.0.30319.17929
Copyright (C) Microsoft Corporation. All rights reserved.

Exception occurred while initializing the installation:
System.IO.FileLoadException: Could not load file or assembly 'file:///C:\NP2COM
NP2COMS.exe' or one of its dependencies. Operation is not supported. (Exception
from HRESULT: 0x80131515).


Reply to this email directly or view it on GitHub.

@vibac
Copy link

vibac commented Jul 30, 2015

I have 4.5, I was able to install and start the NP2COMS service successfully after I posted my questions. ;)

I was asking because I couldn't get the service registered but found that I had to unblock it. Please bare with me as I am a system admin and have very little programming knowledge.

BTW, thank you very much for the quick reply and for your work, we greatly appreciate.

Once I have it installed and start the service, can I just go ahead and start using the guest's COM port or do I also need to install it on the guest?

@albertjan
Copy link
Owner

If you hooked it up to the correct namedpipe you should be fine.

Sent from my iPhone

On 30 jul. 2015, at 21:33, vibac notifications@github.com wrote:

yes 4.5, I was able to install and start the NP2COMS service successfully after I posted my questions. ;)

I was asking because I couldn't get the service registered but found that I had to unblock it. Please bare with me as I am a system admin and have very little programming knowledge.

BTW, thank you very much for the quick reply and for your work, we greatly appreciate.

Once I have it installed and the service started can I just go ahead and start using the guest's COM port or do I also need to install it on the guest?


Reply to this email directly or view it on GitHub.

@vibac
Copy link

vibac commented Jul 30, 2015

It is, I will only know once I have finished installing our soft on the guest. I will let you know, thx a million sir ;)

@ghost
Copy link

ghost commented Aug 4, 2015

Hello
I want use faxmodem Dell connected to physical serwer in serwer Hyper-V win2008 R2. Modem is connected on USB and it is show in physical machine as modem on COM3.
I do all step by step as @dayers describe and i run Hyper-V machine. How i can test and add Faxmodem to machine Hyper-V ? Please help me...

On physical machine service NP2COM works ok. Please help me because i want run service serwer fax on my virtual machine Hyper-V.

@vibac
Copy link

vibac commented Aug 4, 2015

Hello albertjan,

All is good!!! Thanks :)

I will post all my steps, please let me know that's ok with you.

--How to Install NP2COM--

Give your user full rights on the NP2COM folder after extracting it
1- Right click the NP2COM folder>properties and give your user full rights
1a- You can put this folder anywhere on your server, ie: C:\NP2COM\

Ensure that the NP2COMS general properties are unblocked
2- Right click the NP2COMS.exe>properties at the bottom hit the "unblock" button

Register the service NP2COMS
3- After you've installed .net 3, 3.5, 4 or 4.5 you can register NP2COMS.exe as a service by applying the following cmd

Start cmd with "run as Admin"
c:\windows\microsoft.net\framework\v4.0.30319\installutil.exe -t C:\NP2COM\NP2COMS.exe
or use run
%WINDIR%\Microsoft.NET\Framework\v4.0.30319\InstallUtil -t C:\NP2COM\NP2COMS.exe

Create the Named pipe in the guest VM settings
4- Right click the vm from within the host's Hyper-V, select "settings", then select com1 or com2, tic "named pipe" and enter a name, ie: comport

Create a config file for NP2COMs service
5- Run the NP2COMV.exe as admin to create a .n2c config file and save it in the Path\To\NP2COMS.exe, ie: C:\NP2COM
5a- On the left hand side select the NamedPipe you created previously in step 4 from the drop down list, ie: .\pipe\comport
5b- Set the serial port settings to your needs, ie: baudrate 9600
5c- Now click "Write config file" to save it and save it in the NP2COM location, ie: C:\NP2COM\

Delete the example config file
6- Delete example.n2c

Start the NP2COMS service
7- Run: c:>net start NP2COMService or go to services and start it

DONE!

Test communication
1- Stop the NP2COM service on host
2- Launch the NP2COMV.exe as admin
3- Go to the guest and launch hyper terminal or putty terminal
4- Once you connect to the setup COM port hit enter
5- Go to the NP2COMV window on the host and see if the data is written
6- Once you are done, kill the NP2COMV process then start the NP2COM service

@albertjan
Copy link
Owner

@vibac thanks! 👍

@sonvoba
Copy link

sonvoba commented Aug 5, 2015

I got the following unhandled exception error when I clicked on "Write config file" button of NP2COMV. Screen Shot and Details are attached.

untitled 06e

See the end of this message for details on invoking
just-in-time (JIT) debugging instead of this dialog box.

************* Exception Text **************
System.ArgumentNullException: Value cannot be null.
Parameter name: input
   at System.Text.RegularExpressions.Regex.Match(String input)
   at System.Text.RegularExpressions.Regex.Match(String input, String pattern)
   at NP2COMV.Form1.button2_Click(Object sender, EventArgs e)
   at System.Windows.Forms.Control.OnClick(EventArgs e)
   at System.Windows.Forms.Button.OnClick(EventArgs e)
   at System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent)
   at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
   at System.Windows.Forms.Control.WndProc(Message& m)
   at System.Windows.Forms.ButtonBase.WndProc(Message& m)
   at System.Windows.Forms.Button.WndProc(Message& m)
   at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)


************** Loaded Assemblies **************
mscorlib
    Assembly Version: 4.0.0.0
    Win32 Version: 4.6.79.0 built by: NETFXREL2
    CodeBase: file:///C:/Windows/Microsoft.NET/Framework64/v4.0.30319/mscorlib.dll
----------------------------------------
NP2COMV
    Assembly Version: 1.0.0.0
    Win32 Version: 1.0.0.0
    CodeBase: file:///D:/PipeToCom/NP2COMV.exe
----------------------------------------
System.Windows.Forms
    Assembly Version: 4.0.0.0
    Win32 Version: 4.6.79.0 built by: NETFXREL2
    CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Windows.Forms/v4.0_4.0.0.0__b77a5c561934e089/System.Windows.Forms.dll
----------------------------------------
System
    Assembly Version: 4.0.0.0
    Win32 Version: 4.6.79.0 built by: NETFXREL2
    CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System/v4.0_4.0.0.0__b77a5c561934e089/System.dll
----------------------------------------
System.Drawing
    Assembly Version: 4.0.0.0
    Win32 Version: 4.6.79.0 built by: NETFXREL2
    CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Drawing/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
----------------------------------------
log4net
    Assembly Version: 1.2.10.0
    Win32 Version: 1.2.10.0
    CodeBase: file:///D:/PipeToCom/log4net.DLL
----------------------------------------
System.Configuration
    Assembly Version: 4.0.0.0
    Win32 Version: 4.6.79.0 built by: NETFXREL2
    CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Configuration/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll
----------------------------------------
System.Core
    Assembly Version: 4.0.0.0
    Win32 Version: 4.6.79.0 built by: NETFXREL2
    CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Core/v4.0_4.0.0.0__b77a5c561934e089/System.Core.dll
----------------------------------------
System.Xml
    Assembly Version: 4.0.0.0
    Win32 Version: 4.6.79.0 built by: NETFXREL2
    CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Xml/v4.0_4.0.0.0__b77a5c561934e089/System.Xml.dll
----------------------------------------
NP2COM
    Assembly Version: 1.0.0.0
    Win32 Version: 1.0.0.0
    CodeBase: file:///D:/PipeToCom/NP2COM.DLL
----------------------------------------

************** JIT Debugging **************
To enable just-in-time (JIT) debugging, the .config file for this
application or computer (machine.config) must have the
jitDebugging value set in the system.windows.forms section.
The application must also be compiled with debugging
enabled.

For example:

<configuration>
    <system.windows.forms jitDebugging="true" />
</configuration>

When JIT debugging is enabled, any unhandled exception
will be sent to the JIT debugger registered on the computer
rather than be handled by this dialog box.

@sonvoba
Copy link

sonvoba commented Aug 5, 2015

FWIW, I do have .NET 3.5 and earlier installed on this system. Could it be something else?

untitled 06d

@albertjan
Copy link
Owner

@sonvoba no it's a known issue in the np2comv program. There's a namedpipe in the list that contains something I didn't expect when I wrote it.

You could edit the .n2c file yourself.

@sonvoba
Copy link

sonvoba commented Aug 5, 2015

Albert-Jan,

Many thanks for the follow-up. Will the np2com service know where to pick up the correct .n2c configuration file, or should I just edit the existing example.n2c and things will work?

Regards,

--svb

From: Albert-Jan Nijburg [mailto:notifications@github.com]
Sent: Tuesday, August 4, 2015 11:51 PM
To: albertjan/PipeToCom PipeToCom@noreply.github.com
Cc: sonvoba Son.VoBa@comcast.net
Subject: Re: [PipeToCom] Installation Guide (#10)

@sonvoba https://github.com/sonvoba no it's a known issue in the np2comv program. There's a namedpipe in the list that contains something I didn't expect when I wrote it.

You could edit the .n2c file yourself.


Reply to this email directly or view it on GitHub #10 (comment) . https://github.com/notifications/beacon/AKFoK2j1ii7gW_vl_3R7X1X3zw53T6xDks5okanWgaJpZM4AlvyR.gif

@albertjan
Copy link
Owner

It will pick up any n2c file in the directory. So yeah you can edit example.n2c

Sent from my iPhone

On 5 aug. 2015, at 17:15, sonvoba notifications@github.com wrote:

Albert-Jan,

Many thanks for the follow-up. Will the np2com service know where to pick up the correct .n2c configuration file, or should I just edit the existing example.n2c and things will work?

Regards,

--svb

From: Albert-Jan Nijburg [mailto:notifications@github.com]
Sent: Tuesday, August 4, 2015 11:51 PM
To: albertjan/PipeToCom PipeToCom@noreply.github.com
Cc: sonvoba Son.VoBa@comcast.net
Subject: Re: [PipeToCom] Installation Guide (#10)

@sonvoba https://github.com/sonvoba no it's a known issue in the np2comv program. There's a namedpipe in the list that contains something I didn't expect when I wrote it.

You could edit the .n2c file yourself.


Reply to this email directly or view it on GitHub #10 (comment) . https://github.com/notifications/beacon/AKFoK2j1ii7gW_vl_3R7X1X3zw53T6xDks5okanWgaJpZM4AlvyR.gif


Reply to this email directly or view it on GitHub.

@sonvoba
Copy link

sonvoba commented Aug 5, 2015

Thanks!

From: Albert-Jan Nijburg [mailto:notifications@github.com]
Sent: Wednesday, August 5, 2015 8:22 AM
To: albertjan/PipeToCom PipeToCom@noreply.github.com
Cc: sonvoba Son.VoBa@comcast.net
Subject: Re: [PipeToCom] Installation Guide (#10)

It will pick up any n2c file in the directory. So yeah you can edit example.n2c

Sent from my iPhone

On 5 aug. 2015, at 17:15, sonvoba <notifications@github.com mailto:notifications@github.com > wrote:

Albert-Jan,

Many thanks for the follow-up. Will the np2com service know where to pick up the correct .n2c configuration file, or should I just edit the existing example.n2c and things will work?

Regards,

--svb

From: Albert-Jan Nijburg [mailto:notifications@github.com]
Sent: Tuesday, August 4, 2015 11:51 PM
To: albertjan/PipeToCom <PipeToCom@noreply.github.com mailto:PipeToCom@noreply.github.com >
Cc: sonvoba <Son.VoBa@comcast.net mailto:Son.VoBa@comcast.net >
Subject: Re: [PipeToCom] Installation Guide (#10)

@sonvoba https://github.com/sonvoba no it's a known issue in the np2comv program. There's a namedpipe in the list that contains something I didn't expect when I wrote it.

You could edit the .n2c file yourself.


Reply to this email directly or view it on GitHub #10 (comment) . https://github.com/notifications/beacon/AKFoK2j1ii7gW_vl_3R7X1X3zw53T6xDks5okanWgaJpZM4AlvyR.gif


Reply to this email directly or view it on GitHub.


Reply to this email directly or view it on GitHub #10 (comment) . https://github.com/notifications/beacon/AKFoK51t6BNIAx0ewYs-YEIxJxpIOJCyks5okiGkgaJpZM4AlvyR.gif

@bschappel
Copy link

How do I disable logging?

@albertjan
Copy link
Owner

@bschappel delete log4net.config

@bschappel
Copy link

Quick question regarding the serial settings in the .n2c files. Do those settings hardwire the host comport?

We've go a barcode scanner base station that connects over serial. It needs 9600-8N1. I set this in my n2c file but when I try and connect from the guests OS the software complains that there is a mismatch between the serial port and the required settings.

It may be that your software won't work with this device and that's fine.

I was just wondering if the guest OS can negotiate the settings of the comport on the host.

@albertjan
Copy link
Owner

@bschappel No it can't communicate from guest os to the np2com software. The settings for the comport in the n2c file are the ones used to connect to the real comport. The settings in the guest don't really matter. But you could be running into a CTS RTS issue. Those settings aren't comunicated to the host os.

Otherwise it's smart to set the comport on the guest os to the same settings otherwise it'll drop bytes, because it sends data to quickly.

Remember to turn off your uart buffer on the guest os.

@kasaio
Copy link

kasaio commented Feb 12, 2018

I set & used this a few weeks back I must thank the owner\creator as after a few issues, this work very well.
I just have one question & it's not a big - after a few weeks it seems the service becomes a little unstable & crashes out. Restarting the service is not a problem, it works again without issue until it crashes. Crashing once or twice a day & having to restart the service isn't that great. Has anyone any ideas as to what is the cause or fix to the issue?

Event log shows a .Net run-time error on each crash -
Application: NP2COMS.exe
Framework Version: v4.0.30319
Description: The process was terminated due to an unhandled exception.
Exception Info: System.IO.IOException
at System.IO.Pipes.PipeStream.WinIOError(Int32)
at System.IO.Pipes.PipeStream.BeginWriteCore(Byte[], Int32, Int32, System.AsyncCallback, System.Object)
at System.IO.Pipes.PipeStream.WriteCore(Byte[], Int32, Int32)
at NP2COM.Connection.NamedPipeRunner(System.Object)
at System.Threading.ExecutionContext.RunInternal(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)
at System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)
at System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object)
at System.Threading.ThreadHelper.ThreadStart(System.Object)

@xiongqr
Copy link

xiongqr commented Sep 10, 2018

Hi Albert,

Thanks for program. I managed to get it to work on my XP mode VM, only one serial port though.

Does your program support multiple serial ports? Experimented with several config files, no success.

thanks

@albertjan
Copy link
Owner

albertjan commented Sep 10, 2018 via email

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests