MATLAB Answers

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.

12 views (last 30 days)
sajid javid
sajid javid on 20 Mar 2018
Answered: Douglas Curcio on 27 Sep 2019
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 Comments

Show 1 older comment
sajid javid
sajid javid on 20 Mar 2018
i am using raspberry pi3 with MATLAB install on it what i should send before readin the data from serial pins of raspberrypi i have search alot but not found any single example of GPS interfacing raspberrypi on MATLAB

Sign in to comment.

Answers (3)


Nida Aleqabie
Nida Aleqabie on 25 Jun 2019
hello
please can you solve your problem and recive data from GPS
can you tell me what you are doing
thank you

  0 Comments

Sign in to comment.


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

  0 Comments

Sign in to comment.

Community Treasure Hunt

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

Start Hunting!