Documentation Center

  • Trials
  • Product Updates


LEGO MINDSTORMS NXT Receive via Bluetooth Connection

Receive data from another NXT brick over Bluetooth


Simulink Support Package for LEGO MINDSTORMS NXT Hardware


Receive data from another NXT brick over the built-in Bluetooth® device. The model running on the other NXT brick must contain a Send via Bluetooth Connection block.

To establish multiple channels between the two NXT bricks, use multiple pairs of Bluetooth blocks, and set the Mailbox parameters for each pair to a unique number. This approach cannot be used to establish communication between more than two NXT bricks.

    Note:   Because External mode relies on a Bluetooth connection between the host computer and the NXT brick, you cannot use External mode with models that contain a Send via Bluetooth Connection block or a Receive via Bluetooth Connection block.

Dialog Box


Set the Mailbox parameter in both the Send via Bluetooth Connection and Receive via Bluetooth Connection blocks to the same number.

Data type

Match the Data type parameter with the data type of the incoming data.

Message size (elements)

Match the Message size (elements) parameter with the number of elements in the incoming data. For example, if the data type of the incoming data is single and the dimensions are [2x2], set the Message size (elements) parameter to single and set the Message size (elements) to 4.

Sample time

Specify how often the block reads buffer values.

Smaller values require the processor to complete the same number of instructions in less time, which can cause task overruns.

See Also

| |

Related Examples

External Web Sites

Was this topic helpful?