Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't find CoinAcceptor #4

Open
GhazarArm opened this issue Mar 4, 2021 · 0 comments
Open

Can't find CoinAcceptor #4

GhazarArm opened this issue Mar 4, 2021 · 0 comments

Comments

@GhazarArm
Copy link

GhazarArm commented Mar 4, 2021

I got this log
2019-05-19 04:16:43,831 INFO com.vltgroup.ccTalk.bus.Bus.:49 scan CRC8:
2019-05-19 04:16:45,437 INFO com.vltgroup.ccTalk.bus.Bus.:55 scan CRC16:
2019-05-19 04:16:47,039 INFO com.vltgroup.ccTalk.bus.Bus.:61 scan ENCRYPTED:
2019-05-19 04:16:48,641 INFO com.vltgroup.ccTalk.bus.Bus.:68 scan FINISHED

this is my device

156790389_451047946179800_1853655067287517230_n

this is my code

    val comPort =
        ComPort("/dev/ttyUSB0", this)

    val bus = MyBus(comPort, byteArrayOf(1, 2, 3, 4, 5, 6))
    val coinAcceptors = bus.coinAcceptors
    val controler = AcceptorController()

    for (acc in coinAcceptors) {
        val a = bus.createCoinAcceptor(acc, controler)
        a.run()
    }
    bus.setMasterInhibitStatusAllDevicesSync(false)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant