GithubHelp home page GithubHelp logo

shell_bt_nus's Introduction

Bluetooth: NUS shell transport

The Nordic UART Service (NUS) shell transport sample demonstrates how to use the :ref:`shell_bt_nus_readme` to receive shell commands from a remote device over Bluetooth®.

When the connection is established, you can connect to the sample through the :ref:`nus_service_readme` by using a host application. You can then send shell commands, that are executed on the device that runs the sample, and see the logs. See :ref:`shell_bt_nus_host_tools` for more information about the host tools available, in |NCS|, for communicating with the sample.

The sample supports the following development kits:

.. table-from-sample-yaml::

You also need an additional nRF52 development kit, like the PCA10040 for connecting using the :file:`bt_nus_shell.py` script. Alternatively, you can use :ref:`ble_console_readme` for connecting, using Linux only.

The |NCS| provides two alternatives for testing the sample:

After programming the sample to your development kits, test it by performing the following steps:

  1. Start a console application, like PuTTY, and connect through UART to the shell_bt_nus application running on the development kit to check the log. See :ref:`gs_testing` for more information on how to connect with PuTTY through UART.

  2. Run the following command in the |NCS| root directory to install the script dependencies:

    pip install --user -r scripts/shell/requirements.txt
  3. Connect to your PC the nRF52 development kit meant to use the :file:`bt_nus_shell.py` script.

  4. Start the :file:`bt_nus_shell.py` script with the correct parameters, for example:

    bt_nus_shell.py --name BT_NUS_shell --com COM237 --family NRF52 --snr 682560213
  5. Open a console application, like PuTTY, and open a new session, setting the :guilabel:`Connection Type` to :guilabel:`Raw` and the :guilabel:`Destination Address` to 127.0.0.1:8889.

  6. Press Enter in the terminal window. A console prompt is displayed showing a log message that indicates the active connection.

  7. Enter the commands that you want to execute.

See :ref:`ble_console_readme` for more information on how to test the sample using the Bluetooth LE Console.

This sample uses the following |NCS| libraries:

In addition, it uses the following Zephyr libraries:

shell_bt_nus's People

Contributors

selinks avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.