Search This Blog

Friday, March 27, 2015

Make a Modbus Device be BACnet.

Suppose a mature Modbus device which one wants to be BACnet. The device has a clear and static Modbus register map and uses standard Modbus throughout. One mostly wants the device to make its data available via BACnet and other web services to clients and participate in the Internet of Things wave.
The device is not completely static. Future revisions are expected and these want to easily integrate into new systems. The device is not solitary. It must function and thrive withing a system of its peers or devices from other vendors.
  • Cimetrics B6130 Modbus to BACnet IP can be added to mature project and works great. Exactly where most start.
  • Cimetrics B6131 module for a new unit works great. Exactly where most end up. Think of the B6130 as the development kit for B6131.
Lantronix Gridconnect xPico Xport embedded microcontroller for OEM

B613x has all the following concurrently and transparently at run time - probably have to see this to completely absorb the implications:
  • BACnet/IP (we also have a BACnet MSTP RS485 version if you use a Lantronix/Gridconnect xPico).
  • Modbus TCP.
  • Web GUI.
Features of existing B613x base:
  • Excellent long track record Cimetrics BACnet stack.
  • Defaults designed to make installs and device additions or reconfigurations easy and painless for first time or advanced users, of 1-100 units,  as system, or within other systems.
  • Quick time to market, with levels of effort tailored to OEM and end-user needs.
  • JIT supply chain with Ethernet firmware load.
Wrote and blogged before about making a small device BACnet via Modbus.

And got some questions about how to test BACnet... There are a couple of generic templates in the B613x kit (even before the template creator) which would allow one to "peek" around a generic Modbus device.

For testing the BACnet side externally, usually Cimetrics' clients use BACnet Explorer or BACnet OPC server. Demo versions in each case can be found by going to the Documentation tab (roughly mid page) (usually 20-40 MB).

Intel IoT Roadshow Boston. Greentown Labs, Somerville.

Very much enjoyed the Boston Intel Iot Roadshow weekend of March 15 at Greentown Labs in Somerville.

Intel IoT Roadshow Boston line at Greentown Labs Somerville

That is me in the center. Always enjoy it when my picture features prominently like at MIT OHS2013 *silly-grin*.

Many thanks to Stewart Christie, Daniel Holmlund, Ajay Mungara and the whole Intel ioT Roadshow team.

Intel Edison kits and Seeed Studio Grove accessories were great. Wished could have more effectively used Mashery and could do something with the advanced release Grove Agricultural Sensor kit.

And here are the hackathon results. Great stuff overall. The winning entries truly were fun.

Our team was the "Drips" was supposed to be "Know Drips" and was actually more about larger flows then drips... but hey.

Thursday, March 26, 2015

Anna and Charlie - Talking about Snowflakes.

Anna: Why are all snowflakes different? [Scientist]

Snowflake Bentley 11 details

Charlie: No they are not. Snowflakes are all made of water, white, small and hexagons (or clumps of such). [Engineer] 
Snowflake icon simple representation


Wednesday, March 25, 2015

Internet of Things Recipes and Cookbooks. IBM. IFTTT. Arduino.

IBM has some great Internet of Things recipes.
Cookbooks and recipes go back through the ages.

Apicius Roman Cookbook of Recipes

Particularly like the Aldus Leaf Fleuron on Apicius. Much like on Physical Review.

Fleuron Aldus Leaf Printer's Flower like on Physical Review cover

Amoung IBM Recipes:
Search for Internet of Things recipes generally gets you to IFTTT which crosses many domains and combines many things.

IFTTT logo IF This Then That

IFTTT appears in this top ten list of Innovative IoT companies.

Friday, March 20, 2015

BACnet and Internet of Things for Systems Managers.

How are BAcnet, Internet of Things, and their requirements, features and users, related? Apologies to Toby Considine. Just cannot get over Internet of Things.

In building automation who does one try to serve? When one goes through the list - owners, operators, and occupiers - it usually comes to the facilities managers - and being a bit more general about what automation we might be talking about - systems managers. System managers are beset by fear. Fear of disruption from all sorts of directions. System managers crave stability and reliability foremost. Efficiency and optimization comes after that. Systems managers are faced with monumental tasks.

