u-Center BerryGPS-IMU

Using u-Center to connect to the GPS on the OzzMaker SARA-R5 LTE-M GPS + 10DOF

u-Center from u-Blox is a graphical interface which can be used to monitor and configure all aspects of the GPS module on a OzzMaker SARA-R5 LTE-M GPS + 10DOF

u-Center from uBlox


u-Center only runs on Windows. It can connect over the network to a Raspberry Pi.  This will require us to redirect the serial interface on the Raspberry Pi to a network port using ser2net.

Pi Setup

You will first need to have multiplexing enabled for the serial interface and have GPS data streaming to the /dev/ttyGSM2 virtual serial interface, which is covered in these two guides

  1. How to enable multiplexing on the Raspberry Pi Serial interface
  2. Using the GPS on OzzMaker SARA-R5 LTE-M GPS + 10DOF


Then, do an upt-get update and then install ser2net;

pi@raspberrypi ~ $ sudo apt-get update
pi@raspberrypi ~ $ sudo apt-get install ser2net

Edit the ser2net config file and add the serial port redirect to a network port. We will use network port 6000

pi@raspberrypi ~ $ sudo nano /etc/ser2net.yam

And add these line at the bottom;

connection: &con1197
    accepter: tcp,6000
    enable: on
      banner: *banner
      kickolduser: true
      telnet-brk-on-sync: true
    connector: serialdev,

you can now restart ser2net using;

pi@raspberrypi ~ $ sudo systemctl restart ser2net

If you need to disable it, you can disable it using;

pi@raspberrypi ~ $ sudo systemctl disable ser2net

And you can use the below command to check if it is running by seeing if the port is open and assigned to the ser2net process;

pi@raspberrypi ~ $ sudo netstat -ltnp | grep 6000

If it is running, you should see something similar to the output below;

check result of ser2net

Windows PC Setup and Connecting to the GPS module

You can download u-Center from here.

Once installed, open u-Center. You will get the default view as shown below.  No data will be shown as we are not connected to a GPS.

u-Center default view

The next step, is to create a new network connection and connect to the GPS which is connected to our Raspberry Pi. You can create a new connection under the Receiver and then Network connection menus.

u-Center connect to Raspberry Pi
In the new window, enter the IP address of the Raspberry Pi and specify port 6000. This is the port we configured in ser2net on the Raspberry Pi.
u-Center Raspberry Pi Address

This is what the default view looks like when connected and the GPS has a fix.u-Center connected



Below I will list of the more useful windows/tools within u-Center.
You can also click on the images below for a larger version.

Data View
This window will show you the longitude, latitude, altitude and fix mode. It will also show the HDOP, which is the Horizontal Dilution of Precision.  Lower is better, anything below 1.0 means you have a good signal.

u-Center Data View
u-Center Data View

Ground Track
This window will show you where the satellites are as well as what time.

u-Center Ground Track
u-Center Ground Track

Skye View
Sky view is an excellent tool for analyzing the performance of antennas as well as the conditions of the satellite observation environment.

u-Center Sky View
u-Center Sky View

Deviation Map
This map shows the average of all previously measured positions.

u-Center Deviation Map
u-Center Deviation Map

Satellite Signal History
This window shows the satellite signal strength over time.

u-Center Sat Signal History
u-Center Satellite Signal History

 Text Console
The text console is were the raw NME sentences can be viewed.

u-Center Text Console
u-Center Text Console

Making Configuration changes to the GPS Module

U-Center allows you to make configuration changes to the GPS module on the BerryGPS-IMU and BerryGPS-GSM.

Some examples of what can be configured;

  • Disable or enable specific NMEA sentences
  • Change output update rate
  • Modify power mode

Configuration view

You make changes from the Configuration View window. It can be found under the View menu;

At the bottom of the window, you see a Send button, this is how you apply changes.
There is also a Poll button which is used to poll the device for the current config.  The number at the top right is how long it as been since the config has been sent or the device has been polled.

u-Center Config View
u-Center Config View

Example Change –  Increase update rate
Here is how you would change the update rate, by default it is 1Hz (once a second).  This is how you would change it to 5Hz (five times a second)

Find RATE(rates) in the left pain. Then on the right hand side you can see the Measured Period is 1000ms.  This is how fast the GPS module prints out NMEA sentence.  Change the Measured Period value to 200, which is 5Hz.   Now click the send button.  The GPS update rate should be instant.

u-Center Configure Rate
u-Center Configure Rate

Example Change –  Remove GxGSV sentence
The GxGSV sentence contains detailed satellite  information. If you are only interested in Longitude and Latitude, you can disable to sentence from being display as you would not need it.
Select MSG (Messages) from the left pane. On the right, in the drop down,  find the NMEA GxGSV as shown below and untick the checkbox for UART1.  Hit send.  The change will be instant.

u-Center disable NMEA sentence
u-Center disable NMEA sentence


Making Changes without u-Center

The instruction above only work if u-Center is connected to the GPS module. When you hit the Send button, u-Center will send the change to the GPS module using the UBX protocol which is a string of HEX data.

It is possible to make changes manually without u-Center by sending the HEX data via the Raspberry Pi terminal.

The first thing to do is find out what the HEX string is for a specific change.  We will do the change again to remove the GxGSV sentences, but this time manually.

Open Messages View from the view menu and in the left pain navigate to UBX->CFG->MSG (Messages). On the right,  in the drop down,  find the NMEA GxGSV as shown below and untick the checkbox for UART1.
If the window isn’t showing the HEX code, you need to click on the button highlighted below with the red arrow.
This HEX code is the UBX protocol.  It is documented here.
Select the code, as I have below and copy it to the clipboard.

u-Center Get Hex Code
u-Center Get Hex Code


You can send this to the GPS unit using an echo command which is redirect to the serial0 interface on the Raspberry Pi.

pi@raspberrypi ~ $ echo -e -n “\xB5\x62\x06\x01\x08\x00\xF0\x03\x01\x00\x00\x01\x01\x00\x05\x43” > /dev/serial0

-e enable interpretation of backslash escapes
-n do not output the trailing newline
\x means a HEX value

UBX Code Structure

The below information describes the frames structure used for the UBX protocol.

UBX Protocol
UBX Protocol
  • Every Frame starts with a 2-byte Preamble consisting of two synchronization characters: 0xB5 0x62.
  • A 1-byte Message Class field follows. A Class is a group of messages that are related to each other.
  • A 1-byte Message ID field defines the message that is to follow.
  • A 2-byte Length field follows. The length is defined as being
    that of the payload only. It does not include the Preamble, Message Class, Message ID, Length, or CRC fields. The number format of the length field is a Little-Endian unsigned 16-bit integer.
  • The Payload field contains a variable number of bytes.
  • The two 1-byte CK_A and CK_B fields hold a 16-bit checksum.



Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.