This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

BLE observer or central to scan iBeacon signal example for CC1350.

Other Parts Discussed in Thread: CC2541, CC1350, BLE-STACK, CC2640R2F, CC2640

Dear TI,

i wan't to find my things with ibeacon method, i have a 2*CC1350 Evaluation kit and one CC2541 based HM-10 module. i want to read cc1350 and HM-10 module distance through cc1350 Evaluation kit. so i need  BLE observer or central to scan iBeacon signal example for CC1350

Note: i already find RSSI value betweeen two CC1350 evaluation kit by using rfWSNconcentrator and rfnode examples. but my HM-10 is 2.4 GHZ based BLE device so i want to check my cc1350 in 2.4GHZ BLE observer.

thank you

with regards

kannannatesh

  • Hi,
    You should use the central or observer examples in the BLE-Stack in order to scan for advertisements (even as formatted as ibeacons)
  • Dear  

    i was search in my CCS BLE-Stack examples, there is not available in Central or Observer examples that shows only host_test and simple_peripheral examples.  i have attach my window for your reference.

     

    please clear my doubts:

    how can i change my CC1350 launchpad as a ibecon at 2.4GHZ.

    how to receive ibeacon RSSI from another CC1350 launchpad(Observer) for find ibeacon Distance from my observer.

    what is advertisements.(i think this is any sensor data or random value, am i right or not).

    thank you

    with regards

    kannannatesh

  • Hello Natesh,

    As you are new to BLE and beacons in general I recommend you go through the simplelink academy trainings for BLE, Specifically labs "Bluetooth Low Energy Fundamentals" and "Bluetooth Low Energy Scanning and Advertising":

    http://dev.ti.com/tirex/#/?link=Software%2FSimpleLink%20CC2640R2%20SDK%2FSimpleLink%20Academy%2FBluetooth%204.2%2FScanning%20and%20Advertising

    Also please review the Bluetooth low energy Beacons Application Note (SWRA475) for more information about Bluetooth low energy beacons. TO change to beacon you simply need to change the advertisement payload.

    We do not provide a simple_central project fro CC1350. You would need to port the project from a CC2640R2F project and w do not have a guide for this that I know of. But you can use the host_test code with BTool to emulate a central device for testing (set up connection, read rssi, etc.).

  • Dear
    ya i am new for Ti, so it's make hard to work with that, but lot of people are here like you to make easy. i can't use any app for read RSSI value, i want to read RSSI value from my nodes through CC1350. Is it possible or not, because you said if i port the project from CC2640 you can't guide me. what would i do for this situation.
    thank you

    with regards
    kannannatesh
  • and I think Natesh's issue would be that he cannot find any BLE observer or central example for CC1350 to scan iBeacon device. Either you can provide the examples or show him steps to porting one from other simplelink SOC like CC2640.
  • Dear
    thanks for your support, if any one shows steps for port code from CC2640, definitely i will complete my need, and i have another one problem in rfwsnconsentrator example, if you can please help to find the solution for that.
    my concentrator is received node RSSI then i wan't to convert RSSI to distance, i was search in google, some guys are refer this calculation method for find distance,
    uint8_t distance= 10 ^ ((-32 – (latestRssi))/(10 * 2));
    here -32 is is also known as the 1 Meter RSSI.
    10&2 is a default value

    i was add this line in my code in Concentrator task .c
    static void updateLcd(void) {
    struct AdcSensorNode* nodePointer = knownSensorNodes;
    uint8_t currentLcdLine;

    /* Start on the second line */
    currentLcdLine = 1;
    uint8_t distance= 10 ^ ((-32 – (latestRssi))/(10 * 2));

    /* Write one line per node */
    while ((nodePointer < &knownSensorNodes[CONCENTRATOR_MAX_NODES]) &&
    (nodePointer->address != 0) &&
    (currentLcdLine < CONCENTRATOR_DISPLAY_LINES))
    {
    /* print to UART */
    // Display_printf(hDisplaySerial, 0, 0, "NODES RSSI.............");
    Display_printf(hDisplaySerial, 0, 0, "0x%02x %04d %d",
    nodePointer->address, nodePointer->latestRssi, nodePointer->distance);

    nodePointer++;
    // currentLcdLine++;
    }
    }

    that shows some error
    >> Compilation failure
    subdir_rules.mk:30: recipe for target 'ConcentratorTask.obj' failed
    "../ConcentratorTask.c", line 244: error #7: unrecognized token
    "../ConcentratorTask.c", line 244: error #18: expected a ")"
    "../ConcentratorTask.c", line 244: warning #179-D: variable "distance" was declared but never referenced
    2 errors detected in the compilation of "../ConcentratorTask.c".
    gmake: *** [ConcentratorTask.obj] Error 1
    gmake: Target 'all' not remade because of errors.


    what is the mistake here
    thank you

    with regards
    kannannatesh
  • For follow up questions about rfwsnconsentrator example please post a new question/thread to the correct forum: Sub-1 GHz forum.
    To port code from CC2640R2F you can simply reference the simple_peripheral to verify correct project options, etc.