Skip to main content

Messages

This section allows you to view all Messages made by this member. Note that you can only see Messages made in areas you currently have access to.

Messages - s3c

47
Bus Pirate Support / Re: Bus Pirate and Magstripe reader.
Considered commenting on his posts when I noticed he was on post 999 :) I parsed the data and ran it through Stripe Snoop and it seems legit, start and end sentinels are in place and the data looks fine, don't know what all the fields mean but it contains a number printed on the card.
48
Bus Pirate Support / Re: Bus Pirate and Magstripe reader.
[quote author="Sjaak"]
s3c: I believe the 'bug' that helds the clk line down is removed by now.
[/quote]

Nope, well didn't check the I2C code but it's still in the raw2wire code:

Code: [Select]
case CMD_SETUP:
//writes to the PORTs write to the LATCH
R2WCLK=0; //B8 scl
R2WDIO=0; //B9 sda
R2WDIO_TRIS=1;//data input
R2WCLK_TRIS=0;//clock output
bbSetup(2, modeConfig.speed);
bpWmessage(MSG_READY);
break;
Code: [Select]
case CMD_STOP:
bbI2Cstop();
bpWstring("(_/-\)");
bpWmessage(MSG_I2C_STOP);
break;
49
Bus Pirate Support / Re: Bus Pirate and Magstripe reader.
Score, it works, thanks Ian, I hooked up the CS pin to the card present pin to only sniff when a card is swiped but other than that you were spot on:

m
1. HiZ
2. 1-WIRE
3. UART
4. I2C
5. SPI
6. JTAG
7. RAW2WIRE
8. RAW3WIRE
9. PC KEYBOARD
10. LCD
(1) >5
Mode selected
Set speed:
 1. 30KHz
 2. 125KHz
 3. 250KHz
 4. 1MHz
(1) >4
Clock polarity:
 1. Idle low *default
 2. Idle high
(1) >2
Output clock edge:
 1. Idle to active
 2. Active to idle *default
(2) >2
Input sample phase:
 1. Middle *default
 2. End
(1) >2
Select output type:
 1. Open drain (H=Hi-Z, L=GND)
 2. Normal (H=3.3V, L=GND)
(1) >1
READY
SPI>W
POWER SUPPLIES ON
SPI>(1)
Sniff when:
 1. CS low
 2. CS high
 3. All traffic
(1) >1
SPI bus sniffer, any key exists
[0xFF(0x00)0xFF(0x00)0x2D(0x00)0xE5(0x00)0xE6(0x00)0x31(0x00)0x97(0x00)0xF3(0x00
)0xFD(0x00)0xEB(0x00)0xFA(0x00)0x52(0x00)0xED(0x00)0xFC(0x00)0xFF(0x00)0x1B(0x00
)0xD7(0x00)0xBF(0x00)0x41(0x00)0xDF(0x00)0xFF(0x00)0xFF(0x00)0xFF(0x00)0xFF(0x00
)0xFF(0x00)0xFF(0x00)0xFF(0x00)0xFF(0x00)0xFF(0x00)0xFF(0x00)]
50
Bus Pirate Support / Re: Bus Pirate and Magstripe reader.
If I get some time I'd like to try my hand at implementing this, the two wire mode pulls the clock line low when not used, in a previous post you mentioned that this is needed for the smart card code, what effect will it have if this is changed? Since I'm more of an AVR guy how would you suggest I go about adding a timeout for this macro?
51
Bus Pirate Support / Re: Bus Pirate and Magstripe reader.
The clock speed varies greatly even in a single swipe so static timing won't work, the motor idea while plausible seem like a lot of trouble considering the clock line gives us the timing we need, if I can't find a way to do it with the Bus Pirate I'll wire up a board and code it myself.
54
Bus Pirate Support / Re: Circuit insight anyone?
Looks like the BP pulls the SCL line low after a stop condition, this a observation problem on my side or does it actually not release the clock line?
55
Bus Pirate Support / Re: Circuit insight anyone?
Jip, tried that when I failed dumping it the first time, getting tired of using a breadboard so I've switched out the pull-ups with 2k instead.
58
Bus Pirate Support / Re: Circuit insight anyone?
Lol, so thing is... Had to break the unit open to get the pic and I glued the crap out of it afterwards, in short, sure as hell not getting it open again...
59
Bus Pirate Support / Re: Circuit insight anyone?
Dumping the EEPROM is giving me some problems, I'm assuming it's because my clock speed is too low and the circuit drains the stored power and resets before the communication is finished.

( ! ) Fatal error: Uncaught exception 'Elk_Exception' with message 'Please try again. If you come back to this error screen, report the error to an administrator.' in /var/www/dangerousprototypes/forum/sources/database/Db-mysql.class.php on line 696
( ! ) Elk_Exception: Please try again. If you come back to this error screen, report the error to an administrator. in /var/www/dangerousprototypes/forum/sources/database/Db-mysql.class.php on line 696
Call Stack
#TimeMemoryFunctionLocation
10.01552428376session_write_close ( )...(null):0
20.01582559992ElkArte\sources\subs\SessionHandler\DatabaseHandler->write( )...(null):0
30.01582560768Database_MySQL->query( ).../DatabaseHandler.php:119
40.06152699520Database_MySQL->error( ).../Db-mysql.class.php:273