Chapter 14: Device-to-Device Communication
Overview
The personal nature of cellular phones and Pocket PCs requires that a new type of network be supported by the devices. Wide area and local area networks supported by Windows CE devices must share time with personal area networks, those networks that link devices over a short distance perhaps for only a short time. Windows CE supports personal area networking (PAN) over two transport technologies, infrared and radio frequency. The infrared transport conforms to the Infrared Data Association, or IrDA, standard, while Windows CE uses the Bluetooth standard for radio-frequency networking.Applications interact with both the IrDA communications stack and the Bluetooth stack using the Winsock API. Windows CE supports two different Winsock stacks, one based on Winsock 1.1 and the other based on Winsock 2.0. The Winsock 2 stack is more functional but also much larger than its Winsock 1.1 counterpart. Most new devices will support the Winsock 2.0 stack, although some designers might choose the size advantage of the smaller Winsock 1.1 stack over the greater functionality of the Winsock 2.0 stack.This chapter covers the IrDA and Bluetooth communication stacks as seen through the Winsock API on Windows CE. The chapter starts with an overview of generic socket communication and then dives into the specifics of IrDA and Bluetooth communication, with an additional section on the Object Exchange (OBEX) standard.