Zum Inhalt springen
View in the app

A better way to browse. Learn more.

Fachinformatiker.de

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

C# - RS232 Daten empfangen

Empfohlene Antworten

Hallo zusammen,

ich bin dabei einen uC anzusteuern.

Jedoch habe ich ein Problem:

Da ich jedes einzelne Byte einzeln empfangen und auswerten will habe ich

MySerialPort.ReceivedBytesThreshold = 1; 

gesetzt.

Baudrate, Parity etc habe ich schon alles eingestellt.

Jedoch empfange ich nicht genügend Bytes ( ich sollte z.B. 10 empfangen, bekomme aber nur 5 oder 6).

Wenn ich dann erneut Daten zum Controller schicke, dann erhalte ich auch den Rest der letzten Daten (die fehlenden 5 oder 4 Byte).

Kann mir da vllt. jemand auf die Sprünge helfen?

Gruß & schönes WE wenn's soweit ist

abi2010

Hi,

man könnte dir bestimmt Helfen.

Aber ohne das entsprechende snippet, wird man schwer etwas verbessern können.

Wenn du dein snippet für den Datenempfang mal reinstellst kann man sich um eine Problemlösung bemühen.

lg

Gateway

Gude,

ist dein Array auch groß genug? Spontan würd mir sonst nur noch ein Fehler des uC einfallen.

Die SerialPort-Klasse ist nicht dafür bekannt Daten zu schlucken.

Gruß

Archiv

Dieses Thema wurde archiviert und kann nicht mehr beantwortet werden.

Konto

Navigation

Suchen

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.