FX9600 - Inserting custom name/value pairings into MQTT payloads

// Expert user has replied.
K Kevin Ludlow 1 month 4 weeks ago
41 2 0

Hi.  I'm working with my FX9600.  It's connected directly to IoT Core and has been working very well.

I've gone through the extensive documentation on the commands that can be sent.  It's a very helpful guide.

There are a few pieces of documentation that suggest custom key/value pairings can be passed, but it doesn't actually explain how to do this.  For example, here is the method to start the scanning process.

{
 "command": "start",
 "command_id": "abcd1432",
 "payload": {
   "doNotPersistState": true
 }
}

Simple enough.  It works great.  But how would I go about adding a key-pairing that would then be included in the events that come from this.

The basic problem I'm needing to solve is that I want to pass a unique ID into the scan start.  Then each of the tags that are reported from it should report that same unique ID.  This will allow me to group them together in a way specific to my process.

If there is some documentation on this, I would love to be pointed to it.  Thanks!

Please Register or Login to post a reply

2 Replies

A Alex Lavie

hi there

 

looking into this! 

maybe a workaround would be to set the mode before sending the start command.

when setting the mode you can use userdefined field to add the metadata you want to the jason data message

{
 "command": "set_mode",
 "command_id": "abcd134",
 "payload": {
   "type": "INVENTORY",
   "antennas": [
     1,
     2,
     3
   ],
   "transmitPower": 30.1,
   "antennaStopCondition": [
     {
       "type": "DURATION",
       "value": 500
     },
     {
       "type": "INVENTORY_COUNT",
       "value": 1
     },
     {
       "type": "GPI",
       "value": {
         "port": 2,
         "signal": "HIGH"
       }
     }
   ],
   "tagMetaData": [
     "PC",
     "CRC",
     {
       "userDefined": "readerABC"
     }
   ],
   "rssiFilter": {
     "threshold": -72
   }
 }
}

 

A Alex Lavie
CONTACT
Can’t find what you’re looking for?