Solved

How to reset a serial port in windows mobile?

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

Shouldn't all users have the same email signature?

You wouldn't let your users design their own business cards, would you? So, why do you let them design their own email signatures? Think of the damage they could be doing to your brand reputation! Choose the easy way to manage set up and add email signatures for all users.

Join & Write a Comment

Today, still in the boom of Apple, PC's and products, nearly 50% of the computer users use Windows as graphical operating systems. If you are among those users who love windows, but are grappling to keep the system's hard drive optimized, then you s…
In this article, I will show you HOW TO: Install VMware Tools for Windows on a VMware Windows virtual machine on a VMware vSphere Hypervisor 6.5 (ESXi 6.5) Host Server, using the VMware Host Client. The virtual machine has Windows Server 2016 instal…
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). …
Windows 8 came with a dramatically different user interface known as Metro. Notably missing from that interface was a Start button and Start Menu. Microsoft responded to negative user feedback of the Metro interface, bringing back the Start button a…

760 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

19 Experts available now in Live!

Get 1:1 Help Now