Convert a MFRC522 arduino chip to an USB device [closed] - c

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 1 year ago.
Improve this question
I'm tying to convert a MFRC522 arduino chip to an USB device so as to use it natively on windows (with a cli or software) and without an Arduino. I don't know if I was clear (sorry for my bad english). Can anyone help me to do this.

No, you can't do that because you need some mediation between the RFID reader and the PC USB port.
You don't have to use Arduino, but you do need a processor to "translate" the information from the reader and some hardware to speak to USB.

Related

C - Linux create sound in kernel mode [closed]

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 2 years ago.
Improve this question
I need o write a kernel mode driver that plays a note when a key is pressed. I can capture keystrokes but I have no idea how to play sound from kernel. What do I have to do to play a sound? I am brand new to creating drivers.
I need o write a kernel mode driver that plays a note when a key is pressed.
Why?
Seriously, why. What's the reasoning behind this "need"? What's the true reason for the need to play a sound? Maybe there is a better way.
Assuming a PC, with the pcspkr module loaded, you can of course call its functions. But if you want to play something through the soundcard, you'll essentially have to "open" an ALSA device (inside the kernel), and call its fops, all along while user space may do the same thing.

How to interface Keypad & LCD using 8051 Microcontroller [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 4 years ago.
Improve this question
I got a project from college, i have to do "Keypad to LCD interference using 8051 microcontroller".
Explained: Means when i press key 1, it'll show my name on lcd, by pressing key 2, it'll show my roll number & vice versa.
I just know one thing that this can be code in keil and then we have to burn it using 8051 microcontroller . Can anyone please help me with coding ?
Thanks in advance.
This will help you to interface the LCD and KEYPAD to 8051 micro-controller.
Follow the same on the link and modify the code as your requirement for the keypad. I had implemented the same for my project of developing a basic calculator with 8051.

How to get remote host MAC address by using its ip address in c programming in linux [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 7 years ago.
Improve this question
Can some one tell me, how to get remote host MAC address by using its ip address in linux by using c programming(could be netlink sockets or BSD sockets)?
This can't be done using C programming. If it was possible then there wouldn't be any protocol like ARP to get the link layer address.
You can implement ARP request and reply using socket programming. But that's not what you want in this case I think. Anyway in that case you can refer to this discussion
link.
You can have a look at this for that purpose source code.

Capture packets at ethernet port in C language [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 8 years ago.
Improve this question
How to capture packets delivered to my Ethernet port but are discarded because they do not have the same MAC address as my Ethernet card?
I am trying to develop a program in C language. Hence require pointers on how the above can be achieved?
I am trying to do this in Linux.
Under Linux you may use libpcap library. This is the easiest way. You may also do it "by hand" using appropriate socket type (sock_packet, sock_raw) with promiscuous mode for ethernet interface. Google for "linsniff.c" program if you are looking for example.

Save data in memory on LPC1768 [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 8 years ago.
Improve this question
I'm trying save data in memory on LPC1768. I want to load data when I put on the microcontroller. I expect data don't erase when I put off the machine.
I'm programming in C. I would need a example code in C but I fount a example code in C++ only: http://developer.mbed.org/users/okano/code/IAP/
Thanks everybody. Bye.
You can write data to the flash on the LPC1768 using the IAP commands documented in the user manual in Chapter 32 "Flash memory interface and programming". Specifically, section 32.8 documents the IAP (In Application Programming) commands that let the program running on the device write to flash. Or you can write to the flash using the ISP (In-System Programming) serial port protocol documented starting in section 32.3.
You can use a tool like Flash Magic or lpc21isp to program using the ISP protocol if you don't want to roll your own.

Resources