OpenNetCF.IO.Serial - DataReceived event stops working

  • Thread starter Thread starter anbeyon
  • Start date Start date
A

anbeyon

Hi All

I'm looking for some tips on the OpenNetCF.IO.Serial class.

I'm using it to send ASCII based commands via serial port to my Target.
When I 1st run my target application all is fine I recieve commands
and everything works. After a while (not a specific time) the target
DataReceived event stops working!

Any ideas, pointers etc..... is there something I can check.

To make it work again I have to quit my target application and restart.

Thanks in advance

Anbeyon
 
Did you receive an errors? Was there an overflow? Any error condition? Is
the buffer full or empty? What's the memory state at the point of failure?

-Chris
 
Thanks Chris,

just after posting I used the error event and discovered that I am
getting the following error description;

"ArgumentOutOfRangeException"

I'm not too sure what that means - i thought perhaps I should have
seen an overrun or similar.

For now when I get the error I close and then re-open the port and all
seems OK although at one point last night ALL system event handling
seemed to stop. (maybe that's un related - I'll have to play.

Thanks for the reply.

Anbeyon
 
Back
Top