In the program I receive the data in a format of report NMEA. As I can obtain the data in format UBX. whether it is possible
Which serial link do you use?
To my knowledge, the UBX format is only available in auxiliary link.