Solved

How to reset a serial port in windows mobile?

Posted on 2009-07-14
4
668 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

NTFS file system has been developed by Microsoft that is widely used by Windows NT operating system and its advanced versions. It is the mostly used over FAT file system as it provides superior features like reliability, security, storage, efficienc…
Join Greg Farro and Ethan Banks from Packet Pushers (http://packetpushers.net/podcast/podcasts/pq-show-93-smart-network-monitoring-paessler-sponsored/) and Greg Ross from Paessler (https://www.paessler.com/prtg) for a discussion about smart network …
This video Micro Tutorial explains how to clone a hard drive using a commercial software product for Windows systems called Casper from Future Systems Solutions (FSS). Cloning makes an exact, complete copy of one hard disk drive (HDD) onto another d…
In this video, we discuss why the need for additional vertical screen space has become more important in recent years, namely, due to the transition in the marketplace of 4x3 computer screens to 16x9 and 16x10 screens (so-called widescreen format). …

911 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

Need Help in Real-Time?

Connect with top rated Experts

23 Experts available now in Live!

Get 1:1 Help Now