473,508 Members | 2,370 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Need help with serial port please

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
hardware devices simultaneaously.

When I run the program on a desktop running Windows 2000 it works fine. When
I run it on a Laptop using XP I start having problems.

It seems that when the ports are initiated, either one will work but not the
other.

Can someone please show me an example of the correct way to set up the
serial ports using the SAX component and any gotchas I may have overlooked.

Thanks in advance
Nov 21 '05 #1
1 1749
It may be the serial port hardware that you are having a problem with.
Does the laptop have two built in COM ports or are you using some sort
of add-on adapter?
Serial port hardware uses a hardware interrupt (IRQ) and in some cases
each serial port must have its own interrupt line.
If you do not have enough free IRQ lines in your PC or if the driver
software for your add-on adapter cannot address all of the free IRQ
lines then the two ports may be using the same IRQ and Windows will
not allow you to open both ports at the same time because of a "IRQ
Conflict".
You might try getting a multi port add-on serial adapter that connects
to the USB port on your PC. With these types of adapters, you do not
need to worry about "conflicts" because all ports use the same USB
IRQ.
You should be able to find USB add on serial adapters at any computer
supply store or you can also find them at:
http://www.taltech.com/products/rs232.html
On Sat, 2 Apr 2005 08:13:55 +1000, "David" <da***@orbitcoms.com>
wrote:
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
hardware devices simultaneaously.

When I run the program on a desktop running Windows 2000 it works fine. When
I run it on a Laptop using XP I start having problems.

It seems that when the ports are initiated, either one will work but not the
other.

Can someone please show me an example of the correct way to set up the
serial ports using the SAX component and any gotchas I may have overlooked.

Thanks in advance


Nov 21 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

14
4028
by: McBooCzech | last post by:
Hi I am just trying to analyze (parse) data from the serial port (I have connected GPS receiver to the ttyS0, so I can read ASCII characters in the CSV form on the serial port 1). I am doing this...
5
4389
by: Confused User | last post by:
I am working on device that utilizes a Motorola 68HC16 microcontroller. I am using an old unsupported piece of crap Whitesmith's / Intermetrics / Tasking compiler. The embedded compiler business...
1
1450
by: pei_world | last post by:
Hi there, I have search the web for serial port programming for age. I found some example codes. but I don't know how to test then. I don't have any idea how such program what undernearth. Can...
1
2638
by: Srinivasa Ra via .NET 247 | last post by:
(Type your message here) I am writing an application that does lot of read/write's withcomputer's serial port. The application as a whole is workingfine. Current Approach: I have a Timer that...
1
1085
by: bill | last post by:
Good Day, I am developing an application that utilizes the serial port. I have looked through the news groups and seen some examples. Here is my dilemna: I am creating a processing...
20
2842
by: Jason Dravet | last post by:
Some time ago I wrote an application that controls the projectors in our classrooms(turn on, turn off, and volume control). This application is written in VB.net 2003. It was working perfectly...
15
8168
by: xkenneth | last post by:
Hi, I'm writing a couple python applications that use the serial port (RS-232) quite extensively. Is there any way I can monitor all activity on the serial port and have it printed as the...
0
4544
by: ghjk | last post by:
I want to read sms from GSM modem using C# in serial communication. I wrote the code. But i want to do it automatically. I put my code here and please tell me how can i do it automatically. ...
3
2011
by: akshaycjoshi | last post by:
IT"S A LONG QUESTION.PLEASE BE PATIENT TO READ IT. I HAVE EXPLAINED IT TO MY MAXIMUM CAPACITY. I am making one app. in which i need to create a seperate access database for each day. Its a...
0
7224
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
7118
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7323
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
1
7038
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...
1
5049
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
4706
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3180
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1550
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
763
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.