Smart Bluetooth Forum Discussions
text.format{('custom.tabs.no.results')}
Sometimes, central scan stops working, and there are no more callbacks for peripheral advertisements (blecm_RegleAdvReportCb), and I have to reset central board to get it going again, and I again get a callback for ad of each peripheral.
TO START SCAN, I DO THIS:
blecm_setScanEnable(HCIULP_SCAN_MODE_OFF, blecen_cen_cfg.filter_duplicates);
blecm_startScan(blecen_cen_cfg.scan_type,
blecen_cen_cfg.high_scan_interval, blecen_cen_cfg.high_scan_window,
blecen_cen_cfg.scan_adr_type, blecen_cen_cfg.scan_filter_policy,
blecen_cen_cfg.filter_duplicates);
TO STOP SCAN, I DO THIS:
blecm_setScanEnable(HCIULP_SCAN_MODE_OFF, blecen_cen_cfg.filter_duplicates);
Show LessDoes WICED API allow a single 20732 to be connected as a piconet slave to a 2nd 20732, which is master of that piconet,
and also for the 1st 20732 to ALSO be connected in a 2nd piconet as slave to a another 20732 which is master of 3rd piconet?
That is, can a 20732 be connected as a slave to two masters of two different piconets, at the same time?
Show LessHi All,
My question is regarding Reference design from Broadcom on 2073x chipsets. By reference design i meant any ready made designs like
1. proximity tag design
2. sensor tag design.
3. keyboard or mouse reference design.
4. any android or ios apps in addition to above points 1,2 and 3
I am looking for mainly available REFERENCE designs or prototypes already built by Broadcom team.
Thanks
(The one with patches moved to silicon, in order to free up more code space.)
I need to use a couple of functions from standard C library.
Which one should I use ?
I used libc.a from:
\WICED-Smart-SDK\Tools\ARM_GNU\lib
but it does not seem to be ported correctly:
- execution of some functions e.g.
char * strchr ( const char *, int );
freezes the tag, though other like:
int * toupper ( int c );
works fine.
Are there any plans to add more embedded oriented standard C library like Newlib into the SDK ?
Lukas
What clock frequencies can be used to drive the PWM on 20736?
The following code snippet is from <WICED-Smart-SDK>/include/drivers/pwm.h
How is 1 or 8 MHz chosen? Are these the only clock frequencies? (128kHz / 1MHz / 8MHz)
Show Less/// Clock used for PWM. When LHL_CLK is set, 128 KHz is used. When PMU_CLK is set, 1 MHz or 8 MHz.
typedef enum
{
LHL_CLK,
PMU_CLK
} PwmClockType;
My central can read the build-time value (0x11, 0x12,...) of HANDLE_PACKED_PWR_RX_RECORD from peripheral's GATT database ok, but when peripheral app writes a change to it, it does not change -- central continues to read build-time.
Show Less
system_bluetooth_profile[]..........
PERIPHERAL INITS GATT VALUE AT BUILD-TIME HERE...........
PRIMARY_SERVICE_UUID128 (0x0050, GENERIC_WAVORA_DEVICE_SERVICES_UUID_BROADCOM),
// Handle 0x51: characteristic declaration
// Handle 0x52: characteristic value (HANDLE_COMMUNICATION_ESTABLISHMENT)
//
// This characteristic declaration and value is used to either enable or
// disable power to the Sink device.
// value = 0x01 = Power is enabled to the Sink device
// value = 0x00 = Power is disabled to the Sink device
//
// PWR TX MGR message to PWR RX or FACE to signal start of communication sessions:
CHARACTERISTIC_UUID128_WRITABLE (0x0051, HANDLE_COMMUNICATION_ESTABLISHMENT, COMMUNICATION_ESTABLISHMENT_WRITE_CHARACTERISTIC_UUID_BROADCOM,
LEGATTDB_CHAR_PROP_READ | LEGATTDB_CHAR_PROP_WRITE,
LEGATTDB_PERM_READABLE | LEGATTDB_PERM_WRITE_CMD | LEGATTDB_PERM_WRITE_REQ, 1),
0x00,
// PWR TX MGR message to PWR RX to read PWR RX status or write PWR RX control:
CHARACTERISTIC_UUID128 (0x0053, HANDLE_PACKED_PWR_RX_RECORD, DEVICE_READ_STATUS_WRITE_CONTROL__CHARACTERISTIC_UUID_BROADCOM,
LEGATTDB_CHAR_PROP_READ | LEGATTDB_CHAR_PROP_WRITE,
LEGATTDB_PERM_READABLE | LEGATTDB_PERM_WRITE_CMD | LEGATTDB_PERM_WRITE_REQ,
sizeof( Packed_Common_Record_struct) ), // size is 20 bytes
sizeof( Packed_Common_Record_struct) , // max size [modifiable records only] is 20 bytes
// Build-time PWR RX status and control dummy data:
0x11, 0x12, 0x13, 0x14, 0x21, 0x22, 0x23, 0x24, 0x31, 0x32, 0x33, 0x34, 0x41, 0x42, 0x43, 0x44, 0x51, 0x52, 0x53, 0x54,
Once a second I do this:......
PERIPHERAL CHANGES GATT VALUE ONCE A SECOND HERE.........
// Get GATT database record that contains PWR RX packed status:
BLEPROFILE_DB_PDU gatt_record_buffer;
// Read record from GATT database to gatt_record_buffer:
bleprofile_ReadHandle(HANDLE_PACKED_PWR_RX_RECORD, &gatt_record_buffer); // init PWR_RX_status_record
char* ptr = (char*)&gatt_record_buffer;
ptr[0] = 0x55;
unsigned char* heartbeat_counter = (unsigned char*)&ptr[4];
*heartbeat_counter += 1;
// Copy record to GATT database:
bleprofile_WriteHandle( HANDLE_PACKED_PWR_RX_RECORD, &gatt_record_buffer);
BUT CENTRAL CONTINUES TO READ BUILD-TIME VALUE.
Is there a language reference for the SDK anywhere? It would be very helpful to have a list of all the Broadcomm defined functions and macros and what they do (or are supposed to do); I'd probably get a lot more out of the example apps with such a guide.
Show LessHi,
I get strange BC920732 kit.It has new design, but BCM20732 chip is soldered on it.
I believe that new PCB design shuld be used only with BCM20736 & BCM20737.
See attached photo.
It seems that it does not supported by both SDKs (2.0 and 1.1).
Please advise how to work with it.
Show Less