Profiles Tutorial

RFID API-3 Profiles Tutorial

Profiles on the RFID API-3 can be configured in Zebra IoT Connector using the set_config Rest API.

To Get the current configuration we can use the get_config Rest API, which will export the Advanced Reader Configurations with the tag name as xml along with set of other configuration parameters.

Get current configuration
{
    "command": "get_config",
    "command_id": "16266718797272556",
    "payload": {
        "GPIO-LED": "NOT_CONFIGURED",
        "READER-GATEWAY": {
            "batching": [
                {
                    "maxPayloadSizePerReport": 0,
                    "reportingInterval": 0
                }
            ],
            "endpointConfig": {
                "data": {
                    "event": {
                        "connections": [
                            {
                                "additionalOptions": {
                                    "batching": null,
                                    "retention": {
                                        "maxEventRetentionTimeInMin": 500,
                                        "maxNumEvents": 150000,
                                        "throttle": 500
                                    }
                                },
                                "description": "MQTT TCP connection",
                                "name": "MQTT TCP #1",
                                "options": {
                                    "additional": {
                                        "cleanSession": true,
                                        "clientId": "FX960062",
                                        "debug": false,
                                        "keepAlive": 60,
                                        "qos": 0,
                                        "reconnectDelay": 1,
                                        "reconnectDelayMax": 5
                                    },
                                    "enableSecurity": false,
                                    "endpoint": {
                                        "hostName": "10.17.231.209",
                                        "port": 1883,
                                        "protocol": "tcp"
                                    },
                                    "publishTopic": [
                                        "/FX960062/tags"
                                    ],
                                    "subscribeTopic": []
                                },
                                "type": "mqtt"
                            }
                        ]
                    }
                }
            },
            "managementEventConfig": {
                "errors": {
                    "antenna": false,
                    "cpu": {
                        "reportIntervalInSec": 1800,
                        "threshold": 90
                    },
                    "database": true,
                    "flash": {
                        "reportIntervalInSec": 1800,
                        "threshold": 90
                    },
                    "ntp": true,
                    "radio": true,
                    "radio_control": false,
                    "ram": {
                        "reportIntervalInSec": 1800,
                        "threshold": 90
                    },
                    "reader_gateway": true
                },
                "gpiEvents": true,
                "heartbeat": {
                    "interval": 10
                },
                "userappEvents": true,
                "warnings": {
                    "cpu": {
                        "reportIntervalInSec": 1800,
                        "threshold": 80
                    },
                    "database": true,
                    "flash": {
                        "reportIntervalInSec": 1800,
                        "threshold": 80
                    },
                    "ntp": true,
                    "radio_api": true,
                    "radio_control": true,
                    "ram": {
                        "reportIntervalInSec": 1800,
                        "threshold": 80
                    },
                    "reader_gateway": true,
                    "temperature": {
                        "ambient": 75,
                        "pa": 105
                    }
                }
            },
            "retention": [
                {
                    "maxEventRetentionTimeInMin": 500,
                    "maxNumEvents": 150000,
                    "throttle": 100
                }
            ]
        },
        "xml": "<?xml version='1.0'?>\n<Motorola xmlns:Falcon='http://www.motorola.com/RFID/Readers/Config/Falcon' xmlns='http://www.motorola.com/RFID/Readers/Config/Falcon'>\n<Config>\n<AppVersion major='3' minor='21' build='23' maintenance='0'/>\n<CommConfig EnabledStacks='Both' DisableRAPktProcessing='0' EnableDHCPv6='1' IPv6StaticIPAddr='fe80::1' IPv6SubnetMask='64' IPv6StaticGateway='::' IPv6DNSIP='fe80::20' DHCP='1' IPAddr='0.0.0.0' Mask='0.0.0.0' Gateway='0.0.0.0' DNS='0.0.0.0' DomainSearch='example.com' HttpRunning='2' TelnetActive='2' FtpActive='2' usbMode='0' WatchdogEnabled='1' AvahiEnabled='1' NetBIOSEnabled='0' RDMPAgentEnabled='1' SerialConTimeout='0' SNTP='0.0.0.0' SNTPHostName='pool.ntp.org' sntpHostDisplayMode='0' llrpClientMode='0' llrpSecureMode='0' llrpSecureModeValidatePeer='0' llrpPort='5084' llrpHostIP='192.168.127.2' allowllrpConnOverride='0' shouldReconnect='1'/>\n<Bluetooth discoverable='0' pairable='0' PincodeEnabled='0' passkey='165CB22DA5BE7BBEFB77709DD0A94B03FB77709DD0A94B03FB77709DD0A94B03FB77709DD0A94B03FB77709DD0A94B03FB77709DD0A94B03FB77709DD0A94B03' startIP='192.168.0.2' endIP='192.168.0.3'/>\n<WirelessConfig essid='' autoconnect='0'/>\n<RegionConfig RFCountry='Canada' RFRegulatory='Canada' RFScanMode='0' LBTEnable='0' ChannelData='0000000000000000'/>\n<SnmpConfig snmpVersion='1' heartbeat='1'/>\n<SyslogConfig RemoteIp='0.0.0.0' RemotePort='514' LogMinSeverity='7' ApplyFilter='0' MinimumSeverity='7' ProcessFilter='rmserver.elf,llrpserver.elf,snmpextagent.elf,RDMPAgent'/>\n<UserList>\n<User name='admin' PSWD='$6$0ibD1fvw$99/.sM5x40R4lfNqfmZXaz1b5/k6GgtYTliZnzXNFD0iBBBFiZUtSE9jCoLar1.Yca06WZJwjhDj0RAi36EDz0'/>\n<User name='rfidadm' PSWD='15491'/>\n</UserList>\n<IPReader name='FX9600FB6C10 FX9600 RFID Reader' desc='FX9600FB6C10 Advanced Reader' flags='0' MonoStatic='0' CheckAntenna='1' gpiDebounceTime='0' gpioMapping='0' idleModeTimeOut='0' diagMode='0' extDiagMode='0' contact='Zebra Technologies Corporation' PowerNegotiation='0' PowerNegotiationProtocol='0' allowGuestLogin='1' configureHostName='0'>\n<ReadPoint name='Read Point 1' flags='1' CableLossPerHundredFt='10' CableLength='10'/>\n<ReadPoint name='Read Point 2' flags='1' CableLossPerHundredFt='10' CableLength='10'/>\n<ReadPoint name='Read Point 3' flags='1' CableLossPerHundredFt='10' CableLength='10'/>\n<ReadPoint name='Read Point 4' flags='1' CableLossPerHundredFt='10' CableLength='10'/>\n</IPReader>\n<SerialPortConf Mode='2' Baudrate='115200' Databits='8' Parity='None' Stopbits='0' Flowcontrol='hardware' TagMetaData='0' InventoryControl='None' IsAutostart='0'/>\n<FXConnectConfig FXConnectMode='0' TagMetaData='0' InventoryControl='None' HeartBeatPeriod='0' IsAutostart='0' PreFilterMode='0' PreFilters='None'/>\n<ProfinetConfig virtualDAP='1'/>\n<NodeJSPortConf Portnumber='8001'/>\n</Config>\n<MOTOROLA_LLRP_CONFIG><LLRP_READER_CONFIG />\n</MOTOROLA_LLRP_CONFIG>\n<IOT_CONNECT_CONFIG><OPERATING_MODE />\n</IOT_CONNECT_CONFIG>\n<RadioProfileData><RadioRegisterData Address='0' Data='00'/>\n</RadioProfileData>\n<CustomProfileData ForceEAPMode='0' FIPS_MODE_ENABLED='0' MaxNumberOfTagsBuffered='512'/>\n</Motorola >\n"
    },
    "response": "success"
}