IRNSS Click Example.
Description
This example application reads data, checks for specific command. If command is found checks for data validation and if it's found logs that data to UART terminal.
The demo application is composed of two sections :
Application Init
Initializes log and device communication modules.
Application Task
Collects data and waits for Latitude, longitude, and altitude data from the device. When it's received logs data, and while waiting it will log '.' until data is received.
Additional Function
- static void irnss_clear_app_buf ( void ) - Function clears memory of app_buf.
- static err_t irnss_process ( void ) - The general process of collecting presponce that a module sends.
- static err_t irnss_cmd_parser ( char *cmd ) - This function searches app_buf for cmd and logs data of that command.
- static err_t irnss_element_parser ( char *cmd, uint8_t element, char *element_data ) - This function searches app_buf for cmd and it's element and copies data to element_data buffer.
note:
- For the device to connect it can take it from 1 to 8 minutes to get useful data from satellites. Time to connect is depending on weather, do you have an external antenna, etc.
- Author
- Luka Filipovic