-
Notifications
You must be signed in to change notification settings - Fork 21
Installation Guide #10
Comments
After you've installed .net 3, 3.5 and 4. You can run Use NP2COMV to make a delete run: or go to services and start it. Goodluck |
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 :) Regards, On Tue, Jan 10, 2012 at 4:57 PM, Albert-Jan Nijburg <
|
Hi, you create a virtual comport on your virtual machine using the settings dialog like so: 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: on the rigth in NP2COMV you use the correct SerialPort settings (they're probably correct as default). Then you press Copy this file to |
Hi, I have an error message when I click on test. I followed your example. [image: Capture.JPG]
|
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. |
Hi, Thanks for the advice. I tried the named pipe from the list which is lsass. I entered it in the 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, Any way to test this? On Wed, Jan 11, 2012 at 5:22 PM, Albert-Jan Nijburg <
|
|
Hi, I tried to use the pipename comport in both the vitual server settings and Please advise. On Wed, Jan 11, 2012 at 6:47 PM, Albert-Jan Nijburg <
|
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 On Thu, Jan 12, 2012 at 11:45 AM, Mohd Zakaria kazak21@gmail.com wrote:
|
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? |
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. |
@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? |
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 |
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. |
Hi ! i have probleme to start the service NP2COMService thanks to help me ps : 2008 R2 server + Hyper-v and VM = 2003 server |
Have you tried running it as administrator? Isn't there another program using the comport. |
yes local account running service is local administrator and comport is not used thanks |
the other pipetocom app is also off? |
Windows is almost always right here. You either don't have enough rights or it's used by a different program. |
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 |
Can you post the logs too? Have a look at this tool if you can get some more info. |
DEBUG 17:13:11,085 NP2COMService OnStart - Loaded (1) connection files NP2COMV.EXE.CONFIG : NP2COMS.INSTALLLOG : |
Or whats the contents of the config file? |
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> |
Are you sure there is a COM1? and are you absolutely sure nothing else uses the comport? |
There are COM1 and COM2 and no device connected at time |
when you start to service you should turn np2comv off. Other than that I can't help you any further. |
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? |
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] 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? — |
@PiterEL I had the same problem, it seems to be related with the folder permissions. Try running the program as Administrator. |
@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 |
@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. |
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. |
Just set this up successfully mapping a hyperv vm com port to a physical com port. I followed the steps below in order:
issuesNamed pipe created on VM will net be visible in NP2comv untill vm is started; |
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? |
Do you have .net 3.5 and less installed? ;) Sent from my iPhone
|
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? |
If you hooked it up to the correct namedpipe you should be fine. Sent from my iPhone
|
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 ;) |
Hello On physical machine service NP2COM works ok. Please help me because i want run service serwer fax on my virtual machine Hyper-V. |
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 Ensure that the NP2COMS general properties are unblocked Register the service NP2COMS Start cmd with "run as Admin" Create the Named pipe in the guest VM settings Create a config file for NP2COMs service Delete the example config file Start the NP2COMS service DONE! Test communication |
@vibac thanks! 👍 |
I got the following unhandled exception error when I clicked on "Write config file" button of NP2COMV. Screen Shot and Details are attached. See the end of this message for details on invoking
|
@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 |
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] @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. — |
It will pick up any n2c file in the directory. So yeah you can edit example.n2c Sent from my iPhone
|
Thanks! From: Albert-Jan Nijburg [mailto:notifications@github.com] It will pick up any n2c file in the directory. So yeah you can edit example.n2c Sent from my iPhone
— |
How do I disable logging? |
@bschappel delete log4net.config |
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. |
@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. |
I set & used this a few weeks back I must thank the owner\creator as after a few issues, this work very well. Event log shows a .Net run-time error on each crash - |
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 |
That normally does the trick several config files. If that doesn’t work. I don’t know I haven’t really done much with this for ages.
…________________________________
From: xiongqr <notifications@github.com>
Sent: Monday, September 10, 2018 8:03 pm
To: albertjan/PipeToCom
Cc: Albert-Jan Nijburg; Comment
Subject: Re: [albertjan/PipeToCom] Installation Guide (#10)
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
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub<#10 (comment)>, or mute the thread<https://github.com/notifications/unsubscribe-auth/AASa370N09dK30o7RYq0Jb3DHtElOySyks5uZrdsgaJpZM4AlvyR>.
|
Hi, Please advise how do I install this service? Thanks :)
The text was updated successfully, but these errors were encountered: