Skip to content

Commit a5c325c

Browse files
committed
Merge branch 'ARDIN-28-ANCS-example'
2 parents 58b5012 + 96753db commit a5c325c

14 files changed

+2228
-0
lines changed

Release notes.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,11 @@
1+
#Release notes 0.9.4:
2+
3+
##Changes:
4+
* Added limited ANCS template
5+
* Removed sleep.h for !defined(__SAM3X8E__) && !defined(__PIC32MX__)
6+
* Attempted to reduce RAM usage
7+
8+
19
#Release notes 0.9.3:
210

311
##Changes:
Lines changed: 287 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,287 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<!DOCTYPE AttributeServer>
3+
<Profile Version="1.3">
4+
<SetupId>1</SetupId>
5+
<Device>nRF8001_Dx</Device>
6+
<Service Type="local" PrimaryService="true">
7+
<Name>TX Power</Name>
8+
<Uuid>1804</Uuid>
9+
<Characteristic>
10+
<Name>TX Power Level</Name>
11+
<Uuid>2a07</Uuid>
12+
<DefaultValue>0</DefaultValue>
13+
<UsePresentationFormat>0</UsePresentationFormat>
14+
<MaxDataLength>1</MaxDataLength>
15+
<AttributeLenType>1</AttributeLenType>
16+
<ForceOpen>false</ForceOpen>
17+
<Properties>
18+
<WriteWithoutResponse>false</WriteWithoutResponse>
19+
<Write>false</Write>
20+
<Notify>false</Notify>
21+
<Indicate>false</Indicate>
22+
<Broadcast>false</Broadcast>
23+
</Properties>
24+
<SetPipe>true</SetPipe>
25+
<AckIsAuto>true</AckIsAuto>
26+
<PresentationFormatDescriptor Value="0000" Exponent="0" Format="1" NameSpace="01" Unit="0000"/>
27+
<PeriodForReadingThisCharacteristic>0</PeriodForReadingThisCharacteristic>
28+
<PeriodForProperties/>
29+
</Characteristic>
30+
</Service>
31+
<Service Type="local" PrimaryService="true">
32+
<Name>Immediate Alert</Name>
33+
<Uuid>1802</Uuid>
34+
<Characteristic>
35+
<Name>Alert Level</Name>
36+
<Uuid>2a06</Uuid>
37+
<DefaultValue></DefaultValue>
38+
<UsePresentationFormat>0</UsePresentationFormat>
39+
<MaxDataLength>1</MaxDataLength>
40+
<AttributeLenType>1</AttributeLenType>
41+
<ForceOpen>false</ForceOpen>
42+
<Properties>
43+
<WriteWithoutResponse>true</WriteWithoutResponse>
44+
<Write>false</Write>
45+
<Notify>false</Notify>
46+
<Indicate>false</Indicate>
47+
<Broadcast>false</Broadcast>
48+
</Properties>
49+
<SetPipe>false</SetPipe>
50+
<AckIsAuto>true</AckIsAuto>
51+
<PresentationFormatDescriptor Value="0000" Exponent="0" Format="1" NameSpace="01" Unit="0000"/>
52+
<PeriodForReadingThisCharacteristic>0</PeriodForReadingThisCharacteristic>
53+
<PeriodForProperties/>
54+
</Characteristic>
55+
</Service>
56+
<Service Type="local" PrimaryService="true">
57+
<Name>Link Loss Alert</Name>
58+
<Uuid>1803</Uuid>
59+
<Characteristic>
60+
<Name>Alert Level</Name>
61+
<Uuid>2a06</Uuid>
62+
<DefaultValue>0</DefaultValue>
63+
<UsePresentationFormat>0</UsePresentationFormat>
64+
<MaxDataLength>1</MaxDataLength>
65+
<AttributeLenType>1</AttributeLenType>
66+
<ForceOpen>false</ForceOpen>
67+
<Properties>
68+
<WriteWithoutResponse>false</WriteWithoutResponse>
69+
<Write>true</Write>
70+
<Notify>false</Notify>
71+
<Indicate>false</Indicate>
72+
<Broadcast>false</Broadcast>
73+
</Properties>
74+
<SetPipe>false</SetPipe>
75+
<AckIsAuto>true</AckIsAuto>
76+
<PresentationFormatDescriptor Value="0000" Exponent="0" Format="1" NameSpace="01" Unit="0000"/>
77+
<PeriodForReadingThisCharacteristic>0</PeriodForReadingThisCharacteristic>
78+
<PeriodForProperties/>
79+
</Characteristic>
80+
</Service>
81+
<Service Type="local" PrimaryService="true">
82+
<Name>Battery</Name>
83+
<Uuid>180f</Uuid>
84+
<Characteristic>
85+
<Name>Battery Level</Name>
86+
<Uuid>2a19</Uuid>
87+
<DefaultValue>64</DefaultValue>
88+
<UsePresentationFormat>0</UsePresentationFormat>
89+
<MaxDataLength>1</MaxDataLength>
90+
<AttributeLenType>1</AttributeLenType>
91+
<ForceOpen>false</ForceOpen>
92+
<Properties>
93+
<WriteWithoutResponse>false</WriteWithoutResponse>
94+
<Write>false</Write>
95+
<Notify>true</Notify>
96+
<Indicate>false</Indicate>
97+
<Broadcast>false</Broadcast>
98+
</Properties>
99+
<SetPipe>true</SetPipe>
100+
<AckIsAuto>false</AckIsAuto>
101+
<PresentationFormatDescriptor Value="0000" Exponent="0" Format="4" NameSpace="01" Unit="27AD"/>
102+
<PeriodForReadingThisCharacteristic>0</PeriodForReadingThisCharacteristic>
103+
<PeriodForProperties/>
104+
</Characteristic>
105+
</Service>
106+
<Service Type="remote" PrimaryService="true">
107+
<Name>Immediate Alert</Name>
108+
<Uuid>1802</Uuid>
109+
<Characteristic>
110+
<Name>Alert Level</Name>
111+
<Uuid>2a06</Uuid>
112+
<DefaultValue>0</DefaultValue>
113+
<UsePresentationFormat>0</UsePresentationFormat>
114+
<MaxDataLength>1</MaxDataLength>
115+
<AttributeLenType>1</AttributeLenType>
116+
<ForceOpen>false</ForceOpen>
117+
<Properties>
118+
<Read>false</Read>
119+
<WriteWithoutResponse>true</WriteWithoutResponse>
120+
<Write>false</Write>
121+
<Notify>false</Notify>
122+
<Indicate>false</Indicate>
123+
<Broadcast>false</Broadcast>
124+
</Properties>
125+
<AckIsAuto>true</AckIsAuto>
126+
<PresentationFormatDescriptor Value="0000" Exponent="0" Format="1" NameSpace="01" Unit="0000"/>
127+
<PeriodForReadingThisCharacteristic>0</PeriodForReadingThisCharacteristic>
128+
<PeriodForProperties/>
129+
</Characteristic>
130+
</Service>
131+
<Service Type="local" PrimaryService="true">
132+
<Name>Device Information</Name>
133+
<Uuid>180a</Uuid>
134+
<Characteristic>
135+
<Name>Hardware Revision String</Name>
136+
<Uuid>2a27</Uuid>
137+
<DefaultValue></DefaultValue>
138+
<UsePresentationFormat>0</UsePresentationFormat>
139+
<MaxDataLength>9</MaxDataLength>
140+
<AttributeLenType>2</AttributeLenType>
141+
<ForceOpen>false</ForceOpen>
142+
<Properties>
143+
<WriteWithoutResponse>false</WriteWithoutResponse>
144+
<Write>false</Write>
145+
<Notify>false</Notify>
146+
<Indicate>false</Indicate>
147+
<Broadcast>false</Broadcast>
148+
</Properties>
149+
<SetPipe>true</SetPipe>
150+
<AckIsAuto>false</AckIsAuto>
151+
<PresentationFormatDescriptor Value="0000" Exponent="0" Format="25" NameSpace="01" Unit="0000"/>
152+
<PeriodForReadingThisCharacteristic>0</PeriodForReadingThisCharacteristic>
153+
<PeriodForProperties/>
154+
</Characteristic>
155+
</Service>
156+
<Service Type="remote" PrimaryService="true">
157+
<Name>ANCS</Name>
158+
<Uuid BaseUUID="79050000B5CE4E99A40F4B1E122D00D0" BaseUUIDName="ANCS">f431</Uuid>
159+
<Characteristic>
160+
<Name>Notification Source</Name>
161+
<Uuid BaseUUID="9fbf0000630142d98c5825e699A21DBD" BaseUUIDName="ANCS Notification Source">120d</Uuid>
162+
<DefaultValue></DefaultValue>
163+
<UsePresentationFormat>0</UsePresentationFormat>
164+
<MaxDataLength>20</MaxDataLength>
165+
<AttributeLenType>1</AttributeLenType>
166+
<ForceOpen>false</ForceOpen>
167+
<Properties>
168+
<Read>false</Read>
169+
<WriteWithoutResponse>false</WriteWithoutResponse>
170+
<Write>false</Write>
171+
<Notify>true</Notify>
172+
<Indicate>false</Indicate>
173+
<Broadcast>false</Broadcast>
174+
</Properties>
175+
<AckIsAuto>false</AckIsAuto>
176+
<PresentationFormatDescriptor Value="0000" Exponent="0" Format="1" NameSpace="01" Unit="0000"/>
177+
<PeriodForReadingThisCharacteristic>0</PeriodForReadingThisCharacteristic>
178+
<PeriodForProperties/>
179+
</Characteristic>
180+
<Characteristic>
181+
<Name>Control Point</Name>
182+
<Uuid BaseUUID="69D1000045E149A898219BBDFDAAD9D9" BaseUUIDName="ANCS Control Point">d8f3</Uuid>
183+
<DefaultValue></DefaultValue>
184+
<UsePresentationFormat>0</UsePresentationFormat>
185+
<MaxDataLength>20</MaxDataLength>
186+
<AttributeLenType>1</AttributeLenType>
187+
<ForceOpen>false</ForceOpen>
188+
<Properties>
189+
<Read>false</Read>
190+
<WriteWithoutResponse>false</WriteWithoutResponse>
191+
<Write>true</Write>
192+
<Notify>false</Notify>
193+
<Indicate>false</Indicate>
194+
<Broadcast>false</Broadcast>
195+
</Properties>
196+
<AckIsAuto>false</AckIsAuto>
197+
<PresentationFormatDescriptor Value="0000" Exponent="0" Format="1" NameSpace="01" Unit="0000"/>
198+
<PeriodForReadingThisCharacteristic>0</PeriodForReadingThisCharacteristic>
199+
<PeriodForProperties/>
200+
</Characteristic>
201+
<Characteristic>
202+
<Name>Data Source</Name>
203+
<Uuid BaseUUID="22EA000024D64BB5BE44B36ACE7C7BFB" BaseUUIDName="ANCS Data Source">c6e9</Uuid>
204+
<DefaultValue></DefaultValue>
205+
<UsePresentationFormat>0</UsePresentationFormat>
206+
<MaxDataLength>20</MaxDataLength>
207+
<AttributeLenType>1</AttributeLenType>
208+
<ForceOpen>false</ForceOpen>
209+
<Properties>
210+
<Read>false</Read>
211+
<WriteWithoutResponse>false</WriteWithoutResponse>
212+
<Write>false</Write>
213+
<Notify>true</Notify>
214+
<Indicate>false</Indicate>
215+
<Broadcast>false</Broadcast>
216+
</Properties>
217+
<AckIsAuto>false</AckIsAuto>
218+
<PresentationFormatDescriptor Value="0000" Exponent="0" Format="1" NameSpace="01" Unit="0000"/>
219+
<PeriodForReadingThisCharacteristic>0</PeriodForReadingThisCharacteristic>
220+
<PeriodForProperties/>
221+
</Characteristic>
222+
</Service>
223+
<Gapsettings>
224+
<Name>ANCS Rusk</Name>
225+
<DeviceNameWriteLength>0</DeviceNameWriteLength>
226+
<LocalPipeOnDeviceName>false</LocalPipeOnDeviceName>
227+
<DeviceNameShortLength>3</DeviceNameShortLength>
228+
<Apperance>0240</Apperance>
229+
<SecurityLevel>1</SecurityLevel>
230+
<AuthenticationReq>0</AuthenticationReq>
231+
<IoCapabilities>0</IoCapabilities>
232+
<BondTimeout>600</BondTimeout>
233+
<SecurityRequestDelay>99</SecurityRequestDelay>
234+
<MinimumKeySize>7</MinimumKeySize>
235+
<MaximumKeySize>16</MaximumKeySize>
236+
<AdvertisingDataBondedBitmap>10</AdvertisingDataBondedBitmap>
237+
<AdvertisingDataGeneralBitmap>10</AdvertisingDataGeneralBitmap>
238+
<AdvertisingDataBrodcastBitmap>0</AdvertisingDataBrodcastBitmap>
239+
<AdvertisingDataBondedScanResponseBitmap>2c40</AdvertisingDataBondedScanResponseBitmap>
240+
<AdvertisingDataGeneralScanResponseBitmap>2c40</AdvertisingDataGeneralScanResponseBitmap>
241+
<AdvertisingDataBrodcastScanResponseBitmap>0</AdvertisingDataBrodcastScanResponseBitmap>
242+
<AdvertisingDataBondedBitmapCustom>1</AdvertisingDataBondedBitmapCustom>
243+
<AdvertisingDataGeneralBitmapCustom>1</AdvertisingDataGeneralBitmapCustom>
244+
<AdvertisingDataBrodcastBitmapCustom>0</AdvertisingDataBrodcastBitmapCustom>
245+
<AdvertisingDataBondedScanResponseBitmapCustom>0</AdvertisingDataBondedScanResponseBitmapCustom>
246+
<AdvertisingDataGeneralScanResponseBitmapCustom>0</AdvertisingDataGeneralScanResponseBitmapCustom>
247+
<AdvertisingDataBrodcastScanResponseBitmapCustom>0</AdvertisingDataBrodcastScanResponseBitmapCustom>
248+
<TxPowerLevelOffset>0</TxPowerLevelOffset>
249+
<MinimumConnectionInterval>400</MinimumConnectionInterval>
250+
<MaximumConnectionInterval>800</MaximumConnectionInterval>
251+
<SlaveLatency>0</SlaveLatency>
252+
<TimeoutMultipler>600</TimeoutMultipler>
253+
<AddServiceUpdateCharacteristic>true</AddServiceUpdateCharacteristic>
254+
<AddServiceUpdateCharacteristicPipe>true</AddServiceUpdateCharacteristicPipe>
255+
<SercieToSolicitate>
256+
<Uuid BaseUUID="79050000B5CE4E99A40F4B1E122D00D0" BaseUUIDName="ANCS">f431</Uuid>
257+
</SercieToSolicitate>
258+
<CustomAdTypes>
259+
<AdType index="1">
260+
<Type>19</Type>
261+
<Value>4002</Value>
262+
</AdType>
263+
<AdType index="2">
264+
<Type>18</Type>
265+
<Value></Value>
266+
</AdType>
267+
</CustomAdTypes>
268+
</Gapsettings>
269+
<Hardwaresettings>
270+
<Clocksource>1</Clocksource>
271+
<ClockAccuracy>1</ClockAccuracy>
272+
<InitialTxPower>3</InitialTxPower>
273+
<HfClkSource>0</HfClkSource>
274+
<DcDcConverter>0</DcDcConverter>
275+
<ActiveSignalModeIndex>0</ActiveSignalModeIndex>
276+
<ActiveSignalToTickDistance>0</ActiveSignalToTickDistance>
277+
<DynamicWindowLimitingEnabled>true</DynamicWindowLimitingEnabled>
278+
</Hardwaresettings>
279+
<CurrentInput>
280+
<BatteryCharge>220</BatteryCharge>
281+
<Master32KhzClockAccuracy>10</Master32KhzClockAccuracy>
282+
<ConnectionInterval>1000</ConnectionInterval>
283+
<PercentOfTimeSleeping>0</PercentOfTimeSleeping>
284+
<PercentOfTimeAdvertising>0</PercentOfTimeAdvertising>
285+
<AdvertisingInterval>1280</AdvertisingInterval>
286+
</CurrentInput>
287+
</Profile>
Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
/* Copyright (c) 2014, Nordic Semiconductor ASA
2+
*
3+
* Permission is hereby granted, free of charge, to any person obtaining a copy
4+
* of this software and associated documentation files (the "Software"), to deal
5+
* in the Software without restriction, including without limitation the rights
6+
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
7+
* copies of the Software, and to permit persons to whom the Software is
8+
* furnished to do so, subject to the following conditions:
9+
*
10+
* The above copyright notice and this permission notice shall be included in all
11+
* copies or substantial portions of the Software.
12+
*
13+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
14+
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
15+
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
16+
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
17+
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
18+
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
19+
* SOFTWARE.
20+
*/
21+
22+
/* Attention!
23+
* To maintain compliance with Nordic Semiconductor ASA's Bluetooth profile
24+
* qualification listings, this section of source code must not be modified.
25+
*/
26+
27+
#ifndef ALERT_LEVEL_CHARACTERISTIC_H
28+
#define ALERT_LEVEL_CHARACTERISTIC_H
29+
30+
/** @file
31+
* @brief
32+
*/
33+
34+
/** @defgroup alert_level_characteristic alert_level_characteristic
35+
* @{
36+
* @ingroup services
37+
*
38+
* @brief alert_level_characteristic : defines possibles alert levels.
39+
*
40+
*/
41+
42+
/** Possible Alert Levels*/
43+
typedef enum alert_level_t
44+
{
45+
/** No alert*/
46+
ALERT_LEVEL_NO_ALERT = 0,
47+
/** Mild/moderate alert*/
48+
ALERT_LEVEL_MILD_ALERT = 1,
49+
/** high alert*/
50+
ALERT_LEVEL_HIGH_ALERT = 2,
51+
}alert_level_t;
52+
53+
/** @} */
54+
55+
#endif // ALERT_LEVEL_CHARACTERISTIC_H

0 commit comments

Comments
 (0)