Skip to content
RC-S380 driver for WebUSB
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
src
test
.gitignore
LICENSE
README.md
package-lock.json
package.json
tsconfig.json
tslint.json

README.md

RC-S380 Driver for WebUSB

What is this?

Sony RC-S380 (NFC card reader) Driver for WebUSB written in TypeScript.

How to install

$ npm i rc_s380_driver
# or
$ yarn add rc_s380_driver

How to use

import { RCS380, ReceivedPacket } from 'rc_s380_driver'

class Sample {
    constructor(readonly rcs380: RCS380) {}

    public static async connect(): Promise<TypeFTag> {
        const device = await RCS380.connect()
        return new Sample(device)
    }

    public async sendCommand(): Promise<ReceivedPacket> {
        const command = Uint8Array.of(0x00, 0xff, 0xff, 0x01, 0x00)
        return this.rcs380.inCommRf(command, 0.01)
    }
}

npm packate

rc-s380-driver

License

MIT

You can’t perform that action at this time.