Smart Bluetooth Forum Discussions
i downloaded the sdk for the wiced smart bcm20737 bluetooth chip
i programmed the hello sensor application, and i ran the hello client application, it all worked fine .. but after that, i can never pair again .. i turn on and off bluetooth, diconnect the device from usb, reprogram it .. nothing works ... i am on windows 8.1
??
Show LessDownload failed. This version of the SDK only supports download to BCM20732A1, BCM20736A1 and BCM20737A1 devices
I get this error when i try to download any of the examples
i have this board: http://prntscr.com/3o3ixq with the BCM20737 chip on it
i have the latest sdk on windows 8.1
i tried the recovery procedure .. it does nothing
Show LessI am trying to explore how to write Bluetooth LE based application for BCM20736S chip in Eclipse using Java for Android OS.
Android OS 4.3 and above provide a good support for BLE 4.0 spec and included API and packages for development of Bluetooth LE based applications.
I have the Eclipse development environment with JDK 7.0 ( 32 bit version) installed on my development system.
What are the other prerequisite for creating the BLE based application for BCM20736S chip for Android 4.3 ?
Is there any sample code available that I can use to understand the concept ?
Show LessOS: OSX 10.8.5
SDK: 2.0.1
Board: BCM920737TAG
Following README.txt:
$ sudo ./make automation_io-BCM920737TAG_Q32 download VERBOSE=1
(sudo in case permissions were somehow breaking it).
...
Download failed. This version of the SDK only supports download to BCM20732A1, BCM20736A1 and BCM20737A1 devices
$ cat build/automation_io-BCM920737TAG_Q32-rom-ram-Wiced-release/detect.log
com_port.txt
/dev/tty.Bluetooth-Modem Could not establish transport connection: failed to open port: /dev/tty.Bluetooth-Modem
/dev/cu.Bluetooth-PDA-Sync Could not establish transport connection: Failed to recognize the connection transport
/dev/cu.Bluetooth-Modem Could not establish transport connection: Failed to recognize the connection transport
/dev/cu.Bluetooth-Serial-2 Could not establish transport connection: Failed to recognize the connection transport
/dev/cu.Bluetooth-Serial-1 Could not establish transport connection: Failed to recognize the connection transport
Board switch settings:
miniswitch all 8 on
sw2=up=vusb, sw3=down=reg
Things I tried:
* sudo mkdir /var/lock; sudo chmod a+rw /var/lock
* in Preferences/Network, mark inactive LG C...Modem and Bluetooth PAN
* in Preferences/Bluetooth, uncheck All 3 devices
* sudo lsof | grep -i cu.bluetooth # no match
* press reset on board.
Show LessI tried to see my BCM920737TAG-03 (with BCM20737 and SDK 2.x) working, if my smartphone can see the BT LE eval board.
I do not have iPhone, I want to use my Galaxy S3 or S4.
Result:
It works, but: looks like Galaxy S3 cannot find, but Galaxy S4 can with right APP installed. And an APP has to be installed.
Prerequisites:
You have to have Android 4.3 or higher. At best Galaxy S4 (even S3 should support but it looks like BT LE is not supported there,
nothing found by app).
You have to install in addition to SDK as this PC app also an APP on your smartphone:
I have used "Bluetooth 4.0 Scanner", via PlayStore, searching for "Bluetooth LE scanner", the "Bluetooth LE Scanner" might work as well.
Regular BT Scan will not see anything (on regular Android system).
OK, here my steps:
1. Install the SDK:
It comes with a lot of demo projects.
2. Prepare the Eval board:
Make sure the SW2 is Up (VUSB) and SW3 Down (VREG).
All DIP switches (HCI, SW4) are On.
Plug in USB and you should see two new COM Ports in Device Manager, two "USB Serial Port"s, e.g COM17, COM18.
3. Start the WICED-Smart-SDK:
It will come up with a readme. There are already several demo projects but pressing Build will not help or not do anything.
4. Go in SDK to "Trace" -> "Setup COM Port":
be a bit patient, at the end it should display somewhere a new small window (hard to find).
There, you have to select one of the USB Serial Ports. I have selected my first one (COM17).
5. In order to build and run one project on eval board:
Do not use the menu sub-windows to build, any other Build or Run button. Instead:
Click on the top level "WICED-Smart-SDK" node to select it.
With the right mouse context menu you will see also "Make Targets" -> "Build".
It will open a selection menu for all the available projects. Select one:
I have tried "mybeacon-BCM920736TAG_Q32 download" and "proximity-BCM920737TAG_Q32 download".
Click on "Build":
It should compile the C-code and load the code image to eval board at the end. You can see on: no error and progress bar is there and
final message "application running".
Remark:
If it does not load to eval board (you should not see successful messages and the progress bar):
UART is not selected, not the right UART selected (see step 4.)
or: press reset (SW5) on eval board first.
BTW: if you want to do again, if you want to load another project - Reset (SW5) has to be pressed all the time again before!
If eval board is still running - it does not load a new image.
6. Make sure you have installed the Android app (see above).
"Bluetooth 4.0 Scanner" seems to be nice, following comments are related to it.
7. Start or open app on Android smartphone.
Important:
There is a selection for "Device Scan": Select there "Low Energy Scan", not the "Classic Scan" (it will not see BT LE devices !)
Press "Start Scan"
At the end it should display a device found, just something with "Empty LE name field" and "Vendor not found".
If you click on the list entry, you will get a bit more information (text file).
ATT: it looks to me, you have to enable GPS in smartphone. Even in-room - GPS has to be on, otherwise it will not scan.
Conclusion:
the three most important remarks are:
1) You need a BT LE, Bluetooth Smart app on your smartphone - regular BT scan will not see and cannot find.
Maybe it depends on the phone you have (e.g. Galaxy S4 but not S3) and Android >= 4.3 is needed.
Make sure to select the BT LE Scan "Low Energy Scan".
2) In SDK select the "Setup COM Port" under "Trace", otherwise generated demo project is not loaded.
3) Build the project by selecting the top node "WICED-Smart-SDK" and using the right mouse context menu "Make Targets" -> "Build",
not other menu items to build or run.
OK, my smartphone has seen eval BT LE but nothing reasonable to do without to write a nice client running on Android phone.
(should I report here as well? 😉 I am thinking to use Nokia Qt Xcode (I like and know Qt).
Show Less
We will find two different sets of TRMs or Datasheets, for instance one related to BCM20736S and other to BCM20737.
Please watch the S after "chip name" or without it.
Or please be aware of words such as SOC vs. SiP.
I tried to get familiar with the new BCM20737 eval board, e.g. doc. MMP920737TAG03-HWUM100-R.pdf.
I was a bit confused when read the BCM20736S doc, the pins do not seem to match.
OK, lession learnt:
SOC = System on Chip:
it is the real chip, e.g. BCM20737 - without any S on name
SiP = System in Package:
it is the chip used in another package, a new System in Package created.
Now all with S appended at the name.
And do not use the pin numbering, the pin description mentioned in an 'S' (SiP) documentation: it is a completely new package.
The eval board has the chip only, therefore please use the SOC documentation, without S on name.
BTW:
the naming BCM9xxxxx stands for modules, eval boards.
Just not yet clear for me::
MMP920737TAG03-HWUM100-R.pdf, schematics there, shows me that loudspeaker LS1 is connected to P13/P28 (pin 29 on chip, not SiP).
But datasheet MMP20732-DS100-R.pdf shows me:
ADC Port: P13/P28 (select only one), P14/P38 (select only one)
GPIO Port: P13/P28 (Dual bonded, only one of two is available.), P14/P38 (Dual bonded, only one of two is available.)
and:
PWM: P14/P28 (Dual bonded, only one of two is available.)
P13
I) It does not seem to match (P14/P28 vs. P14/P38) and not the same remark on PWM P13
II) How do I know how is it bonded?
In order to use the right PWM3 or PWM2 it would be important to know which port is connected (bond version).
Based on schematics: LS1 is on pin 29 P13/P28, therefore it seems to be PWM2, P28 on pin 29.
It lets me assume that pin 30, P14 is bonded as well, usable as ADC input. It goes to TP5 but there is also LED D3 connected (output, not ADC input).
Summary: Current consumption is too high - how can we reduce it?
Board: BCM920737TAG
SDK: SDK-2.0.1.7
With firmware that sends 15 iBeacon ADV packets per second, I measure this average current consumption (in mA):
1.143 +- 0.019 ( 1.124 - 1.162)
Board Configuration:
SW2 (regulator input) = USB (regulator is out of picture)
SW3 (circuit input) = COIN
SW4 1-4 = OFF (app mode)
Nothing connected to USB connector.
Power Connection:
3V power supply
V+ to coin cell holder
V- to GND on 8-pin header
Measurement:
50 ksamples/second, averaged over several 1 second windows.
Firmware attached.
Show LessWhen I used WICED-SMART-SDK V2.0.1, sometimes I can saw the string like that:
@$*#04FF0EF7009201010080E6E5070D00000001
So, I want to know that what's the meaning?
Show LessI'm trying to generate 100 hz pulse with fixed duty cycle. I found there may have two methods:
1. write in main while loop and use a delay function as follows:
gpio_setPinOutput(0, GPIO_PIN_LED, GPIO_PIN_OUTPUT_LOW);
delay(300); //microsecond
gpio_setPinOutput(0, GPIO_PIN_LED, GPIO_PIN_OUTPUT_HIGH);
delay(9700); //microsecond
I don't find there's a delay() function in SDK. would someone find any similiar function that can support to microsecond delay?
2. use PWM pin, configure clock to 100 hz, then set duty cycle.
Appricate any suggestion.
Show Less