CLEON CONNECTOR  1.0
Parameter updating SW for cloud-offloaded GPS receiver (CLEON)
Constants.cs
Go to the documentation of this file.
1 using System;
2 using System.Collections.Generic;
3 using System.Linq;
4 using System.Text;
5 
6 namespace CLEON_Connector
7 {
8  // Public constants
9  static class Constants
10  {
11  // Time span for each operation
12  public const int minimumTimespanForCapturingAndStoringAChunk = 50; // 50 ms
13  public const int minimumTimespanForGPSStabilization = 100; // 100 ms
14 
15  // Power consumption for each operation
16  public const double powerConsumptionForGPSinOperation = 30.5; // 30.5 mA
17  public const double powerConsumptionForWritingToMicroSD = 40.0; // 40 mA
18  public const double powerConsumptionForIdleState = 2.5; // 2.5 mA
19 
20  // For serial communication over USB
21  public const byte serialFrameLength = 36;
22 
23  public const byte serialFrameHeader = 0x55;
24  public const byte serialFrameFooter = 0xAA;
25 
26  public const byte serialFrameDataAndCommandLength = 30;
27 
28  public const byte commandConnect = 0x01;
29  public const byte commandUpdateRTCTime = 0x02;
30  public const byte commandUpdateTimeTick = 0x03;
31  public const byte commandUpdateSampleCount = 0x04;
32  public const byte commandUpdateSampleGap = 0x05;
33  public const byte commandUpdateChunkCount = 0x06;
34  public const byte commnadUpdateChunkGap = 0x07;
35  public const byte commandAck = 0xff;
36  }
37 }