Great Pyramid Complex construction and systems management of monument

In the Internet of Things wave, almost every facet of how a systems platform goes together are up for consideration... security, manageabilty and interoperation are current hot topics. Alan Messer of Samsung showed a great list at a recent MIT IoT event.

Turns out BACnet, as a lingua franca for building automation, has many of the facets well under control.
Especially well covered: clear semantics, great model and defaults, topology definition, simplicity with extensibility, system setup strategies part of architecture (like discoverability).

Rosetta Stone - translation - common understanding - lingua franca

And there are things BACnet can be served well by from watching and following IoT. Especially techniques in:
  • Location awareness.
  • Wireless communications.
  • Energy harvesting.
  • Social information input.
  • Raw simplicity (dumb things, simple networks).
BACnet and IoT presentation at Cimetrics.

Friday, March 13, 2015

Power Cord User Interface Design.

Using the power cord as a user interface, UI, from the MIT Tangible Media Group, is interesting in many ways:

Electrical Outlet with Cord - Japan 100VAC
  • Transparent design ala Norman.
  • Energy monitoring and such (why not also put in a current monitor?).
  • Microcontrollers and embedded systems. Related to IoT
Have always been in favor of cables... Like 802.3af Power over Ethernet, Standard USB power.

Tuesday, March 10, 2015

Motivations - Monetary Rewards, Morals, Social Pressure.

Found this in Greentech Blog about how monetary rewards trump morals.

Always interested in a contrarian position. The above thesis flys in the face of many recent findings regarding the mechanics of social interactions.

So which is a better model of reality? Perhaps they both are because there is a subtle difference. They make different assumptions at the outset. Morals are perhaps more of a personal construct or rule of thumb amassed from societal pressures internalized by the individual. Pure raw local group pressures are perhaps more direct. And morals (with a very narrow definition) might lag pure group pressure. That is perhaps not saying it with all the nuance needed. Alexander Pentland's book Social Physics maybe is a good place for an overview of the raw peer pressure point.

In brief - moral suasion directed to the individual as in the Japanese study cited by Greentech is perhaps orthogonal to pure direct peer pressure. And there are issues with the Japanese study regarding "top down control" of the programme, versus the local social aspects of how communities might apply pressure locally.

So there are perhaps three ways to motivate: (in the order they seem most effective).

Direct and immediate social pressure from your immediate local peer group. This has been found to stick. Even after the "setup", "message" or "incentive" is removed. It "becomes" morality. It is like a sort of ghost memory of the motivation pressure. And are apparently roughly a half order of magnitude more effective than monetary rewards.

Positive Peer Pressure - directly from local group

With monetary rewards the problem is that morality and social pressures kick back in after financial incentives are removed. Monetary rewards are effective while they are ongoing, but their imprint fades (and sometimes even goes negative) after the incentives are removed. There is conditioning for expectation of reward. Rewards do not, by themselves, create morality.

Moral suasion or suggestions based on existing moral baselines. Again if the suggestions are removed, then individuals revert to their easy self serving behaviour. We forget. We rationalize.

The keys seem roughly as follows:
Socially based best practice approaches are self serving. If you serve the group well, if you give well, then the rewards to the self are socially large. Monetary or economic incentives come next. And they are followed in effectiveness by appeals to an existing general (perhaps somewhat nebulous) moral framework.

So how might this translate into practice? Back to the Japanese example there should have been four groups in the study: The three cited - control, moral suggestion, and monetary as well as one more. The last is slightly more tricky to construct - but not much more. It is an incentive based on feedback of how well six to ten of your immediate neighbours are doing. You are given "value" (okay generally monetary, but it could simply be praise or goodwill) based on how well your peer group does in aggregate. And there are constraints. You have to regularly communicate face to face with your "neighbours". From this point of view your neighbours may not be physically adjacent but a group formed of your co-workers or firends (or family) (with similar target infrastructure of course) with whom you interact every day.

Pentland's tidbits on social physics are rather thought provoking. Ineffectivness of loose social network pressure (Facebook) was a shock, but not exactly a surprise once one thought about it a bit. Moral pressure, loose nebulous social pressure, and direct local peer pressure are often lumped together,
but can be very different things.