亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關(guān)于我們
? 蟲蟲下載站

?? gettingstarted.apt

?? 關(guān)于 RFID 讀寫器的相關(guān)內(nèi)容
?? APT
字號(hào):
       ------
                                    Reader RP Proxy Module
                                    ------
                                    ------


Reader RP Proxy Module: Getting Started


* Installing the Fosstrak Reader RP Proxy

   The following instructions show how to install the Fosstrak Reader RP Proxy:

   * Download the reader-rp-proxy binaries from the {{{../download.html}download}} section of the website.

   * Add the jar to your classpath.

   * Make sure all the {{{dependencies.html} dependencies}} are added to your classpath as well. Alternatively, you can also use the zip with all the dependencies included.

   * Make sure you are using a Java Runtime environment 1.5 or higher.

   * Use the proxy as outlined in the two examples below.


* First Steps


** Configure the reader yourself with a series of Java method calls

    Implement the following example ({{{example/ReaderProxyExample.java} ReaderProxyExample.java}}).

     This example requires that there is a reader running that supports the HTTP/XML transport message binding of the Reader Protocol available at localhost:8000. If these settings are incorrect for your setup, you will need to adjust the following variables:

        *  MESSAGE_FORMAT

        *  TRANSPORT_PROTOCOL

        *  COMMAND_CHANNEL_HOST

        *  COMMAND_CHANNEL_PORT

    You might also want to consider using our existing Java implementation of a {{{../index.html}reader}} which includes a simulation engine.

+---

import org.fosstrak.reader.rprm.core.EventType;
import org.fosstrak.reader.rprm.core.FieldName;
import org.fosstrak.reader.rp.proxy.DataSelector;
import org.fosstrak.reader.rp.proxy.NotificationChannel;
import org.fosstrak.reader.rp.proxy.ReaderDevice;
import org.fosstrak.reader.rp.proxy.Source;
import org.fosstrak.reader.rp.proxy.Trigger;
import org.fosstrak.reader.rp.proxy.factories.DataSelectorFactory;
import org.fosstrak.reader.rp.proxy.factories.NotificationChannelFactory;
import org.fosstrak.reader.rp.proxy.factories.ReaderDeviceFactory;
import org.fosstrak.reader.rp.proxy.factories.TriggerFactory;
import org.fosstrak.reader.rp.proxy.msg.Handshake;

public class ReaderProxyExample {

   private static int MESSAGE_FORMAT = Handshake.FORMAT_XML;
   private static int TRANSPORT_PROTOCOL = Handshake.HTTP;

   private static final String COMMAND_CHANNEL_HOST = "localhost";
   private static final int COMMAND_CHANNEL_PORT = 8000;

   private static final String READ_TRIGGER_NAME = "ReadTrigger";
   private static final String READ_TRIGGER_TYPE = Trigger.TIMER;
   private static final String READ_TRIGGER_VALUE = "ms=2000";

   private static final String NOTIFICATION_TRIGGER_NAME = "NotificationTrigger";
   private static final String NOTIFICATION_TRIGGER_TYPE = Trigger.CONTINUOUS;
   private static final String NOTIFICATION_TRIGGER_VALUE = "";

   private static final String DATA_SELECTOR_NAME = "DataSelector";
   private static final String[] EVENT_FILTERS = new String[] {EventType.EV_OBSERVED,
         EventType.EV_LOST};
   private static final String[] FIELD_NAMES = new String[] {FieldName.EVENT_TYPE,
         FieldName.READER_NAME, FieldName.TAG_ID, FieldName.TAG_ID_AS_PURE_URI,
         FieldName.TAG_ID_AS_TAG_URI, FieldName.SOURCE_NAME};

   private static final String NOTIFICATION_CHANNEL_NAME = "NotificationChannel";
   private static final String NOTIFICATION_CHANNEL_HOST = "localhost";
   private static final int NOTIFICATION_CHANNEL_PORT = 9000;
   private static final String NOTIFICATION_CHANNEL_MODE = "connect";
   private static final String NOTIFICATION_CHANNEL_ADDRESS = "tcp://"
         + NOTIFICATION_CHANNEL_HOST + ":" + NOTIFICATION_CHANNEL_PORT + "?mode="
         + NOTIFICATION_CHANNEL_MODE;


