12.07.2015 Views

RBT-001 Module - User Manual v.1.2

RBT-001 Module - User Manual v.1.2

RBT-001 Module - User Manual v.1.2

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Establish / Release SPP link to a remote deviceThis section describes the basic functionality of creating a full SPP link to a remote device.Basically only one single command is needed to create the connection. The command“Establish Link” requires the BD_Addr and the RFComm port of the remote device,determined out of the Inquiry and the SDAP connection. The command and event flow canbe found within the following flowchart.The command will first be confirmed by a standard confirmation package. Afterwards the<strong>RBT</strong>-<strong>001</strong> will start to page and try to connect to the remote device. TheSPP_Link_Establishment indicator returns an error code reporting the success of the linkestablishment.HostA p p lic a tio nR E Q , S P P _ E S T A B L IS H _ L IN KC F M , S P P _ E S T A B L IS H _ L IN K<strong>RBT</strong>-<strong>001</strong>S im p ly B lu eIN D , S P P _ L IN K _ E S T A B L IS H E DR F C O M M D L C lin kco n tro lled c lo seR F C O M M D A T A tra n sfe rN o rm a l, o r tra ns p are nt -d e p en d in g o n ho w po rt is o p en e d .R E Q , S P P _ R E L E A S E _ L IN KC F M , S P P _ R E L E A S E _ L IN KIN D , S P P _ L IN K _ R E L E A S E DR F C O M M clo s edfro m eith er s id e, o rc on n e ction lo stEstablish LinkDescriptionEstablish a DLC link to remote Bluetooth devicePacketType REQOpcode SPP_ESTABLISH_LINKDataLength 8DataLocalPortLocal RFCOMM port number. Range 1-301 byteBdAddr6 byteBluetooth device address for the remote deviceRemotePortNumber1 byteRemote device RFCOMM port number.(Must be found using SDAP)Description Confirm that the DLC link establishment is initiated.Note: This confirm does NOT indicate link establishment but only thatlink establishment is in progress. When link establishment response isreceived from the core, a SPP_LINK_ESTABLIHED indication is sentfrom the <strong>RBT</strong>-<strong>001</strong>.PacketType CFMOpcode SPP_ESTABLISH_LINKDataLength 2DataStatus1 byteERROR_OKERROR_SPP_PORT_BUSYERROR_SPP_PORT_NOT_OPENERROR_SPP_INVALID_PORTERROR_SPP_AUTOMATIC_CONNECTIONS_PROGRESSINGLocalPort1 byteLocal RFCOMM port number. Range 1-30RoboTech Bluetooth Serial <strong>Module</strong><strong>User</strong> <strong>Manual</strong> Ver. 1.248

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!