Studio Bluetooth Forum Discussions
Hi,
Could anyone please suggest how to restore previous state of GPIO after power cycle in mesh OnOff server application code for CYW20706 based CYBT-343026 module. I have enabled this element .onpowerup_state = WICED_BT_MESH_ON_POWER_UP_STATE_RESTORE in the application code but it didn't work out for me.
State of GPIO (RELAY_GPIO_1), which I configured as output, should be switched by pressing On/Off button on the mobile application. I want to keep the same state (last status by mobile application) of RELAY_GPIO_1 after power goes off and comes back. In order to do that, I have used NVRAM function. Is there any other good way of doing this?
Please check the attachment for entire code written in Modustoolbox with 2.7 SDK release.
void mesh_onoff_server_process_status(uint8_t element_idx, wiced_bt_mesh_onoff_status_data_t *p_status)
{
wiced_result_t status;
uint8_t powerState = 0;
/* Write status change to NVRAM */
powerState = p_status->present_onoff;
wiced_hal_write_nvram( 0x05, 1, &powerState, &status );
/* Process relay with the status changed */
if(p_status->present_onoff)
{
wiced_hal_gpio_set_pin_output( RELAY_GPIO_1, GPIO_PIN_OUTPUT_HIGH);
}
else
{
wiced_hal_gpio_set_pin_output( RELAY_GPIO_1, GPIO_PIN_OUTPUT_LOW);
}
}
Regards,
NK
Show LessI am wondering if CYBT-213043-MESH kit can be use for Research Purpose. what in particular i mean is the to develop an application of BLE mesh Network and BLe beacon device which will not part of mesh Network. using the trilateration method mesh nodes will act as anchor node and to estimate the postion of BLE beacon in the Network. which is highly dependent on RSSI Level of the devices in the Network. Is it easily available to get the RSSI level from APIs developed by cypress and use it in algorithm of trilateration?
next query is About the study of data delivery and latency of the above stated application. I have seen that many People deployed Zephyr OS for this Purpose because ist customizable.
could you please guide me and let me know if this functionationality is available in SDK of CYBT-213043-MESH kit.
thanks for your help and support
Show Lessdear sir or madam,
i want to use cyw20704 as slave and i send below commands with cyBluetool but i cant see the module with my phone. could you please tell me the sequences of the
command that i should send
reset
Write_BD_ADDR
Enable_Radio
TX_Test
i got success for all this command
thanks a lot
Show LessHi Team,
I am using CYBT-483039_Evaluation board and using the Bluetooth Designer for client development application.
We need to have unique BD address for 'n' number of clients, which should get randomly generated BD address during programming(flashing) and it should never change even after restarting client device.
I have tried some setting change and below are the results:
1. I have changed the BD address setting in wiced_bt_cfg.c as WICED_BT_CFG_DEFAULT_RANDOM_ADDRESS_NEVER_CHANGE, with this we are able to get fixed BD address(0x20 0x71 0x9b 0x19 0x3e 0x41) for all the client development application.
2. To get the random BD address, I have also changed the BD address setting in wiced_bt_cfg.c as WICED_BT_CFG_DEFAULT_RANDOM_ADDRESS_CHANGE_TIMEOUT, with this we are able to get random BD address, during programming and restarting the evaluation board.
So we would required as “once we programmed the client device, each client must get unique BD address and it should never change even after restarting client device”.
So please suggest on how we can do this change?
Show LessWe use CYBT-353027-02 module and Cypress SDK 6.4 in our design. Our product shall have HFP, SPP and a couple of custom BLE services. In our product's Bluetooth qualification project we tried to use Components included into CYBT-353027-02 End Product listing (QDID 109292): 104467 for Controller and 72771 for Host stack. However, the 3-years validity term is expired for 72771, so we cannot combine it with our design. As far as I understand, because we build our software for the CYBT-353027-02 using the most recent SDK, we can use some newer QDID for Host stack, that is associated with this SDK. Unfortunately I couldn't find any information about Host stack QDID in the SDK documentation. On the other hand, I found the following QDIDs at the bluetooth.com website, they look like a replacement to 72771:
115853 - CY-WICED 4.0 Bluetooth Host Stack, 4.0
112859 - CY-WICED 3.0 LE Host Software Stack, 3.0
Can we use 115853 and 112859 instead of 72771?
In addition, assuming we're not making any changes in the HFP code provided by Cypress with the SDK 6.4, can we combine our design with 117586 "WICED Audio Profile Package" in order to re-use its test evidence?
Thank you in advance!
Show Less请问CYW20706 单芯片实现HFP(HF client)能否支持多个手机(AG)同时连接,另外同时支持BT+BLE,内存资源够不够?
谢谢!
Hello,
The FCC test is conducted using CYBT-333047-02 and an antenna different from the reference antenna (B4844-01 etc.) described in the data sheet.
The FCC test has failed the harmonic emission test in BLE.
According to the certification agency, it is possible to correct the transmission power by using the duty ratio of the transmission time in 100 ms in the actual firmware.
So I have a question.
The firmware to use actually uses EZ-Serial.
When transmitting with BLE, Notify and Advertise packet can be considered.
In addition, it is necessary to request the duty of the packet to be sent under the following conditions.
・Observe the transmission packet of one channel when Frequency Hopping is effective.
・Frequency hopping is performed at each Connection Interval, but CH1 appears alternately in hopping (worst case)
CH1 => CH2 => CH1 => CH3 => CH1 => CH4…
・The Connection Interval and the number of transmitted packets differ depending on iOS/Android
- iOS: Connection Interval = 30ms / Number of Packets in connection interval = 4 packets
- Android: Connection Interval = 48.75ms / Number of Packets in connection interval = 6 packets
- Android(Worst case): Connection Interval = 7.5ms / Number of Packets in connection interval = 6 packets
・Hopping as follows for each Advertisement Interval
CH37 => CH38 => CH39 => CH37 ...
・EZ-Serial Advertisment Interval default setting is 30ms (0.625ms x48)
gap_set_adv_parameters (SAP, ID=4/23): H=0x0030 (48)
[Question]
Under the above conditions, I calculated the Tx Duty Cycle as follows.
Is there a mistake in recognition?
1. Notify for iOS (Connection Interval = 30ms / Number of Packets in connection interval = 4 packets)
- On time: 328us x 8 = 2,624us (2.624ms)
- Off time: 100,000us - 2,624us = 97,386us (97.386ms)
Tx Time Duty : 2.624 %
2. Notify for Android (Connection Interval = 48.75ms / Number of Packets in connection interval = 6 packets)
- On time: 328us x 11 + 110us = 3,718us (3.718ms)
- Off time: 100,000us - 3,718us = 96,282us (96.282ms)
Tx Time Duty : 3.718 %
3. Notify for Android - Worst case (Connection Interval = 7.5ms / Number of Packets in connection interval = 6 packets)
- On time: 328us x 42 = 13,776us (13.776ms)
- Off time: 100,000us - 13,776us = 86,224us (86.224ms)
Tx Time Duty : 13.776%
4. Advertisement (Advertisement Interval = 30ms)
- On time: 328us x 2 = 656us (0.656ms)
- Off time: 100,000us - 656us = 99,344us (99.344ms)
Tx Time Duty : 0.656 %
Best regards,
Takahashi
Show LessHi all,
Customer is in process of getting certification at Malaysia.
Could you let us know below question ;
1. Does CYBT-343026-01 need to get certification as module?
or Certification is needed as Customer Product?
2. Does Cypress need to submit some document, like Certification or Permission?
if you have any question, please let me know.
BR,
Uehara
Show LessHi all.
In my project, I have to read incoming data from the PUART buffer as fast as possible.
As far as I understand, reading data byte by byte using wiced_hal_puart_read() is not a fastes way.
In the PUART API, I found a wiced_hal_puart_synchronous_read() function that reads a set of bytes from a FIFO buffer.
This function needs a "length" parameter that determines how many bytes I would like to read.
But how can I know how many bytes were received into the FIFO buffer or alternatively FIFO is full? (according to the datasheet the chip has a FIFO buffer of 256 bytes). I only found the wiced_hal_puart_rx_fifo_not_empty() function, but it indicates to any existing data in the buffer, but how much I can read I still don't know.
Thank you.
Show LessHello,
I am new to BLE development, would like know how to create new own application on WICED Studio.
Also is there any documentation about BLE firmware architecture used in WICED Studio.
In future i need to develop both BLE client server application, as well as Mesh network also. It would be helpful if the get guidance for development.
WICED Studio:- Ver 6.4.0.
Platform files for board is already added.
Thanks !!!
Show Less