The SDC-MSD40NBT is a Wi-Fi and Bluetooth module that supports 802.11a/b/g/n via an SDIO interface and Bluetooth2.1 via a UART interface. By supporting both Wi-Fiand Bluetoothin the same module, the SDC-MSD40NBT helps device manufacturers significantly reduce system size and cost. Because it has the same interface, form factor, board connector, and pin definitions as the SDC-MSD10G and the SDC-MSD30AG, the SDC-MSD40NBT provides a smooth upgrade path to 802.11a/b/g/n and integrated Bluetooth reducing system cost while delivering the latest wireless capabilities.
|Antenna Options||Dimension (Height - mm)||Dimension (Length - mm)||Dimension (Width - mm)|
|SDC-MSD40NBT||U.FL Connector (x2)||5.05 mm||32 mm||22 mm|
40NBT SDK: Can I send data over SPP via BT SDK?
Q: Do you have any C / C++ examples of how to set up an SPP service and exchange data across it using the Laird BT SDK? For example a simple "Chat" example? What I want to do is set up an SPP connection between the Laird module (running on our system acting as a server) and an Android tablet / phone acting as a client. I want to be able to send / receive data over this SPP link.
A: The Bluetooth SDK does not handle the SPP data directly. The SPP data is piped through a Virtual Serial Port that is installed on the system when the stack starts. Also, by default the stack has an SPP Service running when it starts. Typically when the SPP Service is installed it is running on COM Port #7 (this is the default number that the SPP service uses). You will have to.
- Have the tablet discover and pair with your Laird module (on your system acting as a server).
- The tablet should do a search for services and will find the Laird module has an SPP service available.
- The tablet will then connect on your service. From there, you will have to open a COM port using Microsofts API call of CreateFile(). Something similar to the effect of CreateFile("COM7:", GENERIC_READ | GENERIC_WRITE, 0, NULL, OPEN_EXISTING, FILE_ATTRIBUTE_NORMAL, NULL ); Here is an example for opening the COM port. You must make sure that your tablet supports SPP as well. If SPP isn't supported then your tablet will not be able to discover your Laird Modules' SPP service.