Success with IMU data!

Ok Thanks for your feedback. I guess It is working for me now but I had to make chnages in other sections of the code. Because I had done exactly the same settings and test_socket.py yielded the same error.
Here I try to explain my solution:
There are two problems:

  1. The Script is always throwing an error of Unable to connect. I don’t know why. I see the connection is established in ReachViewer. Moreover, when I try to print the stringdata1 (Line 134), I can see the incoming buffer. So I am not worried for this error anymore.
  2. The Second problem is then why the PAOGI message is not received on my computer:
    When I run the ncat command on my computer : ncat Emlid’s IP <5102>, It displays the NMEA message coming from Emlid in the terminal. In the script (Lines 81-83), GPSsentence is defined as $GPGGA, It is trying to find these sentences in the function decode_NMEA (Line 160). However, Emlid is sending $GNGGA and so on for other sentences. The script is never able to find the correct sentences so it never sets the GPS_Update flag to true to send the PAOGI message. So Setting Line 81-83 to correct names of GPS sentences (in my case $GNGGA and so) will solve the problem.

Thank you very much for your help!