Commit 44a3aff3 authored by Xin Jin's avatar Xin Jin

add readme file

parent 5601016e
# SmartTag SmartTag 设备的蓝牙软件
First version v1.0.1 update =======================
功能描述:
-----------------------
##广播数据:
1. CompanyID FB13
2. SN: 8 bytes ascii digit nubmer; [0]~[7]
4. Battery: 0-100 [8]
5. DeviceType: (1,2,3), default: 1 [9]
6. Sensor state: MSB is move flag, low 7bis is light adc nubmer [10]
7. reserve; [11]
8. Name: before configured:'wTag'; after valid configured: 'tTag'
##服务内容
1. UUID of service: 0xFB13FF01-BBA8-0412-1016-88881009DCFF
2. UUID of config write characteristic: 0xFB13FF02-BBA8-0412-1016-88881009DCFF
3. UUID of config notify characteristic: 0xFB13FF03-BBA8-0412-1016-88881009DCFF
##配置协议
1. config the timer: 02 0064 00000064 00000010 00000020,
0064:advertising interval
00000064: advertising time out
00000010: tick counter when moved
00000020: tick counter when no moved
2. config device type and sn: 03 01 3132333435363738
01: device type
3132333435363738: sn nubmer "12345678"
3. config companyID: 04 FB13
FB13: company id
4. config the flag of config: 01 01
01: configure over
5. save value and reset power on: 0F
##默认配置
1. device type:01
2. tx power:04
3. adver interval: 480*0.625 ms = 300ms
4. adver timeout:200*10ms = 2000ms
5. g sensor no move check time:120*3 = 360s
6. advertising time with no move: 60*5=300s
7. advertising time with move:12*5 = 60s
8. tick timer 5 seconds
9. watchdog timer:9.3s
版本描述:
-----------------------
#v1.0.1
1. 基本功能完成
...@@ -855,7 +855,7 @@ static void user_advertising_para_updata(void) ...@@ -855,7 +855,7 @@ static void user_advertising_para_updata(void)
manu_info[10] = 0x80; manu_info[10] = 0x80;
} }
manu_info[10] += (g_app_data.lightSensorAdc/100)&0xff; manu_info[10] += (g_app_data.lightSensorAdc/100)&0x7f; ////MSB is move bit 191014
memset(&init, 0, sizeof(init)); memset(&init, 0, sizeof(init));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment