Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / .NET Framework / Compact Framework / December 2007

Tip: Looking for answers? Try searching our database.

using System.IO.Ports problem in Windows App

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
HoustonK - 29 Dec 2007 02:20 GMT
Hi,

I have no problem to write and read through my COM1 in my app which created
in Console based application.

So far I tried which are successful in pc win app, pc console app and smart
device console app.

Once I used the Win app in smart device, there is a problem.  So, there
isn't any error message when I initialized the com port as shown below:

private SerialPort _serialPort = new SerialPort("COM1", 38400, Parity.None,
8, StopBits.One);

But, I couldn't get the response from my serial device.  Is there any
special tricks to initialize com port in CF 2.0 Win App? Or it didn't support.

Thank you.

-KK
Ginny Caughey [MVP] - 29 Dec 2007 14:03 GMT
Try using a colon after the port name.

Signature

Ginny Caughey
Device Application Development MVP

> Hi,
>
[quoted text clipped - 20 lines]
>
> -KK
Rainer Borchmann - 29 Dec 2007 19:27 GMT
> Once I used the Win app in smart device, there is a problem.  So, there
> isn't any error message when I initialized the com port as shown below:

May be you need some other options like
DTS=ON ore DTR=ON

Rainer

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.