This project's goal is to take photos on Sony cameras (models ILCE-..), with location information, by using external gps module and bluetooth connection.
The geotagging feature is avaialbe to sony cameras by using the Imaging Edge Mobile apk on the phone. By enabling the Location Information Linkage option, the apk shares via bluetooth the location of the smartphone to camera.
By reverse engineering the apk, it is possible to use an external device (raspberry, laptop, esp, etc) to send location information.
The above scripts show how to create the right location package and send it to camera.
NOTE: On first connection with camera, you should pair the external device through camera's menu.
More information on the Location BLE packet can be found on this repo: https://github.com/whc2001/ILCE7M3ExternalGps/blob/main/PROTOCOL_EN.md
More information on the Sony BLE Interface can be found on this page: https://gethypoxic.com/blogs/technical/sony-camera-ble-control-protocol-di-remote-control