Smart Bluetooth Forum Discussions
Hi,
I just try SDK 2.2 installer (windows version) and test hello-sensor as attached log.
When handset is connected with device, handset top line shows "bluetooth pairing request"
but it didnt pop out with security passkey window for me to input the key and then successfully
connected with device. Is it still working... confused now. TKS.
from log, there is no security flow related with passkey and bond is failed.
I just uncomment the
#define PASSKEY_PAIRING
and any other modifications?
Show LessHardware Requirement
You must have an iPhone4S, iPhone5, iPod Touch (5th generation) or iPad (3rd generation). iPhone4, iPhone3GS, iPhone3G or iPod Touches before the 5th generation will not work.
Software Requirement
Install LightBlue App from Apple app store.
https://itunes.apple.com/cn/app/lightblue-bluetooth-low-energy/id557428110?mt=8.
Build and Download Example Application “Hello Sensor”
Follow instructions in “Session 02_Install Driver,Build and Download Application” to build and download example application “hello sensor” to WICED Smart Tag. Use make target “hello_sensor-BCM92073xTAG_Q32 download”.
Test “Hello Sensor” TAG with LightBlue
- Keep EVB BCM92073xTAG_Q32 powered on and application running.
- Turn on Bluetooth on iOS device.
- Start the application LightBlue on iOS device. Ensure that ‘Central’ is selected on the bottom taskbar as illustrated in Figure 1
Figure 1
Figure 2
Figure 3
- If the hello sensor app is working correctly, the LightBlue App shows Hello peripheral in a box as illustrated in Figure 2.
- Click button Pair if a window prompts for Bluetooth Paring Request after Hello peripheral box is touched as illustrated in Figure 3.
- Screen capture as illustrated by Figure 4 shows up.
- Select service Device Information. There are three characteristics as showed in Figure 5.
- Manufacture Name String is showed as Broadcom in Figure 6.
- Model Number String is showed as 1234 in Figure 7.
- System ID is showed as 0x93b863805f9f9171 in Figure 8.
Figure 4
Figure 5
Figure 6
- We can also get battery level as 1 under service Battery Service as illustrated in Figure 9 and Figure 10.
Figure 7
Figure 8
Figure 9
- Select characteristic 0x8AC32D3F-5CB9-4D44-BEC2-EE689169F626 under service 0x1B7E8251-2877-41C3-B46E-CF057C562023 as showed in Figure 12.
- Push the middle (application) button on the EVB (as showed in Figure 17/Figure 18) then click button Read as showed in Figure 12. The Hello X message is updated. Each time the button is pressed, the message number X increments as showed in Figure 13.
- Click button Start Notifications or Start Indications(as showed in Figure 14 and Figure 15)to enable notification or indication and push the middle (application) button on EVB. The Hello X message is updated automatically. Each time the button is pressed, the message number X increments.
Figure 10
Figure 11
Figure 12
Figure 13
Figure 14
Figure 15
- Change the value for the characteristic 0x5E9BF2A8-F93F-4481-A67E-3B2F4A07891A to 0x03 and then click Send(as showed in Figure 16) . The EVB emits an audible beep, and the LED flashes three times to acknowledge the write.
- Push the Application button (Figure 17/Figure 18) on the WICED Smart EVB. The LED on the EVB blinks three times.
Figure 16
Figure 17
Figure 18
Show LessHi,
I have installed the WICED Smart IDE 2.1.1 on an iMac which is running OS X 10.10.2.
wiced_sense firmware is also installed and compiled successfully.
CP210x USB to UART Bridge VCP driver is also installed.
I can find the following devices
/dev/cu.Bluetooth-Incoming-Port
/dev/tty.Bluetooth-Incoming-Port
/dev/cu.Bluetooth-Modem
/dev/tty.Bluetooth-Modem
/dev/cu.SLAB_USBtoUART
/dev/tty.SLAB_USBtoUART
/dev/cu.SLAB_USBtoUART15
/dev/tty.SLAB_USBtoUART15
"Crystal warm up time" = 5000 is also applied.
I have tried the target: wiced_sense-BCM920737TAG_Q32 recover UART=/dev/tty.SLAB_USBtoUART15
But it reports:
08:30:38 **** Build of configuration Release for project WICED-Smart-SDK ****
/Users/xxx/Documents/WICED/WICED-Smart-SDK-2.1.1/WICED-Smart-SDK/make wiced_sense-BCM920737TAG_Q32 recover UART=/dev/tty.SLAB_USBtoUART15
Linking target ELF
OK, made elf.
Call to wiced_sense_spar_crt_setup @ 002079a1
OK, made /Users/xxx/Documents/WICED/WICED-Smart-SDK-2.1.1/WICED-Smart-SDK/Wiced-Smart/spar/../../build/wiced_sense-BCM920737TAG_Q32-rom-ram-Wiced-release/A_20737A1-wiced_sense-rom-ram-spar.cgs. MD5 sum is:
96dd2be04c0423693ee7d7e161fcda63 ../../build/wiced_sense-BCM920737TAG_Q32-rom-ram-Wiced-release/A_20737A1-wiced_sense-rom-ram-spar.cgs
--------------------------------------------------------------------------------
Patches start at 0x00204568 (RAM address)
Patches end at 0x002052D0 (RAM address)
Application starts at 0x00204F70 (RAM address)
Application ends at 0x0020797E (RAM address)
Patch size (including reused RAM) 3432 bytes
Patch size 2568 bytes
Application size 10766 bytes
------
Total RAM footprint 13334 bytes (13.0kiB)
--------------------------------------------------------------------------------
Converting CGS to HEX...
Conversion complete
Creating OTA images...
Conversion complete
OTA image footprint in NV is 12826 bytes
Recovering platform ...
**** Recovery failed - retry ****
08:30:42 Build Finished (took 3s.947ms)
Is UART=/dev/tty.SLAB_USBtoUART15 a correct parameter on the Mac?
BTW, download command is also used, but failed as well.
Is there any suggestion?
Thank you in advance.
Ray
Show LessBasic RF Introduction
Bluetooth devices operate in the unlicensed 2.4 GHz ISM (Industrial Scientific Medical) band. A frequency hop transceiver is applied to combat interference and fading.
Bluetooth Smart technology operates in the same spectrum range (the 2.400 GHz-2.4835 GHz ISM band) as Classic Bluetooth technology, but uses a different set of channels. Instead of the Classic Bluetooth 79 1-MHz channels, Bluetooth Smart has 40 2-MHz channels. Within a channel, data is transmitted using Gaussian frequency shift modulation, similar to Classic Bluetooth's Basic Rate scheme, the bit rate is 1Mbit/s.
Frequency Bands and Channel Arrangement
The Bluetooth system operates in the 2.4 GHz ISM band. This frequency band is 2400 - 2483.5 MHZ.
Table 2.1: From”
BLUETOOTH SPECIFICATION Version 4.1
RF channels are spaced 2 MHz and are ordered in channel number k = 0, 2, 4, …,78 shown in Table2.1.
RF Test item
· TX
1. TRM-LE/CA/01/C Output Power
For a BLE transmitter, the output power level at he maximum power setting shall be 0.01mW(-20dBm) to 10mW(+10dBm) as the below table 3.1 showing.
Table3.1: Power class from” BLUETOOTH
SPECIFICATION Version 4.1”
Test Condition
- DUT transmits test packets with PRBS9
- Packet length: 37
- Frequency: Low, mid, high
Pass Verdict
- -20 dBm ≤ Pavg ≤ +10 dBm
- PPK ≤ Pavg + 3 dB
2. TRM-LE/CA/05/C Modulation Characteristics
The Modulation is GFSK (Gaussian Frequency Shift Keying) with a bandwidth-bit period product BT=0.5. The Modulation index shall be between 0.45 and 0.55. A binary one shall be represented by a positive frequency deviation, and a binary zero shall be represented by a negative frequency deviation. The symbol timing shall be less than ±20 ppm.
Figure 2: From”
BLUETOOTH SPECIFICATION Version 4.1”
For each transmission, the minimum frequency deviation,Fmin = min{|Fmin+|,Fmin-}, which corresponds to 1010 sequence shall be no smaller than ±80% of the frequency deviation (fd) with respect to the transmit frequency Ft, which corresponds to a 00001111 sequence.
In addition, the minimum frequency deviation shall never be smaller than 185kHz. The data transmitted has a symbol rate of 1 M/s.
The zero crossing error is the time difference between the ideal symbol period and the measured crossing time. This shall be less than ±1/8 of a symbol period.
Test Condition
- For ∆f1avg
- DUT transmits test packets with 37 octet packet
payload - Sequence: 1111 0000
- For ∆f2max and ∆f2avg
- DUT transmits test packets with 37 octet packet
payload - Sequence: 1010 1010
- Frequency: Low, mid, high
Pass Verdict
- 225 KHz ≤ ∆f1avg ≤ 275 KHz
- At least 99.9% of all ∆f2max frequency values
recorded over 10 test packets must be greater than 185 KHz - (∆f2avg / ∆f1avg) ≥ 0.8
3. TRM-LE/CA/06/C Frequency offset and drift
The deviation of the center frequency during the packet shall not exceed ±150 kHZ, including both the initial frequency offset and drift. The frequency drift during any packet shall be less than 50 kHZ. The frequency drift during any packet shall be less than 50 kHZ. The drift rate shall be less than 400 HZ/us.
The limits on the transmitter center frequency drift within a packet are specified in the below table
.
Figure
3: From” BLUETOOTH SPECIFICATION Version 4.1”
Test condition
- DUT transmits test packets with 37 octet payload
- Sequence: 1010 1010
- Frequency: Low, mid, high
Pass verdict
- fTX – 150 KHz ≤ fn ≤ fTX + 150 KHz
- | f0 – fn | ≤ 50 KHz
- | f1 – f0 | ≤ 20 KHz and | fn – f(n-5) |
n=6,7,8,…k ≤ 20 KHz
· RX
1. RCV-LE/CA/01/C Receiver sensitivity
The actual sensitivity level is defined as the input level for which a raw bit error rate (BER) of 0.1% is met.The receiver sensitivity shall be below or equal to –70dBm with any Bluetooth transmitter compliant to the transmitter specification.
Test condition
- DUT is set to receive at the frequency for
testing - The tester transmits test packets with PRBS9 (37
octets) - Frequency: Low, mid, high
- Signal level: -70dBm
Pass verdict
- PER better than 30.8 % for a minimum of 1500
packets transmitted by the tester
2. RCV-LE/CA/06/C Maximum input signal level
Maximum input signal level is the maximum permitted signal level inputting for RX receiver. DUT works in the low, middle and high frequency channel, tester send power controlled signal level of -10dBm, while a row bit error rate(BER) of 0.1% is met.
Test condition
- DUT is set to receive at the frequency for
testing - The tester transmits test packets with PRBS9 (37
octets) - Frequency: Low, mid, high
- Signal level: -10dBm
Pass verdict
- PER better than 30.8 % for a minimum of 1500 packets transmitted by the tester
3. RCV-LE/CA/07/C PER report integrity
PER tests are based on counting the number of packets received by the EUT out of a series of consecutive test packet transmitted by the testers. The tester is performed with frequency hopping disabled.
PER= (1-Number of packets received by the
EUT passing CRC/Total number of packets transmitted by the test).100%
Test condition
- DUT is set to receive at the frequency for
testing - The tester transmits test packets with PRBS9 (37
octets) - Total number of packets transmitted by the
tester shall be an even random number in the internal between 100 and 1500 - Every alternating packet transmitted by the
tester shall have an intentionally corrupted CRC value - Signal level: -30dBm
Pass verdict
- 50% ≤ PER ≤ 65.4% for each individual measurement
> I simply want to send a few bytes out the BCM20737S SPI, and receive some back, after connecting to it via iOS or Android or Windows.
>
> 1. does your app for Wahoo do this already, vs what BRCM might already have available?
>
> 2. also, on the ACKme module itself, not the Wahoo, is there enough space to clip or solder onto power, GND, and SPI pins, etc. to get this simple R/W functional?
>
> 3.how slow/fast min/max can I send data on SPI from BCM20737 IC?
Show LessI would like to create a sample application which would send a notification to the user stating that the temperature is above a certain value.I have downloaded the firmware "health thermometer".what exactly does that firmware do?
And how do i get a notification from the tag
Show LessIt was mentioned in the manual that there will be a plastic component.I am not sure what to be removed.can someone tell me whether i have to remove anything or is it already removed
Show LessTo establish a connection between tag and mobile ,it was mentioned "to remove the plastic shipping strip in the battery compartment " .
can someone tell me what exactly is this?
Show LessIn the project creation video they are compiling and downloading the code into the tag.
what is the application of it?
There are many codes listed there.can someone tell me what happens when we burn a particular code into tag?
Show Less