Browse
(440) 299-7778
Menu
(440) 299-7778
One-year parts and labor warranty30-day money-back guaranteeEnglishEspañolContact

The text of a manual · part 43 of 84

MC9000-K/S with Windows Mobile 2003 Software for Pocket PCs Product Reference Guide: Bluetooth, pages 379 to 386

Pages 379 to 386 of 750, from MC9000-K/S with Windows Mobile 2003 Software for Pocket PCs Product Reference Guide

The original document is the PDF (10 MB). This is its text as extracted, unedited; tables and drawings read best in the PDF, and each page heading opens it at that page.

For the Symbol MC9000, Symbol MC9060, Symbol MC9062 and Symbol MC9063

Page 379

Bluetooth

19. The Connectivity dialog box appears with the AP connection just created. Tap the phone number to start connecting.

Figure 8-47. Connecting to a Bluetooth AP Multiple connections may be listed. Tap on the phone number of the AP connection.

20. Depending on the AP and connection settings, entering a passkey and/or a password may be required.

8-37

Page 380

8-38

MC9000-K/S with Windows® Mobile 2003 Software for Pocket PCs PRG

21. If a password is required and it was not saved, the Network Log On screen appears.

Figure 8-48. Network Log On Window 22. Enter the Password and tap ok. 23. The mobile computer attempts to connect to the AP.

Figure 8-49. Connecting Dialog Box

Page 381

Bluetooth

Automatic Connection Some Bluetooth enabled phones allow automatic connections to be set up with devices they have successfully bonded with, without requiring a password to be entered manual for each connection attempt. To set up automatic connections between the phone and the mobile computer, follow the appropriate instructions below for the specific phone. 1. Motorola Timeport 270C: a. On the phone, press MENU. b. Scroll to Settings, then press SELECT. c. Scroll to Connection, then press ON. d. On Bluetooth Link, press SELECT. e. Scroll to Devices, then press SELECT. f. Choose the mobile computer, then press EDIT. g. Scroll to Access:Ask, then press CHANGE. h. Scroll to Automatic, then press SELECT. Press DONE. 2. Nokia 3650/7650: a. On the phone, press MENU. b. Scroll to Connectivity, then press Options. c. The Open option should be highlighted. Press Select. d. The Bluetooth option should be highlighted. Press Options. e. The Open option should be highlighted. Press Select. f. Scroll to the right tab to access the Paired devices list. Highlight the mobile computer, then press Options. g. Scroll to Set as authorised, then press Select. h. In the confirmation screen, press Yes. 3. Nokia 6310/8910/8910i: a. On the phone, press MENU. b. Scroll to 10 Bluetooth, then press SELECT. c. Scroll to 4 View Paired Devices, then press SELECT. d. Highlight the Pocket PC, then press OPTIONS. e. Scroll to 3 Request Connection Authorization, then press NO.

8-39

Page 382

8-40

MC9000-K/S with Windows® Mobile 2003 Software for Pocket PCs PRG

Creating a Bluetooth Virtual COM Port There are two ways to write an RFCOMM application. The first is by creating a virtual legacy COM port. The second is through Winsock. Microsoft recommends using Winsock. The sample code that follows demonstrates how to create a Bluetooth virtual COM port. // Begin SetCursor(LoadCursor(NULL, IDC_WAIT)); // Set a wait cursor memset (&pp, 0, sizeof(pp)); // Clear the PORTEMUPortParams // structure. pp.uiportflags = RFCOMM_PORT_FLAGS_KEEP_DCD; // DCD ON while in piconet pp.channel = 1; // Set to either an explicit server channel, or, for a server // application that wants the server channel to be // autobound, to RFCOMM_CHANNEL_MULTIPLE. pp.flocal = FALSE; // Set to FALSE for a client port that is used // to creating outgoing connections. // pp.imtu should be set to something other than the default, if data payload size is larger than // 128 /bytes. For further information on this structure, refer to the Microsoft Help. GetBA(_T("53594D421722"), &pp.device); // ** Set your slave's BDADDR here nIndex = 8; // This must be the same as the COM port number. // For devices that expose the stream interface, the drivers are DLL files. Each driver is initialized by // a call to the RegisterDevice function. The Device Manager calls this function on behalf of the // driver. However, applications can load their own special-purpose stream interface, in which case // they also call this function to register the driver. h = RegisterDevice(_T("COM"), nIndex, _T("btd.dll"), (DWORD)&pp); if (h != NULL) { // Success! hComPort = InitSerial(TEXT("COM8:"), CBR_115200); if (hComPort == NULL) { // Failure! #ifdef DEBUG

// Init port.

Page 383

Bluetooth

LogData(_T("Failed to open Comport, trying again")); #endif hComPort = InitSerial(TEXT("COM8:"), CBR_115200); // Init port. } // Perform serial operations here... } #ifdef DEBUG else { // Failure! LogData(_T("Failed to register Comport device")); } #endif SetCursor(LoadCursor(NULL, NULL));

// Clear the wait cursor

// End *********************************************************************** FUNCTION: GetBA PROTOTYPE: int GetBA (WCHAR *pp, BT_ADDR *pba) PURPOSE: Form the BDADDR in a way the PORTEMUPortParams structure understands. *********************************************************************** /int GetBA (WCHAR *pp, BT_ADDR *pba) { // Bump pointer through any leading spaces while (*pp == ' ') ++pp; for (int i = 0 ; i < 4 ; ++i, ++pp) { if (!iswxdigit (*pp)) return(FALSE); int c = *pp; if (c >= 'a')

8-41

Page 384

MC9000-K/S with Windows® Mobile 2003 Software for Pocket PCs PRG

8-42 c = c - 'a' + 0xa; else if (c >= 'A') c = c - 'A' + 0xa; else c = c - '0'; if ((c < 0) || (c > 16)) return(FALSE); *pba = *pba * 16 + c; } for (i = 0; i < 8 ; ++i, ++pp) { if (!iswxdigit (*pp)) return(FALSE); int c = *pp; if (c >= 'a') c = c - 'a' + 0xa; else if (c >= 'A') c = c - 'A' + 0xa; else c = c - '0'; if ((c < 0) || (c > 16)) return(FALSE); *pba = *pba * 16 + c; } if ((*pp != ' ') && (*pp != '\0')) return(FALSE); else return(TRUE); }

Page 385

Bluetooth

Bluetooth Printing The mobile computer supports Bluetooth printers that support a serial port profile. Printing to a Bluetooth printer requires a print-enabled application to be installed on the mobile computer.

8-43

Page 386

8-44

MC9000-K/S with Windows® Mobile 2003 Software for Pocket PCs PRG