File: nxt-test.rst

package info (click to toggle)
nxt-python 3.5.1-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 812 kB
  • sloc: python: 6,857; xml: 22; makefile: 20; sh: 4
file content (72 lines) | stat: -rw-r--r-- 1,567 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
Manual page for nxt-test
========================

Synopsis
--------

**nxt-test**
[**--backend** *NAME*]
[**--config** *NAME*]
[**--config-filename** *PATH*]
[**--name** *NAME*]
[**--host** *ADDRESS*]
[**--server-host** *HOST*]
[**--server-port** *PORT*]
[**--filename** *FILENAME*]
[**--no-sound**]
[**--log-level** *LEVEL*]

Description
-----------

:command:`nxt-test` tests connection with a NXT brick. It allows one to debug
the NXT-Python setup.

The NXT brick can be connected using USB, Bluetooth or over the network.


Options
-------

--no-sound
   Be quiet, disable the sound test.

--log-level LEVEL
   Set the log level. One of **DEBUG**, **INFO**, **WARNING**, **ERROR**, or
   **CRITICAL**. Messages whose level is below the current log level will not
   be displayed.


.. include:: common_options.rst

Examples
--------

Running for a NXT brick connected using USB::

   $ nxt-test
   Finding brick...
   NXT brick name: NXT
   Host address: 00:16:53:01:02:03
   Bluetooth signal strengths: (0, 0, 0, 0)
   Free user flash: 48480
   Protocol version 1.124
   Firmware version 1.29
   Battery level 8433 mV
   Play test sound...done

To report problems, please enable debug logs::

   $ nxt-test --log-level DEBUG

When debugging Bluetooth connection problems, try to give the address
explicitly::

   $ nxt-test --log-level DEBUG --host 00:16:53:01:02:03

The address can be found in the "Settings" menu, under "NXT Version" screen,
it is the last line labeled "ID". Add the colon to separate each pair of
digits.


.. include:: common_see_also.rst