Автора пока нетВзять себе
- Лицензия
- CC BY-SA 4.0По материалам www.appropedia.org
- Языки
- English
Auroville, a self-sustaining community in India of more than 3,000 people, ran its guest payments on trust. A guest opened an account and deposited money, then paid anywhere in the city by writing the account number and amount and signing. With more guests arriving each year, many left before the money could be processed, services lost money, and it was hard to tell where people were staying or whether they were guests at all. This Appropedia project documents the contactless smartcard system Cynergy developed, and in particular the open-source handheld reader built for places with no computer or internet.

The version 2.0 handheld (photo: Capiscuas on Appropedia, CC BY-SA 3.0).
The system
The company Cynergy proposed and built the solution around Mifare Classic contactless cards, which hold 1K of data and can be read from up to 5 cm away. Contactless cards avoid problems with moisture or damage to the card or reader and can be fully waterproof. Cards are reusable and valid only while the guest is there, so they cannot be passed on without being officially recharged or reactivated. Guests top up a balance and pay at more than 100 outlets for services, food and products.
| Part | What it does |
|---|---|
| Web application | The core: records cards, guests and transactions, and syncs with the existing financial database. Written in PHP with a MySQL back end and SOAP services |
| Cross-platform application (Aurocard) | Runs on Linux and Windows, written in C with open source libraries. Reads a card and lets a point-of-sale owner deduct funds if the balance is enough. Keeps a blacklist of cards, stores any number of transactions offline and processes them when a connection is available. An administrator version links and unlinks guests and adds funds |
| Handheld device | Reads cards and deducts funds where there is no computer or internet, such as taxi services and some activities |
The handheld
A market survey found no device that did what was needed: a battery-operated contactless reader and writer, able to run a custom application, with USB sync to a computer, a graphical screen and a keypad, and a battery that lasts about a day. Cynergy designed one from scratch.
Its program, written in C, runs on a Microchip processor, with peripherals on an I2C bus. The 13.56 MHz Mifare antenna is etched onto the circuit board, and one chip handles all reads and writes. A separate chip charges the battery from USB or an external supply, and a low-cost lithium cell phone battery keeps costs down. A 128 by 64 pixel backlit screen works day and night. Over USB it syncs with the Aurocard application and updates its blacklist, and an onboard memory holds up to 1,000 transactions for later processing. At the time it was built, the page says, each unit cost less than $100, under half the price of anything comparable on the market.


The version 2.0 electronics and the version 1.1 case (photos: Capiscuas on Appropedia, CC BY-SA 3.0).
Open hardware, still needing help
The hardware schematics and firmware for version 2.0, compiled with Microchip’s C18 compiler in MPLAB IDE v8.76 with the Microchip USB libraries, were shared. The authors ask for help cleaning and organizing the source code, making sure it compiles on all platforms and putting it in a Git repository.
Sources
- Appropedia, Free-Libre Hardware RFID handheld device, licensed CC BY-SA 4.0. Photos by Capiscuas on Appropedia, CC BY-SA 3.0; this version stays CC BY-SA 4.0. Changed here: condensed and reorganized; the photo gallery and the download links are left out; rewritten in hubnx’s own words.
Комментарии

Читать дальше
Ещё на тему «Природа»


