Netduino home hardware projects downloads community

Jump to content


The Netduino forums have been replaced by new forums at community.wildernesslabs.co. This site has been preserved for archival purposes only and the ability to make new accounts or posts has been turned off.
Photo

Adafruit NFC shield


  • Please log in to reply
95 replies to this topic

#81 MarkNic

MarkNic

    Member

  • Members
  • PipPip
  • 22 posts

Posted 10 May 2013 - 04:44 PM

Andy, gomore11,

 

Since the direct approach hasn't worked and technically the failures experienced seem to be a N+/N+2 issue I fired up another thread in that forum.  Hopefully more eyes will see it.

 

Mark



#82 2Elemental

2Elemental

    Member

  • Members
  • PipPip
  • 29 posts

Posted 11 May 2013 - 07:07 PM

Ok super! Hope we get some answers soon as I'm interested in a N+2 as well, but I'm holding that one off until it's more stable...

#83 2Elemental

2Elemental

    Member

  • Members
  • PipPip
  • 29 posts

Posted 12 May 2013 - 08:10 PM

Haven't had the chance this weekend to do some hardware tinkering as I've been following the jumpstart of windows phone 8 to get better insights on general capabilities but bluetooth and nfc in particular. I did find out that WP8 only supports either NDEF or windows messages via NFC so I think we should keep that in mind. @gomore11: one thing that came to mind was that the code I posted on this forum does a specific call to SamConfig, which sets the Adafruit board up for RFID tag reading. Don't know for sure, but it might be that this setup is interfering with what you are expecting to receive from the board in regards to NFC?

#84 gomore11

gomore11

    Advanced Member

  • Members
  • PipPipPip
  • 87 posts

Posted 13 May 2013 - 07:05 AM

Hi Andy.

 

About WP8.........yes I know that it only supports NDEF thats why I mention in an previous post that we will have to take into acount the LLCP protocol. This protocol was designed by the NFC Forum, you can download the technical especifications here:

 

http://www.nfc-forum...cs/spec_license

 

The SamConfiguration you use is valid to data exchange also, I found out this Arduino code example that meets LLCP protocol to comunicate an Arduino+ PN532 Shield and an Android phone........maybe it could help us as a guide to earn to comunicate Netduino and a Windows Phone........... I attach it.

Attached Files



#85 gomore11

gomore11

    Advanced Member

  • Members
  • PipPipPip
  • 87 posts

Posted 15 May 2013 - 10:32 AM

Hi.

 

Ive been doing more tests with the code. And I have to say that debbuging step by step, the ConfigurePeerAsInitiator worked once!!! But only once......Im not abble to make it work again, either debugging step by step.....Ill continue trying things...



#86 2Elemental

2Elemental

    Member

  • Members
  • PipPip
  • 29 posts

Posted 15 May 2013 - 07:43 PM

Hi, Good to see you're making some progress. At this moment I'm unable to work on this, I hope to be able again this weekend... Regards, Andy

#87 gomore11

gomore11

    Advanced Member

  • Members
  • PipPipPip
  • 87 posts

Posted 16 May 2013 - 08:22 AM

Ok, this goes on...........I found some issues to take into account for the code and tests.............I have the main commands working....InJumpForDEP to configure the target(the device you will link to the Netduino+PN532 shield, in this case the Windows Phone) as Initiator, and TgInitAsTarget to configure the target as target.

 

There are two details to retain........when you want to configure the phone as Initiator you can put the Netduino waiting to a device to come to field, and then it configures it(the command does it itself). But to configure the phone as target, that it is our case I think..........the things change a bit. In this case the phone has to be IN the field before you run the TgInitAsTarget command in the Netduino. So maybe before the call of TgInitAsTarget, is necesary to have the FindDevicesInField command running............Ill keep on testing this kind of things and commands, and then I will start with the LLCP protocol.

 

Andy, dont worry.......take a look when you can.However, my programming skills arent the best, so I think that it would be great if someone helps debugging my codes...........Ill put them here when they run.



