Documentation ¶
Index ¶
- Constants
- func AddRospecResponse(messageID uint32) []byte
- func AntennaAirPort(id uint16) []byte
- func AntennaAirPortList(numOfAntennas int) []interface{}
- func AntennaConfiguration(id uint16) []byte
- func AntennaProperties(id uint16) []byte
- func C1G2InventoryCommand() []byte
- func C1G2PC(pc uint16) []byte
- func C1G2RFControl() []byte
- func C1G2ReadOpSpecResult(readData []byte) []byte
- func C1G2SingulationControl() []byte
- func C1G2UHFModeRFTable() []byte
- func C1G2UHFModeRFTableEntry(mode int) []byte
- func C1G2llrpCapabilities() []byte
- func ChannelIndex() []byte
- func ConnectionAttemptEvent() []byte
- func DeleteAccessSpecResponse(messageID uint32) []byte
- func DeleteRospecResponse(messageID uint32) []byte
- func EPCData(length uint16, epcLengthBits uint16, epc []byte) []byte
- func EnableRospecResponse(messageID uint32) []byte
- func FrequencyHopTable() []byte
- func FrequencyInformation() []byte
- func GPIOCapabilities() []byte
- func GeneralDeviceCapabilities() []byte
- func GetReaderCapability(messageID uint32) []byte
- func GetReaderCapabilityResponse(messageID uint32) []byte
- func GetReaderConfigResponse(messageID uint32) []byte
- func GetReaderConfigResponseIdentification() []byte
- func ImpinjEnableCutomMessage(id uint32) []byte
- func Keepalive(messageID uint32) []byte
- func KeepaliveAck(messageID uint32) []byte
- func KeepaliveSpec() []byte
- func LastSeenTimestampUTC() []byte
- func LlrpCapabilities() []byte
- func NewTagReportDataParam(tag *Tag) []byte
- func Pack(data []interface{}) []byte
- func PeakRSSI() []byte
- func RFReceiver() []byte
- func RFTransmitter() []byte
- func ReaderEventNotification(messageID uint32, currentTime uint64) []byte
- func ReaderEventNotificationData(currentTime uint64) []byte
- func ReceiveSensitivityEntries(numOfAntennas int) []interface{}
- func ReceiveSensitivityEntry(id uint16) []byte
- func ReguCapabilities() []byte
- func SetReaderConfig(messageID uint32) []byte
- func SetReaderConfigResponse(messageID uint32) []byte
- func Status() []byte
- func TagSeenCount() []byte
- func TransmitPowerLevelEntry(id uint16, powerLevel uint16) []byte
- func UHFCapabilities(numOfAntennas int) []byte
- func UTCTimeStamp(currentTime uint64) []byte
- type ROAccessReport
- type ReadEvent
- type Tag
- type TagRecord
- type TagReportData
- type TagReportDataStack
- type Tags
Constants ¶
const ( GetReaderCapabilityHeader = 1025 // type 1 GetReaderConfigHeader = 1026 // type 2 SetReaderConfigHeader = 1027 // type 3 GetReaderCapabilityResponseHeader = 1035 // type 11 GetReaderConfigResponseHeader = 1036 // type 12 SetReaderConfigResponseHeader = 1037 // type 13 AddRospecHeader = 1044 // type 20 DeleteRospecHeader = 1045 // type 21 EnableRospecHeader = 1048 // type 24 AddRospecResponseHeader = 1054 // type 30 DeleteRospecResponseHeader = 1055 // type 31 EnableRospecResponseHeader = 1058 // type 34 DeleteAccessSpecHeader = 1065 // type 41 DeleteAccessSpecResponseHeader = 1075 // type 51 ROAccessReportHeader = 1085 // type 61 KeepaliveHeader = 1086 // type 62 ReaderEventNotificationHeader = 1087 // type 63 EventsAndReportsHeader = 1088 // type 64 KeepaliveAckHeader = 1096 // type 72 ImpinjEnableCutomMessageHeader = 2047 // type 1023 )
LLRP header values, the header is composed of 2 bytes where the first is set to 0x40 or 1024, so 1025 would be 0x0401
Variables ¶
This section is empty.
Functions ¶
func AddRospecResponse ¶
AddRospecResponse : Add ROSpec Response
func AntennaAirPortList ¶
func AntennaAirPortList(numOfAntennas int) []interface{}
AntennaAirPortList :
func AntennaConfiguration ¶
func C1G2InventoryCommand ¶
func C1G2InventoryCommand() []byte
func C1G2RFControl ¶
func C1G2RFControl() []byte
func C1G2ReadOpSpecResult ¶
C1G2ReadOpSpecResult generates C1G2ReadOpSpecResult parameter from readData.
func C1G2SingulationControl ¶
func C1G2SingulationControl() []byte
func C1G2UHFModeRFTableEntry ¶
C1G2UHFModeRFTableEntry :
func C1G2llrpCapabilities ¶
func C1G2llrpCapabilities() []byte
C1G2llrpCapabilities : Generates C1G2llrpCapabilities
func ConnectionAttemptEvent ¶
func ConnectionAttemptEvent() []byte
ConnectionAttemptEvent generates ConnectionAttemptEvent parameter.
func DeleteAccessSpecResponse ¶
DeleteAccessSpecResponse : Delete Access Spec Response
func DeleteRospecResponse ¶
DeleteRospecResponse : Delete RoSpec Response
func EnableRospecResponse ¶
EnableRospecResponse : Enabled Rospec Response
func GPIOCapabilities ¶
func GPIOCapabilities() []byte
GPIOCapabilities : Generates GPIO capabilities proeprty
func GeneralDeviceCapabilities ¶
func GeneralDeviceCapabilities() []byte
GeneralDeviceCapabilities : Generates General Device Capabilities
func GetReaderCapabilityResponse ¶
GetReaderCapabilityResponse :
func GetReaderConfigResponse ¶
GetReaderConfigResponse :
func GetReaderConfigResponseIdentification ¶
func GetReaderConfigResponseIdentification() []byte
GetReaderConfigResponseIdentification : Generate Identification
func KeepaliveAck ¶
KeepaliveAck generates KeepaliveAck message.
func LastSeenTimestampUTC ¶
func LastSeenTimestampUTC() []byte
LastSeenTimestampUTC : Returns the a UNIX timestamp in microseconds
func LlrpCapabilities ¶
func LlrpCapabilities() []byte
LlrpCapabilities : generates LLRP_CAPABILITIES
func NewTagReportDataParam ¶
BuildTagReportDataParameter takes one Tag struct and build TagReportData parameter payload in []byte
func Pack ¶
func Pack(data []interface{}) []byte
Pack the data into (partial) LLRP packet payload. TODO: count the data size and return resulting length ?
func RFReceiver ¶
func RFReceiver() []byte
func RFTransmitter ¶
func RFTransmitter() []byte
func ReaderEventNotification ¶
ReaderEventNotification generates ReaderEventNotification message.
func ReaderEventNotificationData ¶
ReaderEventNotificationData generates ReaderEventNotification parameter.
func ReceiveSensitivityEntries ¶
func ReceiveSensitivityEntries(numOfAntennas int) []interface{}
ReceiveSensitivityEntries : Generates ReceiveSensitivityEntries used in General capabilities
func ReceiveSensitivityEntry ¶
ReceiveSensitivityEntry :
func ReguCapabilities ¶
func ReguCapabilities() []byte
ReguCapabilities : generates Regulatory Capabilities
func SetReaderConfig ¶
SetReaderConfig generates SetReaderConfig message.
func SetReaderConfigResponse ¶
SetReaderConfigResponse generates SetReaderConfigResponse message.
func TransmitPowerLevelEntry ¶
TransmitPowerLevelEntry :
func UTCTimeStamp ¶
UTCTimeStamp generates UTCTimeStamp parameter at the current time.
Types ¶
type ROAccessReport ¶
type ROAccessReport struct {
// contains filtered or unexported fields
}
ROAccessReport is a struct for ROAR message
func NewROAccessReport ¶
func NewROAccessReport(tagReportData []byte, messageID uint32) *ROAccessReport
NewROAccessReport returns a pointer to a new ROAccessReport message.
type ReadEvent ¶
ReadEvent is the struct to hold data on RFTags
func UnmarshalROAccessReportBody ¶
UnmarshalROAccessReportBody extract ReadEvent from the message value in the ROAccessReport
type Tag ¶
Tag holds a single virtual tag content
func (*Tag) IsDuplicate ¶
IsDuplicate to test another Tag by comparing only EPC return true if the EPCs are the same
func (*Tag) IsEqual ¶
IsEqual to another Tag by taking one as its argument return true if they are the same
func (*Tag) MarshalBinary ¶
MarshalBinary overwrites the marshaller in gob encoding *Tag
func (*Tag) UnmarshalBinary ¶
UnmarshalBinary overwrites the unmarshaller in gob decoding *Tag
type TagReportData ¶
TagReportData holds an actual parameter in byte and how many tags are included in the parameter
type TagReportDataStack ¶
type TagReportDataStack []*TagReportData
TagReportDataStack is a stack of TagReportData
func (TagReportDataStack) TotalTagCounts ¶
func (trds TagReportDataStack) TotalTagCounts() uint
TotalTagCounts returns how many tags are included in the TagReportDataStack
type Tags ¶
type Tags []*Tag
Tags holds a slice of pointers to Tag
func LoadTagsFromCSV ¶
LoadTagsFromCSV reads Tag data from the CSV strings and returns a slice of Tag struct pointers
func (Tags) BuildTagReportDataStack ¶
func (tags Tags) BuildTagReportDataStack(pdu int) TagReportDataStack
BuildTagReportDataStack takes []*Tag and PDU value to build a new trds
func (Tags) GetIndexOf ¶
GetIndexOf finds the index in []*Tag
func (*Tags) MarshalBinary ¶
MarshalBinary overwrites the marshaller in gob encoding Tags
func (*Tags) UnmarshalBinary ¶
UnmarshalBinary overwrites the unmarshaller in gob decoding Tags