   public static void main(String[] args) throws Exception {
      // create handshake
      Handshake handshake = new Handshake();
      handshake.setMessageFormat(MESSAGE_FORMAT);
      handshake.setTransportProtocol(TRANSPORT_PROTOCOL);

      // get reader device proxy
      System.out.println("Get reader device proxy.");
      ReaderDevice readerDevice = ReaderDeviceFactory.getReaderDevice(COMMAND_CHANNEL_HOST,
            COMMAND_CHANNEL_PORT, handshake);

      // get current source proxy
      System.out.println("Get current source.");
      Source source = readerDevice.getCurrentSource();
      System.out.println("Name of current source is: " + source.getName());

      // create read trigger
      System.out.println("Create read trigger.");
      Trigger readTrigger = TriggerFactory.createTrigger(READ_TRIGGER_NAME,
            READ_TRIGGER_TYPE, READ_TRIGGER_VALUE, readerDevice);

      // create notification trigger
      System.out.println("Create notification trigger.");
      Trigger notificationTrigger = TriggerFactory.createTrigger(NOTIFICATION_TRIGGER_NAME,
            NOTIFICATION_TRIGGER_TYPE, NOTIFICATION_TRIGGER_VALUE, readerDevice);

      // data selector
      System.out.println("Create data selector.");
      DataSelector dataSelector = DataSelectorFactory.createDataSelector(DATA_SELECTOR_NAME,
            readerDevice);
      System.out.println("Add event filters to data selector.");
      dataSelector.addEventFilters(EVENT_FILTERS);
      System.out.println("Add field names to data selector.");
      dataSelector.addFieldNames(FIELD_NAMES);
      //System.out.println("Add tag fields to data selector.");
      //dataSelector.addTagFieldNames(TAG_FIELDS);

      // create notification channel
      System.out.println("Create notification channel.");
      NotificationChannel notificationChannel = NotificationChannelFactory.createNotificationChannel(
            NOTIFICATION_CHANNEL_NAME, NOTIFICATION_CHANNEL_ADDRESS, readerDevice);
      System.out.println("Set data selector of notification channel.");
      notificationChannel.setDataSelector(dataSelector);
      System.out.println("Add notification trigger to notification channel.");
      notificationChannel.addNotificationTriggers(new Trigger[] {notificationTrigger});

      // add current source to notification channel
      System.out.println("Add source to notification channel.");
      notificationChannel.addSources(new Source[] {source});

      // add read trigger to source
      System.out.println("Add read trigger to source.");
      source.addReadTriggers(new Trigger[] {readTrigger});
   }
}

+---

    In order to process the notification messages from the reader, the proxy provides the class org.fosstrak.reader.rp.proxy.NotificationChannelEndPoint.
    The class that is interested in receiving the notification messages has to implement the interface org.fosstrak.reader.rp.proxy.NotificationChannelListener
    and has to be registered with the NotificationChannelEndPoint as shown below and in the example
    ({{{example/ReaderNotificationChannelListener.java} ReaderNotificationChannelListener.java}}).

+---

import org.fosstrak.reader.rp.proxy.NotificationChannelListener;
import org.fosstrak.reader.rprm.core.msg.notification.Notification;


public class ReaderNotificationChannelListener implements NotificationChannelListener {

   public void dataReceived(Notification notification) {
      System.out.println("Notification received: " + notification);

      // add your code to process notification message here
   }

}

+---

   Code to create a NotificationChannelListener and to add a listener to it:

+---

   NotificationChannelListener notificationChannelListener = new ReaderNotificationChannelListener();

   // create notification channel endpoint to receive messages
   System.out.println("Create NotificationChannelEndpoint at port '" + NOTIFICATION_CHANNEL_PORT + "'.");
   NotificationChannelEndPoint notificationChannelEndPoint = new
         NotificationChannelEndPoint(NOTIFICATION_CHANNEL_PORT);

   // add listerner to notification channel endpoint
   notificationChannelEndPoint.addListener(notificationChannelListener);

+---


** Configure the reader with our configuration engine and the corresponding properties file

    Implement the following example

+---

import org.apache.log4j.Logger;
import org.apache.log4j.BasicConfigurator;
import org.fosstrak.reader.proxy.configurator.ReaderConfigurator;


public class ReaderConfiguratorExample {

   private static final String CONFIG_FILE_PATH = "./props/ReaderDeviceConfiguration.xml";

   private static final Logger LOG = Logger.getLogger(ReaderConfiguratorExample.class);

   public static void main(String[] args) throws Exception {

      BasicConfigurator.configure();

      LOG.info("Configurate reader device.");
      ReaderConfigurator.initReaderDeviceConfiguration(CONFIG_FILE_PATH);

   }

}

