Init commit with many years of arduino sketches and projects. I dont know if the esp8266 includes much, but there are also libraries. I hope they dont have crazy automatic versioning through the Arduino IDE.

This commit is contained in:
2019-05-30 23:41:53 +02:00
parent 2d047634f2
commit 6c84b31f2c
1480 changed files with 198581 additions and 0 deletions

View File

@@ -0,0 +1,142 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE AttributeServer>
<Profile Version="1.3">
<SetupId>0</SetupId>
<Device>nRF8001_Dx</Device>
<Service Type="local" PrimaryService="true">
<Name>UART over BTLE</Name>
<Uuid BaseUUID="6e400000b5a3f393e0a9e50e24dcca9e" BaseUUIDName="Custom UART">0001</Uuid>
<Characteristic>
<Name>UART RX</Name>
<Uuid BaseUUID="6e400000b5a3f393e0a9e50e24dcca9e" BaseUUIDName="Custom UART">0002</Uuid>
<DefaultValue></DefaultValue>
<UsePresentationFormat>0</UsePresentationFormat>
<UserDescription></UserDescription>
<MaxDataLength>20</MaxDataLength>
<AttributeLenType>2</AttributeLenType>
<ForceOpen>false</ForceOpen>
<Properties>
<WriteWithoutResponse>true</WriteWithoutResponse>
<Write>false</Write>
<Notify>false</Notify>
<Indicate>false</Indicate>
<Broadcast>false</Broadcast>
</Properties>
<SetPipe>false</SetPipe>
<AckIsAuto>false</AckIsAuto>
<PresentationFormatDescriptor Value="0000" Exponent="0" Format="1" NameSpace="01" Unit="0000"/>
<PeriodForReadingThisCharacteristic>0</PeriodForReadingThisCharacteristic>
<PeriodForProperties/>
</Characteristic>
<Characteristic>
<Name>UART TX</Name>
<Uuid BaseUUID="6e400000b5a3f393e0a9e50e24dcca9e" BaseUUIDName="Custom UART">0003</Uuid>
<DefaultValue></DefaultValue>
<UsePresentationFormat>0</UsePresentationFormat>
<UserDescription></UserDescription>
<MaxDataLength>20</MaxDataLength>
<AttributeLenType>2</AttributeLenType>
<ForceOpen>false</ForceOpen>
<Properties>
<WriteWithoutResponse>false</WriteWithoutResponse>
<Write>false</Write>
<Notify>true</Notify>
<Indicate>false</Indicate>
<Broadcast>false</Broadcast>
</Properties>
<SetPipe>false</SetPipe>
<AckIsAuto>false</AckIsAuto>
<PresentationFormatDescriptor Value="0000" Exponent="0" Format="1" NameSpace="01" Unit="0000"/>
<PeriodForReadingThisCharacteristic>0</PeriodForReadingThisCharacteristic>
<PeriodForProperties/>
</Characteristic>
</Service>
<Service Type="local" PrimaryService="true">
<Name>Device Information</Name>
<Uuid>180a</Uuid>
<Characteristic>
<Name>Hardware Revision String</Name>
<Uuid>2a27</Uuid>
<DefaultValue>0A</DefaultValue>
<UsePresentationFormat>0</UsePresentationFormat>
<UserDescription></UserDescription>
<MaxDataLength>9</MaxDataLength>
<AttributeLenType>2</AttributeLenType>
<ForceOpen>false</ForceOpen>
<Properties>
<WriteWithoutResponse>false</WriteWithoutResponse>
<Write>false</Write>
<Notify>false</Notify>
<Indicate>false</Indicate>
<Broadcast>false</Broadcast>
</Properties>
<SetPipe>true</SetPipe>
<AckIsAuto>false</AckIsAuto>
<PresentationFormatDescriptor Value="0000" Exponent="0" Format="25" NameSpace="01" Unit="0000"/>
<PeriodForReadingThisCharacteristic>0</PeriodForReadingThisCharacteristic>
<PeriodForProperties/>
</Characteristic>
</Service>
<Gapsettings>
<Name>UART</Name>
<DeviceNameWriteLength>7</DeviceNameWriteLength>
<LocalPipeOnDeviceName>true</LocalPipeOnDeviceName>
<DeviceNameShortLength>0</DeviceNameShortLength>
<Apperance>0000</Apperance>
<SecurityLevel>0</SecurityLevel>
<AuthenticationReq>0</AuthenticationReq>
<IoCapabilities>0</IoCapabilities>
<BondTimeout>600</BondTimeout>
<SecurityRequestDelay>0</SecurityRequestDelay>
<MinimumKeySize>7</MinimumKeySize>
<MaximumKeySize>16</MaximumKeySize>
<AdvertisingDataBondedBitmap>1a</AdvertisingDataBondedBitmap>
<AdvertisingDataGeneralBitmap>1a</AdvertisingDataGeneralBitmap>
<AdvertisingDataBrodcastBitmap>10</AdvertisingDataBrodcastBitmap>
<AdvertisingDataBondedScanResponseBitmap>0</AdvertisingDataBondedScanResponseBitmap>
<AdvertisingDataGeneralScanResponseBitmap>0</AdvertisingDataGeneralScanResponseBitmap>
<AdvertisingDataBrodcastScanResponseBitmap>0</AdvertisingDataBrodcastScanResponseBitmap>
<AdvertisingDataBondedBitmapCustom>0</AdvertisingDataBondedBitmapCustom>
<AdvertisingDataGeneralBitmapCustom>0</AdvertisingDataGeneralBitmapCustom>
<AdvertisingDataBrodcastBitmapCustom>0</AdvertisingDataBrodcastBitmapCustom>
<AdvertisingDataBondedScanResponseBitmapCustom>0</AdvertisingDataBondedScanResponseBitmapCustom>
<AdvertisingDataGeneralScanResponseBitmapCustom>0</AdvertisingDataGeneralScanResponseBitmapCustom>
<AdvertisingDataBrodcastScanResponseBitmapCustom>0</AdvertisingDataBrodcastScanResponseBitmapCustom>
<TxPowerLevelOffset>0</TxPowerLevelOffset>
<MinimumConnectionInterval>6</MinimumConnectionInterval>
<MaximumConnectionInterval>18</MaximumConnectionInterval>
<SlaveLatency>0</SlaveLatency>
<TimeoutMultipler>10</TimeoutMultipler>
<ServiceToAdvertise>
<Uuid BaseUUID="6e400000b5a3f393e0a9e50e24dcca9e" BaseUUIDName="Custom UART">0001</Uuid>
</ServiceToAdvertise>
<CustomAdTypes>
<AdType index="1">
<Type>19</Type>
<Value>0000</Value>
</AdType>
<AdType index="2">
<Type>18</Type>
<Value></Value>
</AdType>
</CustomAdTypes>
</Gapsettings>
<Hardwaresettings>
<Clocksource>1</Clocksource>
<ClockAccuracy>1</ClockAccuracy>
<InitialTxPower>3</InitialTxPower>
<HfClkSource>0</HfClkSource>
<DcDcConverter>0</DcDcConverter>
<ActiveSignalModeIndex>0</ActiveSignalModeIndex>
<ActiveSignalToTickDistance>0</ActiveSignalToTickDistance>
<DynamicWindowLimitingEnabled>false</DynamicWindowLimitingEnabled>
</Hardwaresettings>
<CurrentInput>
<BatteryCharge>220</BatteryCharge>
<Master32KhzClockAccuracy>10</Master32KhzClockAccuracy>
<ConnectionInterval>1000</ConnectionInterval>
<PercentOfTimeSleeping>10</PercentOfTimeSleeping>
<PercentOfTimeAdvertising>10</PercentOfTimeAdvertising>
<AdvertisingInterval>1280</AdvertisingInterval>
</CurrentInput>
</Profile>

