Main Content

beaglebone_black

Create connection to BeagleBone Black hardware

Add-On Required: This feature requires the Embedded Coder Support Package for BeagleBone Black Hardware add-on.

Description

h = beaglebone_black creates a connection to the BeagleBone® Black hardware, obj. This connection reuses the IP address, user name, and password from most recent connection to the BeagleBone Black hardware.

example

h = beaglebone_black(ipaddress) creates a connection to the BeagleBone Black hardware using the IP address that you specify.

example

h = beaglebone_black(ipaddress,username,password) creates a connection to the BeagleBone Black hardware using the IP address, user name, and password that you specify. The BeagleBone Black hardware has two default user names: 'debian' and 'root'. For 'debian', the default password is 'temppwd'. For 'root', the default password is empty: ''. The 'root' account has superuser powers at the command line. It is a good security practice to create a strong root password.

example

Examples

collapse all

To create a connection to the BeagleBone Black hardware, in the Command Window, enter:

BBB = beaglebone_black
BBB = 

  beaglebone_black with properties:

    DeviceAddress: '192.168.7.2'
             Port: 22

This connection reuses the IP address, user name, and password from most recent connection to the BeagleBone Black hardware.

The resulting object, h, represents the BeagleBone Black hardware.

To create a connection to the BeagleBone Black hardware that connects to a network using the Ethernet port on the board, complete the following steps.

Connect the BeagleBone Black hardware and the host computer to a network that has DHCP services.

Get the IP address of the Ethernet port on the BeagleBone Black hardware. To get the IP address, use the command-line on the board or use an SSH command-line session.

Use the Command Window to create a connection to the BeagleBone Black hardware at the IP address that you specify.

BBB = beaglebone_black('172.28.201.43')
BBB = 

  beaglebone_black with properties:

    DeviceAddress: '172.28.201.43'
             Port: 22

The resulting object, h, represents the BeagleBone Black hardware.

To create a connection to the BeagleBone Black hardware that connects to a network using the Ethernet port on the board, complete the following steps.

Connect the BeagleBone Black hardware and the host computer to a network that has DHCP services.

Get the IP address of the Ethernet port on the BeagleBone Black hardware. To get the IP address, use the command-line on the board or use an SSH command-line session.

Create a connection to the BeagleBone Black hardware at the IP address that you specify.

BBB = beaglebone_black('172.28.201.43','debian','temppwd')
BBB = 

  beaglebone_black with properties:

    DeviceAddress: '172.28.201.43'
             Port: 22

The resulting object, h, represents the BeagleBone Black hardware.

The BeagleBone Black hardware has two default user names: 'debian' and 'root'. For 'debian', the default password is 'temppwd'. For 'root', the default password is empty: ''. The 'root' account has superuser powers at the command line. It is a good security practice to create a strong root password.

Input Arguments

collapse all

The IPv4 address of the BeagleBone Black hardware, specified as a character vector. When you use the supplied USB cable to connect the host computer to the BeagleBone Black hardware, the IP address is 192.168.7.2. To connect over an Ethernet cable instead a USB cable, use this argument to specify the IP address of the Ethernet port on the BeagleBone Black hardware.

Example: '192.168.7.2'

Data Types: char

The user name of the root user on the BeagleBone Black hardware, specified as a character vector.

Example: 'debian'

Data Types: char

The password of the root user on the BeagleBone Black hardware, specified as a character vector.

Example: 'temppwd'

Data Types: char

Output Arguments

collapse all

Connection to the BeagleBone Black hardware, returned as an object handle.