Testing BLE sdr-ble-demo worked on new LimeSDR

This is encouraging - when thru one of the demos { https://github.com/DesignSparkrs/sdr-ble-demo } - installed PothosGui, and ran the example in examples/btle_printer_float32.pth
While that was running, used node ‘bleno’ simple advertising demo with a little bluetooth dongle to start advertising, and it worked! Receiver decoded:

[01:19:39.202000] : {“Address”: “0x8e89bed6”, “CRC”: “0x177bfb”, “Flags”: 6, “MAC”: “99:88:66:00:23:a1”, “Manufacturer Data”: “\x02\x15\xffffffe2\xffffffc5m\xffffffb5\xffffffdf\xfffffffbH\xffffffd2\xffffffb0`\xffffffd0\xfffffff5\xffffffa7\x10\xffffff96\xffffffe0\x00\x00\x00\x00\xffffffc5”, “Manufacturer Data UUID16”: “4c”, “SampleIndex”: 171374097, “Threshold”: 1488, “Timestamp”: 1485825579201962736}

which actually matches the advertised:
var uuid = ‘e2c56db5dffb48d2b060d0f5a71096e0’;

can make out e2 c5 6d(‘m’) b5 df fb 48(‘H’)

So, looking forward to repeating many of all your fine examples while learning :slight_smile:

1 Like

this is my repository
you can send and receive ble packet or replay ble packet

1 Like

Cool - however trying to build the project gets this error:

chuck@OSCompute1:~/src/BLESDR/build$ make
[ 33%] Building CXX object blesdr-tools/CMakeFiles/blesdr.dir/blesdr.cpp.o
In file included from /home/chuck/src/BLESDR/blesdr-tools/blesdr.cpp:27:0:
/home/chuck/src/BLESDR/blesdr-tools/…/lib/BLESDR.hpp:93:21: error: extra qualification ‘BLESDR::’ on member ‘sample_for_ADV_IND’ [-fpermissive]
std::vector BLESDR::sample_for_ADV_IND(size_t chan, uint8_t data_type, uint8_t* buff, size_t bufflen);
^
/home/chuck/src/BLESDR/blesdr-tools/…/lib/BLESDR.hpp:95:21: error: extra qualification ‘BLESDR::’ on member ‘sample_for_RAW’ [-fpermissive]
std::vector BLESDR::sample_for_RAW(uint8_t* buff, size_t bufflen);
^
/home/chuck/src/BLESDR/blesdr-tools/…/lib/BLESDR.hpp:97:21: error: extra qualification ‘BLESDR::’ on member ‘sample_for_iBeacon’ [-fpermissive]
std::vector BLESDR::sample_for_iBeacon(size_t chan, uint8_t* uuid, uint16_t Major, uint16_t Minor);
^
/home/chuck/src/BLESDR/blesdr-tools/…/lib/BLESDR.hpp:99:21: error: extra qualification ‘BLESDR::’ on member ‘sample_for_Packet’ [-fpermissive]
std::vector BLESDR::sample_for_Packet(size_t chan, lell_packet pocket);
^
/home/chuck/src/BLESDR/blesdr-tools/blesdr.cpp: In function ‘void lell_print(const lell_packet*)’:
/home/chuck/src/BLESDR/blesdr-tools/blesdr.cpp:333:42: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
_dump_24("CRCInit: ", pkt->symbols, 22);
^
/home/chuck/src/BLESDR/blesdr-tools/blesdr.cpp: In function ‘int main(int, char**)’:
/home/chuck/src/BLESDR/blesdr-tools/blesdr.cpp:439:21: error: ‘strlen’ was not declared in this scope
if (strlen(optarg) != 32) {
^
/home/chuck/src/BLESDR/blesdr-tools/blesdr.cpp:445:44: warning: format ‘%x’ expects argument of type ‘unsigned int*’, but argument 3 has type ‘uint8_t* {aka unsigned char*}’ [-Wformat=]
sscanf(optarg + 2 * i, “%02x”, &uuid[i]);
^
make[2]: *** [blesdr-tools/CMakeFiles/blesdr.dir/blesdr.cpp.o] Error 1
make[1]: *** [blesdr-tools/CMakeFiles/blesdr.dir/all] Error 2
make: *** [all] Error 2

thanks , the issue is fixed

Great - I got it to compile also but deleted and pulled your code again - compiled OK.
Thanks!

To save time and bandwidth, instead of deleting, if I screw up badly enough and want a clean pull I do the following:

git fetch origin
git reset --hard origin/master
git pull

N.B. WARNING: This will throw away your local changes and overwrite with whatever is on the origin.