comparison Small_CPU/Inc/GNSS.h @ 936:3029f0332f4f Evo_2_23

GNSS introduced power saving mode: In the previous implementation the modul always did a cold start. In the new one the power saving functions of the module are activated. The module will be switched to intervall mode while entering sleep. If the computer remains in sleep for a long time then the GNSS modul will be switchen of completly.
author Ideenmodellierer
date Sun, 08 Dec 2024 22:03:07 +0100
parents 43055e069bd1
children f41974734268
comparison
equal deleted inserted replaced
935:f2494a708f52 936:3029f0332f4f
113 113
114 static const uint8_t getPVTData[]={0xB5,0x62,0x01,0x07,0x00,0x00}; 114 static const uint8_t getPVTData[]={0xB5,0x62,0x01,0x07,0x00,0x00};
115 115
116 static const uint8_t getNavSat[]={0xB5,0x62,0x01,0x35,0x00,0x00}; 116 static const uint8_t getNavSat[]={0xB5,0x62,0x01,0x35,0x00,0x00};
117 117
118 static const uint8_t setPowerLow[]={0xB5,0x62,0x06,0x86,0x08,0x00,0x02,0xff,0x00,0x1E,0x00,0x00,0x00}; 118 static const uint8_t setPowerLow[]={0xB5,0x62,0x06,0x86,0x08,0x00,0x00,0x02,0x78,0x00,0x14,0x00,0x00,0x00};
119
120 static const uint8_t setPowerNormal[]={0xB5,0x62,0x06,0x86,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00};
119 121
120 static const uint8_t setPortableMode[]={0xB5,0x62,0x06,0x24,0x24,0x00,0xFF,0xFF,0x00,0x03,0x00,0x00,0x00,0x00,0x10,0x27,0x00,0x00,0x05,0x00,0xFA,0x00,0xFA,0x00,0x64,0x00,0x5E,0x01,0x00,0x3C,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00}; 122 static const uint8_t setPortableMode[]={0xB5,0x62,0x06,0x24,0x24,0x00,0xFF,0xFF,0x00,0x03,0x00,0x00,0x00,0x00,0x10,0x27,0x00,0x00,0x05,0x00,0xFA,0x00,0xFA,0x00,0x64,0x00,0x5E,0x01,0x00,0x3C,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00};
121 123
122 static const uint8_t setPedestrianMode[]={0xB5,0x62,0x06,0x24,0x24,0x00,0xFF,0xFF,0x03,0x03,0x00,0x00,0x00,0x00,0x10,0x27,0x00,0x00,0x05,0x00,0xFA,0x00,0xFA,0x00,0x64,0x00,0x5E,0x01,0x00,0x3C,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00}; 124 static const uint8_t setPedestrianMode[]={0xB5,0x62,0x06,0x24,0x24,0x00,0xFF,0xFF,0x03,0x03,0x00,0x00,0x00,0x00,0x10,0x27,0x00,0x00,0x05,0x00,0xFA,0x00,0xFA,0x00,0x64,0x00,0x5E,0x01,0x00,0x3C,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00};
123 125
126 static const uint8_t setConfig[]={0xB5,0x62,0x06,0x09,0x0D,0x00, 0x00,0x00,0x00,0x00, 0x18,0x00,0x00,0x00, 0x00,0x00,0x00,0x00, 0x01};
124 127
125 static const uint8_t setPortableType[]={}; 128 static const uint8_t setPortableType[]={};
126 void GNSS_Init(GNSS_StateHandle *GNSS, UART_HandleTypeDef *huart); 129 void GNSS_Init(GNSS_StateHandle *GNSS, UART_HandleTypeDef *huart);
127 void GNSS_LoadConfig(GNSS_StateHandle *GNSS); 130 void GNSS_LoadConfig(GNSS_StateHandle *GNSS);
128 uint8_t GNSS_ParseBuffer(GNSS_StateHandle *GNSS); 131 uint8_t GNSS_ParseBuffer(GNSS_StateHandle *GNSS);