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.

Broadcasting custom data from IOS to cc2540

Other Parts Discussed in Thread: CC2540

Hi,

I want to make an iPhone broadcast dynamic custom data to some cc2540 devices which are scanning.

In the past we've had a cc2540 as broadcaster which connects to the mobile phone, gets the data to broadcast and then broadcasts the data but we have some range problems with this solution. So we thought it might be a better solution to have the mobile phone broadcasting, because tests have already shown that we get a much better range with that.

The problem is we haven't found a way to have an iPhone broadcast custom data in the manufacturer data field.

So here are some ideas:

Abuse the name field (which is available to broadcast in ios) to broadcast our custom data. But I'm unsure from reading the bluetooth specification 4.0 if this is permitted.

Listen to a connection between the ios and one of the cc2540 devices (in peripheral role) like the sniffer does to obtain the necessary information. Is there a way to include this functionality to simpleblePeripheralObserver?

Or do you know a way (besides iBeacon) to broadcast custom data with an iPhone?

thanks in advance

Robin

  • Hello. I would recommend posting this in an Appleforum. We don't support iOS development here.
  • Hi Tim.
    Okay, but we found out we can't use the solution concerning the iOS device.
    I'm asking again about obtaining packets from another connection like the sniffer does. The devices that shall obtain the packets are cc2540.
    Is this the right place to ask or shall I open a new thread?

    Thank you,
    Robin
  • Are you asking how to scan for advertisements? This can be done by any cc254x device acting as a broadcaster or a central. See the simpleBLEBroadcaster or simpleBLECentral projects.
  • No, I want an observer to receive the packets sent from another central device to another peripheral device like the packet sniffer does it. Is there a way to include this functionality into a simplePeripheralObserver project?

  • This is not possible using the TI BLE stack. The packet sniffer software bypasses the stack and controls the radio directly. You would not be able to run this at the same time as the BLE stack. The best you could do is alternate between running the stack and running as a packet sniffer.

    We would need to get some license agreements in place in order to share the packet sniffer software in order to share the packet sniffer software. I would recommend getting in touch with your local TI sales engineer if this is something you want to do.