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 RC Car

Other Parts Discussed in Thread: CC2540

Hello,

My understanding is the RC Car example is written using the cc2540 as the central due to ios5 limitations. (that is how I read the quote below) Now that ios6 supports peripherals, is there an updated version of this example where the cc2540 is the central and the ios device the peripheral? If I am understanding correctly, it seems it would encourage best practices.

" An application was developed for controlling the car using Apple's iPhone 4S, one of the early commercially available BLE enabled devices. As of the time of writing, iOS presented some limitations to the BLE capabilities, which did to a large extent dictate the overall system design. The operating system would only allow for the device to act as a central device, and it could not maintain a GATT server. This is the soul reason why the car is a peripheral role unit and why it has the GATT server. The interface contains two RC-style knobs for steering and throttle, a button to scan and connect, a status icon displaying the connection state and a switch to enable accelerometer control. "

if it would help writing the car as the central, I might be able to help with the ios peripheral side.

  • Hi Matthew,

    To answer your question, there is not update to the RC Car example, and unforunately it is not very high up on our todo list either.

    If you do give it a try, please keep us posted on your progress!

    Cheers,

    Fredrik

  • Thanks Fredrik and I might give it a shot.  Also, do you know of any other examples in addition to the SimpleBLECentral where the cc2540 acts as the central? What would be ideal is a central that receives subscriptions and performs writes.  (unless I'm not understanding correctly, it seems the SimpleBLECentral only does read/read responses, as per line 575 https://github.com/lee-wei/CC2540/blob/master/Projects/ble/SimpleBLECentral/Source/simpleBLECentral.c#L5)