• 大小: 4.85MB
    文件类型: .zip
    金币: 1
    下载: 0 次
    发布日期: 2023-10-28
  • 语言: Java
  • 标签: RFID  JAVA  

资源简介

用来开发Reader speedway API 工具包,java版本。

资源截图

代码片段和文件信息

package com.example.sdksamples;

import com.impinj.octane.*;

import java.util.Scanner;

// this example shows the different settings for advanced GPO.  
public class AdvancedGPO {

    public static void main(String[] args) {
        try {
            String hostname = System.getProperty(SampleProperties.hostname);

            if (hostname == null) {
                throw new Exception(“Must specify the ‘“
                        + SampleProperties.hostname + “‘ property“);
            }

            ImpinjReader reader = new ImpinjReader();

            // Connect
            System.out.println(“Connecting to “ + hostname);
            reader.connect(hostname);

            FeatureSet features = reader.queryFeatureSet();

            if (features.getGpoCount() < 4) {
                System.out.print(“Must use a reader with at least 4 GPOs to “
                        + “run this example“);
                System.exit(-2);
            }

            // Get the default settings
            Settings settings = reader.queryDefaultSettings();

            GpoConfigGroup gpos = settings.getGpos();

            // this gpo will be high when tags inventory is running
            gpos.getGpo((short) 1).setMode(GpoMode.ReaderInventoryStatus);

            // this will go high when a client app connects
            gpos.getGpo((short) 2).setMode(GpoMode.LLRPConnectionStatus);

            // this will pulse for a period of time
            gpos.getGpo((short) 3).setMode(GpoMode.Pulsed);
            gpos.getGpo((short) 3).setGpoPulseDurationMsec(1000);

            // just a normal GPO
            gpos.getGpo((short) 4).setMode(GpoMode.Normal);

            // Apply the new settings
            reader.applySettings(settings);

            // disconnect and reconnect to show GPO
            System.out.println(“Disconnecting from “ + hostname);
            reader.disconnect();
            try {
                Thread.sleep(3000);
            } catch (InterruptedException ex) {
                // ignore this since its just an example and just keep going
            }
            System.out.println(“Connecting to “ + hostname);
            reader.connect(hostname);

            // delay so we can see the GPO state
            try {
                Thread.sleep(3000);
            } catch (InterruptedException ex) {
                // ignore this since its just an example and just keep going
            }

            // don‘t connect a listener so we dont get the reports
            // typical applications will still connect a tag listener 
            // reader.setTagReportListener(new TagReportListenerImplementation());

            // Start the reader
            System.out.println(“Starting inventory on “ + hostname);
            reader.start();

            // Set the GPO high every three seconds.
            // The GPO will remain high for the period
            // specified by GpoPulseDurationMsec.
            for (int i = 0; i < 5; i++) {
            

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2017-09-01 00:54  Octane_SDK_Java_1_28_0_1\
     目录           0  2017-09-01 00:54  Octane_SDK_Java_1_28_0_1\documentation\
     目录           0  2017-09-01 00:54  Octane_SDK_Java_1_28_0_1\documentation\javadoc\
     文件       20317  2017-09-01 00:54  Octane_SDK_Java_1_28_0_1\documentation\javadoc\allclasses-frame.html
     文件       17437  2017-09-01 00:54  Octane_SDK_Java_1_28_0_1\documentation\javadoc\allclasses-noframe.html
     目录           0  2017-09-01 00:54  Octane_SDK_Java_1_28_0_1\documentation\javadoc\com\
     目录           0  2017-09-01 00:54  Octane_SDK_Java_1_28_0_1\documentation\javadoc\com\impinj\
     目录           0  2017-09-01 00:54  Octane_SDK_Java_1_28_0_1\documentation\javadoc\com\impinj\octane\
     文件        8405  2017-09-01 00:54  Octane_SDK_Java_1_28_0_1\documentation\javadoc\com\impinj\octane\AntennaChangeListener.html
     文件       22805  2017-09-01 00:54  Octane_SDK_Java_1_28_0_1\documentation\javadoc\com\impinj\octane\AntennaConfig.html
     文件       31162  2017-09-01 00:54  Octane_SDK_Java_1_28_0_1\documentation\javadoc\com\impinj\octane\AntennaConfigGroup.html
     文件       11629  2017-09-01 00:54  Octane_SDK_Java_1_28_0_1\documentation\javadoc\com\impinj\octane\AntennaEvent.html
     文件       15158  2017-09-01 00:54  Octane_SDK_Java_1_28_0_1\documentation\javadoc\com\impinj\octane\AntennaEventType.html
     文件       12981  2017-09-01 00:54  Octane_SDK_Java_1_28_0_1\documentation\javadoc\com\impinj\octane\AntennaHubStatus.html
     文件       10389  2017-09-01 00:54  Octane_SDK_Java_1_28_0_1\documentation\javadoc\com\impinj\octane\AntennaHubStatusGroup.html
     文件        8852  2017-09-01 00:54  Octane_SDK_Java_1_28_0_1\documentation\javadoc\com\impinj\octane\AntennaIds.html
     文件       10847  2017-09-01 00:54  Octane_SDK_Java_1_28_0_1\documentation\javadoc\com\impinj\octane\AntennaStatus.html
     文件       10519  2017-09-01 00:54  Octane_SDK_Java_1_28_0_1\documentation\javadoc\com\impinj\octane\AntennaStatusGroup.html
     文件       13426  2017-09-01 00:54  Octane_SDK_Java_1_28_0_1\documentation\javadoc\com\impinj\octane\AntennaUtilities.html
     文件       17273  2017-09-01 00:54  Octane_SDK_Java_1_28_0_1\documentation\javadoc\com\impinj\octane\AutoStartConfig.html
     文件       15454  2017-09-01 00:54  Octane_SDK_Java_1_28_0_1\documentation\javadoc\com\impinj\octane\AutoStartMode.html
     文件       15409  2017-09-01 00:54  Octane_SDK_Java_1_28_0_1\documentation\javadoc\com\impinj\octane\AutoStopConfig.html
     文件       14953  2017-09-01 00:54  Octane_SDK_Java_1_28_0_1\documentation\javadoc\com\impinj\octane\AutoStopMode.html
     文件       13114  2017-09-01 00:54  Octane_SDK_Java_1_28_0_1\documentation\javadoc\com\impinj\octane\BackgroundWorker.html
     文件       10772  2017-09-01 00:54  Octane_SDK_Java_1_28_0_1\documentation\javadoc\com\impinj\octane\BitPointers.html
     文件       12474  2017-09-01 00:54  Octane_SDK_Java_1_28_0_1\documentation\javadoc\com\impinj\octane\BlockPermalockMask.html
     文件       17769  2017-09-01 00:54  Octane_SDK_Java_1_28_0_1\documentation\javadoc\com\impinj\octane\BlockPermalockResult.html
     文件        7659  2017-09-01 00:54  Octane_SDK_Java_1_28_0_1\documentation\javadoc\com\impinj\octane\BufferOverflowEvent.html
     文件        8574  2017-09-01 00:54  Octane_SDK_Java_1_28_0_1\documentation\javadoc\com\impinj\octane\BufferOverflowListener.html
     文件       10214  2017-09-01 00:54  Octane_SDK_Java_1_28_0_1\documentation\javadoc\com\impinj\octane\BufferWarningEvent.html
     文件        8558  2017-09-01 00:54  Octane_SDK_Java_1_28_0_1\documentation\javadoc\com\impinj\octane\BufferWarningListener.html
............此处省略198个文件信息

评论

共有 条评论