473,396 Members | 1,914 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

serial ports

Access to the port 'COM4' is denied (vb.net). i tried the /noSerialMice switch in boot.ini. the 1st string i sent was ok then the second says the port is closed (which it wasn't) and cannot be opened (by the SAME application. anyone?
Sep 4 '07 #1
5 1627
Plater
7,872 Expert 4TB
Uhh well I guess first things first
Do you HAVE a COM4?
Are you sure it's not in use by anything else (Modem/internal/external device)?
It's not open already, say in a hyperterminal window?
Sep 4 '07 #2
Uhh well I guess first things first
Do you HAVE a COM4?
Are you sure it's not in use by anything else (Modem/internal/external device)?
It's not open already, say in a hyperterminal window?
hi! aha com4 exists. there's no modems or anything and no other apps incl hyperterminal using it. thing is i send the 1st command (device in question is a card reader) to initialise it... that's ok, response and all but the second time i try to send something, the port's .isopened value is false so i can't send. i try opening the port but get the 'Access to the port 'COM4' is denied.' error. i don't know why it's closed in the 1st place.
Sep 4 '07 #3
Plater
7,872 Expert 4TB
An error occured would be my guess.
The card reader doesn't have any other drivers that windows might try and use does it?
Is your hardware/software handshaking in the right state?
(i.e probably OFF?)
Sep 4 '07 #4
actually it doesn't. interestingly enough, the same code in VB6 works fine! :s
Sep 4 '07 #5
An error occured would be my guess.
The card reader doesn't have any other drivers that windows might try and use does it?
Is your hardware/software handshaking in the right state?
(i.e probably OFF?)
the problem was i was initiating a new class with the same port number more than once! thanks anyway
Sep 11 '07 #6

Sign in to post your reply or Sign up for a free account.

Similar topics

13
by: Al the programmer | last post by:
I need to access the serial ports on my webserver from an asp.net page. I have no problem accessing the serial ports from a windows form application, but the code doesn't work in asp.net. I have...
1
by: David | last post by:
I have written an application in VB.NET 2003 that uses the SAX serial component for RS232 communications with hardware. The program sets up 2 serial ports so that it can talk to 2 different...
3
by: Tom Brown | last post by:
Hey people, I've written a python app that r/w eight serial ports to control eight devices using eight threads. This all works very nicely in Linux. I even put a GUI on it using PyQt4. Still...
5
by: LongBow | last post by:
Hello, Is there a way, in .NET, to determine what are the avialable Serial (Communications) Ports on a Windows OS and is there a way to determine that port isn't being use other than attempting...
2
by: joaquimfpinto | last post by:
Dear All, I made an app in c# that uses several serial ports. For the serial ports I use a pnp Sunix board, some with 8 serial ports other with 4 or even 2 serial ports. Whenever I use the...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.