This line "int GPStoRead = cardPort.BytesToRead; ", I obviously found in some GPS tutorial!
Lol, I was wondering what kind of fancy code scheme resulted in that variable name
I found an updated thread over here where similar solutions are suggested.
  | ||||||||||||||
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.
Eivind's ContentThere have been 9 items by Eivind (Search limited from 28-April 23) #11839 ID-12/ID-20 RFID Reader DriverPosted by Eivind on 08 April 2011 - 10:27 PM in Project Showcase
Lol, I was wondering what kind of fancy code scheme resulted in that variable name I found an updated thread over here where similar solutions are suggested. #11833 ID-12/ID-20 RFID Reader DriverPosted by Eivind on 08 April 2011 - 07:47 PM in Project Showcase
My best guess is that DataReceived is raised and handled before the data stream is complete. As the event is handled and data keeps being transmitted I guess the event keeps being raised. If so, both Trey's and Dan's approach seem valid.
Gonna come back to studying the actual data after I have set up a WCF+rest service with db.
#11831 ID-12/ID-20 RFID Reader DriverPosted by Eivind on 08 April 2011 - 07:28 PM in Project Showcase
Trey, thanks a lot! You have no idea how much this has been bugging me. So I guess BytesToRead is the clue here? Also thanks for the work done parsing, extracting and converting the actual ID.
#11778 ID-12/ID-20 RFID Reader DriverPosted by Eivind on 07 April 2011 - 10:33 PM in Project Showcase
Guys, are you running regular Netduino, Plus or Mini? I have been struggling getting consistent readings with my ID-20. So far I have managed to isolate these factors: I have tested on
- 2 different N+'s,
- 2 different ID-20's,
- 4 different sets of code (my own, the two libs posted in this thread and one from another thread),
- 3 different breadboards,
- several different sets of wires.
Every run starts with the first reading being ok, then symptoms include;
- DataReceived being fired more than once,
- bytes separated.
(See log)
Now, lately I have been running 4.1.1.0_Alpha7 and 4.1.1.0_Beta1 but I figured I would try an older version. 4.1.0.6 actually seems to produce slightly more consistent results, see log.
Output:
With 4.1.1.0_Alpha7 and 4.1.1.0_Beta1 it might look like this:
Card scanned: 3D004BEA0B97, time: 01/01/2009 00:04:04
Card scanned: , time: 01/01/2009 00:05:52
Card scanned: D004BEA0B97
, time: 01/01/2009 00:07:17
Card scanned: , time: 01/01/2009 00:08:24
Card scanned: D004BEA0B97
, time: 01/01/2009 00:08:28
Card scanned: 3D004BEA0B97
Card scanned: 3D004BEA0
Card scanned: 97
Card scanned:
Card scanned: 3D00
Card scanned: BE
Card scanned: 0B9
Card scanned:
With 4.1.0.6 it now might look like this:
Card scanned: 3D004BEA0B97
Card scanned: 3D004BEA0B97
Card scanned: 3D004BE
Card scanned: 0B9
Card scanned:
Card scanned:
Card scanned: 3D004BEA0B97
Card scanned: 3D004BEA0B
Card scanned: 7
Card scanned:
Card scanned: 3D004BEA0B97
Card scanned:
So, I am wondering what hardware and firmware you have made this work with?
I will try even older firmware, any other suggestions? I do not own a oscilloscope or an logic analyzer so I do not know how I could investigate data transmission and timing.
Wiring using sparkfun breakout board:
5v: pin 11(5V)
ground: pin 1(GND), pin 7(FS - what is this?)
D4: pin 2(RST)
D0: pin 9 (D0)
I have tried with w/o led with resistor and permanent reset, no difference. Led signals correctly each time.
Regards,
Eivind
#11775 ID-12/ID-20 RFID Reader DriverPosted by Eivind on 07 April 2011 - 10:04 PM in Project Showcase
Trey, by accident I reproduced this by connecting pin 7, FS to 5v. This hopefully might of help to someone one day #9797 Serial data problemsPosted by Eivind on 19 February 2011 - 12:04 AM in General Discussion
I was having the same type of problems working with the ID-20 last night. Turned out the fancy see-through breadboard I got the other day wasn't making consistent contact on all wires.. This thread eventually lead me on to the cause, thanks! Only wish I had read it from the bottom up.. ;-)
#8915 Silverlight Client and Server for Netduino PlusPosted by Eivind on 02 February 2011 - 10:28 PM in Project Showcase
Very cool, and much the same type of project I'll be approaching - as soon as I get the hang of the basics
#8056 Resellers in EuropePosted by Eivind on 21 January 2011 - 10:23 AM in Netduino 2 (and Netduino 1)
Robonor in Norway.
#6368 Netduino Plus - First impressions from a beginnerPosted by Eivind on 22 December 2010 - 01:22 PM in Netduino Plus 2 (and Netduino Plus 1)
What beginners kit did you order? Will any Arduino-kit do (or do you have to compensate for the 3.3v vs 5v difference)? Eivind
| ||||||||||||||
|
||||||||||||||
This webpage is licensed under a Creative Commons Attribution-ShareAlike License. | ||||||||||||||