Solved

How to reset a serial port in windows mobile?

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

Connect further...control easier

With the ATEN CE624, you can now enjoy a high-quality visual experience powered by HDBaseT technology and the convenience of a single Cat6 cable to transmit uncompressed video with zero latency and multi-streaming for dual-view applications where remote access is required.

Question has a verified solution.

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

DECT technology has become a popular standard for wireless voice communication. DECT devices are not likely to be affected by other electronic devices and signals because they operate in a separate frequency-band.
While rebooting windows server 2003 server , it's showing "active directory rebuilding indices please wait" at startup. It took a little while for this process to complete and once we logged on not all the services were started so another reboot is …
The viewer will learn how to successfully create a multiboot device using the SARDU utility on Windows 7. Start the SARDU utility: Change the image directory to wherever you store your ISOs, this will prevent you from having 2 copies of an ISO wit…
Windows 10 is mostly good. However the one thing that annoys me is how many clicks you have to do to dial a VPN connection. You have to go to settings from the start menu, (2 clicks), Network and Internet (1 click), Click VPN (another click) then fi…

808 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