Need Help for interfacing with serial ports

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Harvey
    New Member
    • Feb 2007
    • 10

    Need Help for interfacing with serial ports

    HI could anyone give me a sample script for connecting with a serial port.
    I am currently doing a thesis and I need to estblish a connection ofRFID reader and the Visual basic.
  • vijaydiwakar
    Contributor
    • Feb 2007
    • 579

    #2
    Originally posted by Harvey
    HI could anyone give me a sample script for connecting with a serial port.
    I am currently doing a thesis and I need to estblish a connection ofRFID reader and the Visual basic.
    for communication there r just four parametrs boudrate,parity ,stopbit ,comport
    check the details of the h/w use mscomm ctrl and do the job use oncomm event to tress activity happened on comm ctrl
    try it

    Comment

    • Harvey
      New Member
      • Feb 2007
      • 10

      #3
      But I don't know how to use those parameters, could you give me some sample programming script.

      Comment

      • vijaydiwakar
        Contributor
        • Feb 2007
        • 579

        #4
        Originally posted by Harvey
        But I don't know how to use those parameters, could you give me some sample programming script.
        Code:
         
        when u drop mscomm ctrl on thy form select the ctrl press f4
        goto setting and adjust the settings as per thy h/w reqd.
        (9600,n,8,1) where boudrate,parity,databit,stopbit
        
        Private Sub MSComm1_OnComm()
        ' write code for activity here
        End Sub
        try it

        Comment

        • Harvey
          New Member
          • Feb 2007
          • 10

          #5
          My I also be able to receive data via serial ports, for example a magnetic card ID, would it be able to receive data.

          Comment

          • Harvey
            New Member
            • Feb 2007
            • 10

            #6
            thanks I'll try it, if I incounter another problem I'll post it again

            Comment

            • vijaydiwakar
              Contributor
              • Feb 2007
              • 579

              #7
              Originally posted by Harvey
              thanks I'll try it, if I incounter another problem I'll post it again
              yeh............ ..!
              that's the spirit keep it up

              Comment

              • Harvey
                New Member
                • Feb 2007
                • 10

                #8
                Sir my I ask wats is the activity code

                Comment

                • Harvey
                  New Member
                  • Feb 2007
                  • 10

                  #9
                  The sample activity code

                  Comment

                  • vijaydiwakar
                    Contributor
                    • Feb 2007
                    • 579

                    #10
                    Originally posted by Harvey
                    The sample activity code
                    at this place u'll get a string which contains a lot of garbage data then the digits or actual data (this may be in reverse order) again garbage data
                    here u've to exctract actual data and process it later
                    check all inbuffer methods

                    Comment

                    • majidmajid
                      New Member
                      • Feb 2007
                      • 17

                      #11
                      hi.. i want to play the mediaplayer in VB, i got it on the form...now how to get it connected to the media files..plz assist...
                      how to play it then..

                      Comment

                      Working...