Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
Myproj
Project
Project
Details
Activity
Releases
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
fujii15
Myproj
Commits
6fe49e08
Commit
6fe49e08
authored
Jan 26, 2019
by
ビショップ 藤井
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
判定フェーズの位置
parent
6c50dfb9
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
27 additions
and
31 deletions
+27
-31
MainWindow.xaml.cs
WpfApp1/MainWindow.xaml.cs
+27
-31
WpfApp1.exe
WpfApp1/bin/Debug/WpfApp1.exe
+0
-0
WpfApp1.pdb
WpfApp1/bin/Debug/WpfApp1.pdb
+0
-0
WpfApp1.exe
WpfApp1/obj/Debug/WpfApp1.exe
+0
-0
WpfApp1.pdb
WpfApp1/obj/Debug/WpfApp1.pdb
+0
-0
No files found.
WpfApp1/MainWindow.xaml.cs
View file @
6fe49e08
...
...
@@ -25,7 +25,7 @@ namespace iBeaconScanner
/* パラメータ */
public
static
int
A_thresh
=
2
;
//認証可能人数
public
static
double
B_thresh
=
0.3
;
//RU率
public
static
TimeSpan
LIMIT_TIME
=
new
TimeSpan
(
0
,
0
,
8
);
//n秒パケットが取れなければ終了
public
static
TimeSpan
LIMIT_TIME
=
new
TimeSpan
(
0
,
0
,
1
8
);
//n秒パケットが取れなければ終了
public
static
short
RSSI
=
-
50
;
//探索範囲 大きいほど狭い
static
int
RUcnt
,
NUcnt
;
...
...
@@ -72,7 +72,7 @@ namespace iBeaconScanner
await
this
.
Dispatcher
.
InvokeAsync
(()
=>
{
mutex
.
WaitOne
();
//
mutex.WaitOne();
Debug
.
WriteLine
(
$"
{
sw
.
Elapsed
}
"
);
//経過時間
if
(
sw
.
Elapsed
>
LIMIT_TIME
)
...
...
@@ -98,7 +98,7 @@ namespace iBeaconScanner
Debug
.
WriteLine
(
$"
{
args
.
Timestamp
}
RSSI=
{
args
.
RawSignalStrengthInDBm
}
BD:
{
args
.
BluetoothAddress
}
"
);
// Debug.WriteLine($"{args.AdvertisementType}, {manufacturerData.CompanyId}");
/* All_uuidリストを作成するフェーズ */
/* All_uuidリストを作成するフェーズ
↓
*/
using
(
var
reader
=
DataReader
.
FromBuffer
(
manufacturerData
.
Data
))
{
reader
.
ByteOrder
=
ByteOrder
.
BigEndian
;
// BigEndian:順方向にパケットを保存
...
...
@@ -135,6 +135,10 @@ namespace iBeaconScanner
this
.
listBox
.
Text
=
this
.
listBox
.
Text
+
proximity_uuid
+
"\r\n"
;
}
}
/* All_uuidリストを作成するフェーズ ↑*/
//mutex.ReleaseMutex();
}
/* 判定フェーズ↓ */
RUcnt
=
0
;
...
...
@@ -162,15 +166,7 @@ namespace iBeaconScanner
}
/* 判定フェーズ↑ */
mutex
.
ReleaseMutex
();
}
});
}
}
}
WpfApp1/bin/Debug/WpfApp1.exe
View file @
6fe49e08
No preview for this file type
WpfApp1/bin/Debug/WpfApp1.pdb
View file @
6fe49e08
No preview for this file type
WpfApp1/obj/Debug/WpfApp1.exe
View file @
6fe49e08
No preview for this file type
WpfApp1/obj/Debug/WpfApp1.pdb
View file @
6fe49e08
No preview for this file type
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