Disconnection frequently happens -> mitigation found

Create issue
Issue #32 new
Former user created an issue

Thank you so much for creating a great plugin for us.

One issue/difficulty I've faced when turning on "play". Before making the play, the following steps were taken. 1. Created 3D Unity project, and Imported Uduino asset 2. Opened Arduino IDE, and Compiled/Load the example sketch named as "Uduino". 3. Turned back to Unity window, and Confirmed the connection with Arduino. 4. Just made "Play" on Unity to start something. 5. Uduino on Inspector tab says the connection with "uduinoBoard". Just after a while (~5 sec), the disconnection happened suddenly, and then the connection was recovered. This phenomenon could be repeated.

In order to mitigate this issued case, the modification of the "Reconnect Delay" on the "On disconnect" attribute was updated to a large number such as 999999. This is a tentative mitigation to avoid the situation.

Is this the expected behavior? I would say no... Hoping the issue can be resolved on the next coming release.

Here's my environment: - OS: Windows 10 Home, ver.1909, OS build 18363.1256 - RAM: 16GB, - CPU: Intel Core i7-1065G7 CPU @1.30GHz - Connected Board: Arduino UNO - Unity: 2019.4.16f1 - Uduino Version: 3.3.1

Comments (4)

  1. StormPvP

    I have the same problem that the port is closing and open again. Where in the code have you mitigate it?

  2. Ken Arai

    I would suggest you can try to modify UduinoManager.Instance.autoReconnectDelay on Start() function.

  3. Log in to comment