473,788 Members | 2,784 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

problem with serial communication in c# using mscom ocx control

1 New Member
hi

i am working with c# on dot net1.0 plateform. my project is to communicate with mirocontrolers through serial port. i am using mscom ocx control of vb6 for serial communication. i am facing a problem that in receiving data for the port. the problem

is the data is transmitted by microcontroler with intercharacter delay. the data is received by my programe correctly. but in ouw requirement there should be no inter character delay in microcontroler while transmitting. in that sitiuation my programe doesnot receive data correctly.
Sep 26 '07 #1
2 2132
r035198x
13,262 MVP
hi

i am working with c# on dot net1.0 plateform. my project is to communicate with mirocontrolers through serial port. i am using mscom ocx control of vb6 for serial communication. i am facing a problem that in receiving data for the port. the problem

is the data is transmitted by microcontroler with intercharacter delay. the data is received by my programe correctly. but in ouw requirement there should be no inter character delay in microcontroler while transmitting. in that sitiuation my programe doesnot receive data correctly.
Do not post questions in the articles section.
Moved to the forum section.
Sep 26 '07 #2
Plater
7,872 Recognized Expert Expert
You are saying there is delay.
Is the delay in between characters being sent BY the microcontroller or TO the microcontroller .

Are you using a native hardware serial port or a USB->Serial converter?
Sep 26 '07 #3

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

Similar topics

38
3547
by: jrlen balane | last post by:
basically what the code does is transmit data to a hardware and then receive data that the hardware will transmit. import serial import string import time from struct import * ser = serial.Serial()
4
4739
by: Vidya Bhagwath | last post by:
Hello Experts, I am porting the C++ code into the Visual C#.NET. My C++ code is mainly based on the serial communication. So I am using the windows structure such as DCB.. etc and the windows functions frequently in my C++ code. I came to know how to import the windows functions into Visual C#.NET. But what is the method to import windows structure into Visual C#.NET? It will be very helpful for me if anybody can give me the WebID that...
5
1367
by: Jack Black | last post by:
Hi, all! Using VS.Net '03 under Win2k3 Server; clients will be XP, Win2k... I'm just beginning to look into how I would go about building serial communication apps in VB.Net, and am not sure where to begin looking for info, libraries, etc. The applications will basically query serial devices for whatever info they contain, clear it, etc... Can someone suggest some starting points for me on this? I saw one brief blurb that suggested...
4
11207
by: joe bloggs | last post by:
I am writing a mobile application to interface with a legacy system and I am planning to use web services to communicate with this system. The legacy system receives data through a serial port. What I would like to do is make the serial port accessible via a web service. The web service and the legacy application would be running on the same machine. The mobile application would access the web service via a network connection. It...
2
3373
by: Mihai Popescu | last post by:
I wrote a simple application in MFC that uses MSComm ActiveX Control for serial communication. This app works just fine but I have to port it to Pocket PC. So, I wrote another simple application in C# for Pocket PC now using a System.IO.Ports.SerialPort object with the same communication parameters as the former: 19200,n,8,1 and on COM4. The problem is that the latter app generates an IO exception System.IO.FileNotFoundException cause...
0
896
by: ybmane | last post by:
Hi, We are using MSCOM object for serial communication.The total system is working on windows98 without any problem. But when we execute the same program on Windows XP then some data is lost and program results are wrong. We are using 1152000 baud rate,no parity,8 bit ,1 stop bit port configration. Please tell the solution With best regards Yashwant Mane
0
1154
by: ktg024 | last post by:
Hi all, I am beginner to VC++, I am trying to transmint and receive data through serial port using MSCOM. I am able to transmit data but I am unable to receive the data here is my receive code; void CMscomDlg::OnOnCommMscomm1() { // TODO: Add your control notification handler code here CString msg; UpdateData();
2
8295
by: Adrian Chen | last post by:
please help me! I come across a problem. Now I develop a finger print management system which is based on B/S.When users click a button in the web pages, a device connected to the COM1 serial port of the client machine starts to work. Now I wrote the code which is in charge of serial communication in the ..aspx.cx pages, but then I found that when uses click the button, it is the server's serial port that starts to work,not the clients!! ...
4
3279
by: Adrian Chen | last post by:
please help me! I come across a problem. Now I develop a finger print management system which is based on B/S.When users click a button in the web pages, a device connected to the COM1 serial port of the client machine starts to work. Now I wrote the code which is in charge of serial communication in the ..aspx.cx pages, but then I found that when uses click the button, it is the server's serial port that starts to work,not the clients!! ...
0
10177
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 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...
0
9969
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8995
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, 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...
1
7519
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6750
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();...
0
5403
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...
0
5538
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4074
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 we have to send another system
3
2897
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.