Loop Back Test on Serial Port
Loop Back Test on Serial Port
Loop Back Test on Serial Port
Loop Back Test on Serial Port
Loop Back Test on Serial Port
Loop Back Test on Serial Port Loop Back Test on Serial Port Loop Back Test on Serial Port Loop Back Test on Serial Port Loop Back Test on Serial Port Loop Back Test on Serial Port Loop Back Test on Serial Port Loop Back Test on Serial Port
Loop Back Test on Serial Port Loop Back Test on Serial Port
Loop Back Test on Serial Port
Go Back  Xtreme Visual Basic Talk > > > Loop Back Test on Serial Port


Reply
 
Thread Tools Display Modes
  #1  
Old 12-18-2002, 11:15 AM
erocm's Avatar
erocm erocm is offline
Junior Contributor
 
Join Date: Feb 2002
Location: Hot Southern Hell...!
Posts: 216
Question Loop Back Test on Serial Port


Hey guys !

I do a loop back test on a serial port (with a loop back device) and I am testing the send and receive. That is all and good....but... I was told I needed to test more than that. Apparently I am only testing 2 of the 9 cables from what I understand. Is that correct?

Anyways here is the code I use for that:

Code:
Public Function LoopbackTest()

On Error GoTo LoopErrorHandler

   Private piNewPort As Integer
   piNewPort = 1
      
   With msComControl
      .CommPort = piNewPort
      .PortOpen = True
      .Output = "test"
            
      Do While piNewPort < 5
         Select Case msComControl.Input
            Case "test"
               MsgBox "Loopback Device found on Port: " & piNewPort, vbOKOnly, "WWIII"
               piPort = piNewPort
               .PortOpen = False
               Exit Do
            Case Else
               piNewPort = piNewPort + 1
               If piNewPort > 4 Then
                  MsgBox "Loopback device was not found.  Please make sure the red-tipped device is in place.", vbOKOnly, "WWIII"
                  Exit Do
               End If
            End Select
         Loop
      End With
   
   Exit Function
   
LoopErrorHandler:       ' Error-handling routine.
   
   MsgBox "Loopback device was not found.  Please make sure the red-tipped device is in place.", vbOKOnly, "WWIII"
   msComContorl.PortOpen = False
  
End Function
Can you guys give me and ideas how I check the other "pins" or a little education of what I am talking about !?!?

Thanks again
ErocM
Reply With Quote
  #2  
Old 04-06-2011, 06:36 AM
nebdroffo nebdroffo is offline
Newcomer
 
Join Date: Apr 2011
Posts: 1
Default Pins being tested by loop back

Hi erocm,
A loop back test seems to test pins 2 and 3.
See http://www.usconverters.com/download...-back-test.pdf from page 8 to the end.
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump

Advertisement:





Free Publications
The ASP.NET 2.0 Anthology
101 Essential Tips, Tricks & Hacks - Free 156 Page Preview. Learn the most practical features and best approaches for ASP.NET.
subscribe
Programmers Heaven C# School Book -Free 338 Page eBook
The Programmers Heaven C# School book covers the .NET framework and the C# language.
subscribe
Build Your Own ASP.NET 3.5 Web Site Using C# & VB, 3rd Edition - Free 219 Page Preview!
This comprehensive step-by-step guide will help get your database-driven ASP.NET web site up and running in no time..
subscribe
Loop Back Test on Serial Port
Loop Back Test on Serial Port
Loop Back Test on Serial Port Loop Back Test on Serial Port
Loop Back Test on Serial Port
Loop Back Test on Serial Port
Loop Back Test on Serial Port Loop Back Test on Serial Port Loop Back Test on Serial Port Loop Back Test on Serial Port Loop Back Test on Serial Port Loop Back Test on Serial Port Loop Back Test on Serial Port
Loop Back Test on Serial Port
Loop Back Test on Serial Port
 
Loop Back Test on Serial Port
Loop Back Test on Serial Port
 
-->