26 (edited by kallt_kaffe 2017-02-23 19:49:26)

Re: NFC tag emulator

I guess it depends on the phone but with my Nexus 5X it easily reads my tag with all the 3 batteries removed. I guess it also depends on which part of the phone you use depending on where the NFC-antenna is located on the phone.

If I where you I would closely examine the areas where you soldered. Maybe there some tiny bit of solder shorting something out.

Also from the FAQ:

Q: How long do the batteries last?
A: Because of the automatic power-saving feature, the battery current consumption when no reader field is present is more than 1000 times smaller than when the field is present. Because of that, the battery life strongly depends on the frequency of use and duration of interaction with PCD. Typical capacity of AG8 batteries is 45 mAh, while the active current consumption of the reader with full batteries is around 6 mA, resulting in at least 8 hours of continuous work in reader field. If the field is never applied, it would *theoretically* take more than 20 years to drain full batteries.

Basically what is says is that the chip is only fully powered when a field is present, without a field it goes into powersaving mode. I suppose the chip has two separate power feeds. One that just keeps the data intact and one (that is enabled by the field) that powers up the chip. For you only one feed works and not the powersaving one.

EDIT: No, only one power feed to the chip. But it can be put into power-down mode and be woken up by external interrupts. I measured the voltage between the ground and the +3.3-5.5V pin/hole and for me it's 3.52V with batteries right now and when in NFC field it raised to 3.7V. I guess it should be higher but I think my batteries are about to run out. Did a massive 8-9 hour print the other day.

EDIT2: Whats your voltage between the pins? With fresh batteries I suppose it should be around 4.6V.

27 (edited by CoolArts 2017-02-23 20:01:42)

Re: NFC tag emulator

I only soldered 2 pins Vcc and ground. I soldered them at 340ºc with a TS100.

I removed the solder on the ground pin cause it has never been very well soldered, just pushing with a knife (plane side) pop out the pin with the solder, the pin on Vcc is very well soldered. Still equal.

The strange thing is that i've been using the emutag (with the pins soldered) with no problems until i stopped it for a week.

Edit: give me a sec, i'm going to measure.

Regards!.

XYZ Junior/Mini Passwords Thread
If you are in a hurry and need your password NOW, or if it takes me too long for you, you can read the posts from 1851. I'm not going to be as effective as Bozo or Cgrillo, but you can give a try with me. If PASSWORDS thread follow it's current flow: asking for repeated passwords, not returning or false PACKS... I will end up with it as others before me.

28

Re: NFC tag emulator

4.3 v

http://soliforum.com/i/?C1SvB8x.jpg

XYZ Junior/Mini Passwords Thread
If you are in a hurry and need your password NOW, or if it takes me too long for you, you can read the posts from 1851. I'm not going to be as effective as Bozo or Cgrillo, but you can give a try with me. If PASSWORDS thread follow it's current flow: asking for repeated passwords, not returning or false PACKS... I will end up with it as others before me.

29

Re: NFC tag emulator

Ok, now measure voltage between pin 10 (gnd) and pin 20 (vcc). Should be the same.
http://soliforum.com/i/?ge1hZdR.png

30

Re: NFC tag emulator

Yup
http://soliforum.com/i/?MO9rKxG.jpg

XYZ Junior/Mini Passwords Thread
If you are in a hurry and need your password NOW, or if it takes me too long for you, you can read the posts from 1851. I'm not going to be as effective as Bozo or Cgrillo, but you can give a try with me. If PASSWORDS thread follow it's current flow: asking for repeated passwords, not returning or false PACKS... I will end up with it as others before me.

31

Re: NFC tag emulator

Weird. That means it has power even when not in the a field so it should contain your data. Also you did confirm that it contained data if you kept in the field.

My current theory is that your microprocessor briefly looses power when entering and/or exiting the field. Could be one of the small surface mounted components that are broken. Not really my area of expertise but maybe one of the capacitors are busted? Hopefully that guy who designed it have some ideas on which components it might be and how you can test if they are ok.

32 (edited by CoolArts 2017-02-23 21:20:20)

Re: NFC tag emulator

kallt_kaffe wrote:

Weird. That means it has power even when not in the a field so it should contain your data. Also you did confirm that it contained data if you kept in the field.

My current theory is that your microprocessor briefly looses power when entering and/or exiting the field. Could be one of the small surface mounted components that are broken. Not really my area of expertise but maybe one of the capacitors are busted? Hopefully that guy who designed it have some ideas on which components it might be and how you can test if they are ok.