View File

@@ -0,0 +1,164 @@
/* Copyright (c) 2012 Nordic Semiconductor. All Rights Reserved.
*
* The information contained herein is property of Nordic Semiconductor ASA.
* Terms and conditions of usage are described in detail in NORDIC
* SEMICONDUCTOR STANDARD SOFTWARE LICENSE AGREEMENT.
*
* Licensees are granted free, non-transferable use of the information. NO
* WARRANTY of ANY KIND is provided. This heading must NOT be removed from
* the file.
*/
/**
* This file is autogenerated by nRFgo Studio 1.14.1.2369
*/
#ifndef SETUP_MESSAGES_H__
#define SETUP_MESSAGES_H__
#include "hal_platform.h"
#include "aci.h"
#define PIPE_GAP_DEVICE_NAME_SET 1
#define PIPE_UART_OVER_BTLE_UART_RX_RX 2
#define PIPE_UART_OVER_BTLE_UART_TX_TX 3
#define PIPE_DEVICE_INFORMATION_HARDWARE_REVISION_STRING_SET 4
#define NUMBER_OF_PIPES 4
#define SERVICES_PIPE_TYPE_MAPPING_CONTENT {\
{ACI_STORE_LOCAL, ACI_SET}, \
{ACI_STORE_LOCAL, ACI_RX}, \
{ACI_STORE_LOCAL, ACI_TX}, \
{ACI_STORE_LOCAL, ACI_SET}, \
}
#define GAP_PPCP_MAX_CONN_INT 0x12 /**< Maximum connection interval as a multiple of 1.25 msec , 0xFFFF means no specific value requested */
#define GAP_PPCP_MIN_CONN_INT 0x6 /**< Minimum connection interval as a multiple of 1.25 msec , 0xFFFF means no specific maximum*/
#define GAP_PPCP_SLAVE_LATENCY 0
#define GAP_PPCP_CONN_TIMEOUT 0xa /** Connection Supervision timeout multiplier as a multiple of 10msec, 0xFFFF means no specific value requested */
#define NB_SETUP_MESSAGES 21
#define SETUP_MESSAGES_CONTENT {\
{0x00,\
{\
0x07,0x06,0x00,0x00,0x03,0x02,0x41,0xd7,\
},\
},\
{0x00,\
{\
0x1f,0x06,0x10,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x04,0x00,0x04,0x01,0x01,0x00,0x00,0x06,0x00,0x00,\
0x90,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,\
},\
},\
{0x00,\
{\
0x1f,0x06,0x10,0x1c,0x01,0x02,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,\
0x00,0x00,0x00,0x14,0x00,0x00,0x00,0x14,0x03,0x90,0x01,0x64,\
},\
},\
{0x00,\
{\
0x1f,0x06,0x10,0x38,0x02,0xff,0x02,0x58,0x00,0x05,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,\
0x00,0x10,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,\
},\
},\
{0x00,\
{\
0x05,0x06,0x10,0x54,0x00,0x00,\
},\
},\
{0x00,\
{\
0x1f,0x06,0x20,0x00,0x04,0x04,0x02,0x02,0x00,0x01,0x28,0x00,0x01,0x00,0x18,0x04,0x04,0x05,0x05,0x00,\
0x02,0x28,0x03,0x01,0x0e,0x03,0x00,0x00,0x2a,0x04,0x14,0x07,\
},\
},\
{0x00,\
{\
0x1f,0x06,0x20,0x1c,0x04,0x00,0x03,0x2a,0x00,0x01,0x55,0x41,0x52,0x54,0x69,0x63,0x73,0x04,0x04,0x05,\
0x05,0x00,0x04,0x28,0x03,0x01,0x02,0x05,0x00,0x01,0x2a,0x06,\
},\
},\
{0x00,\
{\
0x1f,0x06,0x20,0x38,0x04,0x03,0x02,0x00,0x05,0x2a,0x01,0x01,0x00,0x00,0x04,0x04,0x05,0x05,0x00,0x06,\
0x28,0x03,0x01,0x02,0x07,0x00,0x04,0x2a,0x06,0x04,0x09,0x08,\
},\
},\
{0x00,\
{\
0x1f,0x06,0x20,0x54,0x00,0x07,0x2a,0x04,0x01,0x06,0x00,0x12,0x00,0x00,0x00,0x0a,0x00,0x04,0x04,0x02,\
0x02,0x00,0x08,0x28,0x00,0x01,0x01,0x18,0x04,0x04,0x10,0x10,\
},\
},\
{0x00,\
{\
0x1f,0x06,0x20,0x70,0x00,0x09,0x28,0x00,0x01,0x9e,0xca,0xdc,0x24,0x0e,0xe5,0xa9,0xe0,0x93,0xf3,0xa3,\
0xb5,0x01,0x00,0x40,0x6e,0x04,0x04,0x13,0x13,0x00,0x0a,0x28,\
},\
},\
{0x00,\
{\
0x1f,0x06,0x20,0x8c,0x03,0x01,0x04,0x0b,0x00,0x9e,0xca,0xdc,0x24,0x0e,0xe5,0xa9,0xe0,0x93,0xf3,0xa3,\
0xb5,0x02,0x00,0x40,0x6e,0x44,0x10,0x14,0x00,0x00,0x0b,0x00,\
},\
},\
{0x00,\
{\
0x1f,0x06,0x20,0xa8,0x02,0x02,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,\
0x00,0x00,0x00,0x00,0x00,0x00,0x04,0x04,0x13,0x13,0x00,0x0c,\
},\
},\
{0x00,\
{\
0x1f,0x06,0x20,0xc4,0x28,0x03,0x01,0x10,0x0d,0x00,0x9e,0xca,0xdc,0x24,0x0e,0xe5,0xa9,0xe0,0x93,0xf3,\
0xa3,0xb5,0x03,0x00,0x40,0x6e,0x14,0x00,0x14,0x00,0x00,0x0d,\
},\
},\
{0x00,\
{\
0x1f,0x06,0x20,0xe0,0x00,0x03,0x02,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,\
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x46,0x14,0x03,0x02,0x00,\
},\
},\
{0x00,\
{\
0x1f,0x06,0x20,0xfc,0x0e,0x29,0x02,0x01,0x00,0x00,0x04,0x04,0x02,0x02,0x00,0x0f,0x28,0x00,0x01,0x0a,\
0x18,0x04,0x04,0x05,0x05,0x00,0x10,0x28,0x03,0x01,0x02,0x11,\
},\
},\
{0x00,\
{\
0x19,0x06,0x21,0x18,0x00,0x27,0x2a,0x04,0x04,0x09,0x01,0x00,0x11,0x2a,0x27,0x01,0x0a,0x00,0x00,0x00,\
0x00,0x00,0x00,0x00,0x00,0x00,\
},\
},\
{0x00,\
{\
0x1f,0x06,0x40,0x00,0x2a,0x00,0x01,0x00,0x80,0x04,0x00,0x03,0x00,0x00,0x00,0x02,0x02,0x00,0x08,0x04,\
0x00,0x0b,0x00,0x00,0x00,0x03,0x02,0x00,0x02,0x04,0x00,0x0d,\
},\
},\
{0x00,\
{\
0x0f,0x06,0x40,0x1c,0x00,0x0e,0x2a,0x27,0x01,0x00,0x80,0x04,0x00,0x11,0x00,0x00,\
},\
},\
{0x00,\
{\
0x13,0x06,0x50,0x00,0x9e,0xca,0xdc,0x24,0x0e,0xe5,0xa9,0xe0,0x93,0xf3,0xa3,0xb5,0x00,0x00,0x40,0x6e,\
},\
},\
{0x00,\
{\
0x0f,0x06,0x60,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,\
},\
},\
{0x00,\
{\
0x06,0x06,0xf0,0x00,0x03,0xd3,0x88,\
},\
},\
}
#endif

