Parallx rfid reader module interface with PC


Closed Thread
Results 1 to 3 of 3
  1. #1
    Join Date
    Jan 2008
    Posts
    5

    Default Parallx rfid reader module interface with PC

    Hi,

    I am doing an interface with the PC and the parallax RFID reader module through PIC 16F877A. The program interface in the PC is Visual Basic 6(VB6) . I think there is something wrong with my Visual Basic codings. When i scan the RFID tag , the VB6 will capture the data from the PIC. Then it will search the database for the matching ID. IF found , the label box will put Found It. The porblem is that when i scanned the matching RFID ID tag , the VB6 program will put Not Found in the label box and the program will hang. When the MSComm1.output = Chr$(255) & Chr$(modenumber) command line is deleted, when the RFID tag is scanned , the program can find the matching data in the database. Is there any problem with my codings ? Below is the vb6 program code.

    Private Sub Form_Load()

    MSComm1.CommPort = 1
    MSComm1.Settings = "2400,N,8,1"
    MSComm1.RThreshold = 10
    MSComm1.SThreshold = 1
    MSComm1.InputLen = 0
    MSComm1.PortOpen = True
    MSComm1.DTREnable = False
    MSComm1.RTSEnable = False

    End Sub


    Private Sub MSComm1_OnComm()
    Dim buffer As String, Criteria As String
    Dim IDFound As Boolean
    Dim modenumber As Integer

    If (MSComm1.CommEvent = comEvReceive) Then
    buffer = MSComm1.Input
    picBox.Print buffer & " " & Time() & " " & Date
    End If

    IDFound = False
    modenumber = 0
    Criteria = "ID =" & "'" & buffer & "'"
    datIDTAG.Recordset.FindFirst Criteria
    MSComm1.OutBufferCount = 0

    Do While datIDTAG.Recordset.NoMatch = False
    modenumber = 1
    lblNum.Caption = "Found It. " & modenumber
    IDFound = True
    datIDTAG.Recordset.FindNext Criteria
    Loop
    If IDFound = False Then
    lblNum.Caption = "Not Found. " & modenumber
    End If

    MSComm1.Output = Chr$(255) & Chr$(modenumber)

    End Sub

    Plz help me to solve this problem.Thanks.

  2. #2
    skimask's Avatar
    skimask Guest


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by jonil22 View Post
    The program interface in the PC is Visual Basic 6(VB6)
    PicBasicPro this is not...
    May be better suited in the Off-Topic section ya think?

  3. #3
    Join Date
    Jan 2008
    Posts
    5


    Did you find this post helpful? Yes | No

    Default

    ooo..Opps sorry.This is my first time using this forum.Thanks

Similar Threads

  1. TTL magnetic card reader interface ith PC
    By attabros in forum Schematics
    Replies: 3
    Last Post: - 24th February 2016, 07:04
  2. Parallax RFID Reader code example
    By dan-tron in forum Code Examples
    Replies: 4
    Last Post: - 19th April 2013, 22:16
  3. parallax rfid reader module interface with PC
    By jonil22 in forum Off Topic
    Replies: 2
    Last Post: - 3rd February 2008, 06:54
  4. Serial interface with RFID reader
    By brid0030 in forum Serial
    Replies: 8
    Last Post: - 23rd January 2007, 06:23
  5. PIC16F877 to RFID Module Serial Interface
    By koossa in forum mel PIC BASIC Pro
    Replies: 6
    Last Post: - 17th May 2005, 06:03

Members who have read this thread : 1

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