Forum | Documentation | Website | Blog

Skip to content
Snippets Groups Projects
  1. Dec 12, 2016
  2. Sep 28, 2016
  3. Sep 20, 2016
  4. Sep 18, 2016
    • Alexandre Bailon's avatar
      Add the TCP/IP controller · 32b56486
      Alexandre Bailon authored
      
      Add the TCP/IP controller to connect to module through TCP/IP.
      Currently, a module is detected by using avahi.
      To be discovered, the module must register a service of type "_greybus._tcp".
      The TCP/IP controller will create one socket per connection,
      and use an unique port number to open each of them.
      
      Signed-off-by: default avatarAlexandre Bailon <abailon@baylibre.com>
      32b56486
    • Alexandre Bailon's avatar
      controller: create thread per connection · 98f6bb7c
      Alexandre Bailon authored
      
      Currently, the read of data commming from module is made at interface level.
      It is required for controller that only support one stream per interface.
      But controllers may have one stream per connection and so,
      we can create a thread to wait and read incoming data for each connection.
      
      Signed-off-by: default avatarAlexandre Bailon <abailon@baylibre.com>
      98f6bb7c
    • Alexandre Bailon's avatar
      controller: Add connection callbacks · 06eab8dd
      Alexandre Bailon authored
      
      Currently, the connection between the host and a module
      can only be created after the module has been detected or
      during the interface create. For some controller, we don't
      have the choice because they only have a stream that need
      to open before any other operation.
      But some controller (e.g. TPC/IP) can use more than one stream.
      Add connection_create() and connection_destroy() callbacks to
      let that kind of controller create more than one connection.
      
      Signed-off-by: default avatarAlexandre Bailon <abailon@baylibre.com>
      06eab8dd
    • Alexandre Bailon's avatar
      controller: Add a new callback to stop the event loop. · a41226ba
      Alexandre Bailon authored
      
      The event is mainly used for module detection.
      The controller create a thread to run the loop and generate
      the hotplug and hot unpulg events.
      But an event loop may prevent the application to exit,
      because it use methods that prevent thread to be cancelled.
      Add a new callback that will be called before to cancel the
      thread to put the event loop in a cancellable state.
      
      Signed-off-by: default avatarAlexandre Bailon <abailon@baylibre.com>
      a41226ba
  5. Sep 16, 2016