View File

@@ -0,0 +1,117 @@
------------------------------------------------------------------------------
uBlue Setup generation report
Generated with uBlue setup DLL version: 1.0.0.16855
Generated: Sat Jan 12 11:40:44 2013 (UTC)
This file is automatically generated, do not modify
------------------------------------------------------------------------------
[Counts]
Setup data size = 547 bytes
Local database size = 302 bytes
Local attribute count = 4
Remote attribute count = 0
Total pipe count = 4
Dynamic data size = 181 bytes (worst case)
[Setup Area Layout]
Setup area, total = 1595 bytes
Setup area, used = 370 bytes ( 23% of total )
Local services = 302 bytes ( 81% of used )
Remote services = 0 bytes ( 0% of used )
Pipes = 40 bytes ( 10% of used )
VS UUID area = 16 bytes ( 4% of used )
Extended Attr area = 12 bytes ( 3% of used )
[Device Settings]
Setup ID = 0x00000000
Setup Format = 0x03
Security = OPEN (0)
Bond Timeout = 600
Security Request Delay = 0
Change Timing Delay = 5
Whitelist = Enabled
[Advertisement Data]
Bond Advertise = 0x00000014 [SERVICES_128_COMPLETE | LOCAL_NAME_COMPLETE]
Bond Scan Resp = 0x00000000 []
General Advertise = 0x00000014 [SERVICES_128_COMPLETE | LOCAL_NAME_COMPLETE]
General Scan Resp = 0x00000000 []
Broadcast Advertise = 0x00000010 [LOCAL_NAME_COMPLETE]
Broadcast Scan Resp = 0x00000000 []
Custom Bond Advertise = 0x00 []
Custom Bond Scan Resp = 0x00 []
Custom General Advertise = 0x00 []
Custom General Scan Resp = 0x00 []
Custom Broadcast Advertise = 0x00 []
Custom Broadcast Scan Resp = 0x00 []
No custom AD types
[Vendor Specific UUIDs]
VS UUID #0 (type=0x02): 0x9E 0xCA 0xDC 0x24 0x0E 0xE5 0xA9 0xE0 0x93 0xF3 0xA3 0xB5 0x00 0x00 0x40 0x6E
[Local Database]
Handle Pipes Structure
------ ----- ---------
0x0001 +----- Service (Primary): "GAP" (01:0x1800)
0x0002 |----- |Characteristic: "Device Name" (01:0x2A00) [rd|wwr|wr] [rd:allow|wr:none]
0x0003 x |Value: {0x55 0x41 0x52 0x54} [rd:allow|wr:allow]
0x0004 |----- |Characteristic: "Appearance" (01:0x2A01) [rd] [rd:allow|wr:none]
0x0005 |Value: {0x00 0x00} [rd:allow|wr:none]
0x0006 |----- |Characteristic: "PPCP" (01:0x2A04) [rd] [rd:allow|wr:none]
0x0007 |Value: {0x06 0x00 0x12 0x00 0x00 0x00 0x0A 0x00} [rd:allow|wr:none]
0x0008 +----- Service (Primary): "GATT" (01:0x1801)
0x0009 +----- Service (Primary): "?" (02:0x0001)
0x000A |----- |Characteristic: "?" (02:0x0002) [wwr] [rd:allow|wr:none]
0x000B < |Value: {} [rd:none|wr:allow]
0x000C |----- |Characteristic: "?" (02:0x0003) [not] [rd:allow|wr:none]
0x000D > |Value: {} [rd:none|wr:none]
0x000E |----- |Descriptor: "Client Characteristic Configuration" (01:0x2902) Value: {0x00 0x00} [rd:allow|wr:allow]
0x000F +----- Service (Primary): "Device Info" (01:0x180A)
0x0010 |----- |Characteristic: "HW Rev" (01:0x2A27) [rd] [rd:allow|wr:none]
0x0011 x |Value: {0x0A} [rd:allow|wr:none]
[Remote Database]
Handle Pipes Structure
------ ----- ---------
[Pipe Map]
Pipe Store Type Service Char. CPF Desc.
---- ------ ------ ---------- --------- ----------- ---------
01 Local SET 01:0x1800 01:0x2A00 -- --
02 Local RX 02:0x0001 02:0x0002 -- --
03 Local TX 02:0x0001 02:0x0003 -- --
04 Local SET 01:0x180A 01:0x2A27 -- --
[Setup Data]
07-06-00-00-03-02-41-D7
1F-06-10-00-00-00-00-00-00-00-04-00-04-01-01-00-00-06-00-00-90-00-00-00-00-00-00-00-00-00-00-00
1F-06-10-1C-01-02-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-14-00-00-00-14-03-90-01-64
1F-06-10-38-02-FF-02-58-00-05-00-00-00-00-00-00-00-00-00-00-00-10-00-00-00-00-00-00-00-00-00-00
05-06-10-54-00-00
1F-06-20-00-04-04-02-02-00-01-28-00-01-00-18-04-04-05-05-00-02-28-03-01-0E-03-00-00-2A-04-14-07
1F-06-20-1C-04-00-03-2A-00-01-55-41-52-54-69-63-73-04-04-05-05-00-04-28-03-01-02-05-00-01-2A-06
1F-06-20-38-04-03-02-00-05-2A-01-01-00-00-04-04-05-05-00-06-28-03-01-02-07-00-04-2A-06-04-09-08
1F-06-20-54-00-07-2A-04-01-06-00-12-00-00-00-0A-00-04-04-02-02-00-08-28-00-01-01-18-04-04-10-10
1F-06-20-70-00-09-28-00-01-9E-CA-DC-24-0E-E5-A9-E0-93-F3-A3-B5-01-00-40-6E-04-04-13-13-00-0A-28
1F-06-20-8C-03-01-04-0B-00-9E-CA-DC-24-0E-E5-A9-E0-93-F3-A3-B5-02-00-40-6E-44-10-14-00-00-0B-00
1F-06-20-A8-02-02-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-04-04-13-13-00-0C
1F-06-20-C4-28-03-01-10-0D-00-9E-CA-DC-24-0E-E5-A9-E0-93-F3-A3-B5-03-00-40-6E-14-00-14-00-00-0D
1F-06-20-E0-00-03-02-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-46-14-03-02-00
1F-06-20-FC-0E-29-02-01-00-00-04-04-02-02-00-0F-28-00-01-0A-18-04-04-05-05-00-10-28-03-01-02-11
19-06-21-18-00-27-2A-04-04-09-01-00-11-2A-27-01-0A-00-00-00-00-00-00-00-00-00
1F-06-40-00-2A-00-01-00-80-04-00-03-00-00-00-02-02-00-08-04-00-0B-00-00-00-03-02-00-02-04-00-0D
0F-06-40-1C-00-0E-2A-27-01-00-80-04-00-11-00-00
13-06-50-00-9E-CA-DC-24-0E-E5-A9-E0-93-F3-A3-B5-00-00-40-6E
0F-06-60-00-00-00-00-00-00-00-00-00-00-00-00-00
06-06-F0-00-83-42-00