Studio Bluetooth Forum Discussions
Platform CYW20719, *
Missing basic functionality for:
- No way to clear event flags – in original ThreadX function tx_event_flags_set has additional flag set_option which give functionality either to set or clear desired event bits, in wiced_rtos_set_event_flags this option is missing and the functionality is limited ONLY to set event bits
- Missing equivalent of UINT tx_thread_terminate(TX_THREAD *thread_ptr) ) to terminate a thread, so wiced_rtos_delete_thread is useless as it requires prior terminated thread
Hey there,
I am currently looking for shutter glasses equipped with a Bluetooth chip from Cypress. These glasses should be controlled by a WICED application. Unfortunately there is very little information available on the manufacturer's website, so I would like to know if one of you has any information or can recommend a source to me?
Many thanks in advance
Luisa
Show LessExample:
extern int __2sprintf(char * str, const char * format, ...);
char str[20] = {0};
float f = 3.14;
__2sprintf(str,"%f", f);
WICED_BT_TRACE("%s\r\n", str);
Show LessHello Problem-Solvers!
This past week we had our WICED Bluetooth Virtual Workshop, co-sponsored by Mouser, teaching hundreds of engineers how to design low-power IoT devices using Cypress' CYW20719 Dual-Mode Bluetooth 5.0 Wireless MCU. Missed it? No worries! You can now watch on-demand right here on the Cypress community. Here are the steps to follow:
1. Buy a CYW20719 Eval Kit (CYW920719Q40EVB-01) from Mouser so that you can follow along the workshop
2. Open up Alan Hawse's lab manual on www.iotexpert.com, which will provide you with all of the instructions and source code you need to complete the projects in the workshop
3. Watch the on-demand virtual workshop here: Video Link : 1640
Thanks and enjoy!
Best,
Matthew S.
Show Less
We are very interested in the Cypress Bluetooth chip, and using it for the new BLE 5.0 specifications.
We appreciate your great technical support about the new BLE 5.0, regarding unconnected advertising.
Can you indicate a typical transmission speed for a Bluetooth transmission?
So can you indicate in general if the Cypress chip will support these broadcast activities?
I have highlighted the quotations from the BLE 5.0 Specifications Manual.
Page 2051 non-connectable mode
(1) An advertising event commences, and a small amount is transmitted unconnected via Primary Channels 37 and 38 and 39. The duration of transmission for these primary channels is less than 3 octets. The primary channel can be set to only one channel bit, e.g. Channel 39.
Page 1340 At least one channel bit shall be set in the Primary_Advertising_Channel_Map
parameter.
Page 1341 Primary_Advertising_Interval_Min: Size: 3 Octets
(2) Simultaneously, the HOST writes the advertising channel index, and the data is handed off to one of the secondary channels listed in the index. The chip begins transmitting to any one of the secondary channels, and does so on only one of the channels listed, until the end of the transmission.
The index can limit the number of channels used, for example a Channels 1, 2, and 3 only. Since there are at least 3 channels in this index, the channel hopping is random. The remainder of the adverising is broadcast on one of these channels only.
Page 2610 For AUX_ADV_IND and AUX_CHAIN_IND PDUs, the secondary advertising
channel index used in the Channel Index subfield of the AuxPtr field is
implementation specific.
374 When the adapted channel hopping sequence is used, the pseudo-random
sequence contains only frequencies that are in the RF channel set defined by
the AFH_channel_map input.
379 the input AFH_channel_map (defined in Link
Manager Protocol [Vol 2] Part C, Section 5.2) is used. The AFH_channel_map
indicates which RF channels shall be used and which shall be unused. When
hop sequence adaptation is enabled, the number of used RF channels may be
reduced from 79 to some smaller value N. All devices shall be capable of
operating on an adapted hop sequence (AHS) with Nmin...
379 an alternative RF channel out of the set of used RF channels is
selected pseudo-randomly
(3) The duration of the transmission on one of the secondary channels can endure for a file as long as approximately 65K.
1735 • Information payload: 0 to 65533 octets
1347 The Controller should not fragment or should minimize fragmentation of
Host advertising data
1353 No advertising duration. Advertising to continue until the Host disables
it.
(4) At the end of the transmission, the Host can specify a fixed advertising delay of say 20 milliseconds, plus an added advDelay of less than 10 milliseconds to make the hopping more random.
Page 1341 : Time Range: 20 ms
2611 The advInterval shall be an integer multiple of 0.625 ms in the range of 20 ms
to 10,485.759375 s.
The advDelay is a pseudo-random value with a range of 0 ms to 10 ms
(5) With the beginning of a new advertising event, the sequence repeats, and the small amount of data is transmitted on channels 37, 38, 39, or only one channel, for example, channel 38.
(6) A new secondary index is written, for example, Channels 4, 5, and 6 only. Since there are at least 3 channels in this index, the channel hopping is random. The remainder of the adverising is broadcast on one of these channels only.
(7) At the end of the advertising, an advertising delay of 20 milliseconds is inserted, along with a random delay.
(8) With the beginning of a new advertising event, the sequence repeats, and a small amount of data is transmitted on channels 37, 38, 39, or only on channel 39 for example.
(10) A new secondary channel index is written, for example, this time is Channels 7, 8, 9 only. Again the channel is chosen at random, and the advertising is advertised.
(11) At the end of the advertising, an advertising delay is added, and so on.
Please advise any errors I have made in this description.
Thanks for your gracious help, Allen.
Any application which leverages a prefix of “hci_” is capable/meant to be used with the provided PC GUI tool for additional HCI control.
As such, it uses custom HCI protocol (WICED HCI) as per “\WICED-Studio-6.1\Doc\WICED-HCI-Control-Protocol.pdf”
In addition, these apps can be modified to act as a stand-alone embedded app by removing the WICED HCI implementation.
Also, as a point of reference, there is a stand-alone embedded applications for SPP provided as well: "WICED-Studio-6.1\20719-B1_Bluetooth\apps\snip\bt\spp"
Show LessThe only API documentation we provide is Doxygen based and provided within the SDK as HTML.
Once SDK 6.1 is installed, you will find the API documentation we provide here: “\WICED-Studio-6.1\Doc\20719-B1_Bluetooth\API.html"
There are efforts in place today to continue making improvements upon this documentation.
Show LessWe're looking to establish filtering policies on our CYW92706 BLE scanner, so that we can use a private resolvable addresses on our beacon, and need further documentation on how to use wiced_bt_ble_scanner_filter_policy_e. Can anyone point me in the right direction?
Show LessDoes the 20719 have an onchip 32kHz LPO?
[CY] Yes, it has an internal LPO however we always advise using an external LPO as it greatly improves power and accuracy.
Can this be used for running the BT in Low Power mode, and is it available in all power modes(idle, sleep, deep sleep)?
[CY] LPO operation is handled completely by the low level FW and is used whenever possible to save power.
Do you need an external 32/32.768kHz crystal?
[CY] See above. Yes, we advise using an external LPO. We would need to consult L3 HW/FW teams if you try to move forward with a design where it is not included. It is always risky to stray from the reference designs.
If not, why does our dev board have it? Does it affect/improve performance?
[CY] See above.
Is there a tool outside of WICED for programming the Flash/RAM (I assume over UART) that works in Windows?
[CY] chipload.exe can be used if a CLI is needed (used by the SDK in the download process). Alternatively, ClientControl (also found in the SDK) can be used if a GUI is required.
Show Less