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.

Sending String Messages and Drivers

Other Parts Discussed in Thread: CC2540

I am working with the CC2540 Mini Development Kit. I am wondering if a string message can show up in the BTool Application window as a value or another category.  Also, just to double check, there isn't a driver we can install on a Mac to use the dongle or is there? If there is a driver we can use for the Mac, where can we download it? Thank you.

 

Serena

  • Hi,

    If by string message you mean an attribute you've read or written, then you surely can - simply by switching between ASCII/Hex/Decimal radio buttons.

    Otherwise, please clarify what string message you want to show.

    BR, 

    Oleg 

  • Hi,

    I would like a message declaring when the keyfob moves in the x, y, or z direction instead of the value in the keyfob demo code. I wasn't sure if string messages appear in the BTool for there were no examples in the demos for the dongle and keyfob. There are normally number values that would appear in the notifications.  Would I also have to include other .h files that are not in the code such as stdio.h to include string messages? Thanks.

    Serena

  • Hi,

    If I get it right, you need to "display" those message in HCI message window (the one to the left in BTool) when notifications come through. But I think it is impossible to format byte string in HCI message window, as it displays raw hex values (packet content). 

     

    BR, 

    Oleg

  • Hi Oleg,

    I wanted to check if it is possible or not to "display" string messages in the BTool HCI message window to implement a HelloWorld Program. I assumed it wouldn't be possible since I could not find any examples. Maybe I will change the accelerometer values depending on the direction such as a value of 1 when the accelerometer moves in the x direction, 2 for the y direction, and 3 for the z direction. Could you advise me on where in the code I would have to look to implement this idea? I would assume it is in the accelRead method but I am not too sure where the accelerometer outputs the values. Thank you.

    Serena

  •  Hi,

    >>if it is possible or not to "display" string messages in the BTool HCI message window to implement a HelloWorld Program.

    'fraid it is not possible, because HCI message window shows raw hex.

    ed: of course one still can develop a task-specific application using TI dongle board via HCI (I've used BLED112 dongle and VC for rather similar task), but it is way too impractical.

     >>I would assume it is in the accelRead method 

    You're quite right.

     

    Accel_SetParameter(ACCEL_X_ATTR, sizeof ( int8 ), &x);

    sets X_ATTR to value contained in x, whatever you put there. So just modify that value to your liking - e.g. call accReadAcc as they do in the example, compare x to new_x and set x to indicate direction.

     

    BR,

    Oleg