Does anyone out there happen to have experience using VC# (or
any .NET
really) to control the serial port for demanding use? My ultimate
goal would be to stream an arbitrarily large size (MB+) file out over
the serial port with zero down time at speeds ranging from 9600 to
480600 baud.
While using the SerialPort Control, I cannot come up with an
implimentation that doesn't A) hog the CPU at 100% and B) is able to
continually fill the TX buffer before it empties itself.
If anyone has done this, or even come close, I'd be very appreciative
of your help and suggestions. Thanks!
- Kevin 2 2872
Hi,
I do not know how the SerialPort class is implemented, but why don't you try
the managed wrapper that we had to use in 1.1?
I know that it was posted time ago in MSDN magazine.
--
Ignacio Machin http://www.laceupsolutions.com
Mobile & warehouse Solutions.
"Kevin" <ke********@gma il.comwrote in message
news:22******** *************** ***********@o42 g2000hsc.google groups.com...
Does anyone out there happen to have experience using VC# (or
any .NET
really) to control the serial port for demanding use? My ultimate
goal would be to stream an arbitrarily large size (MB+) file out over
the serial port with zero down time at speeds ranging from 9600 to
480600 baud.
While using the SerialPort Control, I cannot come up with an
implimentation that doesn't A) hog the CPU at 100% and B) is able to
continually fill the TX buffer before it empties itself.
If anyone has done this, or even come close, I'd be very appreciative
of your help and suggestions. Thanks!
- Kevin
Thanks, I'll look into that. In the mean time, I've just had some
decent luck instantiating a new 'sender' thread which manages the
filling of the buffer. I haven't scoped the line out yet, but I think
it might be good enough.
- Kevin
On Dec 6, 10:28 am, "Ignacio Machin \( .NET/ C# MVP \)" <machin TA
laceupsolutions .comwrote:
Hi,
I do not know how the SerialPort class is implemented, but why don't you try
the managed wrapper that we had to use in 1.1?
I know that it was posted time ago in MSDN magazine.
--
Ignacio Machinhttp://www.laceupsolut ions.com
Mobile & warehouse Solutions."Kevi n" <kevinwo...@gma il.comwrote in message
news:22******** *************** ***********@o42 g2000hsc.google groups.com...
Does anyone out there happen to have experience using VC# (or
any .NET
really) to control the serial port for demanding use? My ultimate
goal would be to stream an arbitrarily large size (MB+) file out over
the serial port with zero down time at speeds ranging from 9600 to
480600 baud.
While using the SerialPort Control, I cannot come up with an
implimentation that doesn't A) hog the CPU at 100% and B) is able to
continually fill the TX buffer before it empties itself.
If anyone has done this, or even come close, I'd be very appreciative
of your help and suggestions. Thanks!
- Kevin- Hide quoted text -
- Show quoted text -
This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: DraguVaso |
last post by:
Hi,
I'm experimenting with the Serial Port in VB.NET 2005. Although it isn't
that easy to get any feedback from my COM-port as I thought it would be...
How can I read all the Data that the port sends back?
I tryed with SerialPort1.ReadLine, but that blocks the application and takes
a lot of time (10 seconds!), I tryed SerialPort1.Read, but I have to read it
into a buffer and has to indicate the count, but how do I know this?
|
by: Richie Carey |
last post by:
Here's my problem.
I'm using Visual C# 2005 Express for a small project that requires simple AT
modem commands to be sent to an external serial device. The device requires
2400 baud, no parity, 8 data bits, and 1 stop bit. Should be easy enough,
except that I cannot get the SerialPort component included with C# Express
to talk with this box.
I know the box itself is working correctly because a Visual Basic 6.0
application that I...
|
by: Ben Kim |
last post by:
Hello all,
Does anyone have an example on how to implement the new SerialPort Class in
VB.NET? I have been able to create the class, send (.WriteLine) to the port
and Read from the port but cannot figure out how to use the Events to tell
my program that data is available in the serial port buffer.
I have searched the internet and MSDN and there doesn't appear to be any
full example on how to do this simple task.
|
by: herbert |
last post by:
back in 1978 (!) the VAX/VMS serial line driver offered everything a
developer needs to develop protocols of all kinds:
- read x bytes
- read to end of line
- read to special character
- read to one in a set of special characters
- and of course synchronous and asynchronous using events and including
timeouts.
And even before RSX-11 could do this out of the box.
|
by: Jay |
last post by:
Extracted from the C# example in http://msdn2.microsoft.com/en-us/library/s14dyf47.aspx...
public static void Main()
{
string name;
string message;
StringComparer stringComparer = StringComparer.OrdinalIgnoreCase;
Thread readThread = new Thread(Read);
// Create a new SerialPort object with default settings.
| |
by: nmsreddi |
last post by:
Hi friends
I am working on serialport in c# ,i am using C#2005 i have successfully done the serial communication with GSM modem and able to send and receive data ,
the main problem ,the serial port class in C# is accepting only ASCII values upto 127 only, the values those greater than 127 ,is automatically converted to value 63(?) ,ihave searched alot in the net and finally found from MSDN that ,serialport class accepts only ASCII values...
|
by: Kevin |
last post by:
Does anyone out there happen to have experience using VC# (or any .NET
really) to control the serial port for demanding use? My ultimate
goal would be to stream an arbitrarily large size (MB+) file out over
the serial port with zero down time at speeds ranging from 9600 to
480600 baud.
While using the SerialPort Control, I cannot come up with an
implimentation that doesn't A) hog the CPU at 100% and B) is able to
continually fill the...
|
by: sklett |
last post by:
I'm trying to send some printer commands (ZPLII) to an attached USB printer
using the SerialPort component. I didn't get very far at all. In fact I
haven't gotten anywhere.
The first problem I encountered is that a call to SerialPort.GetPortNames()
returns an empty string. In other words, NO port names are returned. I'm
not terribly knowledgable about ports but from the Hardware Manager I did
notice that I don't have the Ports and...
|
by: cronusf |
last post by:
I set up two virtual COM ports 3 and 4 using com0com. I tried to test
it with the following program. However, the DataReceived event
handlers never get called. Can anyone with SerialPort class
experience double check my code so I can narrow it down to com0com not
being setup correctly?
using System;
using System.Collections.Generic;
using System.IO.Ports;
using System.IO;
|
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
|
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
| |
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
|
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
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 then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
| |
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |