Creating messaging prototype

I have a need to send a 14 byte message to a device over ZigBee. I would like the 14 byte message to originate from my PC. I think I can hack the protocol by sending a series of standard commands. But I am having trouble figuring out how to transfer the 14 bytes of data from the PC to the Smart Things hub. Any ideas on how to do this? Is there an API of some kind?

Thanks!
-D.C.

PC sends GET or POST http to -> REST interface in a SmartApp which calls a method in -> Device running your custom device type -> your device type method sends a ZigBee message seems like the only plausible path.

The developer docs contain info on writing REST interfaces for SmartApps, and for writing custom device types.

1 Like

I’ve asked an engineer to take a look, but would our Arduino shield be an answer for you?

http://docs.smartthings.com/en/latest/arduino/
https://shop.smartthings.com/products/smartthings-shield-arduino

This will allow you to create a custom ZigBee device.

1 Like

Note to @dcseawrd …

The Arduino Shield (is it still called the SmartShield or ThingShield anywhere, BTW?) can probably be adapted for non-Arduino use if you just supply power. All communication is via 2-pin UART (plus 1 extra “reserved” pin, but I bet this could be ignored…), and a C++ based library that you could port to PC with RS232 or USB-Serial.

Of course, perhaps simpler, you could also hookup an Arduino to the PC in your project (via Arduino) and just pass along the hardware serial data to the ThingShield.

Let me know if I can help in any way…