#88 gomore11

gomore11

    Advanced Member

  • Members
  • PipPipPip
  • 87 posts

Posted 16 May 2013 - 11:29 AM

Here are the .cs files Im using in this moment. The InJumpForDEP,FindDevicesInField andTgInitAsTarget  running. This is the base to make the LLCP protocol run. Im working on a class to construct the different parts of the protocol......but I dont know if i would have so much time this days.........

 

 

Attached Files



#89 gomore11

gomore11

    Advanced Member

  • Members
  • PipPipPip
  • 87 posts

Posted 21 May 2013 - 12:21 PM

Hi!!

 

Ive got good news..........My phone detects the Netduino!! They key was the SEL_RES parameter in the configure command. With a 0x60 instead of a 0x40, it recognize the device..............now I have to continue testing commands and parameters until earn a data exchange between them......



#90 gomore11

gomore11

    Advanced Member

  • Members
  • PipPipPip
  • 87 posts

Posted 23 May 2013 - 01:40 PM

Ok, so Im blocked again........I configure the device as target and when the phone arrives to its field, I have both recognized, The phone by the PN532 and the PN532 by the phone. The PN532 configuration has to be done as a ISO/IEC 14443-4 PICC passive target at 106 kbps to be recognized by the Lumia(I tryed with an Android and it runs also......). So, when you send the TgInitAsTarget command with its configuration parameters, you wait till a device enters to its field. In this moment the PN532 is configured and the command brings back the configuration data. Here, if I understand well the PN532 user manual.............in addition to configuration data, comes more data that could be propietary commands. My question would be if this propietary data are the possible LLCP PDUs that the device has to meet to have a data exchange with a Windows Phone(NDEF messages.............meet NFC Forum)?????????????

 

I have this data as response(the data excluding preambles,postambles,checksum,reponse and mode bytes.....):

 

E0 80 36 00 03 9F 3D 79 06 BE 62 AF 7C DD 00 00 00 32 46 66 6D 01 01 11 02 02 03 80 03 02 00 01 04 01 64 DA D2 6D 01 01 10 00 0E



#91 haxburgen

haxburgen

    Member

  • Members
  • PipPip
  • 21 posts

Posted 26 May 2013 - 01:32 PM

How is everyone connecting the nfc to the board? Could someone also post an updated sample project?



#92 gomore11

gomore11

    Advanced Member

  • Members
  • PipPipPip
  • 87 posts

Posted 01 July 2013 - 02:05 PM

Is someone else working on it????? Ive been working in other issues for a time............Any kind of advancesss???????



#93 drakefang

drakefang

    New Member

  • Members
  • Pip
  • 2 posts

Posted 12 September 2013 - 02:00 AM

just got into netduino world

my first setup is pn532 and neduino +2

haven't tried hard enough to get those working though



#94 JayJay

JayJay

    New Member

  • Members
  • Pip
  • 2 posts

Posted 14 December 2013 - 08:42 PM

Hello all,

could you please share the wiring of this board to your Netduino?

pictures would be nice too..

 

thanks,



#95 2Elemental

2Elemental

    Member

  • Members
  • PipPip
  • 29 posts

Posted 16 December 2013 - 08:28 AM

Hi,

 

I'm sorry but I don't have the time right now to help you with this.

 

You can find a very nice tutorial on the learning site of Adafruit,

however, which I used myself to do the wiring:

http://learn.adafrui...id-nfc/overview

 

Regards,

Andy



#96 vad710

vad710

    New Member

  • Members
  • Pip
  • 2 posts

Posted 14 October 2014 - 05:03 PM

What was the end result of this? Does anyone have this working? Any code available on GitHub? Does anyone know if the uNFC library works with this?






0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users

home    hardware    projects    downloads    community    where to buy    contact Copyright © 2016 Wilderness Labs Inc.  |  Legal   |   CC BY-SA
This webpage is licensed under a Creative Commons Attribution-ShareAlike License.