Ok, i appreciate your help very very much. I will wait for Alexei's answer.

Greetings Mate!.
Thanks alot!.

XYZ Junior/Mini Passwords Thread
If you are in a hurry and need your password NOW, or if it takes me too long for you, you can read the posts from 1851. I'm not going to be as effective as Bozo or Cgrillo, but you can give a try with me. If PASSWORDS thread follow it's current flow: asking for repeated passwords, not returning or false PACKS... I will end up with it as others before me.

33

Re: NFC tag emulator

I believe this capacitor sits directly between Vcc(+) and Ground(-).
http://soliforum.com/i/?S0iDJH3.png
It's purpose might be to prevent tiny voltage drops. I guessing a little here, someone who is better at electronics can hopefully correct me if I'm wrong. I don't know for sure how to measure it and check if it is OK but if the resistance between GND and Vcc is not in the Mega-Ohm range then it could be the cause of the problem. I measured mine with batteries removed and got a couple of MOhm.

I also have a function on my multimeter that goes "beeep" if there is a connection. When I use this on a capacitor it gives a short beep as the capacitor is being charged (I think) and then stops. If you have this kind of function and not getting a short beep, then swap red and black on your multimeter. Mine only beeps when I put the red cable on the GND-side of the capacitor and the black on the Vcc-side. This may not be the same on your multimeter so try it both ways. I'm not sure if this an accurate way to check a capacitor and even if it will work with your multimeter but it works like that on capacitors with mine.

34 (edited by CoolArts 2017-02-24 20:03:48)

Re: NFC tag emulator

kallt_kaffe wrote:

I believe this capacitor sits directly between Vcc(+) and Ground(-).
It's purpose might be to prevent tiny voltage drops. I guessing a little here, someone who is better at electronics can hopefully correct me if I'm wrong. I don't know for sure how to measure it and check if it is OK but if the resistance between GND and Vcc is not in the Mega-Ohm range then it could be the cause of the problem. I measured mine with batteries removed and got a couple of MOhm.

I also have a function on my multimeter that goes "beeep" if there is a connection. When I use this on a capacitor it gives a short beep as the capacitor is being charged (I think) and then stops. If you have this kind of function and not getting a short beep, then swap red and black on your multimeter. Mine only beeps when I put the red cable on the GND-side of the capacitor and the black on the Vcc-side. This may not be the same on your multimeter so try it both ways. I'm not sure if this an accurate way to check a capacitor and even if it will work with your multimeter but it works like that on capacitors with mine.

I never measured a capacitor before, so i don't know how to right measure one as well. Also my multimeter is not very pro, it has fixed probes so i can't switch them.

