using Bluetooth model with XMOS

Sub forums for various specialist XMOS applications. e.g. USB audio, motor control and robotics.
Post Reply
SamAtNewcastle
Junior Member
Posts: 4
Joined: Thu Feb 04, 2016 4:47 pm

using Bluetooth model with XMOS

Post by SamAtNewcastle »

Hello,

I am new XMOS user in this forum.

Can someone guide me how can I get libraries for using Bluetooth Low Energy?

Is there are any specific compatible model for XMOS? or I can just select one from the market?

Thanks

Sam


User avatar
mon2
XCore Legend
Posts: 1913
Joined: Thu Jun 10, 2010 11:43 am
Contact:

Post by mon2 »

Hello Sam and welcome to the XCORE user forum. Personally not aware of any library that will Plug & Play with BLE but here are my 2 bits on a possible solution.

First some comments & questions:

1) Why are you using XMOS ? For fast / low latency GPIO ? Certainly review the current draw of the overall project if you intend to battery power this black box solution. There may be other more suitable options.

2) We are also users of MBED enabled technology (mbed.org) and hope that one day the XMOS devices with the SiLabs ARM processor + XMOS CPU cores will be supported on the mbed platform. That will be a very nice advancement for quick prototyping. Moving forward, consider to marry a low power, low cost CPU that is mbed enabled (ie. drag & drop BLE libraries) to quick perform a proof of concept:

https://developer.mbed.org/teams/Bluetooth-Low-Energy/

Now, if you need the best of both worlds, why not stitch an XMOS CPU with a mbed enabled CPU to allow you to achieve your goal ? Just an idea but you could in a few hours have the proof of concept operational. XMOS cannot be beat for the high end audio nor ultra low latency GPIO pin use (unless you are working with FPGA devices).

On this topic of BLE, we brought in the latest BGM111 from SiLabs and also the latest tool from Cypress + Adafruit BLE sniffer for our internal R&D:

BGM111 URL:
http://www.silabs.com/products/wireless ... odule.aspx

You could easily take the proven I2C or SPI code for the XMOS devices and proceed to chat with the BGM111 module. This module is expected to support BLE 4.2 spec via s/w upgrade.

Cypress BLE:
http://www.cypress.com/products/psoc-4- ... ooth-smart

This solution is apparently already BLE 4.2 compliant so you could source the related boards at low cost and then again marry with XMOS using SPI or I2C interface for inter-cpu communications.

Adafruit BLE sniffer:
https://www.adafruit.com/product/2269

Highly recommended for a sanity check to see what is going on between BLE devices !!

There are many other solutions that are similar in that a module with a SPI, I2C and/or UART interface could be used to send / receive data with the target BLE module.

XMOS CPU with Cortex-M3 (Silabs) + XMOS Cores (hope to see mbed enabled in the future):
http://www.xmos.com/products/silicon/xcore-xa/xa-series

Hope this helps.

Kumar
SamAtNewcastle
Junior Member
Posts: 4
Joined: Thu Feb 04, 2016 4:47 pm

Post by SamAtNewcastle »

Thank you mon2 for your advices and suggestions.
Let me explain in brief, why I need to use XMOS;

I want to using it for operating two tasks in parallel.

1. Receiving data from UART and saving it in to the buffers. in the starting time let is say we write in to the buffer1 because I have plan to have two buffers. buffer1 and buffer2

2. Reading data from buffer2 and send it to the GPIO for controlling the uLEDs.

While writing in to the buffer1, reading from buffer2, then switch between the buffers.

Now I am using Raspberry pi for that (Quad processor) but I need to build my own PCB board controller and lower power consumption. During my search on the web I saw that XMOS maybe will sort out my problem.

I will appreciate If you have better suggestion. I faced to problem with using XMOS;
1. How to connect BLE with the XMOS.
2. How to programmed read from UART?

Regards
Sam
Post Reply