Test version of BlueUSB stack. Includes SDP and RFCOMM. As Client it allows to connect to my fischertechnik TX Controller. As Server it echo\\\\\\\'s characters to Putty. PIN=1234
Dependencies: mbed myUSBHost AvailableMemory
Dependents: mbed_TANK_Kinect myBlueUSB_ros ftusbClass
Revision 9:c76a3f8f9245, committed 2011-06-19
- Comitter:
- networker
- Date:
- Sun Jun 19 14:43:33 2011 +0000
- Parent:
- 8:d29e42b5ae53
- Child:
- 10:1928a3d02e32
- Commit message:
Changed in this revision
--- a/L2CAP.cpp Sun Jun 19 13:19:52 2011 +0000
+++ b/L2CAP.cpp Sun Jun 19 14:43:33 2011 +0000
@@ -313,6 +313,7 @@
p[1] = scid;
p[3] = 0; //no further information
printf(" scid=%d, psm=%d\n", scid, psm);
+ peer_mtu = 48; //minimum allowed mtu
int s = 0;
switch (psm) {
case L2CAP_PSM_SDP:
--- a/hci.cpp Sun Jun 19 13:19:52 2011 +0000
+++ b/hci.cpp Sun Jun 19 14:43:33 2011 +0000
@@ -106,30 +106,6 @@
return 0;
}
-int HCI::SetEventFilter(u8 filterType, u8 filterConditionType, u8* condition) {
- int len = 2;
- u8 buf[8];
- buf[0] = filterType;
- buf[1] = filterConditionType;
- switch (filterConditionType) {
- case 0://all devices
- if (filterType==2) { //connection setup
- buf[2] = condition[0];
- len++;
- }
- break;
- case 1: //filter by class
- case 2: //filter by BDADDR
- memcpy(buf+2, condition, 6);
- len += 6;
- break;
- default:
- printf("Unknown filter condition type %d, filter type=%d\n", filterConditionType, filterType);
- }
- SendCmd(HCI_OP_SET_EVENT_FLT, buf, len);
- return 0;
-}
-
int HCI::SendCmd(int cmd, const u8* params, int len) {
u8 b[256];
b[0] = cmd;
--- a/hci.h Sun Jun 19 13:19:52 2011 +0000
+++ b/hci.h Sun Jun 19 14:43:33 2011 +0000
@@ -224,7 +224,6 @@
// see what devies are in the system
int Inquiry(int duration = 10);
- int SetEventFilter(u8 filterType, u8 filterConditionType, u8* condition);
// get a name, delivered in callback
int RemoteNameRequest(const BD_ADDR* addr);
int RemoteNameRequest(inquiry_info* ii);