Click here to Skip to main content
15,799,183 members
Home / Discussions / C#
   

C#

 
AnswerRe: Find and count duplicates in a list Pin
BillWoodruff22-Aug-20 22:58
professionalBillWoodruff22-Aug-20 22:58 
QuestionPowerApps and C# Pin
Member 1127440117-Aug-20 7:08
Member 1127440117-Aug-20 7:08 
AnswerRe: PowerApps and C# Pin
Dave Kreskowiak17-Aug-20 8:42
mveDave Kreskowiak17-Aug-20 8:42 
QuestionBinding picture box with column with oracle Pin
mohammed alherwi15-Aug-20 0:26
mohammed alherwi15-Aug-20 0:26 
AnswerRe: Binding picture box with column with oracle Pin
Eddy Vluggen22-Aug-20 11:11
professionalEddy Vluggen22-Aug-20 11:11 
QuestionHow to Read and Write to RFID(v9t557) as Human Interface Device C# Pin
Member 1177073713-Aug-20 15:10
Member 1177073713-Aug-20 15:10 
AnswerRe: How to Read and Write to RFID(v9t557) as Human Interface Device C# Pin
Dave Kreskowiak13-Aug-20 17:28
mveDave Kreskowiak13-Aug-20 17:28 
GeneralRe: How to Read and Write to RFID(v9t557) as Human Interface Device C# Pin
Member 1177073714-Aug-20 13:40
Member 1177073714-Aug-20 13:40 
Am completely new to working with RFID, I just need some help reading the content of an RFID Card, I did something and i found a HidLibrary to get input from HID devices but I still finding it hard to use. Here is what i have done so far:

C#
private void button4_Click(object sender, EventArgs e)
       {
           //if (!(mhdDevice.IsOpen))
           //{
           var devives = HidDevices.Enumerate(0x9915, 0x1116);
           _device = devives.First();
           _device.OpenDevice();

           _device.Inserted += DeviceAttachedHandler;
           _device.Removed += DeviceRemovedHandler;
           _device.MonitorDeviceEvents = true;

           _device.Write(new byte[] { 0, 81, 80 });

           _device.ReadReport(OnReport);
           _device.CloseDevice();

       }


When it hits _device.write, I hear a couple of beep sounds I don't really know what that means..


C#
private void DeviceAttachedHandler()
        {
            _device.ReadReport(OnReport);
        }
        private static void DeviceRemovedHandler()
        {
            Console.WriteLine("Device Removed");
        }
        private void OnReport(HidReport report)
        {
            if (!_device.IsConnected) { return; }

            var cardData = report.Data;
            str = Encoding.ASCII.GetString(cardData);
            if (str == null)
            {
                _device.ReadReport(OnReport);
            }
            else
            {
                MessageBox.Show("String");
            }
        }


OnReport data returns 0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0 I don't know what this means too any help please
GeneralRe: How to Read and Write to RFID(v9t557) as Human Interface Device C# Pin
Dave Kreskowiak14-Aug-20 14:16
mveDave Kreskowiak14-Aug-20 14:16 
GeneralRe: How to Read and Write to RFID(v9t557) as Human Interface Device C# Pin
Member 1177073714-Aug-20 14:28
Member 1177073714-Aug-20 14:28 
GeneralRe: How to Read and Write to RFID(v9t557) as Human Interface Device C# Pin
Dave Kreskowiak14-Aug-20 18:26
mveDave Kreskowiak14-Aug-20 18:26 
GeneralRe: How to Read and Write to RFID(v9t557) as Human Interface Device C# Pin
Member 1177073714-Aug-20 21:18
Member 1177073714-Aug-20 21:18 
GeneralRe: How to Read and Write to RFID(v9t557) as Human Interface Device C# Pin
Dave Kreskowiak15-Aug-20 5:03
mveDave Kreskowiak15-Aug-20 5:03 
GeneralRe: How to Read and Write to RFID(v9t557) as Human Interface Device C# Pin
OriginalGriff15-Aug-20 3:31
mvaOriginalGriff15-Aug-20 3:31 
QuestionHow to generate random decimal numbers in C# Pin
Sajo Nezic12-Aug-20 7:02
Sajo Nezic12-Aug-20 7:02 
AnswerRe: How to generate random decimal numbers in C# Pin
OriginalGriff12-Aug-20 7:09
mvaOriginalGriff12-Aug-20 7:09 
AnswerRe: How to generate random decimal numbers in C# Pin
Luc Pattyn12-Aug-20 11:15
sitebuilderLuc Pattyn12-Aug-20 11:15 
AnswerRe: How to generate random decimal numbers in C# Pin
Eddy Vluggen13-Aug-20 13:07
professionalEddy Vluggen13-Aug-20 13:07 
AnswerRe: How to generate random decimal numbers in C# Pin
Patrice T14-Aug-20 23:33
mvePatrice T14-Aug-20 23:33 
AnswerRe: How to generate random decimal numbers in C# Pin
BillWoodruff19-Aug-20 2:31
professionalBillWoodruff19-Aug-20 2:31 
GeneralRe: How to generate random decimal numbers in C# Pin
jsc4219-Aug-20 7:41
professionaljsc4219-Aug-20 7:41 
QuestionReading Multiple files Pin
lalgourav11-Aug-20 6:45
lalgourav11-Aug-20 6:45 
AnswerRe: Reading Multiple files Pin
Gerry Schmitz11-Aug-20 7:25
mveGerry Schmitz11-Aug-20 7:25 
AnswerRe: Reading Multiple files Pin
OriginalGriff11-Aug-20 7:29
mvaOriginalGriff11-Aug-20 7:29 
AnswerRe: Reading Multiple files Pin
Eddy Vluggen13-Aug-20 13:20
professionalEddy Vluggen13-Aug-20 13:20 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.