GithubHelp home page GithubHelp logo

Comments (3)

dwilches avatar dwilches commented on August 27, 2024

Hello

I'd bet on it being a difference in the expected format of the messages exchanged between the device and this library. Which format do your messages use, are they delimited by a line-feed, a \0, are they prefixed with their length?

If you want to try the same Unity version I have, it's Unity 5.6.0.

Could you give me more information about your current setup?

  • Which version of Unity are you using?
  • Which editor? 32bits or 64bits?
  • Which COM port number does you device use? COM1, COM8?
  • Which is the format of your messages? this part is very important as 1 byte makes the difference.

from ardity.

doomtoo avatar doomtoo commented on August 27, 2024

Thanks!
I was hoping it was a bug with the newer version of Unity, but seems to be an issue with the Arduino 101 board, but not sure what. Trying it out with an Arduino Uno R3, everything works as expected.

I'm using Unity 5.6.0f3, 64 bit editor (VS2017), COM8 on one computer, COM9 on another.

From the arduino IDE I'm just using the Serial.println command to output to serial.

So it must be an issue somehow with how the 101 outputs serial vs. normal Uno. Weird that the arduino IDE can compensate, and 'processing 3' can as well, but whatever .Net library can't :/ (trying even very simple C# programs outside of Unity even doesn't work).

Thanks for trying to help, and letting me know your Unity version. If you have any ideas, let me know, but it's obviously not an issue with this library- works great with the Uno :/

from ardity.

doomtoo avatar doomtoo commented on August 27, 2024

Thanks for the help! Once I found it was arduino 101 specific, I was able to find the answer.
For some reason the 101 needs extra stuff set on the port:
serialPort.DtrEnable = true;
serialPort.RtsEnable = true;
(from: https://forum.arduino.cc/index.php?topic=467421.0).

Thanks for the help again!

from ardity.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.