struggeling with simple Serial to USB code sniplet error #4294967295

Optimist 0 Reputation points
2024-11-24T08:37:16.8+00:00

Beeing rather new to C# and Visual Studio I yesterday downloaded the VS community version to learn how to possibly establish a serial communication to my Arduino. (So hopefully my request doesn't sound too silly. ( Before that I was struggeling with receiving data via Python). While Arduino serial monitor tells the data stream is sent to and received on PC, its refused to be read using c# or Python. In Visual Studio the console is always closed by exception with Error Code # 4294967295. The code sniplet I recently use is reduced to the min to avoid selfmade trouble in the first. Would there be a possibility for me to take this hurdle , even with my little system knowledge? - Recently its the standard firewall ( restrictions to ports) and MS defender installation.

C#
C#
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
11,084 questions
Visual Studio Debugging
Visual Studio Debugging
Visual Studio: A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.Debugging: The act or process of detecting, locating, and correcting logical or syntactical errors in a program or malfunctions in hardware. In hardware contexts, the term troubleshoot is the term more frequently used, especially if the problem is major.
1,006 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Optimist 0 Reputation points
    2024-11-25T08:36:41.2233333+00:00

    Hello Tianyu! Thank you for your quick response! The problem seems to be related to Windows+ hardware and setup, as switching to my old laptop the bytestream now is perfectly readable! - Even in Python.

    Unfortunately the CAD application I would like to use the logged data in, is just running performantly with the new pc I just bought for that requirements! So it seems that I would have to create someway a bridge to gather the data oon the old system store it and transfer it as a file from old to new system... :( just a little uncomfortable!

    I still can't locate the problem on the new laptop!

    Thank you again!

    BR Hansjoerg

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.