Loading ...
Sorry, an error occurred while loading the content.

4705Re: [nuttx] About Bluetooth Support

Expand Messages
  • Yiran Liao
    Nov 12, 2013
    • 0 Attachment
      Greg,

      Per my rough understanding on your words, is it possible to have a clear architecture that supports both built-in stack and external module?
      May be similar as this silly figure?

              +-----+
              | App |
              +-----+
                 |
                 v
      +-----------------------+
      | General Bluetooth API |                           App Layer
      +-----------------------+
                 |
                 v
      ------- syscall -------
                 |
      - - - - -  +  - - - - - - - - - - - - - - - - - - - - - - - -
                 |
                 v
      +---------------------------+      or
      | Bluetooth Abstract Device | --------------+
      +---------------------------+               |       OS Layer
                 |                                |
                 v                                v
      +----------------------------+     +-----------------+
      | Bluetooth Module Interface |     | Bluetooth Stack |
      |         (e.g. uart)        |     +-----------------+
      +----------------------------               |
                 |                                v
                 v                       +-----------------------------------+
           Hardware Module               |   Bluetooth Hardware Interface    |
                                         |         (e.g. sdio)               |
                                         +-----------------------------------+
                                                  |
                                                  v
                                               Hardware

      There could be mistakes, please correct me if I am wrong.
      However, suppose so, there shall be a lot of wrappers, the more layers the software divides, the more possible cost of RAM could be.

      Thanks,
      Librae

      On Nov 12, 2013, at 10:11 PM, <spudarnia@...> <spudarnia@...> wrote:

      > The benefits of running a stack inside a BT microcontroller are:

      I think that both solutions have merit.  I would like to see NuttX be very scalable.  I would like to see NuttX usable in the tiniest platform where memory usage is critical and where the bluetooth module is probably the better solution.

      But I would also like to see NuttX usable in more resource rich environment where there is plenty of memory and plentry of processing power.  In that case, the lower cost hardware would be the important issue and so having the stack as part of the RTOS would be preferred.

      I don't think that these two options are mutually exclusive.  But I think the flexibility to use either has to be designed in from day 1.

      We have a similar situation with wireless and with TCP/IP.  NuttX has a built-in TCP/IP stack.  David Sidrane recently went through the exercise of getting an external module with its own TCP/IP stack working with NuttX.  That exercise was painful because the TCP/IP interface was not designed to work with either built-in in or external TCP/IP stacks.

      Greg


    • Show all 27 messages in this topic