GithubHelp home page GithubHelp logo

Messages not showing about ardity HOT 7 CLOSED

brollsroyce avatar brollsroyce commented on August 27, 2024
Messages not showing

from ardity.

Comments (7)

dwilches avatar dwilches commented on August 27, 2024

from ardity.

brollsroyce avatar brollsroyce commented on August 27, 2024

I'm sorry I have no idea what dts and rts means. There is no such flag in the method you indicated (see image).
image

Could you write the lines of code that I need to add to the AttemptConnection method here?

from ardity.

dwilches avatar dwilches commented on August 27, 2024

Hello,

Sure, no problem. Please locate these 2 lines:

serialPort.WriteTimeout = writeTimeout;
serialPort.Open();

And in between them, enable DTR and RTS like this:

serialPort.WriteTimeout = writeTimeout;
serialPort.DtrEnable = true;
serialPort.RtsEnable = true;

serialPort.Open();

Let me know how it goes,
Daniel W.

from ardity.

brollsroyce avatar brollsroyce commented on August 27, 2024

Hello,

It looks like there is progress after enabling DTR and RTS. I was getting the messages 'Arrived: I????' repeatedly (happened only once, directly after I made changes to the code), but I don't have a screenshot of that, because I cleared the console. But after that whenever I press play again, there were no values coming, just the 'Device connected' message and when I disconnect and reconnect the device, the message in the image below appears.

image

Again, to double check, I checked if the values are actually being sent by the device via my python script, and yes they are being sent, but not to Unity apparently. :(

Any ideas?

Really appreciate your responses btw.

Thanks,
Brolin

from ardity.

samu158820 avatar samu158820 commented on August 27, 2024

I'm having the same problem...
Btw, I'm writing in arduino in C language, using Atmel Studio and flashing with AVR8.
Verified the port with arduino IDE monitor, and it indeed send the messages, but Unity just don't receive/show them.
Please if anyone find the solution I would be grateful!
Sam

from ardity.

dwilches avatar dwilches commented on August 27, 2024

Hello @samu158820 ,
In which scene are you experiencing the issue? and what is the delimiter of your data?

Notice that scenes like DemoScene_AutoPoll expect the data to be sent in lines, while the scene DemoScene_CustomDelimiter allows you to set a custom delimiter. So depending on the format of your data you need to use one or the other to test your device.

Regards.

from ardity.

samu158820 avatar samu158820 commented on August 27, 2024

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.