i connect GPS GYNEO6MV2 module to raspberrypi TX and RX, i am trying get data in MATLAB . but every time i have tried in matlab it return empty matrix or timeout in MATLAB command window.

조회 수: 4 (최근 30일)
mypi = raspi;
myserialdevice = serialdev(mypi,'/dev/ttyAMA0',9600,8,'none',1);
output = read(myserialdevice,10);
i have tried following command in matlab
Pin connection between raspberry pi and GPS are attached
  댓글 수: 4
sajid javid
sajid javid 2018년 3월 20일
please refer me any example related to my topic from simulink or matlab thanks

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

답변 (3개)

Walter Roberson
Walter Roberson 2018년 3월 21일

Nida Aleqabie
Nida Aleqabie 2019년 6월 25일
please can you solve your problem and recive data from GPS
can you tell me what you are doing
thank you

Douglas Curcio
Douglas Curcio 2019년 9월 27일
raspberry pi 3 and greater uses S0 for uart connections
use: myserialdevice = serialdev(mypi,'/dev/ttyS0',9600,8,'none',1);


Help CenterFile Exchange에서 Development Computer Setup에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by