     SurfaceMiningEquipmentBEACON = 4
 };
 
-// BEACON WIRE PACKET FORMAT VERSION 2
-// Deisgned per Anurag, Gosh, Bandyopadhyay, "GPS based Vehicular Collision Warning System using IEEE 802.15.4 MAC/PHY Standard"
+// BEACON WIRE PACKET FORMAT (VERSION 2)
+// With five character local name, there remain two spare bytes (according to "nRF Connect" android app)
+// Format aligned with... Anurag, Gosh, Bandyopadhyay, "GPS based Vehicular Collision Warning System using IEEE 802.15.4 MAC/PHY Standard"
+char * localName = "C9999";
+int LOCALNAMESIZE = sizeof(localName);      //use for strncpy()
+#define GPS_SCALE 100000
+
 typedef union   
-{   uint8_t       raw[27];  
+{   uint8_t           raw[27]; 
     struct 
     {   uint16_t      companyID ;                   // Ref https://www.bluetooth.com/specifications/assigned-numbers/company-identifiers
         uint16_t      gpsForwardBearing;            // Azimuth

        .flag                = (ESP_BLE_ADV_FLAG_GEN_DISC|ESP_BLE_ADV_FLAG_BREDR_NOT_SPT)
};

static esp_ble_adv_params_t _adv_params = {
        .adv_int_min         = 512,
        .adv_int_max         = 1024,
        .adv_type            = ADV_TYPE_NONCONN_IND,

        .adv_filter_policy   = ADV_FILTER_ALLOW_SCAN_ANY_CON_ANY,
};

/////////////////////////
// BLE SUPPORT FUNCTIONS

static void 
_on_gap(esp_gap_ble_cb_event_t event, esp_ble_gap_cb_param_t *param){
    if(event == ESP_GAP_BLE_ADV_DATA_SET_COMPLETE_EVT){
        esp_ble_gap_start_advertising(&advertisement_params);
    }
}

static bool 
initialize_ble_gap(const char * name){
    if(!btStarted() && !btStart()){
        log_e("btStart failed");
        return false;