+---

   The corresponding properties ({{{example/ReaderDeviceConfiguration.xml} ReaderDeviceConfiguration.xml}})
   file looks like this:

+---

<?xml version="1.0" encoding="UTF-8"?>
<configurationDocument xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="ReaderDeviceConfiguration.xsd">
   <readerDeviceConfiguration>

      <!-- reader configuration -->
      <readerConfig>
         <commandChannelHost>localhost</commandChannelHost>
         <commandChannelPort>8000</commandChannelPort>
         <transportProtocol>HTTP</transportProtocol>
         <transportFormat>XML</transportFormat>
      </readerConfig>

      <!-- read triggers -->
      <triggers>
         <timerTrigger name="ReadTrigger">
            <value>2000</value>
         </timerTrigger>
      </triggers>

      <!-- notification triggers -->
      <triggers>
         <continuousTrigger name="NotificationTrigger"/>
      </triggers>

      <!-- data selectors -->
      <dataSelectors>
         <dataSelector name="DataSelector">
            <fieldNames>
               <fieldName>eventType</fieldName>
               <fieldName>readerName</fieldName>
               <fieldName>tagID</fieldName>
               <fieldName>tagIDasPureURI</fieldName>
               <fieldName>tagIDasTagURI</fieldName>
               <fieldName>sourceName</fieldName>
            </fieldNames>
            <eventFilters>
               <eventFilter>evObserved</eventFilter>
               <eventFilter>evLost</eventFilter>
            </eventFilters>
         </dataSelector>
      </dataSelectors>

      <!-- notification channels -->
      <notificationChannels>
         <notificationChannel name="NotificationChannel">
            <notificationChannelHost>localhost</notificationChannelHost>
            <notificationChannelPort>9000</notificationChannelPort>
            <transportProtocol>TCP</transportProtocol>
            <notificationChannelMode>connect</notificationChannelMode>
            <sources>
               <source>Shelf1</source>
            </sources>
            <notificationTriggers>
               <triggerName>NotificationTrigger</triggerName>
            </notificationTriggers>
            <!-- dataSelector>DataSelector</dataSelector -->
         </notificationChannel>
      </notificationChannels>

      <!-- sources -->
      <sources>
         <source name="Shelf1">
            <triggerName>ReadTrigger</triggerName>
         </source>
      </sources>

   </readerDeviceConfiguration>
</configurationDocument>

+---





































