Topic: Making libnfc work alongside other serial communication

The way libnfc currently works is that the communication always follows a back and forth pattern. It sends a message and then waits for the expected number of bytes to be received and processes them. I am using a custom board that sends/receives data from an NFC chip (PN532) and other components. For example, the user could press a button and it would send some data over the serial port which could happen when other NFC communication is taking place at the same time.

Are there any plans to make libnfc do something like buffer incoming data and pull out responses as available? Any suggestions? Thanks!

Re: Making libnfc work alongside other serial communication

Hi,

No, we don't have planned something like that.
Your purpose is specific to your needs: what is the benefit for normal NFC device ?

Romuald Conty

Re: Making libnfc work alongside other serial communication

Makes sense. Perhaps other people have the same scenario as me, but there isn't benefit for normal NFC device.

Re: Making libnfc work alongside other serial communication

If you have a clean way to introduce this in libnfc and more specificly in drivers/pn532_uart feel free to submit it, we will see if it does not cause side effects for normal devices.

Romuald Conty