Wi-Fi Combo Forum Discussions
Hello.
I bought CYW943907AEVAL1F.
I have to connect I2C interface (I use I2C_0 : pins 23, 25 of J6)
with intelligent battery that uses SMBus.
I have to read Battery Voltage.
For read the Battery Voltage I have to write a specific "command_code" and the read two words.
The Battery I2C address is 0001 011 ,
the "command_code" for read Voltage is 0x09 in mV.
The datasheet of the intelligent Battery states that you can read Word in this way
I write this routine :
/* i2c battery */
wiced_i2c_device_t i2c_battery;
/* setup 'i2c_battery' params */
i2c_battery.port = WICED_I2C_1;
i2c_battery.speed_mode = I2C_STANDARD_SPEED_MODE;
i2c_battery.flags = I2C_DEVICE_USE_DMA;
i2c_battery.address = 0x16 >> 1; // 0001 011 Smart Battery Data Specification V1.1 December 1998
i2c_battery.address_width = I2C_ADDRESS_WIDTH_7BIT;
/* init 'i2c_battery' i2c */
status = wiced_i2c_init ( &i2c_battery );
if ( status != WICED_SUCCESS )
{
WPRINT_APP_INFO( ("wiced_i2c_init 'i2c_battery' failed, status = %d\n", status) );
return;
}
uint8_t command_code = 0x09;
/* write command_code */
wiced_result = wiced_i2c_write ( &i2c_battery, WICED_I2C_START_FLAG, (void*)&command_code, 1U );
if ( wiced_result != WICED_SUCCESS )
{
WPRINT_APP_INFO( ("[##] wiced_i2c_write failed, status = %d\n", (int)wiced_result) );
return wiced_result;
}
/* read word */
wiced_result = wiced_i2c_read ( &i2c_battery, WICED_I2C_REPEATED_START_FLAG, (void*)&word, 2U );
if ( wiced_result != WICED_SUCCESS )
{
WPRINT_APP_INFO( ("[##] wiced_i2c_read failed, status = %d\n", (int)wiced_result) );
return wiced_result;
}
The code does't work because wiced_i2c_write fails with result 4 (WICED_ERROR).
The signals that I observe with scope are ...
What I'm wrong ?
The battery responds ACK for the Write command_code ...
Show Less
I am looking for any documentation or tutorials on creating a stand alone project outside of the Wiced Studio folder that can be stored in a git repository. The expectation is that there would be the typical .cproject and .project files as well as custom makefiles and that the project folder could be imported into Wiced Studio and built. Thank you.
Show LessWe are performing EMC testing on our product which uses the CYW43907 WiFi combo chip on a WM-AN-BM-23 module.
We are doing the testing with the wl_tool provided and have not had problems until now. We are using Wiced Studio 6.2.
Our testing house is reporting a failure with an error of -20 which seems to be BCME_BADCHAN.
However we have not found this error code in the documentation, could you tell us where to look.
.\wl --serial (comport) chanspec -c 3 -b 2 -w 40 -s 1
They tried changing the channel, they get the same result.
43909B0.exe
They can transmit fine in the 5 Ghz band, eg using:
.\wl43909B0.exe --serial (comport) chanspec -c 38 -b 5 -w 40 -s
Is it possible that your team could provide insight into whether 802.11n 40 Mhz is supported in the 2.4 Ghz band and if so could you provide a bat file or at least provide the commands to transmit.
Show Less
Hello,
we have to build up a test board for our customer which shall be equipped with a Murrata Type 1PS (Type 1PS | LBWA1UZ1PS | Murata Manufacturing Co., Ltd.) module. This module includes your Cypress CW54907 chipset.
For the project we just have to proof that the chip is working. So our goal is to get a connection to a known network and command a ping request.
Do you provide any standard pre-compiled application which we can use as a so called network controller offering the ability to issue commands by a serial interface e.g. UART? If yes, can you provide us any documents which give us an impression about the complexity of such an interface.
Best regards,
Mario
Show Less
In the system_monitor_thread_main, the comment mentions the capability of monitoring for bus/token timeout but I do not see any implementation of this. Is there a simple/easy method to implement this and can it be done with the CYW43907?
I have some rare lock up conditions around failures where the WLAN core or internal bus has stopped working/responding. This issue seems to be amplified when Aruba AP's issue deauth messages either during roaming or prior to an AP going offline/rebooting. One example, I have tracked down that a join command permanently blocked until power cycling.
Show Less
I am trying to find a starting point for BLE mesh for the CWY43012. I found the following post and example code.
https://github.com/cypresssemiconductorco/mbed-os-example-bluetooth-mesh-gateway
I would like to use Wiced Studio. Is there a similar example there? Can I port this example?
How does the Bluetooth certification work with this example? Do you have a QDID for the BLE mesh?
Thanks,
Mark
Show Less
I would like to integrate the WICED SDK into an ARM MCU (ATSAMV7) that is not implemented by default. Since the SDK is implemented for STM M7-Cortex, would there by obstacles that we should expect? Is there any information or advice that could be useful into integrating the SDK with the ATSAMV7?
Show LessHi,
I'm working on the platform MurataType1LD. I need to do some testing with changing the antenna gain level. By exploring I came to know that in platforms, wifi_nvram_image.h is the file which contains the config settings. I could see many parameters in that file and could not identify the exact param.
Which parameter I need to change to modify antenna gain?
What is the possible range of values?
How I can verify that the gain level is actually configured with WiFi firmware? Is there some API or some other way using which I can know the current antenna gain setting?
Show LessI want to modify the wiced appliance demo to print uart data received. Please let me know how to pass uart data received to html stream. Thanks.
Show LessHi,
I am working on Murata1LD board
In my code, call to wiced_aws_disconnect causes program to hang. I suspect a memory leak. I followed the solution in below thread. But the issue is not yet solved.
Whenver , wifi connection is interrupted, the code hangs there. Apart from the solution mentioned in above thread, is there anything to be done.
Thanks,
Binsy M S
Show Less