You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@edgent.apache.org by jo...@apache.org on 2016/09/04 21:47:00 UTC

Podling Report Reminder - September 2016

Dear podling,

This email was sent by an automated system on behalf of the Apache
Incubator PMC. It is an initial reminder to give you plenty of time to
prepare your quarterly board report.

The board meeting is scheduled for Wed, 21 September 2016, 10:30 am PDT.
The report for your podling will form a part of the Incubator PMC
report. The Incubator PMC requires your report to be submitted 2 weeks
before the board meeting, to allow sufficient time for review and
submission (Wed, September 07).

Please submit your report with sufficient time to allow the Incubator
PMC, and subsequently board members to review and digest. Again, the
very latest you should submit your report is 2 weeks prior to the board
meeting.

Thanks,

The Apache Incubator PMC

Submitting your Report

----------------------

Your report should contain the following:

*   Your project name
*   A brief description of your project, which assumes no knowledge of
    the project or necessarily of its field
*   A list of the three most important issues to address in the move
    towards graduation.
*   Any issues that the Incubator PMC or ASF Board might wish/need to be
    aware of
*   How has the community developed since the last report
*   How has the project developed since the last report.

This should be appended to the Incubator Wiki page at:

http://wiki.apache.org/incubator/September2016

Note: This is manually populated. You may need to wait a little before
this page is created from a template.

Mentors
-------

Mentors should review reports for their project(s) and sign them off on
the Incubator wiki page. Signing off reports shows that you are
following the project - projects that are not signed may raise alarms
for the Incubator PMC.

Incubator PMC

Re: How to send device commands?

Posted by Dale LaBossiere <dm...@gmail.com>.
Yeah, it’s a bit confusing :-)

A description of the IotProvider’s defined device commands (submit/start app, stop application) can be found in the IotProvider’s **package** javadoc.  The Command Identifier “edgentControl” is the device command id string.

The IotProvider (services it registers) are layered over the base IotDevice{IotpDevice,MqttDevice} defined device command mechanism.  The base mechanism doesn’t define commands or involve mbeans.  Its IotProvider, et al, that does that transparently to the user.  The base IotDevice mechanism as well as JsonControlService are also available for the user to use for their own purposes should they desire.

So, the “{COMMAND}” in MqttDevice’s device command topic pattern is where the “edgentControl” goes. E.g., topic
    “id/012345/cmd/edgentControl/fmt/json”

As described in the IotProvider’s package doc, the edgentControl command’s “stop application” (sub) command is a JSON payload (for a JsonControlService registered service) like:
    {“type”:”job”,”alias”:”Heartbeat”,”op”:”stateChange”,”args”:[“CLOSE”]}

That payload would be embedded in the general IotDevice.commands() documented device command JSON:
    {“tsms”:<timestamp>,”command”:”edgentControl”,”format”:”json”,”payload”:<that-payload>}

Hope that helps.

— Dale

> On Sep 5, 2016, at 9:26 AM, Michiel Van Herwegen <mi...@michielvh.be> wrote:
> 
> I'm completely at a loss how sending commands works.
> From the related pieces i discovered in the code and javadoc, i gather that
> the json message needs to adhere to the specifications here:
> https://quarks.incubator.apache.org/javadoc/latest/org/apache/edgent/runtime/jsoncontrol/package-summary.html
> 
> But that does not clear up 2 further elements:
> *First*, what topic to post on. The topic is formatted according to some
> rules as i see it in the MqqtDevice:
> {mqttDevice.topic.prefix}id/{mqttDevice.id}/cmd/{COMMAND}/fmt/json but it's
> unclear to me how to identify the name of the command.
> 
> *Second*, where to get the MBean information from. Here my confusion may
> come from one of the samples:
> https://github.com/apache/incubator-edgent/blob/master/samples/scenarios/src/main/java/org/apache/edgent/samples/scenarios/iotp/IotpFullScenario.java
> It is explicitly stated that this example could be controlled through
> device commands.
> However, there is nowhere an MBean to be found there, nor in the folders
> with the referenced sensors.
> (i am aware that the sample is for iotp - i.e., IBM Watson - and not for
> mqtt, but i'd assume that at least the message content would be similar)
> 
> So completely at a loss here. It would be great if someone could expand a
> bit on the scenario.
> 
> 
> Kind regards,
> Michiel


How to send device commands?

Posted by Michiel Van Herwegen <mi...@michielvh.be>.
I'm completely at a loss how sending commands works.
From the related pieces i discovered in the code and javadoc, i gather that
the json message needs to adhere to the specifications here:
https://quarks.incubator.apache.org/javadoc/latest/org/apache/edgent/runtime/jsoncontrol/package-summary.html

But that does not clear up 2 further elements:
*First*, what topic to post on. The topic is formatted according to some
rules as i see it in the MqqtDevice:
{mqttDevice.topic.prefix}id/{mqttDevice.id}/cmd/{COMMAND}/fmt/json but it's
unclear to me how to identify the name of the command.

*Second*, where to get the MBean information from. Here my confusion may
come from one of the samples:
https://github.com/apache/incubator-edgent/blob/master/samples/scenarios/src/main/java/org/apache/edgent/samples/scenarios/iotp/IotpFullScenario.java
It is explicitly stated that this example could be controlled through
device commands.
However, there is nowhere an MBean to be found there, nor in the folders
with the referenced sensors.
(i am aware that the sample is for iotp - i.e., IBM Watson - and not for
mqtt, but i'd assume that at least the message content would be similar)

So completely at a loss here. It would be great if someone could expand a
bit on the scenario.


Kind regards,
Michiel