Rapberry Pi connection problem; Error raspi; Cannot establish a TCP/IP connection

3 vues (au cours des 30 derniers jours)
Zuzanna
Zuzanna le 11 Nov 2015
I'm working on Matlab 2015a with support package for raspberry pi; Windows 7; Raspberry Pi 2 B
Rasbian Wheezy is downloaded from www.raspberrypi.org. Simulink (blinking led example) is working; Simulink (camera example) not; Writing programs in command window - not. The worst is that raspi is not working.
mypi=raspi('192.168.0.12','pi','raspberry')
Error using raspi (line 169)
Cannot establish a TCP/IP connection to the board with device address "192.168.0.12".
Caused by:
Error using raspi (line 165)
Cannot create a communication link with the remote server. Please
check the input arguments(ADDRESS and PORT) and make sure the server
is running.
Additional Information: Unable to connect, because
     the target machine actively refused it.
Everything is connected properly, IP address checked in n-map; ping is working, putty working.
I tried downloading Raspian Wheezy also from Matlab. Than N-map cannot find raspberry in my network at all; test connection fails; tried SD card setup 3 times - all failes. Ack LED blinks around 5sec than stops, the other is solid red all the time.
Warning: Could not detect the Raspberry Pi hardware in allotted time.
Try using "Test Connection" button.
> In raspi.setup.RaspberryPiFirmwareUpdate/configureNetwork (line 404)
In raspi.setup.internal.executeRaspberryPiConnectHardware (line 38)
In hwconnectinstaller.Step/next (line 169)
and
>> mypi=rspi
Error using raspi (line 157)
Cannot establish an SSH connection to the board with device address
"raspberrypi-zuza".
Caused by:
Error using raspi (line 153)
Error executing command: Unable to open connection:
Host does not exist
Help!!!

Réponses (2)

Zuzanna
Zuzanna le 15 Nov 2015
Ok, I know the answer..
Raspberry Pi 2 B requires 1,2A power supply.
(https://www.raspberrypi.org/documentation/hardware/raspberrypi/power/README.md)
If you connect your Raspberry to your USB 2.0 than some parts are working, the other not...
Max. current:
  • 0.5 A (USB 2.0)
  • 0.9 A (USB 3.0 & 3.1)
  • 1.5 A (USB BC 1.2)
  • 3 A (USB Type-C)
  • Up to 5 A (USB-PD)
(https://en.wikipedia.org/wiki/USB)
  2 commentaires
Yasir Iqbal
Yasir Iqbal le 8 Jan 2016
I am also having a same problem,I have tried three power supply with different rating but still 'Ack' led is not blinking and connection failed..Any solution now ?
wasted
wasted le 29 Juil 2016
Try to update the Support Package Firmware and re-install the Software on Raspberry Pi with the Support Package from Simulink

Connectez-vous pour commenter.


reenarosilin raj
reenarosilin raj le 20 Fév 2017
I am working with Matlab 2014a with raspberry pi 3B Matlab support package i am getting an error can u help me pls
Warning: Could not detect the Raspberry Pi hardware in allotted time. Try using "Test Connection" button. > In C:\MATLAB\SupportPackages\R2014a\raspi\+raspi\+setup\RaspberryPiFirmwareUpdate.p>RaspberryPiFirmwareUpdate.configureNetwork at 395 In C:\MATLAB\SupportPackages\R2014a\raspi\+raspi\+setup\+internal\executeRaspberryPiConnectHardware.p>executeRaspberryPiConnectHardware at 39 In C:\Program Files\MATLAB\R2014a\toolbox\shared\hwconnectinstaller\+hwconnectinstaller\Step.p>Step.next at 169

Catégories

En savoir plus sur MATLAB Support Package for Raspberry Pi Hardware dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by