Go to content

BktTimeSyncGPS - BktSoftware

Skip menu

BktTimeSyncGPS

Android
What is BktTimeSyncGPS?
BktTimeSyncGPS is an Android smartphone application specifically designed to make the precise time and position data provided by the phone's integrated GPS sensor available.
What is it for?
The main purpose is to use this GPS data for synchronizing the time of other devices (such as a PC). The app on the smartphone acts as the "source" of the GPS time, while a client software on the PC (e.g., BktTimeSync or Telnet) receives this data.
How Does it Share Data?
The application can share the collected GPS data through two wireless connection modes:
  1. Bluetooth:
    • Requirement: Before establishing a connection for synchronization via Bluetooth, it is mandatory that the Android smartphone running BktTimeSyncGPS and the receiving device (e.g., the PC) have been previously paired (Bluetooth pairing).
    • This mode is useful for direct short-range connections.
  2. WLAN (Wi-Fi):
    • In this case, both devices (smartphone and PC/other device) must be connected to the same local Wi-Fi network.
    • This mode is useful if the devices are on the same network but not necessarily very close, or if Bluetooth is not preferred.
Internet Connection:
An important point is that BktTimeSyncGPS does not require an active Internet connection to function. The app relies solely on the signals received from the GPS system and the local connection (Bluetooth or WLAN) to transmit the data.
App Installation:
  1. Method: A simple way to get the app is to scan the appropriate QR code with the smartphone's camera (a QR code reader app might be needed if not built-in).
  2. Security Enablement: Since the app does not come from the Google Play Store, it is necessary to temporarily enable the Android security setting that allows "Installation from unknown sources" (or "Install unknown apps"). This option is usually found in the phone's security settings or app settings.
Initial Setup and Permissions:
  1. Accept All Permissions: On the first launch, BktTimeSyncGPS will request several permissions to function correctly. It is crucial to accept them all.
  2. Crucial Location Permission: Particular attention must be paid to the permission for Location access. The default or initially chosen setting might be "Allow only while using the app". This setting is not sufficient. It must be manually changed in the phone's app settings, selecting the "Allow all the time" option (or similar wording). This is vital because it allows the app to access GPS data even when it is not active in the foreground (running in the background), ensuring the continuous availability of data for synchronization.
How to Use (Synchronization Procedure):
  1. Start the App on the Smartphone: Open the BktTimeSyncGPS application on the Android smartphone. Ensure it is waiting for Bluetooth and/or WLAN reception.
  2. Configure BktTimeSync on the PC:
    • Start BktTimeSync on the PC that needs to receive the data.
    • Find the section dedicated to connecting with BktTimeSyncGPS.
    • Enable reception: Check the checkbox labeled "Enable" (or similar) within the "BktTimeSyncGPS" group.
  3. Choose and Configure the Connection Mode on the PC:
    • If choosing Bluetooth mode:
      • ▪ Ensure the smartphone and PC have already been paired via Bluetooth.
      • ▪ In the PC software, select the "Bluetooth" mode.
      • ▪ From the appropriate dropdown menu (or device list), select the name of the smartphone running BktTimeSyncGPS.
    • If choosing WLAN mode:
      • ▪ Ensure the smartphone and PC are connected to the same Wi-Fi network.
      • ▪ In the PC software, select the "WLAN" mode.
      • ▪ Open the BktTimeSyncGPS app on the smartphone and note the IP address displayed in the WLAN section (e.g., "WLAN IP Address: 192.168.1.XXX").
      • Enter this IP address into the corresponding field within the PC software.
  4. Start Synchronization: Once the connection is configured on the PC, the software should start receiving GPS data from the smartphone and proceed with time synchronization.
In summary:
BktTimeSyncGPS uses the phone's GPS to provide time synchronization data via Bluetooth (requires pairing) or WLAN (same network), it does not need internet. It is installed via QR code (enabling unknown sources) and requires accepting all permissions, with the location permission set to "Allow all the time". To use it, start the app on the smartphone, enable reception in the client software on the PC (e.g., BktTimeSync), and choose/configure the Bluetooth (selecting the device) or WLAN (entering the smartphone's IP) connection.

Example String:
LAT:45.19228495,LON:10.18142348,SPD:0,ALT:89.30828857421875,BRG:0,NSAT:42,TIME:03/29/2025 10:09:34,MS:1743239374000
General Structure:
The string consists of a series of "key:value" pairs, separated by commas (,). Each pair represents specific data obtained from the smartphone's GPS sensor.
Field Explanations:
  1. LAT:45.19228495
    • Key: LAT (Latitude)
    • Value: 45.19228495
    • Description: Indicates the current latitude of the position detected by the GPS, expressed in decimal degrees. A positive value indicates the Northern Hemisphere.
  2. LON:10.18142348
    • Key: LON (Longitude)
    • Value: 10.18142348
    • Description: Indicates the current longitude of the position detected by the GPS, expressed in decimal degrees. A positive value indicates the Eastern Hemisphere (relative to Greenwich).
  3. SPD:0
    • Key: SPD (Speed)
    • Value: 0
    • Description: Indicates the current speed of the device over ground. The unit is typically meters per second (m/s) or knots. A value of 0 indicates the device is stationary.
  4. ALT:89.30828857421875
    • Key: ALT (Altitude)
    • Value: 89.30828857421875
    • Description: Indicates the altitude of the current position, usually expressed in meters relative to Mean Sea Level (MSL) or the WGS84 ellipsoid.
  5. BRG:0
    • Key: BRG (Bearing)
    • Value: 0
    • Description: Indicates the direction of movement (course over ground), expressed in degrees relative to true North (from 0 to 359.9). A value of 0 can indicate North or that the direction is indeterminable because the device is stationary (as indicated by SPD:0).
  6. NSAT:42
    • Key: NSAT (Number of Satellites)
    • Value: 42
    • Description: Indicates the number of GPS satellites (and potentially other systems like GLONASS, Galileo, BeiDou) that the receiver is currently using or tracking to calculate the position and time. Note: The exact meaning (used vs. tracked) can vary depending on the specific GPS implementation.
  7. TIME:03/29/2025 10:09:34
    • Key: TIME
    • Value: 03/29/2025 10:09:34
    • Description: Indicates the current date and time provided by the GPS system. This time is based on the atomic clocks in the satellites. The format here is Month/Day/Year Hour:Minutes:Seconds.
  8. MS:1743239374000
    • Key: MS (Milliseconds)
    • Value: 1743239374000
    • Description: Represents the same point in time as the TIME field, but expressed as a Unix timestamp in milliseconds. It is the number of milliseconds elapsed since 00:00:00 UTC on January 1, 1970. This numerical format is often easier for computers to process and is useful for precise time calculations.
In summary, this string provides a comprehensive packet of information including position (latitude, longitude, altitude), movement (speed, bearing), signal quality (number of satellites), and, crucially for synchronization, the precise GPS time (both in human-readable format and as Unix milliseconds).
Back to content