473,473 Members | 2,002 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

MSCOMM error- 8020 error reading from comm port

1 New Member
hi ,
i have developed a prog in vb to send sms , but i get an error error:8020
"Error reading from comm port"
my prog for mscomm_oncomm() is
Private Sub MSComm1_OnComm()

Dim strMessage As String
Select Case MSComm1.CommEvent
' Event messages.
Case comEvReceive
strMessage = StrConv(MSComm1.Input, vbUnicode) ' Error reading from comm port in mscomm1.input
'
' ,
' Case comEvSend
' Case comEvCTS
' strMessage = "[Change in CTS Detected]"
' Case comEvDSR
' strMessage = "[Change in DSR Detected]"
' Case comEvCD
' strMessage = "[Change in CD Detected]"
' Case comEvRing
' strMessage = "[The Phone is Ringing]"
' Case comEvEOF
' strMessage = "[End of File Detected]"

' Error messages.
Case comBreak
strMessage = "[Break Received]"
Case comCDTO
strMessage = "[Carrier Detect Timeout]"
Case comCTSTO
strMessage = "[CTS Timeout]"
Case comDCB
strMessage = "[Error retrieving DCB]"
Case comDSRTO
strMessage = "[DSR Timeout]"
Case comFrame
strMessage = "[Framing Error]"
Case comOverrun
strMessage = "[Overrun Error]"
Case comRxOver
strMessage = "[Receive Buffer Overflow]"
Case comRxParity
strMessage = "[Parity Error]"
Case comTxFull
strMessage = "[Transmit Buffer Full]"
' Case Else
' strMessage = "[Unknown error or event: " & MSComm1.CommEvent & "]"
End Select
strBuffer = strBuffer & strMessage

End sub

THE PARAMETERS THAT I HAVE SET IS

With MSComm1
.CommPort = 5
.Settings = "19200,N,8,1"
.Handshaking = comRTS
.RTSEnable = True
.DTREnable = True
.RThreshold = 1
.SThreshold = 1
.InputMode = comInputModeBinary
.InputLen = 1
.PortOpen = True 'must be the last
End With


PLZZZZ HELP ME WITH THIS.... I NEED IT URGENTLY...
THNX A LOT
Mar 27 '07 #1
2 10259
Cyberdyne
627 Recognized Expert Contributor
I will move this to the Visual Basic Forum where they will be able to assist you better.

Cyberdyne..

hi ,
i have developed a prog in vb to send sms , but i get an error error:8020
"Error reading from comm port"
my prog for mscomm_oncomm() is
Private Sub MSComm1_OnComm()

Dim strMessage As String
Select Case MSComm1.CommEvent
' Event messages.
Case comEvReceive
strMessage = StrConv(MSComm1.Input, vbUnicode) ' Error reading from comm port in mscomm1.input
'
' ,
' Case comEvSend
' Case comEvCTS
' strMessage = "[Change in CTS Detected]"
' Case comEvDSR
' strMessage = "[Change in DSR Detected]"
' Case comEvCD
' strMessage = "[Change in CD Detected]"
' Case comEvRing
' strMessage = "[The Phone is Ringing]"
' Case comEvEOF
' strMessage = "[End of File Detected]"

' Error messages.
Case comBreak
strMessage = "[Break Received]"
Case comCDTO
strMessage = "[Carrier Detect Timeout]"
Case comCTSTO
strMessage = "[CTS Timeout]"
Case comDCB
strMessage = "[Error retrieving DCB]"
Case comDSRTO
strMessage = "[DSR Timeout]"
Case comFrame
strMessage = "[Framing Error]"
Case comOverrun
strMessage = "[Overrun Error]"
Case comRxOver
strMessage = "[Receive Buffer Overflow]"
Case comRxParity
strMessage = "[Parity Error]"
Case comTxFull
strMessage = "[Transmit Buffer Full]"
' Case Else
' strMessage = "[Unknown error or event: " & MSComm1.CommEvent & "]"
End Select
strBuffer = strBuffer & strMessage

End sub

THE PARAMETERS THAT I HAVE SET IS

With MSComm1
.CommPort = 5
.Settings = "19200,N,8,1"
.Handshaking = comRTS
.RTSEnable = True
.DTREnable = True
.RThreshold = 1
.SThreshold = 1
.InputMode = comInputModeBinary
.InputLen = 1
.PortOpen = True 'must be the last
End With


PLZZZZ HELP ME WITH THIS.... I NEED IT URGENTLY...
THNX A LOT
Mar 28 '07 #2
pcapelo
1 New Member
Hey, how are you.

Friend, help me please.... I have the same problem using mscom, Visual Basic 6 and a GSM NOKIA cell modem.

Help me please, how you corrected the problem ?
Oct 29 '07 #3

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

Similar topics

1
by: jinoy | last post by:
how can i detect an incoming caller's telephone keystroke using modem, using mscomm or other? how can i detect an outgoing call using mscomm? how can i get a caller id using mscomm?
1
by: jinoy | last post by:
how can i detect the dtmf tone using the mscomm control. pls send me the code of it.
2
by: Ed Vogel | last post by:
What is the difference between sending data in these two instances: 1 - Using an array Dim aOutput(0 to 1) As Byte Dim Buffer As Variant aOutput(0) = &H1 'A byte to send aOutput(1) = &H2) 'A...
1
by: Wim | last post by:
Hi, Is it possible to use a mscomm control in a smartphone vb.net application? I found solutions for vb.net but these work only in windows solution.. thankd for help! Wim
1
by: Peter Krikelis | last post by:
Hi, I am trying to develope a User Control Library that features MScomm control. I test my user control in a test application. When I run the application I receive the following: An...
1
by: pcserver | last post by:
How to add MSComm Control in #develop MSComm COM/OCX control.
3
by: Shahid | last post by:
How to trace the digit pressed after receiving a call in visual basic6.Please help me soon
6
by: Barry Martin | last post by:
I am using an activex control mscomm to control a serial port in VB.NET. I place the control on the main form and set its port, baud rate, etc. properties. After creating a code module that needs...
0
by: AlanL | last post by:
I am using MSCOMM for serial control and have an issue with some computers. When the handshake lines (CD, DSR, etc )are not connected on the computer I they generate OnComm events. I can ignore the...
8
by: remya1000 | last post by:
I’m tring to convert a VB6 program to VB.NET. This a Caller ID program. In VB6 its using MSComm. So when an calls comes, it will check the user, phone number, number of rings, incomming calls,...
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
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
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,...
1
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
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
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...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
muto222
php
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.