11.07.2015 Views

UNIVERSITI TEKNOLOGI MALAYSIA - FKE - UTM

UNIVERSITI TEKNOLOGI MALAYSIA - FKE - UTM

UNIVERSITI TEKNOLOGI MALAYSIA - FKE - UTM

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

390x72 TemperatureReport_Ev HWhen Temperatureread fromINP4 TemperatureiButton is> PresetTemperatureThreshold. Checkon veryPolling time.Table 4.5 Temperature events0x6D 0x3C All ExtendedParam20x10 Info Data Packet0x010x1BFull GPS DataPacketTemperature ReportPacketMsgEventIDEvent/Trigger Priority GenerateCondition0xF5 Set_HumidityThreshold_Ev H Receive SetHumidityThresholdCommand, ID0xF50xF6 HumidityReport_Ev HWhen Humidityread fromINP4 HumidityiButton is> Preset HumidityThreshold. Checkon veryPolling time.Table 4.6 Humidity eventsOutputDataPackettoSend0x100x020x3C0x100x010x3DOutput DataPacketDescribtionInfo Data PacketSimplified GPSPacketAll ExtendedParam2Info Data PacketFull GPS DataPacketHumidity ReportPacketThe events are added into the sourcecode as shown in the figure and it iscontained in the file AsbData.c. AsbData.c file contain sourcecode that will ask theb’AT to compose various type of events into PDU message and send back to theserver./// Add code herecase Temperature_Report_Ev:case Temperature_Alert_Ev:// Put Log Fix Packet 26 BytepAsbBuf[j++] = ((GPS_FULL_PKT_ID & 0xFF) Data.LogPack,WSIZEOF(LOG_ITEM_PACKED));j += WSIZEOF(LOG_ITEM_PACKED);//Put Temperature Report PacketpAsbBuf[j++] = ((TEMP_PKT_ID & 0xFF)

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!