Smart Bluetooth Forum Discussions
hello,
i am downloading wiced_sense (example) program to WICED Sense and it works fine when it is powered by coin cell, but if it is powered by USB, it does not wakeup although if i press the wake key of the module.
do i need to change anything in the code to make wake key work on USB powered?
thanking you...
Show LessNow I can download the app using chiploader repeatly, It is obviously that when redownload the app,the IDE will build and erase then download the new app,but I don't know how to just erase the app,is there any ways to do so,such as use chiploader or the IDE?
Show LessHello,
I am having some trouble with floating point numbers. I am using the lastest SDK.
I have a simply calculation:
int Data[]={0x1834}; //6196 in decimal
float factor=0.00698;
float result=0;
result=Data[0]*0.00698; //expected result would be 43.24808
printf("Result: %.2f",result); //print to two decimal places, 43.24
Every time I do this I get a round number to a whole number.
What is the correct way to print to two decimal places on this SDK?
Do I need to include some sort of header file to allow me to calculate floating point calculations?
Any examples would be great.
Thanks,
Luke.
Show Less---------------------------------------------------------------------------------
SDK: 2.2.2
Hardware: Tag3(Master) + Our Custom PCB-BCM20737S(Slave)
Firmware: Modify hello_client + hello_sensor
---------------------------------------------------------------------------------
I would like to know the number of transmissions times in the connection event. So I designed an experiment.
This is my experiment work flow.
1.The Serial monitor software(AccessPort) will send 300 Byte to Master(hello_client).
2.The master will save data to buffer,and send the data(use Writecmd function) in the connection event callback.
I also put the "bleprofile_SetMaxQueuedWriteRequests(15)" in the APPLICATION_INIT before bleapp_set_cfg.
I change the lel2cap_sendConnParamUpdateReq(6, 6, 0, 700) in connection_up callback.
3.The slave will receive the data from the master.It will print 1 byte data to PUART in write_handler callback.
4.I use the logic analyzer and oscilloscope to monitor PUART Tx of slave.
The following figure is the result of my test.
The data1 is the first package(0~19) receive from the master.The data2 is the second package(20~39) receive from the master.The time interval between the first package and the second package is about 1.2 ms(1 slot???).
The following figure is the zoom out of the picture.And you can see the third(40~59) and the fourth(60~79) package.The time interval between the second package and the third package is about 6 ms(minimum connection interval 7.5 ms???).
We can see master send two packages in the connection event.As I know the Nordic can send 6 package in the connection event.Is there the way to increase the transmission package in the connection event?
Show LessHi,
I'm testing various hardware functions of the BCM2073x devices, and am currently on the IR_TX output.
This post has really helped me:
Examples using irtxdriver and syncedpulse?
#include "myirtx.h"
#include "irtxdriver.h"
#include "gpiodriver.h"
#include "aclk.h"
#define BUFFER_SIZE 16
UINT16 send_buffer[BUFFER_SIZE];
#define HIGH(value) (value | HW_MIA_IR_CMD_IR_RAW_BIT_MASK)
#define LOW(value) (value & ~(HW_MIA_IR_CMD_IR_RAW_BIT_MASK)
// 1<<15==0x8000 == HW_MIA_IR_CMD_IR_RAW_BIT_MASK when this bit is set, it should be 1, if not, zero (unless control inverts it.)
// max value: 0x7FFF=32768 microseconds, or 32 milliseconds
IR_TX_CLOCK_SETTING irtxClockSet;
void myirtx_init()
{
/// IR TX initialization routine.
irtx_IrTx();
//(1) Configure the IrTx Port and Pin to be used
irtx_setIrTxPortPin(GPIO_PIN_P4/16, GPIO_PIN_P4%16);
ble_trace1("P4: %x", gpio_getPinConfig(GPIO_PIN_P4/16, GPIO_PIN_P4%16)); //=> 0x0010 == GPIO_KS_OUTPUT_ENABLE
irtxClockSet.invertOutput=1; //Invert HIGH and LOW if true
irtxClockSet.modulateFreq=38000; //Modulation frequency 38KHz
irtxClockSet.clockSrcFreq=ACLK_FREQ_24_MHZ; //I assume it works as ACLK, so use defines from aclk.h
irtxClockSet.clockSrc=ACLK1;
}
void myirtx_tx_something()
{
//Prepare an array to send
send_buffer[0]=HIGH(208); //Stay high for 208us
send_buffer[1]=LOW(834); //Stay low for 834us
send_buffer[2]=HIGH(417); //Stay high for 417us
send_buffer[3]=LOW(417); //etc...
send_buffer[4]=HIGH(208);
send_buffer[5]=LOW(625);
send_buffer[6]=HIGH(625);
send_buffer[7]=LOW(625);
send_buffer[8]=HIGH(208);
send_buffer[9]=LOW(208);
send_buffer[10]=HIGH(208);
send_buffer[11]=LOW(208);
send_buffer[12]=HIGH(208);
send_buffer[13]=LOW(208);
send_buffer[14]=HIGH(417);
send_buffer[15]=LOW(625);
irtx_sendData(send_buffer, 16, irtxClockSet);
//while (! irtx_isAvailable()); //Hardware IR Bloc is turned off during deep sleep
//We must wait until the transmission is done before going to sleep
}
This seems to work very well (I call myirtx_init at the end of the app_create() funciton, and myirtx_tx_something in the button interrupt routine)
I'm also able to invert the output by setting irtxClockSet.invertOutput=1; or 0 respectively. However, the inversion only inverts the transmission, but not the idle state, so it's not very helpful at all. Idle seems to be low at all times.
I've tried a few things, such as adding a GPIO_PULL_UP, but this has no effect.
I've also tried manually using gpio_configure to output high, right after irtx_setIrTxPortPin, and only changing that just before irtx_sendData. This might work in a pinch, but does not pull up the line after transmission is done, and because the tx_done interrupt does not seem to be available to us, I can't manually use gpioconfigure or setoutput to pull it up again immediately after transmission.
Could someone from Broadcom tell us if this is expected behaviour (that the idle state is unaffected by "invertOutput")? If not, could you give us a solution to fix this?
I could imagine the only real purpose for the invertOutput would be to connect the TX IR diode differently, ie between VDD and IR_TX_PIN rather than between IR_TX_PIN and GND... but then the idle state would need to be inverted too, right?
I'm also very interested in IR_RX functionality, any more info on this would be great!
Show LessWe are developing an automated state machine for our product using the BCM20736. It would be very helpful to simulate interrupts or be able to set the pin value on a GPIO configured for input. These are for custom configured pins.
This does not appear possible via the GPIO driver. Is there a possible solution?
Show LessIs there any data available on the tracking time used by the internal ADC? I haven't been able to find that information in the datasheet.
By tracking time I mean the length of time in which the sampling capacitor is connected to a chosen analog input. Knowing this would be very helpful for designing an ADC input circuit.
Also would it be possible to configure the ADC so that the sample capacitor is left connected to the analog input while it is not sampling. This would make it much easier to measure high impedance, slowly changing signals such as a battery voltage.
Thanks
Show LessWhen updating the BCM20736E over UART, the 1st firmware bank is updated.
If we then perform a firmware update OTA, it switches to the 2nd firmware bank and 'corrupts' the first.
Any subsequent updates of the firmware using UART will only overwrite the firmware in the first bank.
But because the device is running from the second bank, we cannot get these updates to take effect.
Is there any way to force the device to run from the 1st bank of firmware so that when it reboots the new firmware loaded will execute?
Show LessNice to meet you
Want to get the humidity and temperature in the WICED smart. I do not know how. I engineer calendar in Japanese is also shallow , but English is not good . Ultimately we believe that trying to use in addition to the project of xcode.
Can you to get with the return value of the function is to be realized in any way .
English is I do not know how good or Once underway the weak . . .
Current situation , was able to write the code to WICED sensor to install the Eclipce.
Hello,
I tried installing the Wiced-Smart-SDK on her Computer. The OS on the machine is Win Server 2008 R1 enterprise
When I try to start the software I get the following error code:
Java Was Started but returned exit code = 13
C:\ProgramData\Oracle\Java\javapath\javaw.exe
-Dosgi.required.JavaVersion = 1.5
-Dhelp.lucene.tokenizer=standard....
I have Java 7 Update 7 (64-bit), Java 8 Update 20 (64-bit) and Jave SE Development Kit 8 Update 20(64-bit) installed.
Any insight into this issue would be helpful.
Thanks,
Belenie
Show Less