Click here to Skip to main content
15,895,084 members
Home / Discussions / C#
   

C#

 
GeneralRe: NumberFormatInfo Problem. Pin
hdv21222-Dec-07 10:36
hdv21222-Dec-07 10:36 
GeneralCrystal Report Pin
Shaahinm22-Dec-07 0:19
Shaahinm22-Dec-07 0:19 
GeneralRe: Crystal Report Pin
Paul Conrad22-Dec-07 7:02
professionalPaul Conrad22-Dec-07 7:02 
Questionhow to use this code ? Pin
az_farzaneh21-Dec-07 23:01
az_farzaneh21-Dec-07 23:01 
AnswerRe: how to use this code ? Pin
Xmen Real 22-Dec-07 3:58
professional Xmen Real 22-Dec-07 3:58 
AnswerRe: how to use this code ? Pin
Paul Conrad22-Dec-07 7:03
professionalPaul Conrad22-Dec-07 7:03 
GeneralMultiview in Winform app. Pin
arefkarimi21-Dec-07 22:41
arefkarimi21-Dec-07 22:41 
QuestionC# and Serial Ports Pin
Matti_P21-Dec-07 22:27
Matti_P21-Dec-07 22:27 
Hi there,

I'd really appreciate any insight on the following problem:

I have a Luminary Cortex-M3 development board on a USB port. Luminary drivers offer a COM (COM15) port over USB and my board is writing to the port, 115200-8N1. Using a terminal program I do get the text from the board. When trying to write a C# program to read the data, I either het \0's or nothing at all. Writing to the board works fine. Environment is Microsoft Visual C# 2008 Express Edition and .NET Framework 3.5 on Vista Home Premium.

The code is as follows:
using System.IO.Ports;<br />
...<br />
 private SerialPort port = null;<br />
...<br />
  port = new SerialPort("COM15", 115200, Parity.None, 8, StopBits.One);<br />
  port.Open();<br />
  bool stop=false;<br />
  while(!stop){<br />
   while (port.BytesToRead>0)<br />
   {<br />
    int c=port.ReadByte();  // I've tried the other read-methods, too<br />
   }<br />
  }<br />
...

Any idea what's going wrong? And please note that writing to the board succeeds and receiving data with a terminal program succeeds ?

Thanks in advance

Cheers
Matti
GeneralRe: C# and Serial Ports Pin
MickCurley22-Dec-07 1:40
MickCurley22-Dec-07 1:40 
GeneralRe: C# and Serial Ports Pin
Matti_P23-Dec-07 23:05
Matti_P23-Dec-07 23:05 
GeneralData GridView Pin
sindhutiwari21-Dec-07 21:38
sindhutiwari21-Dec-07 21:38 
GeneralVC# - How to draw a GIF animation on a picturebox control Pin
Shailesh Appukuttan21-Dec-07 17:02
Shailesh Appukuttan21-Dec-07 17:02 
GeneralRe: VC# - How to draw a GIF animation on a picturebox control Pin
Christian Graus21-Dec-07 17:09
protectorChristian Graus21-Dec-07 17:09 
GeneralRe: VC# - How to draw a GIF animation on a picturebox control Pin
electriac23-Dec-07 3:47
electriac23-Dec-07 3:47 
GeneralRe: VC# - How to draw a GIF animation on a picturebox control Pin
Xmen Real 22-Dec-07 4:13
professional Xmen Real 22-Dec-07 4:13 
GeneralFiring Events in Static Methods Pin
aj.esler21-Dec-07 16:57
aj.esler21-Dec-07 16:57 
GeneralRe: Firing Events in Static Methods Pin
Kristian Sixhøj21-Dec-07 20:07
Kristian Sixhøj21-Dec-07 20:07 
GeneralRe: Firing Events in Static Methods Pin
Giorgi Dalakishvili22-Dec-07 4:38
mentorGiorgi Dalakishvili22-Dec-07 4:38 
GeneralLicensing for ASP.NET Pin
Member 183766121-Dec-07 15:28
Member 183766121-Dec-07 15:28 
GeneralRe: Licensing for ASP.NET Pin
Dave Kreskowiak21-Dec-07 15:50
mveDave Kreskowiak21-Dec-07 15:50 
GeneralRe: Licensing for ASP.NET Pin
Paul Conrad22-Dec-07 8:16
professionalPaul Conrad22-Dec-07 8:16 
GeneralRe: Licensing for ASP.NET Pin
Christian Graus21-Dec-07 17:11
protectorChristian Graus21-Dec-07 17:11 
GeneralRe: Licensing for ASP.NET Pin
Expert Coming21-Dec-07 21:03
Expert Coming21-Dec-07 21:03 
GeneralRe: Licensing for ASP.NET Pin
Paul Conrad22-Dec-07 8:18
professionalPaul Conrad22-Dec-07 8:18 
GeneralRe: Licensing for ASP.NET Pin
Jeffrey Walton22-Dec-07 9:15
Jeffrey Walton22-Dec-07 9:15 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.