Search Issue Tracker

Postponed means that the issue was either a feature request or something that requires major refactoring on our side. Since that makes the issue not actionable in the close future we choose to close it as Postponed and add it on our internal roadmaps and technical debt pages instead.

Postponed

Votes

9

Found in

5.3.4f1

Issue ID

780486

Regression

No

[SerialPort] BytesToRead returns null reference

Mono

-

Steps to reproduce:
1) open the project
2) open scene 'Main'
3) run

Expected behavior: BytesToRead return 0
Actual: null reference

Comments (24)

  1. merccat

    Nov 19, 2017 22:37

    Just adding myself to the list of people disappointed that this does not work. It's very limiting to only be able to communicate with serial devices using strings. Hopefully either this gets resolved or Unity creates their own Serial system

  2. juliens137

    Oct 02, 2017 03:10

    THIS NEEDS TO BE SOLVED! IT'S BEEN YEARS! This is unacceptable

  3. walker_snapmaker

    Jun 15, 2017 13:10

    It is import for developers. I am developing 3D printer software. I must get the data from firmware of 3d printer, so i can send g-code rightly.
    No received data, the function of sending g-code must not be done !

  4. wren6991

    Jun 03, 2017 14:26

    A year later and no response? Not even to explain why it can't be fixed? One word -- "Sad!"

  5. NNSkelly

    Apr 17, 2017 15:32

    April 2017, Unity 5.5, issue still exists. System.IO.SerialPort does seem more like a Microsoft module than a Unity one, but if that's the case, just elevate it to M$ to deal with, don't leave it hanging here in a "we might care some day but we don't now" state.

  6. Timxu2015

    Mar 15, 2017 07:49

    Please solve this, great help!!!!

  7. DC3210

    Jan 23, 2017 08:06

    HI,
    please fix it, it's a big pb for all serial connection system when we can't have "BytesToRead" Information. At best the system remains on hold, at worst it crashes.

    Best regards,
    David.

  8. tbenner

    Dec 19, 2016 16:50

    I would also like to see the SerialPort class more fully implemented. All the polling read functions, plus the readData event handler. For me, it seems the only way to get data into Unity from external sources is through the serial port. Please update this ASAP!

  9. blaskojoz

    Dec 15, 2016 20:45

    Please fix it!

  10. raziel_anarki

    Nov 28, 2016 09:52

    This should be fixed, imo, programming stuff with the arduino would be so much cleaner without the needed hacks, and implementation-forced synchronous red timeouts :(

Add comment

Log in to post comment

All about bugs

View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.