To connect to Tulip, we need a ProGlove Gateway. This device connects to the Glove and communicates over a variety of protocols including USB HID, USB CDC, and MQTT.
USB CDC, MQTT, and WebSocket/WiFi integration paths are compatible with Streams API. Below, I discuss the method I used to connect over USB CDC (which operates as a serial connection through Node-RED). In this method, the ProGlove Gateway is connected to my Edge MC with the included USB cable.
(Note: @youri.regnaud has also reported success with Streams API over MQTT)
To receive information: The Gateway will output JSON objects as specified by the API during events like a device pairing, barcode scan, or button gesture. Simply pull out the desired headers in your Tulip Machine Attributes node and send into Tulip.
(For example, the Tulip “Attribute Source” for a scanned barcode would be
To send information: use a Tulip Connector to send a JSON object (such as a screen template or LED flash command) to the ProGlove.
(Note that you’ll need the serial number of your scanner to accomplish this; I recommend having a machine attribute node that will always display
msg.payload.device_serial where it exists, so Tulip can pull and save the device’s serial number from an arbitrary barcode scan or pairing event.)
At the end of the day, you should be able to use and control your ProGlove with Tulip!
See here for a proof-of-concept.
Resources: Resources that I used are below:
- Sample Node-RED flow to communicate w/ a ProGlove via USB CDC - link here. Attached here: Tulip USB CDC Proglove.json (11.7 KB)
- ProGlove Streams API Documentation - link here.
- Specific doc for write-to-screen commands here. (Note that each screen template may have a different structure, and likely needs a different Tulip Connector.)
- Sample Tulip Connector to write to a Proglove Screen Template here.