-
Notifications
You must be signed in to change notification settings - Fork 62
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
Messages not showing #45
Comments
Hello!
Could you see if enabling DTS and RTS solve the issue?
The change should be in the AttemptConnection Method of the
AbstractSerialThread class. If that works I will include that by default in
Ardity as others have reported similar issues.
Regards
…On Tue, Aug 25, 2020, 5:02 AM brollsroyce ***@***.***> wrote:
Hello,
I followed the pdf with steps to get incoming messages into Unity from the
COM port with the 'MyMessageListener.cs' script.
Upon pressing play, the only message I get is "Device Connected" and no
more messages. I checked if the device is sending data via a python script
and yes it is constantly sending data.
I have 2 suspicions:
1.
The data being sent from the device is in the form of hex bytes (as
shown in the image). Is that a problem? Also, they come as packets.
[image: packs]
<https://user-images.githubusercontent.com/50242741/91171829-7ac24600-e6db-11ea-8970-fd8e784505ce.PNG>
2.
Does it matter if the device is arduino or not?
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#45>, or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AA6KR2MVCG4PPGLNIPG6QADSCOR4HANCNFSM4QKSDQTA>
.
|
Hello, Sure, no problem. Please locate these 2 lines: serialPort.WriteTimeout = writeTimeout; And in between them, enable DTR and RTS like this: serialPort.WriteTimeout = writeTimeout; Let me know how it goes, |
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. 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, |
I'm having the same problem... |
Hello @samu158820 , 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. |
Actually I've tested all the scenes available, so the peoblem couldn't be
that.
My solution was creating a custom serial port reader on unity, and changing
the computer I was testing for a Notebook, then everything just worked fine.
Thank you for your support,
Sam.
Em dom, 20 de set de 2020 00:25, Daniel W <notifications@github.com>
escreveu:
… Hello @samu158820 <https://github.com/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.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#45 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/AMQJTOGHYJJ3KU72FWQ4CVDSGVRX7ANCNFSM4QKSDQTA>
.
|
Hello,
I followed the pdf with steps to get incoming messages into Unity from the COM port with the 'MyMessageListener.cs' script.
Upon pressing play, the only message I get is "Device Connected" and no more messages. I checked if the device is sending data via a python script and yes it is constantly sending data.
I have 2 suspicions:
The data being sent from the device is in the form of hex bytes (as shown in the image). Is that a problem? Also, they come as packets.
Does it matter if the device is arduino or not?
The text was updated successfully, but these errors were encountered: