C
C#•4mo ago
Wonxen

RFID Card Reader Event Handling Issue in Windows Forms Application

Hello, I am developing a petrol station Windows Forms application. I am using a USB RFID card reader and have acquired 125 kHz cards for sales transactions. I have received example code from ChatGPT and implemented it. However, even though I write and copy-paste the code correctly, the events are not triggered when an RFID card is read. I am not receiving any error messages, but the reading operation does not occur. Is there a sample project or someone who can help with this issue?
16 Replies
MODiX
MODiX•4mo ago
When you ask a question, make sure you include as much detail as possible. Such as code, the issue you are facing, what you expect the result to be, what .NET version you are using and what platform/environment (if any) are relevant to your question. Upload code here https://paste.mod.gg/ (see $code for more information on how to paste your code)
Wonxen
WonxenOP•4mo ago
hey @Buddy, Citizen of Pluto 🔱 i left the details of the code
Buddy
Buddy•4mo ago
or someone who can help with this issue?
Please don't ask to ask. Just ask your question directly and include the code used. We can't help blindly if no code was given.
Wonxen
WonxenOP•4mo ago
Yes, you are right. I pasted the code into the link and saved it. This is the first time I am seeking help, so please excuse me if I don't know much.
Wonxen
WonxenOP•4mo ago
The RFID card reader I used is this one. I bought 125kHz cards as well, but I couldn't use them with C#.
No description
Buddy
Buddy•4mo ago
Well .. You didn't send the link given here.
Wonxen
WonxenOP•4mo ago
I don't know how to send
Buddy
Buddy•4mo ago
copy the url and then paste the link into discord chat.
Wonxen
WonxenOP•4mo ago
BlazeBin - kmcxgpnqdzes
A tool for sharing your source code with the world!
Wonxen
WonxenOP•4mo ago
okey?
Buddy
Buddy•4mo ago
Are you connected to the correct thing? Make sure you read the docs https://learn.microsoft.com/en-us/dotnet/api/system.io.ports.serialport And not just blindly copy pasting if that's what you did.
Wonxen
WonxenOP•4mo ago
Yes, I connect to the com1 port from the task manager, but I do not get any response when I scan the card.
Buddy
Buddy•4mo ago
Try to use this if you see anything https://freeserialanalyzer.com/ If you don't see anything there, you may not get any responses from the reader itself
Wonxen
WonxenOP•4mo ago
What exactly is the working logic of this?
Buddy
Buddy•4mo ago
What do you mean? Did it work or what? Unfortunately the program is closed source so we can't know (legally speaking)
Wonxen
WonxenOP•4mo ago
How do I use it actually determine
Want results from more Discord servers?
Add your server