<?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.NumMachineLinker" />
    <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;pwd=yct;database=zxpark;CharSet=utf8;Allow Zero Datetime=true;" />
    <!--<add key="SqlConnectionStr" value="Data Source=52.77.33.102;port=3306;uid=Ubuntu1;pooling=true;pwd=12345678;database=zxpark;CharSet=utf8;Allow Zero Datetime=true;" />-->
    <add key="SqlConnectionStr" value="Data Source=59.175.148.85;port=3306;uid=root;pooling=true;pwd=x5;database=zxpark;CharSet=utf8;Allow Zero Datetime=true;" />
    <add key="localGarageId" value="1"/>
    <!--日志写入地址配置文件-->
    <add key="LogPath" 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="104" />
    <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="79" />
    <add key="rearWheelbase_address" value="80" />
    <add key="wheelbase_status_address" value="81" />
    <!--激光设备配置-->
    <add key="park_command_address" value="10" />
    <add key="laser1_status_address" value="83" />
    <add key="laser2_status_address" value="" />
    <add key="laser_rescan_count" value="3" />
    <add key="laser_countdown" value="100" />
    <!--队列线程参数-->
    <add key="fetch_store_ratio" value="3" />
    <add key="licenseTime" value="30" />
    <add key="userTime" value="30" />
    <!--上位机（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="2000"/>

    <!--ip位置映射表-->
    <!--位置编号；基点横坐标；车位宽度；宽度补偿-->
    <add key="192.168.0.50" value="1" />
    <add key="192.168.0.51" value="1" />
    <add key="parkingEntZ" value="0" />
    <add key="parkingEntZ" value="0" />
    <add key="parkingEntZ" value="0" />
    <add key="parkingEntZ" value="0" />

    <!-- 临时-->
    <add key="cx" value="" />
    <add key="cy" value="" />
    <add key="aa" value="" />
  </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>