From 3c89fd52679c8ccebceb30294a4bd815b51ede19 Mon Sep 17 00:00:00 2001 From: Dimitri Sokolyuk Date: Mon, 5 Dec 2016 11:22:26 +0100 Subject: Import Drive SDK --- drive-sdk/test/adv_data.h | 39 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 drive-sdk/test/adv_data.h (limited to 'drive-sdk/test/adv_data.h') diff --git a/drive-sdk/test/adv_data.h b/drive-sdk/test/adv_data.h new file mode 100644 index 0000000..c5581be --- /dev/null +++ b/drive-sdk/test/adv_data.h @@ -0,0 +1,39 @@ +/* + * Copyright (c) 2014 Anki, Inc. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ADV_DATA_H +#define ADV_DATA_H + +// scan data from Anki Drive vehicles +static uint8_t adv0_scan[] = { + 0x02, 0x01, 0x06, + 0x11, 0x07, 0xF4, 0x8D, 0x4D, 0x9C, 0xD8, 0x0B, 0x81, 0x83, 0x7E, 0x40, 0x86, 0x61, 0xEF, 0xBE, 0x15, 0xBE, + 0x09, 0xFF, 0xBE, 0xEF, 0x00, 0x01, 0x00, 0xE0, 0x0A, 0xA3 +}; +static uint8_t adv1_scan[] = { + 0x13, 0x09, 0x50, 0x20, 0x21, 0x01, 0x20, 0x20, 0x5A, 0x39, 0x41, 0x41, 0x33, 0x20, 0x54, 0x4F, 0x4D, 0x4D, 0x59, 0x00, + 0x02, 0x0A, 0x00 +}; + +// scan data from Ti SensorTag +static uint8_t st0_scan[] = { 0x02, 0x01, 0x05 }; +static uint8_t st1_scan[] = { + 0x0A, 0x09, 0x53, 0x65, 0x6E, 0x73, 0x6F, 0x72, 0x54, 0x61, 0x67, + 0x05, 0x12, 0x50, 0x00, 0x20, 0x03, + 0x02, 0x0A, 0x00 +}; + +#endif // ADV_DATA_H -- cgit v1.2.3