I measured (right or wrong i don't really know) as shown on the video, the range of the measurements with the multimeter in Ω 2000k position are between 1600 and 1996 (unit?).

I'm minded to make as much tests as you or somebody else can think, and if things went wrong just to buy a new unit. Alexei still not answered me, also i've pointed him to this post by mail.

Regards!

XYZ Junior/Mini Passwords Thread
If you are in a hurry and need your password NOW, or if it takes me too long for you, you can read the posts from 1851. I'm not going to be as effective as Bozo or Cgrillo, but you can give a try with me. If PASSWORDS thread follow it's current flow: asking for repeated passwords, not returning or false PACKS... I will end up with it as others before me.

35

Re: NFC tag emulator

Well, I think I got 2MΩ (2000kΩ) or something like that so if your numbers are pretty much in the same range. I out of ideas. sad

36

Re: NFC tag emulator

Ok, I have been on holiday for a while. I have seen this with my EMU a few times. What I did to correct it was re-flash it. I use an Arduino to flash with. Let me know if you need instructions. I will post here.

37 (edited by CoolArts 2017-02-26 15:01:17)

Re: NFC tag emulator

@Bozotclown1970
Hey Bozo, welcome back!. Yes please, it would be great if you tell us how to fix this kind of problem by flashing emu.

Regards!.

XYZ Junior/Mini Passwords Thread
If you are in a hurry and need your password NOW, or if it takes me too long for you, you can read the posts from 1851. I'm not going to be as effective as Bozo or Cgrillo, but you can give a try with me. If PASSWORDS thread follow it's current flow: asking for repeated passwords, not returning or false PACKS... I will end up with it as others before me.

38

Re: NFC tag emulator

Ok, for those of you who have an Arduino UNO these are the steps I use when I flash/re-flash my EMU when I have issues.

1. Download the following two files:

http://emutag.com/firmware/ntag213-sniff.bin

http://emutag.com/firmware/common.eep

Save them to your

arduino-nightly\hardware\tools\avr\bin

folder. You will need them later



2. MAKE SURE YOU DO NOT HAVE THE BATTERIES IN THE EMU!!!!!
You have to wire your EMU as an SPI device in order for the Arduino to see it. The first picture is the pin layout on the EMU. The second picture is the EMU wired to the Arduino. The third picture is the Arduino wired to the EMU.


http://soliforum.com/i/?SrxXcpE.jpg


http://soliforum.com/i/?CESFb2X.jpg


http://soliforum.com/i/?ex4UQBG.jpg



So what you are seeing is the following:

EMU Pin                Arduino Pin
SCK                      13
MISO                    12
MOSI                    11
RST                      10


3. Now in the Arduino development windows select File>Examples>ArduinoISP>ArduinoISP sketch file. Then upload this file to your Arduino.

4. Open a command Windows command window (not sure what it is on the Mac, sorry). Maneuver to the folder you copied the files to earlier in your command window.

5. You should now be ready to re-flash. Run the following command (Change the comm port to appropriate port):

avrdude -c arduino -P COM14 -p ATmega328P

The results should look like the following:

avrdude: AVR device initialized and ready to accept instructions

Reading | ################################################## | 100% 0.01s

avrdude: Device signature = 0x1e950f

avrdude: safemode: Fuses OK (H:00, E:00, L:00)

avrdude done.  Thank you.



If that looks good then run the following (Change the comm port to appropriate port):

avrdude -c arduino -p t4313 -P COM14 -b 19200 -e -U flash:w:ntag213-sniff.bin:r -U eeprom:w:common.eep:r


The results are a bit long, just make sure that you do not have any errors. You have now re-flashed your EMU.

39

Re: NFC tag emulator

Thank you very much Bozo!. I thought i was going to be other way very very different and more complicated smile.

I have an TinyISP programmer that will do the job instead the arduino, but I will follow your instructions step by step this night when I put my hands on it.

Regards!

XYZ Junior/Mini Passwords Thread
If you are in a hurry and need your password NOW, or if it takes me too long for you, you can read the posts from 1851. I'm not going to be as effective as Bozo or Cgrillo, but you can give a try with me. If PASSWORDS thread follow it's current flow: asking for repeated passwords, not returning or false PACKS... I will end up with it as others before me.

40

Re: NFC tag emulator

I have a weird behaviour. Trying to flash with arduino as ISP I get same response as you for first command:

MacBook-Pro:avr CoolArts$ bin/avrdude -c arduino -p ATmega328P -P /dev/tty.usbmodem1411 -C etc/avrdude.conf

avrdude: AVR device initialized and ready to accept instructions
Reading | ################################################## | 100% 0.00s
avrdude: Device signature = 0x1e950f (probably m328p)
avrdude: safemode: Fuses OK (E:00, H:00, L:00)
avrdude done.  Thank you.

But when I try to flash i have the following response:

MacBook-Pro:avr CoolArts$ bin/avrdude -c arduino -p t4313 -P /dev/tty.usbmodem1411 -C etc/avrdude.conf -b 19200 -e -U flash:w:emutag/ntag213-sniff.bin:r -U eeprom:w:emutag/common.eep:r

avrdude: stk500_getparm(): (a) protocol error, expect=0x14, resp=0x14
avrdude: stk500_getparm(): (a) protocol error, expect=0x14, resp=0x01
avrdude: stk500_initialize(): (a) protocol error, expect=0x14, resp=0x10
avrdude: initialization failed, rc=-1
         Double check connections and try again, or use -F to override
         this check.
avrdude: stk500_disable(): unknown response=0x12
avrdude done.  Thank you.

Anyway... before getting this error with the Arduino I was trying it with the USBTinyISP and things went much better than with Arduino. Everything seems to read write ok, but when doing the verification step it always fail at first byte, as shown in following video. I tried to do it in a wide range of baudrates with same results always.

avrdude: verification error, first mismatch at byte 0x0000 0x01 != 0x00

The video is shown better in youtube. Flashing

Any ideas?

Regards & Sorry!

XYZ Junior/Mini Passwords Thread
If you are in a hurry and need your password NOW, or if it takes me too long for you, you can read the posts from 1851. I'm not going to be as effective as Bozo or Cgrillo, but you can give a try with me. If PASSWORDS thread follow it's current flow: asking for repeated passwords, not returning or false PACKS... I will end up with it as others before me.

41

Re: NFC tag emulator

Sorry, Arduino as ISP with verbose:

MacBook-Pro:avr CoolArts$ bin/avrdude -vv -c arduino -p t4313 -P /dev/tty.usbmodem1411 -C etc/avrdude.conf -b 19200 -e -U flash:w:emutag/ntag213-sniff.bin:r -U eeprom:w:emutag/common.eep:r

avrdude: Version 6.3, compiled on Jun 14 2016 at 19:15:19
         Copyright (c) 2000-2005 Brian Dean, http://www.bdmicro.com/
         Copyright (c) 2007-2014 Joerg Wunsch

         System wide configuration file is "etc/avrdude.conf"
         User configuration file is "/Users/CoolArts/.avrduderc"
         User configuration file does not exist or is not a regular file, skipping

         Using Port                    : /dev/tty.usbmodem1411
         Using Programmer              : arduino
         Overriding Baud Rate          : 19200
         AVR Part                      : ATtiny4313
         Chip Erase delay              : 9000 us
         PAGEL                         : PD4
         BS2                           : PD6
         RESET disposition             : possible i/o
         RETRY pulse                   : SCK
         serial program mode           : yes
         parallel program mode         : yes
         Timeout                       : 200
         StabDelay                     : 100
         CmdexeDelay                   : 25
         SyncLoops                     : 32
         ByteDelay                     : 0
         PollIndex                     : 3
         PollValue                     : 0x53
         Memory Detail                 :

                                  Block Poll               Page                       Polled
           Memory Type Mode Delay Size  Indx Paged  Size   Size #Pages MinW  MaxW   ReadBack
           ----------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
           eeprom        65     6     4    0 no        256    4      0  4000  4500 0xff 0xff
           flash         65     6    32    0 yes      4096   64     64  4500  4500 0xff 0xff
           signature      0     0     0    0 no          3    0      0     0     0 0x00 0x00
           lock           0     0     0    0 no          1    0      0  9000  9000 0x00 0x00
           lfuse          0     0     0    0 no          1    0      0  9000  9000 0x00 0x00
           hfuse          0     0     0    0 no          1    0      0  9000  9000 0x00 0x00
           efuse          0     0     0    0 no          1    0      0  9000  9000 0x00 0x00
           calibration    0     0     0    0 no          2    0      0     0     0 0x00 0x00

         Programmer Type : Arduino
         Description     : Arduino

avrdude: stk500_getparm(): (a) protocol error, expect=0x14, resp=0x14

avrdude: stk500_getparm(): (a) protocol error, expect=0x14, resp=0x02

avrdude: stk500_getparm(): (a) protocol error, expect=0x14, resp=0x10
         Hardware Version: -1523417260
         Firmware Version: -1073745464.445700
         Topcard         : STK502
         Vtarget         : 1.8 V
         Varef           : 0.0 V
         Oscillator      : Off
         SCK period      : 0.1 us

avrdude: stk500_initialize(): (b) protocol error, expect=0x10, resp=0x01
avrdude: initialization failed, rc=-1
         Double check connections and try again, or use -F to override
         this check.

avrdude: stk500_disable(): protocol error, expect=0x14, resp=0x10

avrdude done.  Thank you.

Regards!.

XYZ Junior/Mini Passwords Thread
If you are in a hurry and need your password NOW, or if it takes me too long for you, you can read the posts from 1851. I'm not going to be as effective as Bozo or Cgrillo, but you can give a try with me. If PASSWORDS thread follow it's current flow: asking for repeated passwords, not returning or false PACKS... I will end up with it as others before me.

42 (edited by Bozotclown1970 2017-02-27 00:47:26)

Re: NFC tag emulator

CoolArts wrote:

I have a weird behaviour. Trying to flash with arduino as ISP I get same response as you for first command:

MacBook-Pro:avr CoolArts$ bin/avrdude -c arduino -p ATmega328P -P /dev/tty.usbmodem1411 -C etc/avrdude.conf

avrdude: AVR device initialized and ready to accept instructions
Reading | ################################################## | 100% 0.00s
avrdude: Device signature = 0x1e950f (probably m328p)
avrdude: safemode: Fuses OK (E:00, H:00, L:00)
avrdude done.  Thank you.

But when I try to flash i have the following response:

MacBook-Pro:avr CoolArts$ bin/avrdude -c arduino -p t4313 -P /dev/tty.usbmodem1411 -C etc/avrdude.conf -b 19200 -e -U flash:w:emutag/ntag213-sniff.bin:r -U eeprom:w:emutag/common.eep:r

avrdude: stk500_getparm(): (a) protocol error, expect=0x14, resp=0x14
avrdude: stk500_getparm(): (a) protocol error, expect=0x14, resp=0x01
avrdude: stk500_initialize(): (a) protocol error, expect=0x14, resp=0x10
avrdude: initialization failed, rc=-1
         Double check connections and try again, or use -F to override
         this check.
avrdude: stk500_disable(): unknown response=0x12
avrdude done.  Thank you.

Anyway... before getting this error with the Arduino I was trying it with the USBTinyISP and things went much better than with Arduino. Everything seems to read write ok, but when doing the verification step it always fail at first byte, as shown in following video. I tried to do it in a wide range of baudrates with same results always.

avrdude: verification error, first mismatch at byte 0x0000 0x01 != 0x00


Any ideas?

Regards & Sorry!

Ok, I know what the problem is, but not sure how to fix it. As I mentioned, I have an Arduino UNO. The reference in the flash command is for t4313 which is my UNO. You have a Tiny, try using "usbtiny" instead of t4313.

43 (edited by CoolArts 2017-03-15 10:11:16)

Re: NFC tag emulator

@Bozotclown1970

I was trying to flash the emu using 2 different devices. A usbtinyISP and an Arduino UNO (original).

I'm already using both namings:

  • Case A USBTinyISP: I only used the USBtinyISP in the video, using the variable "usbtiny".

  • Case B Arduino UNO: All the code i writed except this line "avrdude: verification error, first mismatch at byte 0x0000 0x01 != 0x00" are responses using the UNO and i'm using the "arduino" variable in those cases.

Regards!

XYZ Junior/Mini Passwords Thread
If you are in a hurry and need your password NOW, or if it takes me too long for you, you can read the posts from 1851. I'm not going to be as effective as Bozo or Cgrillo, but you can give a try with me. If PASSWORDS thread follow it's current flow: asking for repeated passwords, not returning or false PACKS... I will end up with it as others before me.

44

Re: NFC tag emulator

Did you load the ArduinoISP sketch file from the examples under File on the menu??

45

Re: NFC tag emulator

Yup, I'm using pins from 10 to 13 as you've mentioned abobe.

XYZ Junior/Mini Passwords Thread
If you are in a hurry and need your password NOW, or if it takes me too long for you, you can read the posts from 1851. I'm not going to be as effective as Bozo or Cgrillo, but you can give a try with me. If PASSWORDS thread follow it's current flow: asking for repeated passwords, not returning or false PACKS... I will end up with it as others before me.

46

Re: NFC tag emulator

CoolArts wrote:

Yup, I'm using pins from 10 to 13 as you've mentioned abobe.


No, I mean did you load the ArduinoISP sketch file in the Arduino developer environment?

47 (edited by CoolArts 2017-02-27 02:11:37)

Re: NFC tag emulator

I'm sorry not to being clear myself, the begining "yup" was my "yes" answer to the sketch question. I just wanted to remark the pins i was using.

I'm using this variables as follow (could be here the error?).
Using tinyisp: -c usbtiny -p t4313
Using arduino: -c arduino -p t4313

So i'm using -p t4313 in both cases. Can this be the problem?

XYZ Junior/Mini Passwords Thread
If you are in a hurry and need your password NOW, or if it takes me too long for you, you can read the posts from 1851. I'm not going to be as effective as Bozo or Cgrillo, but you can give a try with me. If PASSWORDS thread follow it's current flow: asking for repeated passwords, not returning or false PACKS... I will end up with it as others before me.

48

Re: NFC tag emulator

I must apologize, I forgot two other pins. You must have the EMU powered some way. I use the PWR and GRD pins on the Arduino to power the EMU. If you are using an external source then you should be ok, but the EMU must be powered.

49

Re: NFC tag emulator

No no, you didn't forgot nothing. I didn't mentioned vcc and ground because they are obvious.
With all cables told i was using 10, 11, 12, 13, 5v & gnd.

So no powering probs mate wink.

XYZ Junior/Mini Passwords Thread
If you are in a hurry and need your password NOW, or if it takes me too long for you, you can read the posts from 1851. I'm not going to be as effective as Bozo or Cgrillo, but you can give a try with me. If PASSWORDS thread follow it's current flow: asking for repeated passwords, not returning or false PACKS... I will end up with it as others before me.

50

Re: NFC tag emulator

I noticed you are not running this from the /bin directory. If you copied the files there run the command from there also. Let's see if that helps.