Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
S
SmartTag
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Xin Jin
SmartTag
Commits
44a3aff3
Commit
44a3aff3
authored
Oct 14, 2019
by
Xin Jin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add readme file
parent
5601016e
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
55 additions
and
3 deletions
+55
-3
README.md
README.md
+54
-2
main.c
examples/ble_peripheral/ble_app_uart/main.c
+1
-1
No files found.
README.md
View file @
44a3aff3
# SmartTag
First version v1.0.1 update
SmartTag 设备的蓝牙软件
=======================
功能描述:
-----------------------
##广播数据:
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.
基本功能完成
examples/ble_peripheral/ble_app_uart/main.c
View file @
44a3aff3
...
...
@@ -855,7 +855,7 @@ static void user_advertising_para_updata(void)
manu_info
[
10
]
=
0x80
;
}
manu_info
[
10
]
+=
(
g_app_data
.
lightSensorAdc
/
100
)
&
0x
ff
;
manu_info
[
10
]
+=
(
g_app_data
.
lightSensorAdc
/
100
)
&
0x
7f
;
////MSB is move bit 191014
memset
(
&
init
,
0
,
sizeof
(
init
));
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment