RU_listを表示する

parent 462bce50
......@@ -8,10 +8,11 @@
Title="MainWindow" Height="462" Width="938.836">
<Grid>
<TextBox x:Name="para" Margin="28,35,658,365.5" TextWrapping="Wrap" Text="" IsReadOnly="True"/>
<TextBox x:Name="listBox" Margin="0,95,75,0.5" TextWrapping="Wrap" Text="" IsReadOnly="True"/>
<TextBox x:Name="listBox" Margin="0,95,421,0.5" TextWrapping="Wrap" Text="" IsReadOnly="True"/>
<TextBox x:Name="RUNUBox" Margin="323,35,421,365.5" TextWrapping="Wrap" Text="" IsReadOnly="True"/>
<TextBox x:Name="textBox" Margin="692,35,75,365.5" TextWrapping="Wrap" Text="" IsReadOnly="True"/>
<TextBox x:Name="RUrate" Margin="535,35,266,365.5" TextWrapping="Wrap" Text="" IsReadOnly="True"/>
<TextBox x:Name="RUlist" Margin="518,95,35,10.5" TextWrapping="Wrap" Text="" IsReadOnly="True"/>
</Grid>
</Window>
......@@ -23,9 +23,9 @@ namespace iBeaconScanner
public static int Length_of_iBeacon_Advertise_Packet = 23;
/* パラメータ */
public static int A_thresh = 2;//認証可能人数
public static int A_thresh = 3;//認証可能人数
public static double B_thresh = 0.3;//RU率
public static TimeSpan LIMIT_TIME = new TimeSpan(0, 0, 30);//n秒パケットが取れなければ終了
public static TimeSpan LIMIT_TIME = new TimeSpan(0, 0, 1);//n秒パケットが取れなければ終了
public static short RSSI = -70;//探索範囲 大きいほど狭い
static int RUcnt, NUcnt;
......@@ -42,27 +42,29 @@ namespace iBeaconScanner
InitializeComponent();
/* 事前登録 */
RU_uuid.Add("48534442-4c45-4144-1234-dcba12345678");
RU_uuid.Add("48534442-4c45-4144-1234-abcd12345678");
RU_uuid.Add("48534442-4c45-4144-1234-abcd12345671");//me
RU_uuid.Add("48534442-4c45-4144-80c0-1800ffffffff");//deafault
RU_uuid.Add("48534442-4c45-4144-80c0-1800fffffff0");
RU_uuid.Add("48534442-4c45-4144-80c0-1800fffffff0");//me
RU_uuid.Add("48534442-4c45-4144-80c0-1800fffffff1");
RU_uuid.Add("48534442-4c45-4144-80c0-1800fffffff2");
RU_uuid.Add("48534442-4c45-4144-80c0-1800fffffff3");
RU_uuid.Add("48534442-4c45-4144-80c0-1800fffffff4");
RU_uuid.Add("48534442-4c45-4144-80c0-1800fffffff5");
RU_uuid.Add("48534442-4c45-4144-80c0-1800fffffff6");
RU_uuid.Add("48534442-4c45-4144-80c0-1800fffffff6");//
RU_uuid.Add("48534442-4c45-4144-80c0-1800fffffff7");
RU_uuid.Add("48534442-4c45-4144-80c0-1800fffffff8");
RU_uuid.Add("48534442-4c45-4144-80c0-1800fffffff9");
RU_uuid.Add("48534442-4c45-4144-80c0-1800fffffffa");
RU_uuid.Add("48534442-4c45-4144-80c0-1800fffffffb");
RU_uuid.Add("48534442-4c45-4144-80c0-1800fffffffc");
RU_uuid.Add("48534442-4c45-4144-80c0-1800fffffffd");
RU_uuid.Add("48534442-4c45-4144-80c0-1800fffffffe");
//RU_uuid.Add("48534442-4c45-4144-80c0-1800fffffffa");
// RU_uuid.Add("48534442-4c45-4144-80c0-1800fffffffb");
// RU_uuid.Add("48534442-4c45-4144-80c0-1800fffffffc");
//RU_uuid.Add("48534442-4c45-4144-80c0-1800fffffffd");
//RU_uuid.Add("48534442-4c45-4144-80c0-1800fffffffe");
foreach(var ru in RU_uuid)
{
this.RUlist.Text = this.RUlist.Text + ru + "\n";
}
this.para.Text = "A="+ A_thresh + ",B=" + B_thresh + ",L="+LIMIT_TIME + ",RSSI="+RSSI;
......
#pragma checksum "..\..\MainWindow.xaml" "{ff1816ec-aa5e-4d10-87f7-6f4963833460}" "354DCB49612DA754EA584F3D1DC515459782B11F"
#pragma checksum "..\..\MainWindow.xaml" "{ff1816ec-aa5e-4d10-87f7-6f4963833460}" "3DE76657D87713AFD1150F189C87A49C9D17C607"
//------------------------------------------------------------------------------
// <auto-generated>
// このコードはツールによって生成されました。
......@@ -80,6 +80,14 @@ namespace iBeaconScanner {
#line default
#line hidden
#line 15 "..\..\MainWindow.xaml"
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
internal System.Windows.Controls.TextBox RUlist;
#line default
#line hidden
private bool _contentLoaded;
/// <summary>
......@@ -125,6 +133,9 @@ namespace iBeaconScanner {
case 5:
this.RUrate = ((System.Windows.Controls.TextBox)(target));
return;
case 6:
this.RUlist = ((System.Windows.Controls.TextBox)(target));
return;
}
this._contentLoaded = true;
}
......
#pragma checksum "..\..\MainWindow.xaml" "{ff1816ec-aa5e-4d10-87f7-6f4963833460}" "354DCB49612DA754EA584F3D1DC515459782B11F"
#pragma checksum "..\..\MainWindow.xaml" "{ff1816ec-aa5e-4d10-87f7-6f4963833460}" "3DE76657D87713AFD1150F189C87A49C9D17C607"
//------------------------------------------------------------------------------
// <auto-generated>
// このコードはツールによって生成されました。
......@@ -80,6 +80,14 @@ namespace iBeaconScanner {
#line default
#line hidden
#line 15 "..\..\MainWindow.xaml"
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
internal System.Windows.Controls.TextBox RUlist;
#line default
#line hidden
private bool _contentLoaded;
/// <summary>
......@@ -125,6 +133,9 @@ namespace iBeaconScanner {
case 5:
this.RUrate = ((System.Windows.Controls.TextBox)(target));
return;
case 6:
this.RUlist = ((System.Windows.Controls.TextBox)(target));
return;
}
this._contentLoaded = true;
}
......
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