CE .NET SERIAL COM

P

Pascal SALVAN

Hi,

I'm running on the Windows CE .NET 4.10 (Build 908). I try to develop a serial communication application with Visual
studio .NET "WindowsCe SmartApplication".

I use the "Michael Wittenburg" class : http://www.opennetcf.org/Forums/topic.asp?TOPIC_ID=212


The class work fine with default parameters but when I try to set the "DataBits" to "7", the SetCommState function failed.
No error, no exception...I don't understand the problem ?

The serail conf. wich failed is :

moRS232.BaudRate = 9600
moRS232.DataBits = 7
moRS232.Parity = "E"
moRS232.StopBits = 1

Haver you ever heard this story before ?
Is there a bug in "coredll" ?
Where is the problem ?

Thanks for your answers ...
 
A

Alberto Silva

Thank you for sharing it with us!

Alberto Silva

"Pascal SALVAN" <pascal@[email protected]@realix.fr> escreveu na mensagem
I've found the problem, there is an error in const values :

....
Private Const STOPBITS_10 As Byte = &H1
Private Const STOPBITS_15 As Byte = &H2
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top