Windows CE & Pocket PC

Moderators: None (Apply to moderate this forum)
Number of threads: 324
Number of posts: 425

This Forum Only
Post New Thread
Single Post View       Linear View       Threaded View      f

Report
Serial communication stops when touching panel (.NET CF2.0) Posted by Bajtek on 3 Jun 2010 at 11:00 AM
Hallo.

I'm writing application for Windows CE touch panel (Weintek 607i). Panel has Windows CE 5.00 + NET CF 2.0. I'm writing it using VS 2008 Pro in C#.

I pool in second thread Modbus frames from controller connected to panel through RS422. Panel has LED indicating communication.

When my program is running on Windows CE (on PC is OK) I have very confusing behavior: during touching the panel (pressing any control, changing any tabcontrol, scrolling controls etc.) communication led stops flashing (looks like communication stops), and I got timeouts and crc errors - (I’m loosing some bytes) in my second communication thread).
When I’m not touching anything led is flashing and all controls (text fields) are refreshed perfectly.

I’ve tried everything. Changing priority of MainForm class and my communication thread (Thread.CurrentThread.Priority). I have tried with Thread.Sleep in different places of my app. I’ve tried also all possibilities of receving serial data: SerialDataReceivedEventHandler, separate thread, and in Main Forms thread.

Is that normal?
I think I can't change this by tuning my application. Maybe I should change system configuration (using registy settings)?

Does anyone has experience with such case?

Bajtek.
Report
This post has been deleted. Posted by session on 14 Jun 2010 at 3:32 AM
This post has been deleted.



 

Recent Jobs

Official Programmer's Heaven Blogs
Web Hosting | Browser and Social Games | Gadgets

Popular resources on Programmersheaven.com
Assembly | Basic | C | C# | C++ | Delphi | Flash | Java | JavaScript | Pascal | Perl | PHP | Python | Ruby | Visual Basic
© Copyright 2011 Programmersheaven.com - All rights reserved.
Reproduction in whole or in part, in any form or medium without express written permission is prohibited.
Violators of this policy may be subject to legal action. Please read our Terms Of Use and Privacy Statement for more information.
Operated by CommunityHeaven, a BootstrapLabs company.