Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Better control than MSComm available?

Posted on 2002-04-12
8
Medium Priority
?
201 Views
Last Modified: 2010-05-02
Using MSComm for serial communications is unreliable.  What works once doesn't work later.  Receiving text messages, 3 different fixed lengths, over 6 serial ports using 6 MSComm controls.  Much better after implementing the suggestions for my previous question, but still wierd.  Text is terminated by CrLf, works pretty good, but won't work 24/7.  Tried changing to EOF termination and looking for comEvEOF.  Worked first time, then only once in a while.  I can't see any reason for whether it works or not.  I have heard there are other comm controls available from 3rd party vendors, but don't know what to look for or where.
0
Comment
Question by:Wanderer227
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
8 Comments
 
LVL 18

Expert Comment

by:mdougan
ID: 6937740
It's been a long time, but one thing I seem to remember is that before I expected to start receiving my comm input, I'd do something to clear out the buffer in case there was any junk or noise there.  Then, if you have received messages, and you think you're done, then, before you use it again, flush the buffer once again before receiving the data.
0
 
LVL 5

Expert Comment

by:kcm76
ID: 6937988
listening..
0
 
LVL 4

Accepted Solution

by:
mcoop earned 800 total points
ID: 6938153
I have reliable comms with double buffering...
MSComm doesn't guarantee to deliver messages based on your CRLF protocol - hence you need to buffer messages to comnpensate for incomplete strings, then scan for a delimiter (your vbCR)... then process the substring... etc.

0
What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

 
LVL 16

Expert Comment

by:twalgrave
ID: 7755014
PLEASE DO NOT ACCEPT THIS COMMENT AS AN ANSWER!

No comment has been added lately, so it's time to clean up this TA.
I will leave a recommendation in Community Support that this question is:
- points to mcoop
Please leave any comments here within the
next seven days.
0
 
LVL 4

Expert Comment

by:mcoop
ID: 7764443
Just an aside...
there seem to be a LOT of messages (since the EE upgrade - unrelated) that get left unresolved - or worse, the thread runs for a while with valuable feedback - then the original person says 'thanks' and walks away.. using their free points to ask a question, then not bothering to 'make a decision'

0
 

Expert Comment

by:SpideyMod
ID: 7812392
per recommendation

SpideyMod
Community Support Moderator @Experts Exchange

mcoop,
You make a good point there.  This is why the cleanup volunteers such as twalgrave add a lot of value to the process.  They get the moderators to look at these questions and force a decision on way or another.  Many times during the cleanup process either an expert or a moderator can see these abandoners and be able to deal with them.  If you have an idea on how to prevent this, please post a zero-point question in Community Support/Suggestions, we'd love to hear it.  If you'd like to volunteer to assist with the cleanup process, we'd love that too, just drop a line here.
0
 
LVL 4

Expert Comment

by:mcoop
ID: 7812639
I guess one way to get a profile - would be to maintain a list of IP addresses that each member connects from (or better the MAC addresses and/or system signature collected with a java client)... then it would be relatively easy to keep a tab on those members that abuse the process, or are chronically lazy.

Then the cleanup process could be largely unnecesssary - perhaps not 'barring them 'per se', but ignoring them when they try to come in multiple times under a different alias from the same system - with  a bad history.

I've seen countless twerps signup for the 'free points' then use them all on one question to get a high profile, and walk away with the answer - come in again next week as another user...

I think if EE polled their regular 'experts' you would see a trend towards individuals becoming less involved...  largley because of this - but also unfortunately due to the string of server  and site problems a few months ago.

I've thought about helping in the cleanup, but as I'm self-employed, I may not be able to offer the attention required... let me knw what's nvolved - glad to help if I can.
0
 

Expert Comment

by:SpideyMod
ID: 7812775
mcoop,
Thanks for getting back with me. We do need a few more processes in place to find those people out, but with the recent and constant rewrites, it falls to the bottom of the list.  I encourage you to post a question in Community support if you suspect dual identities.  Dual identities are stopped when we find them as they are against the membership agreement.  

As far as cleanup goes, it's a pretty simple process. It is well explained in the following link - read over and post inside if you're interested in helping.  Some cleanup volunteers do 50 questions every couple of weeks (about an hours worth of time once you get the steps down) while others can give us 100 questions a day, all help is very much appreciated:
http://www.experts-exchange.com/Community_Support/CleanUp/Q_20463159.html

I apologize in advance for the amount of "fluff" in there, but these cleanup volunteers and moderators need a sense of humor to keep them going.  You'll see that we need the help, but there are some definite rules and the moderators will want to "approve" you first, but it's a good thing.
0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I’ve seen a number of people looking for examples of how to access web services from VB6.  I’ve been using a test harness I built in VB6 (using many resources I found online) that I use for small projects to work out how to communicate with web serv…
When designing a form there are several BorderStyles to choose from, all of which can be classified as either 'Fixed' or 'Sizable' and I'd guess that 'Fixed Single' or one of the other fixed types is the most popular choice. I assume it's the most p…
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…
Suggested Courses

705 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question