A Flutter plugin designed for accessing the features of SIC431X (specifically SIC4310 and SIC4311) on both Android and iOS platforms.
Features
- RF interface based on ISO14443A at 106 kbps
- UART interface 9600 to 115200 bps
- 8 programmable GPIOs
- Activity indicator pins (RF detection, RF busy and power ready)
- 228-byte EEPROM accessible from RF and UART
NOTE: The plugin only supports SIC4310 and SIC4311 ICs from Silicon Craft Technology.
Getting started
SIC4310 is a dual-interface ISO14443A RFID tag, interfacing with both RF and UART. The key challenge is to deploy a low-cost NFC tag instead of an expensive full functional reader IC and use smartphones as a hub of information.
Main features of SIC4310
- RF interface based on ISO14443A at 106 kbps
- UART interface 9600 to 115200 bps
- 8 programmable GPIOs
- Activity indicator pins (RF detection, RF busy and power ready)
- 228-byte EEPROM accessible from RF and UART
Use pub add: { $ flutter pub add sic4310 }
Example
import plugin to your project :
{
// import plugin
import 'package:sic4310/library.dart';
}
example: call plugin in your project :
{
// call the class for SIC431X core commands ex. check power, write EEPROM and read register
Sic431XCore sic4310 = Sic431XCore();
// call the flag class
Sic431XFlag sicFlag = Sic431XFlag();
await NfcManager.instance.startSession(
alertMessage: 'Please tap a tag.',
onDiscovered: (NfcTag tag) async {
// call the checkPower function of the Sic4310 class
sic4310.checkPower(tag);
// call registers by using Sic4310Register
Uint8List response = await sicCoreTask.readReg(
tag, Sic431XRegister.GPIO_Out);
});
}
Please see: https://github.com/SiliconCraft/SIC4310_NFC_Demo.git