Posts

Showing posts from July, 2020

Bluetooth 5 Advertising Extensions demo using Nordic nRF52840

Image
Nordic nRF52840 supports Bluetooth 5 Advertising Extensions but finding working example is not easy. In the whole nRF5_SDK_17.0.0 there is only one example project that is using Bluetooth 5 Advertising Extensions. It is located in  examples\ble_peripheral\ble_app_rscs  and is named "nRF Running Speed and Cadence Sensor Example Application". I have found it by greping the source for: init.config.ble_adv_extended_enabled There is no  hex file provided so you must compile it. You can do it using Segger Embedded Studio for ARM using supplied project file, or using a method that suits you best. After complication flash the nRF52840-DK board with the compiled hex file. To check the advertising of the nRF52840-DK board running hte application, I have used a mobile phone that supports Bluetooth 5 Advertising Extensions. It was a Samsung S10e mobile phone running Android 10. To scan I have used the  nRF Connect for Mobile  app. Here are two screenshots from the app showi...

Using text2pcap tool

The text2pcap  tool is allowing you to create PCAP filed from text files. Here is a simple example how to convert a text file containing three Bluetooth 5 Advertising Extension packets into PCAP file. sample.txt # ADV_EXT_IND 0.0 0000 00 c1 80 00 d6 be 89 8e 13 0c d6 be 89 8e 47 0d 0010 0c 19 ec f1 95 13 df 41 b2 17 0c c3 1e 00 00 00 # ADV_AUX_IND 0.236250 0000 0e c3 80 00 d6 be 89 8e 13 0c d6 be 89 8e 47 ff 0010 06 18 b2 17 0d 53 00 5d 16 45 23 11 22 33 44 55 0020 66 77 88 99 00 11 22 33 44 55 66 77 88 99 00 11 0030 22 33 44 55 66 77 88 99 00 11 22 33 44 55 66 77 0040 88 99 00 11 22 33 44 55 66 77 88 99 00 11 22 33 0050 44 55 66 77 88 99 00 11 22 33 44 55 66 77 88 99 0060 00 11 22 33 44 55 66 77 88 99 00 11 22 33 44 55 0070 66 77 88 99 00 5d 16 56 34 11 22 33 44 55 66 77 0080 88 99 00 11 22 33 44 55 66 77 88 99 00 11 22 33 0090 44 55 66 77 88 99 00 11 22 33 44 55 66 77 88 99 00a0 00 11 22 33 44 55 66 77 88 99 00 11 22 33 44 55 00b0 ...