1. pin 26 - DATA
2. pin 25 - CLOCK
3. pin 27 - LOADED
4. 5vdc
5. GND
I tried TWI (async and non async) and Digital Read in attempt to get incoming bytes but I'm doing something wrong... I'm trying to read only so I'm wondering if writeReadAync is the right function?
What would be the way to initialize a TWI object for a card reader.. or should I be using Digital Read ? Seems like I need to know address information and response length.. The thing is the card reader is old school and plain TTL so I'm unclear on the frequency(100 khz), what the request should be etc.
I'm trying to piece this together with lady ada's mag swipe tutorial for arduino/teensy... and hack miami's version.. I've been able to get this to work in arduino but IOIO I guess I'm lost .. Any sample code would be appreciated..
http://www.ladyada.net/make/magstripe/index.html
http://hackmiami.org/2008/12/21/magnetic-stripe-card-reader/
--To view this discussion on the web visit https://groups.google.com/d/msg/ioio-users/-/WpMviCt-PvAJ.
You received this message because you are subscribed to the Google Groups "ioio-users" group.
To post to this group, send email to ioio-...@googlegroups.com.
To unsubscribe from this group, send email to ioio-users+...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/ioio-users?hl=en.
To view this discussion on the web visit https://groups.google.com/d/msg/ioio-users/-/19pJVscIl8AJ.
You should open both as digital inputs, wait for the start signal, the read the data line whenever the clock goes high (or maybe low?)
To view this discussion on the web visit https://groups.google.com/d/msg/ioio-users/-/90MutgdPGVIJ.
To view this discussion on the web visit https://groups.google.com/d/msg/ioio-users/-/XXLtrzQUySsJ.
To view this discussion on the web visit https://groups.google.com/d/msg/ioio-users/-/zNKXCoCq2LQJ.
To view this discussion on the web visit https://groups.google.com/d/msg/ioio-users/-/TiEccgmI0ScJ.
Yea I'll prolly just stick to Arduino doing the TTL to UART for me....seems like this Arduino code is working well .. TTL is greek to me and with this card data stuff, interpretting bytes it can get complicated see-> Card-O-Rama: Magnetic Stripe Technology and Beyond lol .. just soldered it up and about to test UART to Android.Toast :) This essentially eliminates any bluetooth, usb host mode headaches and now I can send the card data to our CC processor via the standard ADB/OpenAccessory connection to IOIO
Thanks again Ytai for all your help on my IOIO quest.. IOIO is a game changer! and your super fast baudrate response on these groups is even more awesome... :)
To unsubscribe from this group and stop receiving emails from it, send an email to ioio-users+...@googlegroups.com.
Visit this group at http://groups.google.com/group/ioio-users?hl=en.For more options, visit https://groups.google.com/groups/opt_out.
case UART_REPORT_TX_STATUS:arg1 = readByte();arg2 = readByte();handler_.handleUartReportTxStatus(arg1 & 0x03,(arg1 >> 2) | (arg2 << 6));break;case UART_DATA:arg1 = readByte();for (int i = 0; i < (arg1 & 0x3F) + 1; ++i) {data[i] = (byte) readByte();}handler_.handleUartData(arg1 >> 6, (arg1 & 0x3F) + 1,data);break;case UART_STATUS:arg1 = readByte();if ((arg1 & 0x80) != 0) {handler_.handleUartOpen(arg1 & 0x03);} else {handler_.handleUartClose(arg1 & 0x03);}break;
This has nothing to do with UART. Use digital inputs as I recommended 2 posts ago.