Question about OpenNetCf.IO.Port.SerialPort component ?

  • Thread starter Thread starter Daniel Moth
  • Start date Start date
D

Daniel Moth

The SDF has had the Serial namespace for along time and it is proven.

Recently I added the Ports namespace (with new implementation beneath it)
that matches the new SerialPort class that CF v2.0 offers.

When CF 2.0 comes out both of them will be irrelevant. SDF 1.4 that targets
CF v1.0 has both so which one you choose is down to you.

Cheers
Daniel
 
Hello

I search a component to admin COM port on my pocket PC.

In OpenNetCF 1.4, I have found different component to do this BUT

I found 2 components
OpenNetCF.IO.Port.SerialPort and OpenNetCF.IO.Serial.Port component !

moreover, GPS composant use OpenNetCF.IO.Serial.Port ...

Why OpenNetCf include two component to do same thing (If I undestood well
theses components)

I must use the first or the second component ?

Thank a lot for your help !!
 
On the general approach of using a timer versus threads for this scenario I
suggest threads (and that is what we have done with both components). Not
much more to discuss on this. I also have my thoughts here:
http://www.danielmoth.com/Blog/2004/11/dont-poll.html

On which component to use I already told you it is up to you. If one of them
works for you and the other doesn't then the choice is clear. Whichever you
choose, if you have a bug to report use the opennetcf forums or the sdf
mailing list or the bug site.

Cheers
Daniel
 
Thank a lot for your answer

I would know your point of view about the architecture about theses
components.

I just read the source of them and I saw they use multithreading technology
do ensure reading operation on COM port.

For us, it is a new aspect of programmation and a very low part of our
developper team have enought knowledge to understand and debug this source
code.

For you, theses component are Ok about this aspect, your feedback is enought
to say it'is ok ? For exemple we are detected an bug when we do Close
operation of OpenNetCF.IO.Port.SerialPort (not reproduce with IO.Serial.Port
component) (We can give you more information if you want ...)

I undestand it is necessary to use thread to Read COM port if we want a real
time reaction for our application but another way would be use Timer event
to scan each x ms the COM Port, some developper in our team want use this
technics but may be it is a bad way ... I have not enought knowledge to
have a good opinion ... could you help me, please ?

Best regards
 
Back
Top