7 ms·
I've worked in public transport ticketing for the past 30 years including the first system outside Japan (Hong Kong's Octopus). The problem with QR codes: 1.
by rswail 2y ago
I've worked in public transport ticketing for the past 30 years including the first system outside Japan (Hong Kong's Octopus).
The problem with QR codes:
1. If they're printed, they can be copied.
2. "Dynamic" QR codes can be screenshot.
3. They're read-only (by definition)
4. Readers are slow, require good orientation by the user.
NFC is good because it's read/write, has a ~10cm range, the larger cards can hold up to 4K of data, the ultralights can replace single journey tickets and can be recycled like magnetics being captured at exit.
- hgomersall 2y agoI don't think the suggestion is the QR code contains the ticket info, but that the QR code is the unique tag into the back end virtual ticket system. 1 to 3 are not relevant in that context, and 4 isn't borne out in my experience with modern readers (they're used in the bar code mix at parkrun and they read time is vanishingly fast with a smart phone, generally better than barcodes). The number of bits might increase the difficulty if capturing the code, but I would very surprised if a fast, robust system can't be built. The huge disadvantage of NFC in this context is the electronic waste necessarily produced.
- sverhagen 2y ago> and 4 isn't borne out in my experience To bolster your point, aren't there whole countries where stores and street sales float on top of QR codes?
- matsimitsu 2y agoIn China, QR Codes are used for public transport too, and I found them just as fast as NFC readers (and faster than the slow readers used by the NS in The Netherlands)
- ralferoo 2y agoUntil you go to another city and discover that the local bus company has decided that instead of just letting you pay by Wechat pay or Alipay, you need to install their proprietary app to generate the QR code for the bus to scan, at which point the app then just turns it into a Wechat pay or Alipay transaction at the end. No benefit to the user, it just allows the bus company to extract all your PII in the process. Actually, they're not all proprietary apps, but there are several from competing companies, and you have to use whichever one the city has chosen. Actually, I think part of the reason is that so they know who's on the bus in case it's involved in an accident, because if you buy a ticket from a bus station for a "short distance" (so out of the city, but within about 40km), you also have to provide them with a phone number even though they never call you or send you an SMS using that number.
- pizzalife 2y ago>Actually, I think part of the reason is that so they know who's on the bus in case it's involved in an accident The CCP certainly do want to know who's on the bus, but not for the reasons you stated.
- defrost 2y agoYes- of interest: China's Big Tech companies taught Asia to pay by scanning QR codes, but made a mess along the way https://www.theregister.com/2024/06/17/asia_qr_code_obsession/ https://www.theregister.com/2024/06/17/asia_qr_code_obsessio...
- rswail 2y agoThose QR codes are validated online. Transit has to work offline.
- rswail 2y agoThe time to process a payment at a retail outlet is ~1s+, the time required for public transport is usually <0.5s including mechanical release of barriers etc. QRs are dramatically slower than NFC.
- account42 2y agoAn always-online requirement is not feasible everywhere.
- kevincox 2y agoYou can fail open. The QR code contained a signed ticket ID and expiry. You locally validate the signature and expiry and remotely attempt to validate reuse. If the remote validation is slow or fails just accept the ticket and log it.
- rswail 2y agoThat is what happens, however it exposes the transit company to a risk that many of them aren't willing to accept.
- bunderbunder 2y agoNFC doesn't necessarily create any additional e-waste. In Chicago we have an NFC system, and people typically just link their phone to their account and use that to pay. I still use a physical card - so that I have a backup option in case something happens to my phone - but even there the volume of waste is trivial. I've had my current transit card for ages, and it doesn't expire until 2037. It's possible that the only technological decision I've made that generated less e-waste was deciding to splurge on a mechanical watch instead of a quartz model.
- hgomersall 2y agoWell, yes, but the article is about a disposable nfc ticket.
- bunderbunder 2y agoThose are more for single rides by people who rarely or never use the transit system. I've had the same Carte Opus for years and just bring it with me and refill whenever I visit Montreal. And the disposable paper cards are being phased out. I'm not sure when the rollout will be, but Montreal is currently working on upgrading the system to allow people to just tap-to-pay at the turnstiles using their phones or compatible credit and debit cards. Which is not something that you could do with a QR system. I don't know that anything is inherently wrong with QR codes, but they do seem to be a choice that's more appropriate for countries like China where the existing electronic payment infrastructure uses QR codes. In North America, by contrast, things have generally settled on NFC, and I think that that reason alone probably makes NFC the better option for North American transit systems.
- efreak 2y ago> Montreal is currently working on upgrading the system to allow people to just tap-to-pay at the turnstiles using their phones or compatible credit and debit cards. > Which is not something that you could do with a QR system I've got several apps that display QR codes on the screen for an external reader. One of them is for my health insurance id card (a simple 10 digit number), another shows my COVID vaccination status (this one is complicated, and I'm not sure why they used a QR code for it. It must include batch identification and other information given the size)
- rswail 2y agoThe problem with expecting a "unique tag into the back end" is that these systems have to work offline. The QR codes are significantly slower to read than NFC. I've built both NFC and QR (and ye olde fashioned magnetic stripe) ticketing systems.
- CraigJPerry 2y ago1. Thats ok. If you’re expecting your rfid tokens not to be copied just because it seems inconvenient to do so, you’re in for a surprise! Your ticketing system cannot assume tickets in any form cannot be replicated- they can be and if you introduce such a vulnerability in your system, you will lose revenue 2. As per 1, no issue 3. That’d be a great feature if true, I’m all for immutability. However , qr codes can be defaced easily, hopefully the built in checksum defend against that. a more likely threat your system needs to defend against is that new qr codes can be generated extremely quickly 4. Both systems are the same speed, both systems require accurate targeting by the user, an rfid token slightly askew of the reader will not read since it won’t be able to influence / absorb the generated rf - most of these systems work by providing power to the rfid token and it communicates back not by transmitting its own signal but by exerting influence on the signal it’s receiving. It’s a very very low power interaction and very sensitive to positioning A better problem than 4 is that you entail staff overheads with a visual system to keep them clean. Read / write is a bad feature, you will lose ticket sales. Recycling these is not practical. Direct reuse risks jamming the vending machine (used tickets end up subtly bent, very hard to reliably deal with), actual recycling isn’t viable, the energy required and emissions produced exceed that of creation of a new card from raw materials.
- The_Colonel 2y ago> Your ticketing system cannot assume tickets in any form cannot be replicated- they can be and if you introduce such a vulnerability in your system, you will lose revenue Yes, the question is not whether such system would be abused, but how much. But this is in the end what businesses care about. Will QR codes be abused more than NFC chips? Likely yes. Will it produce a larger financial loss than the cost of the NFC chips? Can I mitigate these losses by a centralized validation system (each terminal needs a network connection with low latency guarantees)? Sure, but how much will it cost?
- stavros 2y agoA centralized system is how tags work already, so you can't toss your ticket to your friend behind you and have them reuse it.
- teknologist 2y agoI’ve found NDEF cards that can hold 16KB & 32KB, even as much as 64KB. That may be too much capacity for ticketing but it blows QR codes out of the water
- scoot 2y agoWhen all you need is a unique identifier, what's the advantage?
- teknologist 2y agoNone in that case. But with these cards there’s less need for centralization of data storage and code logic
- CraigJPerry 2y ago>> there’s less need for centralization of data storage and code logic You make it sound like less moving parts are a bad thing :-) I know what you're getting at though - the decentralized tolerance of network partitions and the ability to provide higher availability and faster decision speed at the entry barrier. The system design constraints are hard but not impossible, my back of napkin maths says 5k/ticket scans per second with 99th percentile latency < 1000ms not only satisfies every use case that exists today but allows for 3x population growth beyond! There's a few things in your favour when designing this system though. For example, in the case of network partition, you have geographic locality so a pen drive delivered a couple of times per day is likely feasible.
- teknologist 2y ago1000ms is a surprisingly long wait at a ticket barrier, though! Latency is everything in this use case...
- rswail 2y agoUsual requirement is <500ms from tap to passenger through the barrier, which includes not only the validation/fare deduction etc, but also the display and barrier unlock.