Pages: [1]   Go Down
Author Topic: Arduino and NFC dynamic TAG ( RC-S801 )  (Read 852 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Newbie
*
Karma: 0
Posts: 22
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Hi,

I have got this pack:

-RC-S801
-Felica Lite Sticker RC-S701
-Reader/Writer RC-S360SH

Is a pack of Sony for NFC, and i was testing with him. I am so newbie in this technology, i need some help.

I download this library for this devices: http://blog.felicalauncher.com/resource/upload/NFCDynamicTagArduinoLibrary_v1.1.zip

But I've only been able write a URL ( www.arduino.cc for example ). I want write a ID number for example...Anyone know how I could do?

Thanks very much!

EDIT:

The example code:

Code:
#include <EEPROM.h>

#include "FeliCaPlug.h"
#include <inttypes.h>

FeliCaPlug plug;

// TT3 Attribute block + NDEF Message with SmartPoster http://blog.felicalauncher.com/en/?p=70
uint8_t blockData[96] ={ \
0x10, 0x01, 0x01, 0x00, 0x06, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x46, 0x00, 0x5e, \
0xd1, 0x02, 0x42, 0x53, 0x70, 0x91, 0x01, 0x21, 0x55, 0x03, 0x62, 0x6c, 0x6f, 0x67, 0x2e, 0x66, \
0x65, 0x6c, 0x69, 0x63, 0x61, 0x6c, 0x61, 0x75, 0x6e, 0x63, 0x68, 0x65, 0x72, 0x2e, 0x63, 0x6f, \
0x6d, 0x2f, 0x65, 0x6e, 0x2f, 0x3f, 0x70, 0x3d, 0x37, 0x30, 0x51, 0x01, 0x19, 0x54, 0x02, 0x65, \
0x6e, 0x4e, 0x46, 0x43, 0x2d, 0x46, 0x20, 0x44, 0x65, 0x76, 0x65, 0x6c, 0x6f, 0x70, 0x65, 0x72, \
0x73, 0x27, 0x20, 0x42, 0x6c, 0x6f, 0x67, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00  \
}; 
uint16_t numOfBlocks = 6;

// TT3 Attribute block + NDEF Message with SmartPoster http://www.stuttgart.sony.de
//uint8_t blockData[48] ={ \
//0x10, 0x01, 0x01, 0x00, 0x03, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x1b, 0x00, 0x30, \
//0xd1, 0x02, 0x16, 0x53, 0x70, 0xd1, 0x01, 0x12, 0x55, 0x01, 0x73, 0x74, 0x75, 0x74, 0x74, 0x67, \
//0x61, 0x72, 0x74, 0x2e, 0x73, 0x6f, 0x6e, 0x79, 0x2e, 0x64, 0x65, 0x00, 0x00, 0x00, 0x00, 0x00  \
//}; 
//uint16_t numOfBlocks = 3;

// TT3 Attribute block + NDEF Message with SmartPoster http://www.sony.net
//uint8_t blockData[48] ={ \
//0x10, 0x01, 0x01, 0x00, 0x03, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x13, 0x00, 0x28, \
//0xd1, 0x02, 0x10, 0x53, 0x70, 0xd1, 0x01, 0x0c, 0x55, 0x01, 0x73, 0x6f, 0x6e, 0x79, 0x2e, 0x6e, \
//0x65, 0x74, 0x2f, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00  \
//};
//uint16_t numOfBlocks = 3;

int readOnly = 0x00;

void setup()
{
  uint8_t dfc[2] = {0xff, 0xe0};
  uint8_t userParam[4] = {0x01, 0x23, 0x45, 0x67};
 
  plug.initPort();
  plug.setParam(FELICA_PLUG_MODE_TYPE3, dfc, userParam);
  plug.setLEDPin(FELICA_PLUG_LED_PIN);
  plug.setBlockData(blockData, numOfBlocks, readOnly);
}

void loop()
{
  plug.doLoop();
}
Logged

Seattle, WA USA
Offline Offline
Brattain Member
*****
Karma: 549
Posts: 46107
Seattle, WA USA
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Quote
I have got this pack:

-RC-S801
-Felica Lite Sticker RC-S701
-Reader/Writer RC-S360SH
Try again, with links this time.

Logged

Pages: [1]   Go Up
Jump to: