<?xml version="1.0" encoding="utf-8"?>
<configuration>
  <configSections>
    <section name="Equipments" type="parkMonitor.model.EquipmentsSection,parkMonitor" allowDefinition="Everywhere" />
  </configSections>
  <startup>
    <supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.5" />
  </startup>
  <Equipments>
    <Equipment key="Core" value="parkMonitor.server.CoreThread.CoreThreadTest2" />
    <Equipment key="Monitor" value="parkMonitor.server.MonitorServer" />
    <Equipment key="PLC" value="parkMonitor.server.PLCLinker" />
    <Equipment key="Num" value="parkMonitor.server.NumMachineManager" />
    <Equipment key="Web" value="parkMonitor.server.WebThread.CentralForWeb" />
    <Equipment key="Queue" value="parkMonitor.server.CoreThread.QueuingThread" />
  </Equipments>
  <appSettings>
    <!--数据库连接配置文件-->
    <add key="SqlConnectionLocation" value="Data Source=127.0.0.1;port=20000;uid=root;pooling=true;max pool size=1024;pwd=yct;database=zxpark;CharSet=utf8;Allow Zero Datetime=true;" />
    <add key="SqlConnectionStr" value="Data Source=59.175.148.85;port=3306;uid=root;pooling=true;max pool size=1024;pwd=x5;database=zxpark;CharSet=utf8;Allow Zero Datetime=true;" />
    <!--<add key="SqlConnectionStr" value="Data Source=120.79.20.70;port=3306;uid=jw;pooling=true;max pool size=1024;pwd=jingwang1995;database=zxpark;CharSet=utf8;Allow Zero Datetime=true;" />-->
    <add key ="remoteDBIP" value ="59.175.148.85"/>
    <add key ="localDBIP" value ="127.0.0.1"/>
    <!--日志写入地址配置文件-->
    <add key="LogAddress" value="c:\\c#workspace\\LogDemo\\LoggerTest" />
    <!--测量数据误差-->
    <add key="length" value="50" />
    <add key="width" value="50" />
    <add key="height" value="50" />
    <add key="wheelbase" value="50" />
    <add key="ClientSettingsProvider.ServiceUri" value="" />
    <!--PLC基本配置-->
    <!--<add key="PLC_ip_address" value="192.168.0.10" />-->
    <add key="PLC_ip_address" value="192.168.0.1" />
    <add key="PLC_port" value="30000" />
    <add key="PLC_station" value="1" />
    <add key="PLC_start_address" value="0" />
    <add key="PLC_address_length" value="110" />
    <add key="PLC_refresh_interval" value="200"/>
    <add key="equipmentStatus_address" value="20" />
    <!--PLC停取完成-->
    <add key="park_start_address" value="1" />
    <add key="park_completed_address" value="21" />
    <add key="park_completed_acknowledge_address" value="5" />
    <add key="fetch_completed_address" value="22" />
    <add key="fetch_completed_acknowledge_address" value="6" />
    <!--启动机械手-->
    <add key="parking_startRobot_address" value="3" />
    <add key="fetching_startRobot_address" value="4" />
    <add key="fetch_to_address" value="2" />
    <!--机械手停车所需数据-->
    <add key="parkingSpaceID_address" value="16" />
    <add key="parkingSpaceX_address" value="17" />
    <add key="parkingSpaceY_address" value="18" />
    <add key="parkingSpaceZ_address" value="19" />
    <add key="parkingLaserCenterX_address" value="13" />
    <add key="frontWheelbase_address" value="85" />
    <add key="rearWheelbase_address" value="86" />
    <add key="wheelbase_status_address" value="87" />
    <!--激光设备配置-->
    <add key="laser_start_address" value="10" />
    <add key="laser1_status_address" value="89" /><!--决定激光编号-->
    <add key="laser_rescan_count" value="3" />
    <add key="laser_countdown" value="100" />
    <!--缓冲位配置-->
    <add key ="bufferAddress" value ="7"/>
    <add key ="completeStatusAddress" value ="9"/>
    <!--队列线程参数-->
    <add key="fetch_store_ratio" value="3" />
    <add key="licenseTime" value="10" />
    <add key="userTime" value="10" />
    <add key="bookTime" value="120" />
    <!--上位机（Web线程）IP地址及配置serverScoket的端口-->
    <add key="WebConfig" value="192.168.0.164:9000" />
    <!--<add key ="WebConfig" value="127.0.0.1:9000"/>-->

    <!--车库入口-->
    <add key="parkingEntX" value="0" />
    <add key="parkingEntY" value="0" />
    <add key="parkingEntZ" value="0" />
    <!--监控线程-->
    <!--数据更新间隔(毫秒数)-->
    <add key="monitor_timGap" value="1000"/>

    <!--号牌机ip位置映射表-->
    <!--位置编号；基点横坐标；车位宽度；宽度补偿-->
    <add key="192.168.0.50" value="2" />
    <add key="192.168.0.51" value="1" />
    <add key="filterRatio" value="0.7" />
    <!--车库权重-->
    <add key="garageID" value="1"/>
    <add key ="bufferCount" value ="2"/>
    <add key="xWeight" value="1"/>
    <add key="yWeight" value="1"/>
    <add key="zWeight" value="1"/>

  </appSettings>

  <system.web>
    <membership defaultProvider="ClientAuthenticationMembershipProvider">
      <providers>
        <add name="ClientAuthenticationMembershipProvider" type="System.Web.ClientServices.Providers.ClientFormsAuthenticationMembershipProvider, System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" serviceUri="" />
      </providers>
    </membership>
    <roleManager defaultProvider="ClientRoleProvider" enabled="true">
      <providers>
        <add name="ClientRoleProvider" type="System.Web.ClientServices.Providers.ClientRoleProvider, System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" serviceUri="" cacheTimeout="86400" />
      </providers>
    </roleManager>
  </system.web>
  <system.data>
    <DbProviderFactories>
      <remove invariant="MySql.Data.MySqlClient" />
      <add name="MySQL Data Provider" invariant="MySql.Data.MySqlClient" description=".Net Framework Data Provider for MySQL" type="MySql.Data.MySqlClient.MySqlClientFactory, MySql.Data, Version=6.7.9.0, Culture=neutral, PublicKeyToken=c5687fc88969c44d" />
    </DbProviderFactories>
  </system.data>
</configuration>