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 connect correctly to Uno #50

Open
balage1551 opened this issue Jun 9, 2021 · 1 comment
Open

Can't connect correctly to Uno #50

balage1551 opened this issue Jun 9, 2021 · 1 comment

Comments

@balage1551
Copy link

I've installed StandardFirmata on my Uno R3.
I also followed the temporal hack in #48 to avoid crash.
Now I try to connect to the device:

        val device: IODevice = FirmataDevice(JSerialCommTransport("COM3")) // using the name of a port
        device.start() // initiate communication to the device
        device.ensureInitializationIsDone() // wait for initialization is done
        device.pins.forEach { p ->
            println(""+p.index +" -> "+p.supportedModes)
        }
        device.stop() // stop communication to the device

But the ensureInitializationIsDone function throws time out exception. Also (though I think it is a consequence of the previous error), listing the pins returns empty set.

Is there any step I missed?

@kurbatov
Copy link
Owner

Hi Balázs,

The only advice for a quick solution I have is try and see if code from this branch works for you: https://github.com/kurbatov/firmata4j/tree/fix/37-digital-pin-value-message
I didn't have a chance to test it by myself (and that's what holds new release) and it may turn out to be broken.

If it doesn't work for you, some in-depth debugging of your setup is needed. Please, try to identify which initialization step hangs.

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

2 participants