logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

nxt-test - Test the NXT-Python setup

Author

       This program is part of NXT-Python which is currently maintained by Nicolas Schodet.

Common Options

       Those options are common to programs using NXT-Python.

       --backendNAME
              Enable  given  backend.  Can  be  used  several  times  to  enable  several backends.  One of usb,
              bluetooth, socket or devfile.

       --configNAME
              Name of configuration file section to use.

       --config-filenamePATH
              Path to configuration file. Can be used several times to use several configuration files.

       --nameNAME
              Name of NXT brick (for example: NXT). Useful to  find  the  right  brick  if  several  bricks  are
              connected.

       --hostADDRESS
              Bluetooth address of the NXT brick (for example: 00:16:53:01:02:03).

       --server-hostHOST
              Server address or name to connect to when using socket backend.

       --server-portPORT
              Server port to connect to when using socket backend.

       --filenameFILENAME
              Device filename (for example: /dev/rfcomm0), when using ~nxt.backend.devfile backend.

       See nxt-python.conf(5) documentation for better explanation of the options to find the NXT brick.

Description

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.

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.

Name

       nxt-test - Test the NXT-Python setup

Options

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

       --log-levelLEVEL
              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.

See Also

nxt-python.conf(5)

       NXT-Python documentation <https://ni.srht.site/nxt-python/latest/>

Synopsis

nxt-test   [–backendNAME]   [–configNAME]  [–config-filenamePATH]  [–nameNAME]  [–hostADDRESS]
       [–server-hostHOST] [–server-portPORT] [–filenameFILENAME] [–no-sound] [–log-levelLEVEL]

See Also