FIX: Multiple disconnect messages are sent when an RFCOMM connection is closed in Windows Embedded CE 6.0 R3

Symptoms

You have a local Windows Embedded CE 6.0 R3-based device that connects to a remote device through Bluetooth.

You run an application on the local device that creates a Serial Cable Emulation Protocol (RFCOMM) connection between the two devices by using Windows Sockets (Winsock).

The remote device runs an application that keeps sending data to the local device through the RFCOMM connection.

The application on the local device closes the connection when the local device is receiving data from the remote device.

In this scenario, the local device may send multiple disconnect messages to the remote device. Additionally, all existing RFCOMM connections on the local device are disconnected.

Resolution

Software update information

A supported software update is now available from Microsoft as Windows Embedded CE 6.0 Monthly Update August 2012. In the "File information" section, the package file name contains the product version, the date, the Microsoft Knowledge Base article number, and the processor type. The package file name format is as follows:

Product version-yymmdd-kbnnnnnn-processor type

For example, Wincepb60-110128-kb2492159-armv4i.msi is the ARMV4i Windows Embedded CE 6.0 Platform Builder fix that is documented in Knowledge Base article 2492159 and that is contained in the January 2011 monthly update.To resolve this problem immediately, download this Windows Embedded CE 6.0 monthly update from the following Microsoft website.

Prerequisites

This update is supported only if all previously issued updates for this product have also been installed.

Restart requirement

After you apply this update, you must perform a clean build of the whole platform. To do this, use one of the following methods:

On the Build menu, click Clean Solution, and then click Build Solution.

On the Build menu, click Rebuild Solution.

You do not have to restart the computer after you apply this software update.

Update replacement information

This update does not replace any other updates.

File information

The English version of this software update package has the file attributes (or later file attributes) that are listed in the following table. The dates and times for these files are listed in Coordinated Universal Time (UTC). When you view the file information, it is converted to local time. To find the difference between UTC and local time, use the Time Zone tab in the Date and Time item in Control Panel.

Files that are included in this update package

File name

File size

Date

Time

Path

Rfcomm.cxx

178,823

13-Aug-2012

19:17

Private\Winceos\Comm\Bluetooth\Rfcomm

Rfcomm.lib

1,046,938

13-Aug-2012

19:16

Public\Common\Oak\Lib\Armv4i\Debug

Rfcomm.lib

395,826

13-Aug-2012

19:16

Public\Common\Oak\Lib\Armv4i\Retail

Rfcomm.lib

1,011,658

13-Aug-2012

19:16

Public\Common\Oak\Lib\Mipsii\Debug

Rfcomm.lib

387,840

13-Aug-2012

19:16

Public\Common\Oak\Lib\Mipsii\Retail

Rfcomm.lib

1,011,672

13-Aug-2012

19:16

Public\Common\Oak\Lib\Mipsii_fp\Debug

Rfcomm.lib

387,862

13-Aug-2012

19:16

Public\Common\Oak\Lib\Mipsii_fp\Retail

Rfcomm.lib

1,024,210

13-Aug-2012

19:16

Public\Common\Oak\Lib\Mipsiv\Debug

Rfcomm.lib

392,242

13-Aug-2012

19:16

Public\Common\Oak\Lib\Mipsiv\Retail

Rfcomm.lib

1,024,224

13-Aug-2012

19:17

Public\Common\Oak\Lib\Mipsiv_fp\Debug

Rfcomm.lib

392,264

13-Aug-2012

19:16

Public\Common\Oak\Lib\Mipsiv_fp\Retail

Rfcomm.lib

908,380

13-Aug-2012

19:17

Public\Common\Oak\Lib\Sh4\Debug

Rfcomm.lib

337,736

13-Aug-2012

19:17

Public\Common\Oak\Lib\Sh4\Retail

Rfcomm.lib

874,580

13-Aug-2012

19:16

Public\Common\Oak\Lib\X86\Debug

Rfcomm.lib

299,164

13-Aug-2012

19:16

Public\Common\Oak\Lib\X86\Retail

More Information

By default, this fix is enabled to prevent multiple disconnect messages. To restore the previous behavior of multiple disconnect messages, you must add the following value to the registry:

Registry key

DWORD name

DWORD value

HKEY_LOCAL_MACHINE\Software\Microsoft\Bluetooth\rfcomm

AllowMultipleDisconnectMsgs

1

Note By default, this key is not present in the registry.

References

For more information about software update terminology, click the following article number to view the article in the Microsoft Knowledge Base:

824684 Description of the standard terminology that is used to describe Microsoft software updates

Properties

Article ID: 2708132 - Last Review: 10 Sep 2012 - Revision: 1

Applies to

Windows Embedded CE 6.0 R3

Feedback

Was this information helpful?

Tell us what we can do to improve the article

Thanks! Your feedback will help us improve the support experience. For more help, try searching for what you need at the top of the page.