Dummy Lora Packet Sending

Fork of Dealer_18feb17 by kumar singh

Committer:
NarendraSingh
Date:
Fri Jan 27 18:30:02 2017 +0000
Revision:
11:77e595130230
Child:
20:f812f85cf97e
Before implementing queue;

Who changed what in which revision?

UserRevisionLine numberNew contents of line
NarendraSingh 11:77e595130230 1 #include "mbed.h"
NarendraSingh 11:77e595130230 2 #include "Common_Defs.h"
NarendraSingh 11:77e595130230 3
NarendraSingh 11:77e595130230 4 //Macro Definitions
NarendraSingh 11:77e595130230 5 #define SET_BEACON_UUID_CMD0 0x01
NarendraSingh 11:77e595130230 6 #define SET_BEACON_UUID_CMD1 0x01
NarendraSingh 11:77e595130230 7 #define SET_SET_MAJOR_CMD0 0x01
NarendraSingh 11:77e595130230 8 #define SET_SET_MAJOR_CMD1 0x02
NarendraSingh 11:77e595130230 9 #define SET_SET_MINOR_CMD0 0x01
NarendraSingh 11:77e595130230 10 #define SET_SET_MINOR_CMD1 0x03
NarendraSingh 11:77e595130230 11 #define SET_SET_MEASURED_POWER_CMD0 0x01
NarendraSingh 11:77e595130230 12 #define SET_SET_MEASURED_POWER_CMD1 0x04
NarendraSingh 11:77e595130230 13 #define SET_TRANSMISSION_POWER_CMD0 0x01
NarendraSingh 11:77e595130230 14 #define SET_TRANSMISSION_POWER_CMD1 0x05
NarendraSingh 11:77e595130230 15 #define SET_PAIRING_PASSWORD_CMD0 0x01
NarendraSingh 11:77e595130230 16 #define SET_PAIRING_PASSWORD_CMD1 0x06
NarendraSingh 11:77e595130230 17 #define SET_BROADCAST_INTERVAL_CMD0 0x01
NarendraSingh 11:77e595130230 18 #define SET_BROADCAST_INTERVAL_CMD1 0x07
NarendraSingh 11:77e595130230 19 #define SET_IBEACON_NAME_CMD0 0x01
NarendraSingh 11:77e595130230 20 #define SET_IBEACON_NAME_CMD1 0x08
NarendraSingh 11:77e595130230 21 #define SET_START_BEACON_CMD0 0x01 //Open Beacon
NarendraSingh 11:77e595130230 22 #define SET_START_BEACON_CMD1 0x09
NarendraSingh 11:77e595130230 23 #define SET_STOP_BEACON_CMD0 0x01 //Close Beacon
NarendraSingh 11:77e595130230 24 #define SET_STOP_BEACON_CMD1 0x0A
NarendraSingh 11:77e595130230 25 #define SET_SOFT_REBOOT_CMD0 0x01
NarendraSingh 11:77e595130230 26 #define SET_SOFT_REBOOT_CMD1 0x0B
NarendraSingh 11:77e595130230 27
NarendraSingh 11:77e595130230 28 extern unsigned char SET_UUID[21];
NarendraSingh 11:77e595130230 29 extern unsigned char SET_MAJOR[7];
NarendraSingh 11:77e595130230 30 extern unsigned char SET_MINOR[7];
NarendraSingh 11:77e595130230 31 extern unsigned char SET_MEASURED_POWER[6];
NarendraSingh 11:77e595130230 32 extern unsigned char SET_TRANSMISSION_POWER[6];
NarendraSingh 11:77e595130230 33 extern unsigned char SET_PAIRING_PASSWORD[13];
NarendraSingh 11:77e595130230 34 extern unsigned char SET_BROADCAST_INTERVAL[6];
NarendraSingh 11:77e595130230 35 extern unsigned char SET_IBEACON_NAME[17];
NarendraSingh 11:77e595130230 36 extern unsigned char SOFT_REBOOT[13];
NarendraSingh 11:77e595130230 37 extern unsigned char SET_OPEN_BEACON[7];
NarendraSingh 11:77e595130230 38 extern unsigned char SET_CLOSE_BEACON[8];
NarendraSingh 11:77e595130230 39 extern uint8 BLE_Adv_Module_Beacon_ID[6];
NarendraSingh 11:77e595130230 40
NarendraSingh 11:77e595130230 41 extern uint8 Beacon_RxBuffer_Crnt_Pos,Beacon_RxBuffer_End_Pos; // must be volatile or the compiler may over-optimise.
NarendraSingh 11:77e595130230 42 extern uint8 Beacon_RX_Buffer[100];
NarendraSingh 11:77e595130230 43
NarendraSingh 11:77e595130230 44 extern void Process_Beacon_Command_Received(unsigned char* Command_Received);
NarendraSingh 11:77e595130230 45 extern void Change_Beacon_Parameter(unsigned char* Beacon_Parameter_To_Set);
NarendraSingh 11:77e595130230 46 extern void Initialize_Beacon_Module(void);