beaglebone
Connection to BeagleBone Black hardware
Add-On Required: This feature requires the MATLAB Support Package for BeagleBone Black Hardware add-on.
Description
This object represents a connection from the MATLAB® software to the BeagleBone® Black hardware. After you create the object, you can use the object to interact with the hardware and its peripheral devices by using this object with the functions listed in Object Functions. You can also use the object to interact with the devices attached to the hardware, such as a web camera, I2C buses, serial devices, and SPI channels.
Creation
Description
creates a
connection from the MATLAB software to the BeagleBone Black hardware. This connection reuses the IP address, user name,
and password from most recent connection to the BeagleBone Black hardware.bbb
= beaglebone
creates a connection to the BeagleBone Black hardware using the IP address, user name, and password that
you specify. bbb
= beaglebone(deviceaddress
,username
,password
)
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
Properties
Object Functions
showPins | Show diagram of GPIO pins |
showAllPins | Show diagram of all pins |
clear | Terminate connection to BeagleBone Black hardware |
configureDigitalPin | Configure GPIO pin as input or output |
readDigitalPin | Read logical value from GPIO input pin |
writeDigitalPin | Write logical value to GPIO output pin |
readVoltage | Read voltage from analog input pin |
serialdev | Connection to serial device on BeagleBone Black hardware |
enableSerialPort | Enable serial interface |
enableI2C | Enable I2C interface |
i2cdev | Connection to device on BeagleBone Black I2C bus |
scanI2CBus | Scan I2C bus device addresses |
system | Run command in Linux shell on BeagleBone Black hardware |
openShell | Open terminal on host computer for Linux shell on BeagleBone Black hardware |
getFile | Transfer file from BeagleBone Black hardware to host computer |
putFile | Transfer file from host computer to hardware |
deleteFile | Delete file from hardware |
Examples
Version History
Introduced in R2015a