How to read Ethernet port using Matlab?

조회 수: 45 (최근 30일)
kintali narendra
kintali narendra 2016년 10월 4일
댓글: Walter Roberson 2020년 12월 23일
I have to read the data provided by ScaLa(B2)-LIDAR,through a Ethernet port. In general Ibeo software is used to read the data from LIDAR using ehternet port,if we save the data provided by the Ibeo software it is in .ibc format.Now i need to use MATLAB to read the data provided by the LIDAR, Please help me in doing it? what toolboxes I need to do read Ethernet port? How to read .idc files by using MATLAB?
  댓글 수: 1
Dominik Ma
Dominik Ma 2017년 5월 9일
Hi Kintali,
would be nice to know if you could solve the issue (and if so how?)? I know that Ibeo offers an SDK to read in LIDAR data, so that could be a starting point to get the data into Matlab...

댓글을 달려면 로그인하십시오.

답변 (3개)

Walter Roberson
Walter Roberson 2018년 4월 25일
You need the Instrument Control toolbox, or the File Exchange contribution https://www.mathworks.com/matlabcentral/fileexchange/345-tcp-udp-ip-toolbox-2-0-6
In new enough MATLAB versions (R2014b and later), there is also tcpclient()
  댓글 수: 2
kintali narendra
kintali narendra 2018년 5월 1일
Thank you Sir,
I will look through it.
Guillaume
Guillaume 2018년 5월 1일
... or you can defer to java or on Windows, .Net, both of which can be called straight from matlab.
It's fairly trivial to receive tcp or udp packets with either. Crucially missing from the question, however, is what protocol is used for the communication. Ethernet port is not a communication method.

댓글을 달려면 로그인하십시오.


daikunpeng
daikunpeng 2018년 4월 25일
Hi Kintali, I'm facing the same problem. have you solved this problem?
  댓글 수: 1
kintali narendra
kintali narendra 2018년 5월 1일
Hi Daikunpeng,
I couldn't able to solve the problem.

댓글을 달려면 로그인하십시오.


Javad golchin
Javad golchin 2020년 12월 22일
i dont know too!
tcp ip in matlab is so difficult... rs232 and com is very easyer!
:
problem 1:
clear
clc
t= tcpclient('localhost', 56666);
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: No connection could be made because the target machine actively refused it.
problem2:
why ECHO in this case doesnt work?
we was able to echo character between pc and AVR! so right nowe what is the correct command similar to ECHO for testing tcpip function?(in matlab2011)
  댓글 수: 3
Javad golchin
Javad golchin 2020년 12월 23일
Hi Dear
fire wall has been off
2011 was a typic mistake
i dont know that i have " Instrument Control Toolbox" or no? echo for simple test is not permitted?
attachments:
thanks
Walter Roberson
Walter Roberson 2020년 12월 23일
t= tcpclient('localhost', 56666);
However it looks like the device you need to connect to is on 192.168.0.1 not on 'localhost'
As your current IP address is 172.16.0.15 then as I am not able to see the full ethernet information (such as the VMWare ethernet information) I cannot tell that your system also has IP existence on 192.168.0.x . Possibly you need to reconfigure the device to have a 172.16.0.x address (other than 172.16.0.15, and probably not 172.16.0.1 or 172.16.0.255 either.)

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Instrument Control Toolbox에 대해 자세히 알아보기

제품

Community Treasure Hunt

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

Start Hunting!

Translated by