Solved

How to reset a serial port in windows mobile?

Posted on 2009-07-14
4
679 Views
Last Modified: 2013-12-27
Hi all,

I am developing a program for Windows Mobile devices, that uses the serial port for bluetooth communications. But there is another program that uses the serial port that I need, so I can't open the serial port correctly without rebooting the device.
Is there any way to reset the serial ports without rebooting the device?

Thanks in advance,
0
Comment
Question by:insocb00
  • 2
4 Comments
 
LVL 24

Expert Comment

by:alexey_gusev
ID: 24848145
it's impossible as far as I know, but you could try to open the port in *shared* mode
0
 
LVL 33

Accepted Solution

by:
pgnatyuk earned 125 total points
ID: 24849238
Maybe it will help: if you will change the BT settings on your device - add 2 outgoing com ports for the paired device. Theorethically, it is possible. Sometimes. I personally never tried that. It will be nice if it will work.
Another option - send WM_CLOSE to the application that took your port. Is it allowed solution?
0
 

Author Comment

by:insocb00
ID: 24860222
Thanks, for the answers and i am sorry for the delay in my naswer but I was testing some of the possible solutions:

-I guess that to open the port in share mode is not possible, because the other application opens the port using the libraries of inthehand, so to change all maybe it will be very expensive in time
_To add 2 outgoning ports has the same problem, becuase it means a lot of changes.
-And the last option, maybe it would the less smarter but i think that it will best-fit me

0
 
LVL 33

Expert Comment

by:pgnatyuk
ID: 24860276
Ok. I'm glad to help.
0

Featured Post

What is SQL Server and how does it work?

The purpose of this paper is to provide you background on SQL Server. It’s your self-study guide for learning fundamentals. It includes both the history of SQL and its technical basics. Concepts and definitions will form the solid foundation of your future DBA expertise.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

For Sennheiser, comfort, quality and security are high priority areas. This paper addresses the security of Bluetooth technology and the supplementary security that Sennheiser’s Contact Center and Office (CC&O) headsets provide.  
Possible fixes for Windows 7 and Windows Server 2008 updating problem. Solutions mentioned are from Microsoft themselves. I started a case with them from our Microsoft Silver Partner option to open a case and get direct support from Microsoft. If s…
Windows 8 comes with a dramatically different user interface known as Metro. Notably missing from the new interface is a Start button and Start Menu. Many users do not like it, much preferring the interface of earlier versions — Windows 7, Windows X…
This is used to tweak the memory usage for your computer, it is used for servers more so than workstations but just be careful editing registry settings as it may cause irreversible results. I hold no responsibility for anything you do to the regist…

773 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question