?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號(hào) Ctrl + =
減小字號(hào) Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
91精品婷婷国产综合久久性色 | 九色porny丨国产精品| 日韩一区和二区| 高清在线不卡av| 亚洲精品美国一| 精品久久久久久无| 欧美三级日韩在线| 国产精品一区二区果冻传媒| 国产精品入口麻豆九色| 欧美丰满高潮xxxx喷水动漫| 国产精品一级片在线观看| 亚洲欧美日韩久久| 精品国产免费视频| 在线国产亚洲欧美| 韩国v欧美v亚洲v日本v| 亚洲精选一二三| 中文一区在线播放| 欧美一区二区在线播放| 成人97人人超碰人人99| 日本强好片久久久久久aaa| 国产午夜精品理论片a级大结局 | 日韩午夜中文字幕| 欧美色大人视频| 91成人免费在线| 成人短视频下载| 国产在线视频不卡二| 日本不卡123| 日韩国产欧美在线视频| 亚洲影院免费观看| 亚洲一区二区综合| 亚洲精品国产无天堂网2021 | 欧美二区三区91| 欧美主播一区二区三区| 丁香亚洲综合激情啪啪综合| 日韩精品三区四区| 亚洲最新视频在线观看| 国产精品久久久久久久久免费桃花 | 亚洲永久精品大片| 中文字幕在线不卡国产视频| 久久新电视剧免费观看| 9191成人精品久久| 欧美日韩一本到| 91视频观看视频| 色综合久久综合网| 欧美三级视频在线| 91精品国产高清一区二区三区蜜臀| 欧美精品久久久久久久多人混战| 欧美久久久久久久久中文字幕| 欧美少妇bbb| 91精品国产福利| 2024国产精品| 国产精品色眯眯| 一区二区三区中文字幕| 夜夜嗨av一区二区三区中文字幕| 亚洲自拍偷拍综合| 男人的j进女人的j一区| 老司机免费视频一区二区| 黄色日韩网站视频| 国产精品综合av一区二区国产馆| 精品在线播放免费| 国产91丝袜在线播放0| 99免费精品在线| 91最新地址在线播放| 欧美群妇大交群中文字幕| 日韩欧美一区二区视频| 久久男人中文字幕资源站| 国产亚洲1区2区3区| 国产亚洲成年网址在线观看| 国产精品亲子伦对白| 亚洲午夜精品在线| 日韩国产一二三区| 国产黑丝在线一区二区三区| 国产不卡在线播放| 日本道精品一区二区三区| 欧美一区二区三区视频免费播放| 久久青草欧美一区二区三区| 亚洲欧美一区二区久久| 麻豆国产精品官网| 99精品桃花视频在线观看| 欧美日韩国产综合久久| 精品不卡在线视频| 亚洲激情在线激情| 天天亚洲美女在线视频| 国精产品一区一区三区mba桃花| 懂色av一区二区三区免费观看| 99免费精品视频| 久久精品人人做人人爽人人| 欧美精品一区二区高清在线观看| 欧美极品美女视频| 亚洲午夜激情av| 国产一区二区久久| av电影天堂一区二区在线观看| 在线看国产一区| 国产亚洲欧美中文| 一区二区三区日本| 国产自产视频一区二区三区| 一本一道综合狠狠老| 91精品国产综合久久久久| 国产亚洲制服色| 亚洲制服丝袜一区| 高清不卡一区二区| 精品国内二区三区| 亚洲成人你懂的| 91蜜桃免费观看视频| 久久久夜色精品亚洲| 亚洲高清不卡在线观看| 国产电影精品久久禁18| 日韩一区二区免费在线观看| 亚洲乱码国产乱码精品精的特点| 国产成人av一区二区| 69堂成人精品免费视频| 一区二区三区不卡在线观看| 成人精品免费看| 欧美精品一区二区三区一线天视频 | 在线成人av网站| 一区二区三区**美女毛片| 国产精品2024| 精品久久久久久久久久久久包黑料 | 奇米色一区二区| 欧美日本视频在线| 亚洲一二三专区| 色综合久久综合网欧美综合网| 国产精品国产自产拍高清av| 国产做a爰片久久毛片| 日韩欧美亚洲国产精品字幕久久久| 亚洲在线观看免费| 岛国精品在线播放| 国产日产亚洲精品系列| 国产精品乡下勾搭老头1| 精品电影一区二区三区| 久久福利资源站| 精品日韩成人av| 国产高清不卡一区| 国产网红主播福利一区二区| 国产精品一区二区你懂的| 精品日韩一区二区三区免费视频| 久久99精品国产麻豆不卡| 日韩一区二区视频| 日本不卡视频一二三区| 精品三级在线观看| 国产美女视频91| 国产精品三级电影| 91麻豆精品视频| 亚洲影院理伦片| 91精品国产黑色紧身裤美女| 免费看欧美女人艹b| 欧美videofree性高清杂交| 国产一区二区伦理片| 国产精品久久久久久久裸模| 91亚洲大成网污www| 亚洲一区二区三区视频在线| 欧美剧情片在线观看| 日韩精品三区四区| 精品成人在线观看| 成人教育av在线| 一区二区三区在线观看国产| 欧美视频你懂的| 久久精品国产精品亚洲精品| 久久丝袜美腿综合| 92精品国产成人观看免费 | 亚洲一区二区三区自拍| 欧美精品日日鲁夜夜添| 国产乱子伦一区二区三区国色天香| 国产校园另类小说区| 91久久人澡人人添人人爽欧美| 视频一区视频二区中文| 国产亚洲一区字幕| 欧洲日韩一区二区三区| 免费一级片91| 中文字幕日韩精品一区| 337p亚洲精品色噜噜噜| 豆国产96在线|亚洲| 亚洲成a人片在线观看中文| 久久综合狠狠综合久久综合88| a在线播放不卡| 麻豆精品视频在线观看免费| 国产精品电影一区二区三区| 欧美精品日韩一本| 99久久久久免费精品国产| 日韩影视精彩在线| 国产欧美精品一区二区色综合| 欧美日韩在线一区二区| 国产99久久久精品| 日本在线不卡视频| 中文字幕中文字幕一区二区| 欧美精品 国产精品| 成人av电影观看| 免费美女久久99| 亚洲综合视频在线观看| 久久久久久久久久久黄色| 欧美视频中文字幕| 本田岬高潮一区二区三区| 美国一区二区三区在线播放| 日韩理论电影院| 久久精品视频一区二区三区| 欧美裸体一区二区三区| 成人av在线播放网址| 精品在线你懂的| 亚洲线精品一区二区三区| 国产精品久久久久久亚洲毛片|