Studio Bluetooth Forum Discussions
I am using CYBT-343026-EVAL with WICED 6.2 now.
I want to return back to Connect when Bluetooth headset power On from power off.
Now sometimes it returns back to Connect,but it often does not Rerun back to Connect.
I do a survey about the code.
I have found in hci_control_ag_rfcomm.c
void hci_control_ag_rfcomm_control_callback( uint32_t port_status, uint16_t port_handle )
[if ( ( port_handle == p_scb->rfc_serv_handle ) || ( port_handle == p_scb->rfc_conn_handle ) )]
If it is true ,it can return back to Connect.
Also,I have found the port_handle is created in blow
[
rfcomm_result = wiced_bt_rfcomm_create_connection( UUID_SERVCLASS_HF_HANDSFREE,
p_scb->hf_scn, WICED_FALSE,
HFP_DEVICE_MTU,
p_scb->hf_addr,
&p_scb->rfc_conn_handle,
( wiced_bt_port_mgmt_cback_t * )hci_control_ag_rfcomm_control_callback );
]
But I don not know how does wiced_bt_rfcomm_create_connection() works,
I read API-REF-20706-A2_Bluetooth.pdf,It is only have some description,I want to know more about wiced_bt_rfcomm_create_connection.
Can you teach me.
Show LessHi,
I am trying to set PWM generator to 7.5HZ.
i can set PWM generator to [integer] HZ, like 7HZ or 8HZ... by set PWM_INP_CLK_IN_HZ and PWM_FREQ_IN_HZ,
but the PWM_FREQ_IN_HZ can only set integer.
Does everybody know how to set PWM generator to 7.5HZ?
Show LessDear Sirs and Madams!
I have PCB with BCM20730/CYW20730 with LED diode connected to it via P4:
Now, I am trying to control this LED from BlueTool using HCI Control -> 0: Vendor Specific Commands -> GPIO_Config_and_Write:
Now:
- From BCM20730/CYW20730 datasheet I can see it has more GPIO ports than 8 (addressable from BlueTool). Why are only 8 addressable from BlueTool?
- As we can see from schematic, If I set P4 (BlueTool GPIO_Pin_Number set to 4), to HIGH, why LED does not turn on? The hardware has been verified, from custom firmware I can control the LED, what I cannot it control from BlueTool?
- What does checkable parameter Auxiliary_GPIO_Control means?
- What are Pad_Config parameters Sel0, Sel1 and Hysteresis mean?
- Finally, can someone provide me full BlueTool manual with commands (and their parameter(s)) descriptions?
The communication channel has been setup properly, becuase I can successfully, for instance, reset the BCM20730 on PCB:
Sincerely,
M.
Show LessIs there any documentation on how to use the chipload.exe?
Our customer want to know how to program new firmware to CYW20719 during mass-production period.
Tks!
Show LessHello everyone,
I just stated working with the CYW92076WCDEVAL evaluation kit and I'm following the "CYW920706WCDEVAL Kit Guide" in order to get the "hello sensor" demo working, but when I start the download ( demo.hello_sensor-CYW920706WCDEVAL download ) I get this message:
Detecting device...
********* Detection Failure *************
+------------------------------------------------------------------------------------------+
| The CYW20706 was not detected. Verify that the device is connected, power-cycle if |
| necessary, and retry. |
| Please see Appendix sections in the Kit Guide for common com port problems. |
+------------------------------------------------------------------------------------------+
Even though I'm able to detect both /dev/ttyWICED_HCI_UART0 and /dev/ttyWICED_PUART1.
All the dip switches and jumpers are in their correct positions too.
I've tried the make command "demo.hello_sensor-CYW920706WCDEVAL download UART=/dev/ttyWICED_HCI_UART0" with no success. That throws:
Downloading application...
********* Download Failure *************
+------------------------------------------------------------------------------------------+
| Power cycle the CYW920706WCDEVAL board and retry. |
| If this problem persists, the serial flash on the board may be corrupted. |
| Please see Appendix D in the Kit Guide for recovery instructions. |
+------------------------------------------------------------------------------------------+
Download failed. This WICED platform of the SDK only supports download to 20706A2 device.
So I tried to recover the board (steps described in Appendix D), but that doesn't work either.
I know the board works because when I open a terminal on port /dev/ttyWICED_PUART1 I'm able to see the "hello sensor" traces (the board is shipped preloaded with that sample application).
For more information, this is my setup:
Ubuntu 14.04.2 LTS x86_64
WICED Studio 6.0
Thank you in advance
Luis CRUZ
Show LessI want to use the CYBT-343026 in conjuction with a Linux Host Computer. As far as I have seen there are 2 possible communication ways over a Uart-connection - the standard HCI mode (which I want to use) and the WICED HCI mode which seem to provide a communication way with the Bluetooth protocol which was formerly programmed into the modules flash memory.
Is there an example application to configure the CYBT-343026 non volatile to be used like a Bluetooth radio - just setting a specific baud rate on the UART and then communicating over the standard HCI protocol (I guess H4) in conjunction with the Linux Bluetooth stacks?
While searching in the community database I have found several "solutions" which are sometimes very different, such as:
1. In the support case "Linux driver for CYBT 343026" the solution seems to be "just download a patch (or an empty application) and then send HCI commands over HCI UART."
2. In the KBA225450 the solution seems to be loading the flash with any non-Bluetooth project (Bluetooth Low Energy (BLE) or Bluetooth BR/EDR) for example GPIO application which is part of the SDK.
3. Also mentioned in KBA225450: "...pull the SPI2_MOSI pin low on Power ON to put the device in HCI mode where it starts accepting all HCI commands."
4. In the support case "CYW20719 in HCI mode the following method is described: Create a project with an empty application and program it into the flash. Then send a HCI reset command ((01 03 0C 00) (01)
I have tried most of the mentioned solutions above, but I had no success to talk to the module from the linux side (hciattach -> "hciconfig hci0 up" -> fail).
Therefore my question: What is the prefered way to bring the CYBT-343026 into "standard" hci mode?
Regards,
Bernhard
Show LessGreetings.
I have tried unsuccessfully to create a code to read an i2c slave in the kit cybt-343026-001
Please, if someone can guide me towards a basic example.
Thank you .
I attach the code used.
#include "wiced_hal_i2c.h"
#include "wiced_bt_trace.h"
#define I2C_SLAVE_ADDRESS (0x76)
#define I2C_SLAVE_OPERATION_READ 0
#define I2C_SLAVE_OPERATION_WRITE 1
/* Sample code to test i2c driver */
APPLICATION_START( )
{
void test_i2c_driver( void )
{
uint8_t data_array[] = "123456";
/* Initializes the I2C driver and its private values. This initialization
* sets the bus speed to 100KHz by default (I2CM_SPEED_100KHZ)*/
wiced_hal_i2c_init( WICED_I2C_SDA_P35_SCL_P37 );
/* current I2C bus speed */
wiced_hal_i2c_get_speed( );
wiced_hal_i2c_set_speed( I2CM_SPEED_100KHZ );
/* Writes the given data to the I2C HW addressing a particular slave address */
wiced_hal_i2c_write( data_array, sizeof( data_array ), I2C_SLAVE_ADDRESS);
wiced_hal_i2c_read( data_array, sizeof( data_array ), I2C_SLAVE_ADDRESS);
WICED_BT_TRACE( "Read bytes %s\n\r", data_array );
}
}
Show LessHi,
I want to use the CYBT-343026-EVAL like I did with the CY8KIT-042-BLE with a CYBLE-224014-EVAL loaded with the EZ-serial
1)
from the unboxed CYBT-343026-EVAL there is no boot message after releasing the reset swith on P-UART or HCI-UART
- like it was on the CYBLE-224014.
2)
is the CYBT-343026 on the eval board loaded with the EZ-serial firmware "CYBT-343026-01 WICED EZ-Serial FW Image V1.1.14 (.hex, .cgs)"
3)
other suggestions to try / do ?
Regards
Viggo
Show LessHi
I plan to evaluate the BLE operation,
but do I need a separate test farm for BLE evaluation (SIG test)?
If necessary, please contact us about the farm.
(* Please also tell us that how to install and use it.)
Thanks
Yang