Error when trying to connect to beagle bone

1 view (last 30 days)
KP
KP on 1 Jun 2017
Answered: sanjaay on 9 Jun 2025
I am getting a lot of errors when I try to make a beagle bone object. I there a problem with the connection or do I have to install a package to the beagle bone?
>> bbb =beaglebone
Warning: Cannot determine version number of the board.
> In beaglebone/getBoardRevision (line 1647)
In beaglebone (line 276)
Warning: Cannot read the board serial number.
> In beaglebone/getBoardSerialNumber (line 1658)
In beaglebone (line 278)
Warning: Error while calling message/getString:
> In beaglebone.internal.errorhandler
In beaglebone/recvResponse (line 1315)
In beaglebone/enableADC (line 965)
In beaglebone/getAvailablePeripherals (line 1534)
In beaglebone (line 289)
Unable to find message key 'ERRNO4294967295' in catalog
'beagleboneio:server'.
Error in beaglebone.internal.errorhandler
Error in beaglebone/recvResponse (line 1315)
err =
beaglebone.internal.errorhandler(errno);
Error in beaglebone/enableADC (line 965)
obj.recvResponse();
Error in beaglebone/getAvailablePeripherals (line 1534)
obj.enableADC;
Error in beaglebone (line 289)
obj = getAvailablePeripherals(obj);
Error using beaglebone/recvResponse (line 1316)
Error in beaglebone/enableADC (line 965)
obj.recvResponse();
Error in beaglebone/getAvailablePeripherals (line 1534)
obj.enableADC;
Error in beaglebone (line 289)
obj = getAvailablePeripherals(obj);
  3 Comments
Nat AK
Nat AK on 4 Jan 2018
Were you able to resolve this error? I have the same issue. Using 2016b. Thanks!
Tomas Pospíchal
Tomas Pospíchal on 31 Jan 2019
Running Beaglebone Black on Debian Jessie 8.9. This error is probably caused by reposponse from Matlab server running on beaglebone hw
resp =
1×3 uint32 row vector
4294967295 23 0
If you do not call funcion enableADC, this error doesn't occur.
Quick fix if you do not need Analog to Digital conversion
-> comment out line 1534 (obj.enableADC) in beaglebone support package
in function:
obj = getAvailablePeripherals(obj);
on line:
1532 % Find available Analog input pins
1533 obj.AvailableAnalogPins = {obj.BoardInfo.ADC.Name};
1534 %obj.enableADC;
This is caused by change with 4.x kernel in system device tree for overlays currently enabled by the cape manager [1]
from:
/sys/devices/bone_capemgr.*/slots
to:
/sys/devices/platform/bone_capemgr/slots
If you need this functionality you should be able to enable it by sending commad to your beaglebone

Sign in to comment.

Answers (4)

Gaurav Ahuja
Gaurav Ahuja on 8 Jun 2017
Edited: Walter Roberson on 11 Jul 2017
If this is the first time you are connecting with the board please use the following
bbb = beaglebone(deviceaddress,username,password)
use `bbb = beaglebone` if you want to reconnect to the same hardware. Find more details on this and on the default `username` and `password` in the following documentation link:
generally `bbb = beaglebone` should work as it can use this information from the connection that was created during the setup process as well. But if somehow you skipped the 'setup hardware' by clicking 'setup later', this will not be possible.
i request you to try this once. If explicitly specifying the deviceaddress, username and password do not work for you, revert back with your observations.

RoyL
RoyL on 11 Jul 2017
Edited: Walter Roberson on 7 May 2018
I got a different error for 2017a version to connect to bbb.
>> bbb = beaglebone('192.168.7.2','root', 'root')
Error using beaglebone (line 236)
Cannot establish an SSH connection to the board with device address "192.168.7.2", user name "root", password "root". Check if device
address, user name and password are correct.
I verified the ssh connection from command line and it's working so it's not the ssh issue.
  3 Comments
