Commit dbba4a10 authored by Xin Jin's avatar Xin Jin

update readme

parent ea23dde6
mergehex -m nrf52810_TAG_V102.hex s112_nrf52_6.1.0_softdevice.hex -o tagV102.hex
mergehex -m WitTag_52810_V101.hex s112_nrf52_6.1.0_softdevice.hex -o WitTag_52810_IMG_V101.hex
This diff is collapsed.
This diff is collapsed.
This source diff could not be displayed because it is too large. You can view the blob instead.
This diff is collapsed.
This diff is collapsed.
nrfjprog.exe --recover
nrfjprog.exe --program tag.hex
nrfjprog.exe --verify tag.hex
nrfjprog.exe --program WitTag_52810_IMG_V101.hex
nrfjprog.exe --verify WitTag_52810_IMG_V101.hex
nrfjprog.exe -f NRF52 --eraseall
nrfjprog.exe -f NRF52 --program tag_img_s112_v101.hex
nrfjprog.exe -f NRF52 --verify tag_img_s112_v101.hex
nrfjprog.exe -f NRF52 --program WitTag_52810_IMG_V101.hex
nrfjprog.exe -f NRF52 --verify WitTag_52810_IMG_V101.hex
nrfjprog.exe -f NRF52 --reset
This diff is collapsed.
......@@ -18,7 +18,8 @@ SmartTag 设备的蓝牙软件
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
......@@ -34,7 +35,8 @@ SmartTag 设备的蓝牙软件
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
......
......@@ -972,9 +972,9 @@ static void user_tick_timeout_handler(void * p_context)
g_app_data.tickCounter++;
NRF_LOG_INFO("user_tick_handler=== %d, %d!\r\n",g_app_data.tickCounter, m_context_cfg.dev_tick_counter);
NRF_LOG_INFO("user_tick_handler=== %d, %d, %d!\r\n",g_app_data.tickCounter, g_app_data.CompCounter, g_app_data.devMoved);
if(g_app_data.tickCounter >= m_context_cfg.dev_tick_counter)
if(g_app_data.tickCounter >= g_app_data.CompCounter)
{
g_app_data.tickCounter = 0;
......@@ -992,7 +992,7 @@ static void user_tick_timeout_handler(void * p_context)
if(g_app_data.lightSensorAdc < 250)
{
///when high light mean need config action, add by jinxin for light sensor
/////user_start_config_advertsing();
user_start_config_advertsing();
}
}
}
......
......@@ -47,7 +47,7 @@
<InvalidFlash>1</InvalidFlash>
</TargetStatus>
<OutputDirectory>.\_build\</OutputDirectory>
<OutputName>nrf52810_TAG_V102</OutputName>
<OutputName>WitTag_52810_V101</OutputName>
<CreateExecutable>1</CreateExecutable>
<CreateLib>0</CreateLib>
<CreateHexFile>1</CreateHexFile>
......
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