The standard format for the BLE packet in data transmission protocol is:
Command Byte (1 byte) + Device Identification ID (2 bytes) + Data (12-16 bytes) + CheckSum(1 byte)
Command section: These will be hex values that you have to specify according to the type of command (eg. Device Name, Factory Information, Temperature and Humidity data etc.)
Device Identification ID: This will consist of the UUID of the receiving device (it can be 16 bit if its a SIG Group Generated UUID or 128 bit if you are testing)
Data Section: This part will contain all the data that you want to send (it can be between 12 and 16 bytes, although it is recommended that you fix the length of the data packet)
CheckSum: For error correction. You can use a different mechanism but then you will have to adjust your data part accordingly)
You have to define a custom gatt profile and server if you are planning to implement something that doesn't already have an existing profile on the SIG Bluetooth Site.
P.S. Read up more on the device specifications of your external device and also check out the core specs on the bluetooth website. Everything you do must conform to their standards
Alright, Hope this helped..
Cheers!