This presentation shows, in great detail, what an iBeacon broadcast protocol looks like. You can use this information to build your own beacon device.