Skip to content

I2C to support Start and Stop without sending/reading bytes #582

Description

@Ellerbach

I tried to implement an RFID/NFC reader thru I2C: PN532.
Documentation of the device is here: https://www.nxp.com/docs/en/user-guide/141520.pdf
Page 55 and Following describes the way to wake up the device when in I2C mode. In short, you need to pull the transmission up for couple of milliseconds without sending anything. Then you release the line and the chip will be awake.
In this situation, nothing is sent to the device. And if Something is sent to the device, it won't wake up.
So far, in the .NET Core implementation, it is impossible to have this behavior.
Here is an example from the Arduino Library showing the idea behind (the wakeup function):
https://github.com/Seeed-Studio/PN532/blob/master/PN532_I2C/PN532_I2C.cpp#L20
I'm not sure what the Linux kernel propose for that. What I've tested is the libnfc which does support the PN532 and which does wake it up correctly as I can use the sensor.

Metadata

Metadata

Labels

Priority:2Work that is important, but not critical for the releaseStatus: In PRapi-suggestionEarly API idea and discussion, it is NOT ready for implementationarea-System.Device.GpioContains types for using general-purpose I/O (GPIO) pins

Type

No type

Fields

No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions