Home/Support/Support Forum/How can I create a simple user interface to send an SCI_request?
Welcome to Digi Forum, where you can ask questions and receive answers from other members of the community.

How can I create a simple user interface to send an SCI_request?

0 votes
I have developed a project for a Rabbit RCM6650W minicore in which I can use the Device Cloud API Explorer to read, send and tell the RCM6650 to do various things. I have a number of "what I call scripts" that I post to the /ws/sci path to do all of this. Below are a couple of examples of the scripts. What I would like is to create a user interface with buttons to send these scripts through the device cloud to the RCM6650 and receive the response from the RCM6650 without me copying and pasting the scripts right into the API Explorer. I am very weak in this area and do not have a clue where to begin. I can write code in VB.NET or will learn any other method I need to but don't know where to begin. Any help is very much appreciated.

<sci_request version="1.0">
<!--
An operation with synchronous set to false will be performed
asynchronously. A job id will be returned to the caller which
can be used to check on the status of the job.
-->
<send_message>
<targets>
<device id="00000000-00000000-0090C2FF-xxxxxxxx"/>
</targets>
<rci_request version="1.1">
<do_command target="XMTRData">
<Packet>1000</Packet>
</do_command>
</rci_request>
</send_message>
</sci_request>


<sci_request version="1.0">
<!--
An operation with synchronous set to false will be performed
asynchronously. A job id will be returned to the caller which
can be used to check on the status of the job.
-->
<send_message>
<targets>
<device id="00000000-00000000-0090C2FF-xxxxxxxx"/>
</targets>
<rci_request version="1.1">
<do_command target="XMTRWrite">
<Register>1002</Register>
<Value>1</Value>
</do_command>
</rci_request>
</send_message>
</sci_request>
asked Dec 18, 2015 in Device Cloud by braves3131 New to the Community (0 points)

Please log in or register to answer this question.

1 Answer

0 votes
You might find that exporting the API(s) will be helpful in designing an application. With your sci request input in typed into the API Explorer, select the Export option. You will see the following programming language options for exporting the call into:

Python
Java
Ruby
Perl
c#
answered Jan 13, 2016 by userid0 Veteran of the Digi Community (2,158 points)
...