+ Reply to Thread
Results 1 to 10 of 10

Thread: Virtual Serial Port Driver

  1. #1
    Licensed User Sargon's Avatar
    Join Date
    Oct 2005
    Location
    Romania
    Posts
    30

    Default Virtual Serial Port Driver

    I try to use Eltima - Virtual Serial Port Driver, VB 2008 and Proteus Isis to simulate a serial communication between PC and 16f877.

    VB code:
    Code:
    Public Class Form1
        'Dim WithEvents Comm1 As New IO.Ports.SerialPort
        Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
            Comm1.PortName = "COM3"
            Comm1.Parity = IO.Ports.Parity.None
            Comm1.BaudRate = 2400
            Comm1.DataBits = 8
            Comm1.StopBits = 1
            Comm1.Open()
            If Comm1.IsOpen = True Then TextBox1.Text = " serial port COM3 is open"
    
        End Sub
    
    
        Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click
            Dim I As Integer
            For I = 1 To 10000
                Comm1.Write("A", "A")
            Next I
        End Sub
    End Class
    Picbasic code:
    Code:
    Include "PROTON_4.INC"
    
    Dim X As Byte
    
    DelayMS 200
    Cls 
    
    Again:  
    SerIn PORTC.7, 17197, [ Wait ("A"), X]
    Print At 1,1 ,"X= ",  X
    GoTo Again
    In ISIS Compim port is set to COM3

    It does not seem to work...

    Hi, its great to see you visiting our forum. Why not try Proton Compiler for FREE?

    Download the FREE version of Proton Compiler, Its called Amicus18 and its available from HERE

    Already using proton Compiler??? Get rid of these pesky messages... get LICENSED USER STATUS




  2. If you're a Licensed user of PROTON DEVELOPMENT SUITE, apply for Licensed User Status to remove these pesky messages
     and get access to additional forum areas, Beta test downloads and more!

  3. #2
    Licensed User Sargon's Avatar
    Join Date
    Oct 2005
    Location
    Romania
    Posts
    30


    Default Re: Virtual Serial Port Driver

    I tried somethink like that:

    http://www.youtube.com/watch?v=1oWU1Z87OgY

  4. #3
    Moderator RGV250's Avatar
    Join Date
    Aug 2005
    Location
    Kent.
    Posts
    1,711


    Default Re: Virtual Serial Port Driver

    Hi,
    I have used it between RealBasic and ISIS and it works fine for me, I always use the USART but that should not matter.
    Have you checked your VSPE configuration?

    Regards,
    Bob

  5. #4
    Super Moderator wastrix's Avatar
    Join Date
    May 2008
    Location
    Sydney, Australia
    Posts
    2,555


    1 members found this post helpful.

    Default Re: Virtual Serial Port Driver

    Baudmode = 17197 is 1200 baud, your PC application is set up for 2400 baud!
    "If you have an important point to make, don't try to be subtle or clever. Use a pile driver."
    - Winston Churchill
    If you want to contact me, please email me, don't PM me.

  6. #5
    Licensed User Sargon's Avatar
    Join Date
    Oct 2005
    Location
    Romania
    Posts
    30


    Default Re: Virtual Serial Port Driver

    Wastrix , you are right. I changed the Baudmode to 16780 (Baud = 2400) and still no change.
    I attached a zipped folder that contain VB 2008 project, ISIS and Proton files, and also a Printscreen jpg picture.files.zip

  7. #6
    Moderator RGV250's Avatar
    Join Date
    Aug 2005
    Location
    Kent.
    Posts
    1,711


    1 members found this post helpful.

    Default Re: Virtual Serial Port Driver

    Hi,
    I have just had time to look at some of the files, am I missing something but the VB form shows port 3 is open, Compim in ISIS is set for port 3 but VSPE is showing port 1 directed to port 2?
    I can not do anything about VB2008.

    Why not try with hyperterminal first?

    Regards,
    Bob
    Last edited by RGV250; 21st October 2011 at 17:26.

  8. #7
    Licensed User Sargon's Avatar
    Join Date
    Oct 2005
    Location
    Romania
    Posts
    30


    Default Re: Virtual Serial Port Driver

    No! The virual port are COM3 and COM4 . I changed the Compim to COM4 and.... IT WORKS! :-)

    So, in VB the port is COM3 and in ISIS (Compim) is COM4.

    Thanks RGV250. Reading your message I understood that VSPD need two diferent ports ( a pair).

  9. #8
    Moderator RGV250's Avatar
    Join Date
    Aug 2005
    Location
    Kent.
    Posts
    1,711


    Default Re: Virtual Serial Port Driver

    Hi,
    I am not sure how that works unless you have changed the com pair in VSPE to 3 and 4 as well?.

    Regards,
    Bob

  10. #9
    Licensed User Sargon's Avatar
    Join Date
    Oct 2005
    Location
    Romania
    Posts
    30


    Default Re: Virtual Serial Port Driver

    No, I didn't change them. The Virtual ports was all the time COM3 and COM4 (in the left sidfe of the picture). COM1 and COM2 is on the right side of the picture, near the button "Add Pair" (If I want to add a new pair of vritual ports).

    I attached a new picture whit explanations.
    VSPD.jpg

  11. #10
    Moderator RGV250's Avatar
    Join Date
    Aug 2005
    Location
    Kent.
    Posts
    1,711


    Default Re: Virtual Serial Port Driver

    Hi,
    OK, I see now, I must have a very old version of VSPE.
    Anyway, glad it is sorted.

    Regards,
    Bob

+ Reply to Thread

Similar Threads

  1. USB hid - Serial Driver
    By Tim in forum The Lounge
    Replies: 50
    Last Post: 15th August 2010, 20:57
  2. USB Virtual Com Port (CDC) & USB_ADC sample
    By crankshaft in forum Proton Plus Compiler v3
    Replies: 34
    Last Post: 21st January 2010, 13:55
  3. Serial Data out of the PC serial Port
    By Harrison in forum Labcenter Proteus VSM
    Replies: 7
    Last Post: 6th March 2008, 18:12
  4. Second HS serial port.
    By speeder in forum Proton Plus Compiler v3
    Replies: 2
    Last Post: 12th January 2006, 04:13
  5. USB Virtual com port
    By normnet in forum Proton Plus Compiler v3
    Replies: 11
    Last Post: 7th November 2005, 05:36

Members who have read this thread since 7th May 2012, 01:52 : 2

Actions :  (Set Date)  (Clear Date)

You do not have permission to view the list of names.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts