Skip to content

bamchoh/pasori

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

pasori

This library allows you to get the IDm from pasori which is Felica card reader.

install

go get github.com/bamchoh/pasori

usage

To get the IDm, Vender ID and Product ID are needed. Before using, you need to get VID and PID from your Felica card reader.

For pasori, Vender ID is 0x054C, Product ID is 0x06C3.

package main

import (
	"fmt"
	"github.com/bamchoh/pasori"
)

var (
	VID uint16 = 0x054C // SONY
	PID uint16 = 0x06C3 // RC-S380
)

func main() {
	idm, err := pasori.GetID(VID, PID)
	if err != nil {
		panic(err)
	}
	fmt.Println(idm)
}

license

MIT license

references

To implement this library, I referenced below article deeply. @ysomei, Thank you for your allowing me to refer your article.

About

pasori library for golang

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published