You are now following this question
- You will see updates in your followed content feed.
- You may receive emails, depending on your communication preferences.
Error using R2019b version of the MATLAB
35 views (last 30 days)
Show older comments
Just installed R2019b MATLAB.
SDR with AD9361 is attached to the Host machine.
The host machine's IP is set to 192.168.3.1
The radio is attached to 192.168.3.14.
Now I try to run the following matlab code:
"Transmit and Receive LTE MIMO Using Analog Devices AD9361/AD9364"
I get the following error:
Error using matlabshared.internal.ssh2client
Error connecting to SSH server at 192.168.3.14
Error in matlabshared.socutils.internal.ipcorereg.system
Error in matlabshared.socutils.internal.ipcorereg.IPCoreRegWrite/stepImpl
Error in comm.zynqradioshared.base/writeReg
Error in comm.zynqradioshared.base/initRegisters
Error in comm.zynqradioshared.tx/sdrDevPreInit
Error in comm.libiio.AD9361.base_control/configureChanBuffers
Error in comm.libiio.AD9361.base/configureChanBuffers
Error in matlabshared.libiio.base/setupImpl
Error in comm.libiio.AD9361.base_control/setupImpl
Error in comm.libiio.AD9361.base/setupImpl
Error in comm.libiio.AD9361.tx_control/setupImpl
Error in comm.libiio.AD9361.tx/setupImpl
Error in comm.zynqradioshared.tx/setupImpl
Error in comm.libiio.AD9361.tx/transmitRepeat
Error in finalMIMOad9361 (line 168)
transmitRepeat(sdrTransmitter,eNodeBOutput);
Can someone help me to solve this problem? I want to run two SDR connecting
and sending data on the air.
Answers (6)
Ben Cunningham
on 7 Oct 2019
Edited: Ben Cunningham
on 3 Dec 2019
It looks like you are having trouble connecting to your radio. Can you verify that you can complete the Hardware Setup App or manually ping the device?
----------------
ANSWER:
I expect that what has happened in your case is that you had a corrupted SD card. To get it working you reformatted the SD card removing the issue. Then when you followed step 4 of the Manual Host-Radio Hardware Setup it worked correctly.
5 Comments
jarul
on 8 Oct 2019
I could ping the Radio device.
I have setup my host machine on 192.168.3.1
The radio is setup on IP dynamically as follows:
192.168.3.14
However, when we run the software, it is not able to transmit the data.
I guess the library for transmitting has been changed since the R2019b version
was released. So too, the receive (Rx) has been changed, but it is not working
correctly. It could be due the support package software.
I am reinstalling again today. Hopefully, it is fixed already by MATLAB.
Thanks
Ben Cunningham
on 8 Oct 2019
I have not encountered any such issues with the 2019b release of the Xilinx Zynq-Based Radio Support Package.
As such it is likely to do with your setup. Please provide further specific details, including:
- OS MATLAB is running on
- The SDR Hardware being used
- Whether you are using the new Libiio or the Legacy mode
- If you have been through the Hardware Setup App successfully, including the final panel
- The code you are trying to run
- Exactly what happens when you run the code
- Anything else custom or otherwise relevant
jarul
on 14 Oct 2019
I have been trying to install the Linux version of the Xilinx Zynq Radio to run SDR software for single radio. I have spend several hours and still can not install the software version of the
R2019b version. After installing the communication tool box and Xilinx Radio library usually we see that the sign indicating the libraries are installed.
With the version R2019b the sign never appears on the library for communication tool box as well as Xilinx Radio library. I still get the following error:
Can not download the following library:
Xilinx Zynq Linux binaries
I presume that this library can not be downloaded or it is not available, I am not sure.
Can MATLAB group check this out for me?
When I run the matlab code meant for Single Radio, the receive function originally written as
sdrReceiver(); has been changed to capture(sdrReceiver, startuptime, "seconds");
in R2019b. It never gets executed and the program aburptly stops.
Can you kindly check the problem for me?
I have spend lot of time and can not run the matlab successfully with version R2019b.
Hopefully someone can respond to my question and solve this.
I have ran previously and setup the radio successfully with the version R2019a.
I am having problem with the latest version of R2019b.
Please do look into and solve this problem. I do appreciate. Thanks
Ben Cunningham
on 14 Oct 2019
Hi Jarul,
This does not seem to be related to the question initially posed. To effectively answer your question we must try to restrict to a narrower scope.
Does this mean that the inital question is no longer blocking? What was your workaround?
There may have been a temporary third party download outage. I am not aware of any install issue on any OS at the moment.
You can still step the Rx system object exactly as you did in previous releases ie "sdrReceiver();".
Please reference the capture documentation for more information on the capture function. The basic syntax is "[data, metadata] = capture(sdrReceiver, captureLength, 'Seconds');"
I have no idea what code you are running so I'm afraid I cannot diagnose this further.
Cheers,
Ben
Ben Cunningham
on 22 Oct 2019
Hi Jarul,
I noticed you re-posted the same question again.
I'm happy to help but please provide the following details to help get us started.
- OS MATLAB is running on
- The SDR Hardware being used
- Whether you are using the new Libiio or the Legacy mode
- If you have been through the Hardware Setup App successfully, including the final panel
- The code you are trying to run
- Exactly what happens when you run the code
- Anything else custom or otherwise relevant
jarul
on 22 Oct 2019
To answer the above query:
I am using Ubuntu 18.04
The SDR hardware is Z706 and AD9361.
The libiio I am using the same since last year. My SDR worked perfectly with R2019a version.
I only deleted the old version and installed R2019b.
The library calls for transmitting and receiving has been changed since R2019b version.
They are not functioning well.
Try to figure out the error: Error using matlabshared.internal.ssh2client
The whole error is mentioned above.
The main problem is R2019b does not show that the SDR library is installed even after installing.
LTE transmit and receiver for zynq SDR is not working correctly.
Besides, the transmit and receive function does not work correctly.
Can not run any related code for SDR which worked perfectly for R2019a version.
Kindly check again. I have been reporting to Mathworks. But since sept 2019, the problem is not fixed.
Kindly check and please do help me. I am willing to respond to your query.
Ben Cunningham
on 23 Oct 2019
Edited: Ben Cunningham
on 23 Oct 2019
Thank you for getting back with the further details of your setup.
Please verify you can complete the steps outlined in the Manual Host-Radio Hardware Setup documentation page.
Completing this is important as the error you have been repeatedly posting seems to indicate that MATLAB is having trouble communicating to your radio. Completing the steps linked should set-up and verify that connection.
The changes to the transmit and receive/capture methods should not be the cause of the error.
Perhaps you could screenshot what you mean when you say that the SDR library is not showed as installed? Does the Xilinx Zynq-Based Radio HSP show in your Add-On Manager?
The 'LTE transmit and receiver for zynq SDR' will not work if 'the transmit and receive function does not work correctly' which will not work if MATLAB cannot connect to your radio. Please complete the linked steps and let me know if you can complete it successfully.
After completing successfully you could try some minimal code for example:
rx = sdrrx('AD936x')
capture(rx, 10, 'Samples')
27 Comments
Ben Cunningham
on 1 Nov 2019
Hi Jarul,
Please see this answer.
Run through the steps in the Manual Host-Radio Hardware Setup documentation page for your radio. Do not try changing the ip address from the default and disconnect any other radios. Complete all the steps which will include re-flashing your sd card.
Then, if you complete all the steps successfully, run the minimal code I provided you in the answer.
rx = sdrrx('AD936x')
capture(rx, 10, 'Samples')
jarul
on 4 Nov 2019
I ran the following code after setting up the radio on 192.168.3.14
stationCenterFrequency = 95e6;
deviceName = 'AD936x';
info(deviceName)
rx = sdrrx(deviceName,'IPAddress','192.168.3.14','BasebandSampleRate',528e3,...
'CenterFrequency',stationCenterFrequency,'OutputDataType','Double');
rx
capture(rx,10,'Samples');
release(rx);
The following is the response:
rx =
comm.SDRRxAD936x with properties:
Main
DeviceName: 'AD936x'
IPAddress: '192.168.3.14'
CenterFrequency: 95000000
GainSource: 'AGC Slow Attack'
ChannelMapping: 1
BasebandSampleRate: 528000
OutputDataType: 'double'
SamplesPerFrame: 20000
EnableBurstMode: false
ShowAdvancedProperties: false
Show all properties
## Establishing connection to hardware. This process can take several seconds.
Error using matlabshared.internal.ssh2client
Again the error using matlabshared.internal.ssh2client appears.
The communication toolbox for support package for xilinx zynq based radio never gets installed.
Can you help me on this? Thanks
jarul
on 4 Nov 2019
The following library can not be installed: Hence, the transmit and capture function does not function for the Linux OS radio.
Communications toolbox support package for Xilinx zynq-Based Radio.
That is the main problem. That package has the communication tool such as transmit and capture functions.
Could you help me with this? Thanks
Ben Cunningham
on 4 Nov 2019
Hi Jarul,
Please see this answer.
Run through the steps in the Manual Host-Radio Hardware Setup documentation page for your radio. Do not try changing the ip address from the default and disconnect any other radios. Complete all the steps which will include re-flashing your sd card.
Then, if you complete all the steps successfully, run the minimal code I provided you in the answer.
rx = sdrrx('AD936x')
capture(rx, 10, 'Samples')
Can you confirm you have followed the steps outlined?
jarul
on 5 Nov 2019
The following communication tool box for linux can not be installed.
"Communications Toolbox Support Package for Xilinx Zynq-Based Radio"
It can be setup for the Windows version. However, it is needed for the Linux version.
Hence, the capture function as well as transmit function will not work.
The host machine is setup for 192.168.3.1 which can not be changed according to the setup files.
You can see from my above response that it connects to the radio ok. However, the transmit and receive (capture in R2019b) function can not work until the above toolbox is installed.
One needs to wait for MATLAB group to fix this problem.
Thanks and await your further response.
Ben Cunningham
on 5 Nov 2019
1)
>> The following communication tool box for linux can not be installed.
What do you mean by 'can not be installed'? After installation it should be listed in the Add-on manager with a small cog next to it.
2)
>> It can be setup for the Windows version. However, it is needed for the Linux version.
I have linked you to the Manual Host-Radio Hardware Setup documentation page which takes you through setup on Linux.
3)
>> The host machine is setup for 192.168.3.1 which can not be changed according to the setup files.
I have linked you to the Manual Host-Radio Hardware Setup documentation page which takes you through setup on Linux including the setting of the ipaddress.
4)
>> You can see from my above response that it connects to the radio ok.
Follow the steps in the Manual Host-Radio Hardware Setup documentation page to confirm and test the connection to your radio.
5)
>> However, the transmit and receive (capture in R2019b) function can not work until the above toolbox is installed.
That is correct, you cannot use functionality from a support package which is not installed. See (1).
jarul
on 8 Nov 2019
Thanks for your time to help me with this.
As I mentioned earlier, if you goto the following website where we can download or install "communication toolbox support package for xilinx-zynq radio based" does not install or download. It is not only me who experience this problem. But another person also mentioned the same comment on the website.
Hence, in the Add-on manager, the zynq radio based library is not visible. Even I installed the embedded coder support package, it is not visible in the add on manager.
As a result, Xilinx zynq based radio does not get installed. It is communicating with my radio. It is obvious from my above comment. After setting up my radio, when the radio IP address is entered, then I print output the rx. It shows as follows.
rx =
comm.SDRRxAD936x with properties:
Main
DeviceName: 'AD936x'
IPAddress: '192.168.3.14'
CenterFrequency: 95000000
GainSource: 'AGC Slow Attack'
ChannelMapping: 1
BasebandSampleRate: 528000
OutputDataType: 'double'
SamplesPerFrame: 20000
EnableBurstMode: false
ShowAdvancedProperties: false
Show all properties
Only when the transmitRepeat or capture function is used, it is not responding. I get the error.
Kindly suggest solution to the problem and how to solve this problem. Thanks for your help/.
Ben Cunningham
on 11 Nov 2019
Hi Jarul,
Printing the properties of the system object does not verify connection to your radio. MATLAB will only try to connect when you attempt to use the IO. This is why I have been asking you to verify your setup and connection via the Manual Host-Radio Hardware Setup documentation page.
You can also connect to your radio by running setup on your receiver object, ie:
setup(rx)
However I would not expect any support package functionality to work without a complete successful installation.
It has been brought to my attention that there is currently some issues with certain support packages' interoperability. The Mathworks support team answer is here. If you need to get the Xilinx Zynq-based Radio support package installed you may try installing into a version of MATLAB without any other support packages.
All the best,
Ben
jarul
on 12 Nov 2019
As you mentioned that there is currently some issues with certain support packages' interoperability.
Yes, as a result, I can not install the Xilinx zynq radio communication toolbox. Hence, transmit and receive will not work.
When it is solved, kindly inform me. Then I can try to solve some of my problems. Thanks for your response and help. I do appreciate your time.
Thanks
Ben Cunningham
on 18 Nov 2019
A fix with the latest update solved the interoperability issue that arose last month. I am able to install and use the support package without any issue.
Please install and complete the steps outlined in the Manual Host-Radio Hardware Setup documentation page.
After completing the Manual Host-Radio Hardware Setup documentation page successfully you could try some minimal code for example:
rx = sdrrx('AD936x')
capture(rx, 10, 'Samples')
Let me know if that works.
Cheers,
Ben
jarul
on 19 Nov 2019
Today is Nov 19th, I tried to install the Linux version of the following toolbox for Xilinx Zynq Radio.
"Communications Toolbox Support Package for Xilinx Zynq-Based Radio"
Still, it can not be installed for Linux version.
After downloading about 98%, I get the following error.
"Failed to download the Third Party software:"
Xilinx zynq Linux Binaries
This is required by:
Embedded Coder Support Package for Xilinx Zynq Platform
I think that the Linux Binaries can not be downloaded.
Kindly fix that in order to install the zynq radio. Then I can try the above
mentioned code in your comment. Thanks for your help.
Kindly see also the attached file showing the error while trying to install.
jarul
on 19 Nov 2019
Hai Ben,
Finally I erased completely R2019b version and reinstalled. Now, able to install the following toolbox.
"Communication toolbox for Xilinx Zynq Radio"
I have setup my radio in the IP address 192.168.3.2.
I will try your above code and test it. I will get back to you in few days.
Xilinx zynq Radio is installed in the library.
Thanks for your help. When I run matlab I do not get the error I used to get
before.
Thanks again.
jarul
on 19 Nov 2019
Hai Ben,
After having installed xilinx zynq radio library, successfully setup the radio.
The host machine IP address is set in 192.168.3.5.
The radio IP address is set in 192.168.3.2.
I have tried ping to 192.168.3.2 (Radio) -- it was successful.
I already tried to ping from the radio to host machine 192.168.3.5 -- it was successful.
Now ran the code that you mentioned previously. It is as follows:
rx = sdrrx('AD936x')
capture(rx, 10, 'Samples')
Now I get the following error:
rx =
comm.SDRRxAD936x with properties:
Main
DeviceName: 'AD936x'
IPAddress: '192.168.3.2'
CenterFrequency: 2.4000e+09
GainSource: 'AGC Slow Attack'
ChannelMapping: 1
BasebandSampleRate: 1000000
OutputDataType: 'int16'
SamplesPerFrame: 20000
EnableBurstMode: false
ShowAdvancedProperties: false
Show all properties
## Establishing connection to hardware. This process can take several seconds.
Error using matlabshared.internal.ssh2client
Error connecting to SSH server at 192.168.3.2
Error in matlabshared.socutils.internal.ipcorereg.system
Error in matlabshared.socutils.internal.ipcorereg.IPCoreRegWrite/stepImpl
Error in comm.zynqradioshared.base/writeReg
Error in comm.zynqradioshared.base/initRegisters
Error in comm.zynqradioshared.rx/sdrDevPreInit
Error in comm.libiio.AD9361.base_control/configureChanBuffers
Error in comm.libiio.AD9361.base/configureChanBuffers
Error in matlabshared.libiio.base/setupImpl
Error in comm.libiio.AD9361.base_control/setupImpl
Error in comm.libiio.AD9361.base/setupImpl
Error in comm.libiio.AD9361.rx_control/setupImpl
Error in comm.libiio.AD9361.rx/setupImpl
Error in comm.libiio.AD9361.rx/capture
Error in testad9361 (line 6)
capture(rx, 10, 'Samples')
As a result, the capture function still has some error.
Can you help me to trace my problem?
Thanks a million.
Ben Cunningham
on 19 Nov 2019
The Embedded Coder Support Package for Xilinx Zynq Platform downloads from third partys and these links may get corrupted or broken for various reasons. I am glad you were able to install Xilinx Zynq-based radio now.
Ok, so just to be clear, you have been through the Manual Host-Radio Hardware Setup after your most recent install? Your problem may arise from an old or corrupted SD card image. The Manual Host-Radio Hardware Setup also includes a step that verifies MATLAB can connect to your radio. That may narrow down the problem.
Things to try:
- Complete the Manual Host-Radio Hardware Setup and tell me what happens during the test connection step?
- setup(rx)
- rx()
jarul
on 22 Nov 2019
Hai Ben,
I have setup the the followng libraries:
- Xilinx zynq Radio library
- Embedded coder support package for xilinx
- HDL code support package for xilinx
My radio is setup on 192.168.3.2 as mentioned in the toolbox and setup site.
When I try to run setup(rx)
I get the following error:
Warning: Cannot find library called 'plutoradiolib'. To use the library, install 'Communications System
Toolbox Support Package for ADALM-PLUTO Radio'.
Failed to load library 'plutoradiolib' referenced by 'rx/ADALM-Pluto Radio Receiver'
Does that mean that I need to install the ADALAM/Pluto Radio receiver in order to use the Capture function? I thought that it was getting into conflict with the xilinx zynq radio setup.
Can you advise me, if I need to install ADALM/PLUTO radio receiver or not?
Thanks for your support.
jarul
on 22 Nov 2019
I also tried after installing the library for PLUTO.
After installing the library for PLUTO radio, I get the following error:
setup(rx)
comm.SDRRxPluto block (mask) parameter 'SimulateUsing' is read-only
Can you help me figure out the problem with regard to using 'AD9361' Radio?
Thanks
jarul
on 22 Nov 2019
I just ran these two lines after installing all the necessary libraries for AD9361 SDR.
The code I ran is as follows:
dev = sdrrx('AD936x')
capture(dev, 10, 'Samples')
Here is the response after compiling:
## Establishing connection to hardware. This process can take several seconds.
Error using matlabshared.internal.ssh2client
Error connecting to SSH server at 192.168.3.2
Error in matlabshared.socutils.internal.ipcorereg.system
Error in matlabshared.socutils.internal.ipcorereg.IPCoreRegWrite/stepImpl
Error in comm.zynqradioshared.base/writeReg
Error in comm.zynqradioshared.base/initRegisters
Error in comm.zynqradioshared.rx/sdrDevPreInit
Error in comm.libiio.AD9361.base_control/configureChanBuffers
Error in comm.libiio.AD9361.base/configureChanBuffers
Error in matlabshared.libiio.base/setupImpl
Error in comm.libiio.AD9361.base_control/setupImpl
Error in comm.libiio.AD9361.base/setupImpl
Error in comm.libiio.AD9361.rx_control/setupImpl
Error in comm.libiio.AD9361.rx/setupImpl
Error in comm.zynqradioshared.rx/setupImpl
Error in comm.libiio.AD9361.rx/capture
Error in testad9361 (line 7)
capture(dev, 10, 'Samples')
The first line indicates that there is an error in the matlab shared library.
Error using matlabshared.internal.ssh2client
Can you figure out the error? Thanks
Ben Cunningham
on 22 Nov 2019
When using the setup method are you initialising an AD936x system object?
e.g.
rx = sdrrx('AD936x')
setup(rx)
You do not require the Pluto radio HSP to do this.
When you went through the Manual Host-Radio Hardware Setup documentation page what happened during the test connection step?
jarul
on 25 Nov 2019
I did manually setup the radio as shown in the manual.
The connection has been established, and the configuration has been verified.
Successful!
when I run the above two lines, as shown:
rx = sdrrx('AD936x')
setup(rx)
I still get error.
You can refer to my attached file along this message.
Thanks
Ben Cunningham
on 25 Nov 2019
Hi Jarul,
The attached pdf shows a screenshot of the Hardware Setup Application for Embedded Coder Support package for Zynq. This is not the same as Communications Support Package for Xilinx Zynq-Based Radio.
Running Xilinx Zynq-Based Radio commands on a board set up for Embedded Coder Support Package for Zynq will not work as they are different things with different use-cases.
Please refer to the Manual Host-Radio Hardware Setup documentation page which details how to set up your radio for use with the Xilinx Zynq-Based Radio support package.
When you have set up your hardware correctly using the link I have provided you should not encounter any problems.
Cheers and all the best,
Ben
If you do encounter further problems with your setup you could contact technical support via a service request at https://uk.mathworks.com/support/contact_us.html.
jarul
on 26 Nov 2019
The communications Support Package for Xilinx Zynq-Based Radio does not have nay Manual Host Radio Hardware Setup. Even though it displays, Manual Host Radio Hardware Setup, but does not do any setup steps like the Embedded Coder Support Package for Zynq. Finally, the Zynq radio setup does not work correctly. I am not sure if the Mathwork group is still trying to fix this problem or is it already fixed?
Should I directly contact the technical support group or you can contact them and give me a response? Whatever is ok with me. Thanks for your response.
Ben Cunningham
on 26 Nov 2019
>> The communications Support Package for Xilinx Zynq-Based Radio does not have nay Manual Host Radio Hardware Setup.
Yes it does, follow the steps in https://uk.mathworks.com/help/supportpkg/xilinxzynqbasedradio/ug/manual-host-radio-hardware-setup.html
>> Even though it displays, Manual Host Radio Hardware Setup, but does not do any setup steps like the Embedded Coder Support Package for Zynq.
That is because you are on Linux. Please follow the steps in https://uk.mathworks.com/help/supportpkg/xilinxzynqbasedradio/ug/manual-host-radio-hardware-setup.html to set up your radio Hardware on Linux.
>> Finally, the Zynq radio setup does not work correctly. I am not sure if the Mathwork group is still trying to fix this problem or is it already fixed?
I think you might have misinterpreted what it was doing. Please note that you must follow the steps in the above documentation and not just run the application. Also, you cannot run the Embedded Coder Suppport Package for Zynq application as that is different.
>> Should I directly contact the technical support group or you can contact them and give me a response? Whatever is ok with me. Thanks for your response.
You will need to contact technical support yourself. If eligible, they can provide you access to further support.
jarul
on 2 Dec 2019
I just installed one communication package which is as follows:
"Communications Toolbox Support Package for Xilinx Zynq-Based Radio"
My radio is setup with the IP address 192.168.3.2
The host machine is setup with the IP address 192.168.3.6
Now. I just tried two lines of matlab code as follows:
dev = sdrdev('AD936x');
testConnection(dev,'192.168.3.1');
I get the following error:
## Pinging host IP address
## Pinging radio IP address
## Checking compatibility of software with hardware
Error using comm.zynqradioshared.dev.Base/testConnection
Error attempting to connect to address '192.168.3.2'.
Error connecting to SSH server at 192.168.3.2
This could be due to:
- an improperly specified device IP address
- an unsuccessful boot from SD card image
- an improperly configured network card on the host
- an incompatible network card on the host
- host port blocking or anti-virus software
The software compatability issue is seen here with the hardware.
What does that mean? Can you comment on that?
Thanks
Ben Cunningham
on 2 Dec 2019
From the doc:
When calling testConnection, use the radio object that you created in Step 2. Set Up Support Package in MATLAB and the host IP address that you configured in Step 3. Configure Host Computer.
Hence if in step 3 you set the address to '192.168.3.6' then you should use that.
testConnection(dev,'192.168.3.6');
jarul
on 3 Dec 2019
As you mentioned, I have tried the following code:
This is done with the SD card image created by 23 May 2019 release (2018_R2)
dev = sdrdev('AD936x');
testConnection(dev,'192.168.3.6');
My host machine is on IP 192.168.3.6
My radio is on IP 192.168.3.2
After testing the above matlab code, I get the following error:
## Pinging host IP address
## Pinging radio IP address
## Checking compatibility of software with hardware
Error using comm.zynqradioshared.dev.Base/testConnection
Error attempting to connect to address '192.168.3.2'.
Error connecting to SSH server at 192.168.3.2
This could be due to:
- an improperly specified device IP address
- an unsuccessful boot from SD card image
- an improperly configured network card on the host
- an incompatible network card on the host
- host port blocking or anti-virus software
See the documentation to configure the host and SDR device for proper communication.
If I use the SD card created with the Step 4 Write Firmware, I get the following error:
## Testing data path from Zynq board to host
Error using comm.zynqradioshared.dev.Base/testConnection
Failed to find device: cf-ad9361-dds-core-lpc.
Error in comm.zynqradio.dev.Base/testConnection (line 64)
status = testConnection@comm.zynqradioshared.dev.Base(obj,varargin{:});
Error in testad9361 (line 6)
testConnection(dev,'192.168.3.6');
The above error tells that, it can not find device cf-ad9361-dds-core-lpc
How should I solve this problem? ADVISE me please. Thanks
jarul
on 3 Dec 2019
Hai Ben,
Finally I got the problem solved with AD9361 SDR software.
The functions "transmitRepeat(sdrTransmitter,eNodeBOutput);"
and the "rxWaveform = capture(sdrReceiver, captureTime, 'Seconds');"
works fine.
The answer to that is as follows:
Create an SD card image with the following steps as shown in the weblink:
Then insert that SD in the Linux machine.
Create the image file using the steps shown in the following weblink.
Select a Drive and Write Firmware
Combine both into the same SD card. Then use that SD card on the Radio (FPGA).
Now it works successfully. These steps are not clear in the mathworks website.
Thanks a million Ben for your constant support and guide.
Now I am able to run the matlab code successfully. Thanks
Ben Cunningham
on 3 Dec 2019
Hi Jarul,
I'm glad you got it working!
You should not use the ADI image it will not work, you must use the Mathworks image as instructed in the Manual Host-Radio Hardware Setup.
I expect that what has happened in your case is that you had a corrupted SD card. As part of the workflow when you followed the ADI SD card image steps you probably reformatted it removing the issue. Then when you followed step 4 of the Manual Host-Radio Hardware Setup the Mathworks image was downloaded replacing the ADI image.
The steps should be clear in the Manual Host-Radio Hardware Setup however in your case your SD card needed reformatted. I will see if a note can be added to the documentation to suggest trying this as a troubleshooting step.
All the best,
Ben
jarul
on 25 Oct 2019
Just to respond to your answer:
Have been working on SDR AD9361 software quite sometime.
One host computer is setup Linux Ubuntu R2019a version of the matlab.
Two radios are as setup as follows:
Radio 1 using Z706 and AD9361.
Radio 2 using zedboard and AD9361.
Using the host machine with R2019a version, the old code of LTE transmit and receive works perfectly on a single Radio (1 or 2)
The old version of the “LTE transmit and receive for zynq SDR” code has the following functions for transmit and receive:
sdrTransmitter.transmitRepeat(eNodeBOutput);
The receiver is as follows:
[data,len,lostSamples] = sdrReceiver();
burstCaptures(:,:,frame) = data;
Using R2019a version works perfectly and the code for single Radio is fine.
Now, after introducing R2019b version, the code for Transmitter and receiver is as follows:
transmitRepeat(sdrTransmitter,eNodeBOutput);
The Receiver code is as follows:
rxWaveform = capture(sdrReceiver, captureTime, 'Seconds');
In another machine, R2019b version was installed to test the above function.
Every time I install a library, it does not show the symbol that the library is installed.
But in R2019b, after installing the libraries such as LTE toolbox and Xilinx zynq-based Radio, the symbol, install is not showing up on the library figures which was different from the pervious versions such as R2019a and so on.
I did the setup exactly as R2019a version for R2019b.
The R2019a version was updated to see if the above Transmit and receive works correctly.
After updating, the transmit function in the new version works correctly. Which means the radio is transmitting. However, when the following function, reaches executing stage, the code stop and the reason is that the function capture is not found.
Hence, R2019b version or updated R2019a version does not completely execute the LTE transmit and receive code using the radio. The problem is not setup the Radios.
The error when just I start the R2019b version is as follows:
Error using matlab.supportpackagemanagement.internal.getInstalledSupportPackagesInfo (line 47)
Java exception occurred:
java.lang.IllegalArgumentException
at java.util.Date.parse(Date.java:617)
at java.util.Date.<init>(Date.java:274)
I never got these errors in the previous version of Matlab such as R2019a or before versions.
Now, when the LTE transmit and receive code is run, get the following error.
Error using matlabshared.internal.ssh2client
Error connecting to SSH server at 192.168.3.14
Error in matlabshared.socutils.internal.ipcorereg.system
Could you help me trace the above two errors related to Matlab shared library errors?
Thank you very much for your help.
1 Comment
Ben Cunningham
on 25 Oct 2019
Thank you for the further context.
The capture function is a 19b addition and therefore not present in 19a. Please reference 19a documentation and examples when using 19a to ensure compatibility. The 19b updates to the LTE transmit and receive example are not backwards compatible with 19a.
I am able to run the LTE transmit and receive example locally on my computer without any such issues.
As you have alluded to yourself I believe this is an install issue which is preventing you from connecting to your radios. Please go through the steps I linked you to in my previous response in your 19b install and verify this.
jarul
on 26 Oct 2019
Thanks for your response.
My host machine is setup in 192.168.3.1
My radio is setup in 192.168.3.14
I can ping 192.168.3.14 and get correct response from my host machine.
I can also do ssh to the radio from the host machine. No problem.
I want to know why do I get the following error when I just start the Matlab R2019b?
_____________________________________________________________________________
Error using matlab.supportpackagemanagement.internal.getInstalledSupportPackagesInfo (line 47)
Java exception occurred:
java.lang.IllegalArgumentException
at java.util.Date.parse(Date.java:617)
at java.util.Date.<init>(Date.java:274)
_______________________________________________________________________________
When I run the simple code for capture which is as follows:
________________________________________________________________________________
stationCenterFrequency = 95e6;
deviceName = 'AD936x';
info(deviceName)
rx = sdrrx(deviceName,'IPAddress','192.168.3.14','BasebandSampleRate',528e3,...
'CenterFrequency',stationCenterFrequency,'OutputDataType','Double');
capture(rx,5,'Seconds','Filename','FMRecording.bb');
release(rx);
%%%%Demodulate FM Recording
bbr = comm.BasebandFileReader('FMRecording.bb');
bbr.SamplesPerFrame = 4400;
fmbDemod = comm.FMBroadcastDemodulator( ...
'AudioSampleRate', 48e3, ...
'SampleRate',bbr.Metadata.BasebandSampleRate,'PlaySound',true);
while ~isDone(bbr)
fmbDemod(bbr());
end
______________________________________________________________________________________
Why do I get the following error? (It mentions, matlabshared.internal.ssh2client), When I click the matlabshared.internal.ssh2client, it is trying to open an empty ssh2clinet.m file. It is not present among the library.
Error using matlabshared.internal.ssh2client
Error connecting to SSH server at 192.168.3.14
Error in matlabshared.socutils.internal.ipcorereg.system
Error in matlabshared.socutils.internal.ipcorereg.IPCoreRegWrite/stepImpl
Error in comm.zynqradioshared.base/writeReg
Error in comm.zynqradioshared.base/initRegisters
Error in comm.zynqradioshared.rx/sdrDevPreInit
Error in comm.libiio.AD9361.base_control/configureChanBuffers
Error in comm.libiio.AD9361.base/configureChanBuffers
Error in matlabshared.libiio.base/setupImpl
Error in comm.libiio.AD9361.base_control/setupImpl
Error in comm.libiio.AD9361.base/setupImpl
Error in comm.libiio.AD9361.rx_control/setupImpl
Error in comm.libiio.AD9361.rx/setupImpl
Error in comm.zynqradioshared.rx/setupImpl
Error in comm.libiio.AD9361.rx/capture
Error in capture1 (line 6)
capture(rx,5,'Seconds','Filename','FMRecording.bb');
Thanks for your effort in trying to help with this problem
1 Comment
Ben Cunningham
on 31 Oct 2019
Hi Jarul,
It looks like you might have a corrupted install somewhere.
Are you using Embedded Coder and the Embedded Coder Zynq Support package?
You could see if the command
zynq
is able to connect to your hardware?
jarul
on 1 Nov 2019
This morning I reinstalled R2019b ones again deleting the previous install of R2019b.
I just ran the simple code to test the caputer function that has been used on many SDR codes.
The code is as follows:
stationCenterFrequency = 95e6;
deviceName = 'AD936x';
info(deviceName)
rx = sdrrx(deviceName,'IPAddress','192.168.3.14','BasebandSampleRate',528e3,...
'CenterFrequency',stationCenterFrequency,'OutputDataType','Double');
capture(rx,5,'Seconds','Filename','FMRecording.bb');
release(rx);
%%%%Demodulate FM Recording
bbr = comm.BasebandFileReader('FMRecording.bb');
bbr.SamplesPerFrame = 4400;
fmbDemod = comm.FMBroadcastDemodulator( ...
'AudioSampleRate', 48e3, ...
'SampleRate',bbr.Metadata.BasebandSampleRate,'PlaySound',true);
while ~isDone(bbr)
fmbDemod(bbr());
end
I still get the following error as I mentioned previously:
Error using matlabshared.internal.ssh2client
Error connecting to SSH server at 192.168.3.14
Why do I kept getting matlabshared.internal.ssh2client error?
It has something to do with matlabshared library.
can you figure it out for me?
As you mentioned try zynq, I have tried on the matlab R2019b.
I get the following error:
Error using codertarget.zynq.internal.LinuxShell/setupZynqHardware (line 531)
Could not connect to the hardware over Serial Port.
Check that USB cable is plugged into 'USB-to-UART' port of the hardware and the power switch is
turned on.
If this error persists, switch off the hardware, wait for 10 seconds, switch on the hardware
and then repeat this step.
Thanks for your help.
See Also
Categories
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!An Error Occurred
Unable to complete the action because of changes made to the page. Reload the page to see its updated state.