lukman zainudin
lukman zainudin on 25 Sep 2018
I verified the ssh connection from command line and it's working so it's not the ssh issue.
Can I know how to verified the ssh connection? I have same issue from above, cannot connect to beaglebone hardware.
John Winkler
John Winkler on 27 Sep 2018
I have had a similar issue and what I learned from the support team is that the OS image for Beagleboard Black stopped being supported by Mathworks beyond Debian image 8.7 back in 2015. This stopped me moving forward because I need Debian OS image 9.1 or later to get the signed drivers needed by Windows 10. The developer team was made aware of this issue but I am not aware of an estimated date for a new produce support release. I spent two hours on the phone with the support team trying out all of their suggestions. It ended up with the later Debian images not yet supported by Mathworks development team.
I was also told that a workaround for this is to download the Simulink Coder Support Package for Beaglebone Blue hardware, use the hardware settings for the Blue, but then connect to your Black. Hacking the Blue workflow to make the compiler shipped with the 9.x Debian image compile the files on the "target" not the "host". The you get to do some more work in Simulink..... To use the board specific blocks in Simulink you navigate to Model Configuration Parameters - Code Generation - Custom Code then under Include Directories add in the additional paths for C:\ProgramData\MATLAB\SupportPackages\R20xx\toolbox\target\supportpackages\arm_cortex_a\include and C:\ProgramData\MATLAB\SupportPackages\R20xx\toolbox\target\supportpackages\arm_cortex_a\src then under Source Files in the Model Configuration you add the your source files like MW_led.c that are in the src directory you just added. I hope you get to the Simulink stuff after you do the BBBlue support package.

Sign in to comment.


Sachin Umbarkar
Sachin Umbarkar on 25 Jun 2019
Getting following error while connecting the beaglebone Black hardware with MATLAB R2107B. Requested for help.
>> beaglebone_black
Error using matlabshared.internal.ssh2client
Error connecting to SSH server at 192.168.7.2
Error in beaglebone_black (line 152)
obj.Ssh = matlabshared.internal.ssh2client(hostname, ...

sanjaay
sanjaay on 9 Jun 2025
It looks like you're facing several communication issues between MATLAB and your BeagleBone board when trying to create a beaglebone object. Here are a few steps to help resolve the problem:
1. Check Network Connection
Ensure that your BeagleBone is properly connected to your host computer or local network. If you're using USB-over-IP, make sure the virtual network interface is up and correctly configured.
You can test the connection by running:
ping 192.168.7.2
(Replace with your BeagleBone’s IP address if it differs.)
2. Verify Required Support Package
Make sure the MATLAB Support Package for BeagleBone® Black Hardware is installed and configured correctly.
To install it (if not already):
matlab.addons.install('BeagleBoneBlackSupport.mlpkginstall')
Or go to:
Home > Add-Ons > Get Hardware Support Packages
→ Search and install BeagleBone Black Support Package
3. Enable SSH and Update Board
The warnings suggest issues retrieving board metadata (serial number, revision). To resolve that:
  • Enable SSH on your BeagleBone (systemctl start ssh)
  • Ensure your board is up to date:
sudo apt update && sudo apt upgrade
Also, check whether the beaglebone-universal-io and cape-bone-iio overlays are enabled if you plan to use ADC features.
4. Run Diagnostic Command
You can test the support package installation and communication with:
bbb = beaglebone()
If this still throws errors, try adding:
bbb = beaglebone('192.168.7.2', 'username', 'password')
Make sure the username/password matches the BeagleBone's Linux login.
5. Permissions and Serial Port Access
Errors like:
Unable to find message key 'ERRNO4294967295'
Often point to permission issues or version mismatches. Ensure:
  • Your MATLAB version is compatible with your BeagleBone OS image.
  • You are running MATLAB with administrator rights (especially on Windows).
If the issue persists, try reflashing the BeagleBone with the latest Debian image recommended by MathWorks and go through the setup again.
Note:
You can refer to the official documentation here:
Let me know if you'd like help with flashing or verifying the board setup.

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!