How to Read the AnkhMaway Sensor Data?

Since we have been selling the AKMW-iB003N-SHT  and AKMW-iB004N PLUS SHT we have been getting a few questions regarding accessing the temperature and humidity data.

You should first read the manufacturer’s SHT20 User Guide (username and password supplied with your beacon).

If you are connecting via GATT to read the sensor data then you will need to set the beacon to be always connectable. The way to do this is (for some strange reason) only shown in the iB001M user guide:

advertisementcontrol

So if you wish to transmit iBeacon and remain connectable, set the value to 0x82. Note that if you subsequently set the beacon ‘on’ or ‘off’ in the ‘simple’ configuration screen, accessed via the spanner icon (Android) or Configure option (on iOS), then this will overwrite your set value.

However, you might instead consider reading the sensor data from the advertising data which a) is much easier to program and b) uses much less beacon battery power and c) allows multiple apps to see the data at the same time.

There’s also an iOS example app in the BeaconZone AnkhMaway technical area.

MQTT vs HTTP for Bluetooth WiFi Gateways?

Bluetooth WiFi gateways offer MQTT and/or HTTP for sending data to servers/cloud services. We are often asked which should be used. HTTP is what’s used by your web browser to fetch and send data to web servers. In very high level terms, MQTT accomplishes a similar thing but is better optimised for mobile devices and the Internet of Things.

HTTP is very ‘chatty’ which means it’s more complex, code wise, to implement at the sending end and wastes a lot of data and processing power getting information from sender to receiver. You can think of HTTP as wrapping the data within lots other data that gets sent backwards and forwards. MQ Telemetry Transport Protocol (MQTT) came out of IBM, is now an ISO standard and uses lightweight publish/subscribe messaging. It requires a smaller code footprint at the sender and uses less network bandwidth. This matters most when you are trying to get the maximum transactions per second or are being billed for data use.

Bluetooth WiFi gateways are powered via USB and have reasonably powerful microcontrollers so MQTT’s efficient processing doesn’t matter that much. The more efficient processing is more applicable to apps running on mobile devices. For example, Facebook uses MQTT which saves battery life.

However, being lightweight, MQTT offers faster response times and lower data use than HTTP that, while not necessarily being of much of an advantantage for the BLE WiFi gateway, benefits the communications medium and server side. The communications medium, that can sometimes be cellular or be data constrained, uses (and possibly bills) less data. More crucially, the server can process more requests in less time. MQTT tends to be better when connectivity is intermittent, bandwidth is at a premium and throughput is critical.

In summary, MQTT has lower latency and is more efficient. Whether these are required advantages depends on your actual project. If you need more help, consider our development services.

Beacons, IoT and Platforms

Our article on Beacon Proximity and Sensing for the Internet of Things (IoT) explains how beacons can become part of the Internet of Things. Most implementations need to use a server or cloud IoT platform. However, in working with clients we have seen many problems with most of today’s commercial IoT platforms:

Cost – Many aren’t financially scalable in that costs escalate once the number of sensors and/or sensor reporting frequency is increased. Future costs are also unknown and unpredictable which is unacceptable for many organisations.

Continued Existence – It’s still early days for IoT and it’s not known if today’s platforms will be around for as long as the project. Some early beacon-specific platforms have already closed. Others have been taken over by large companies that have other agendas.

Security – Many projects, particularly those with sensitive data, can’t be run on or through shared public servers, services or platforms.

Control – For some organisations, aspects such availability and reliability need to be controlled in-house.

Functionality – IoT is a nebulous concept covering many specialist areas and industries. It’s difficult for a given IoT platform to cater for all needs. It’s usually necessary to compromise on your required functionality. Many IoT platforms have limited alerts, analytics and dashboards because they have cater for the lowest common denominator and not provide industry specific features.

A solution to these kinds of problem is the use of open source IoT platforms. The current and future costs are known, there’s full control and you are free to extend in any way you wish.

Platforms such as ThingsBoard offer data collection, processing, visualisation, and device management. In the case of ThingsBoard it offers a secure, scalable solution that uses a Cassandra database that’s well suited for storage and querying of time-series data while providing high availability and fault-tolerance.

Thingboard Dashboard Showing Sensor Beacons

If you need more help, consider our development services.

Real Time Location Systems (RTLS) for The Fourth Industrial Revolution

The Fourth Industrial Revolution, also known as 4IR and Industry 4.0, improves manufacturing through the use of technology. The end-aims are to significantly improve productivity, reduce production delays and, for example, avoid penalties or future lost orders due to delayed work.

A key part of The Fourth Industrial Revolution is asset tracking that provides faster and more accurate stock control, item picking, job tracking, capacity measurement, demand analysis and product protection through sensing and automatic auditing.

It’s important that asset tracking is continuous because merely scanning things in/out using barcodes is open to human error and location is otherwise only as good as the last scan. Historical data is also important because it identifies blockages allowing processes to be refined.

When evaluating asset tracking systems consider:

  • Scalability and Performance – How many things do you need to track today and into the future?
  • Flexibility – Many of our customers initially buy an RTLS for one urgent purpose but later end up use the system system for additional needs.
  • Security – Where is your data stored and where does it go?

Look for a stand-alone solution rather than SAAS for greater performance, flexibility and longevity. While SAAS based systems can be a quick way into RTLS, they soon become limiting because you are sharing a platform with other customers. SAAS platforms usually don’t scale well technically and financially and don’t have efficient, direct access to the data for efficient ad-hoc reporting. They also pose potential security and reliability risks as you don’t own your data. The ultimate limitation comes when the SAAS provider, usually a startup, eventually increases costs, get’s bought out by its largest customer or goes out of business.

BeaconRTLS


Beacons in Industry and the 4th Industrial Revolution (4IR)

Read about BeaconRTLS

Read about BluetoothLocationEngine™

IoT Projects with Bluetooth Low Energy

Our article on Beacon Proximity and Sensing for the Internet of Things (IoT) provides short summary how to use Bluetooth for IoT.

If you need a more rigorous description take a look at the book IoT Projects with Bluetooth Low Energy. It covers the fundamental aspects of Bluetooth Low Energy scanning, services, and characteristics. It goes on to describe examples of how to monitor health data, perform indoor navigation and use the Raspberry Pi for Bluetooth solutions. The book’s code is also available on GitHub.

View Sensor Beacons

Mr Beacon Podcast with Minew

There’s a new Mr Beacon podcast with Eason Huang of Minew. It describes how Minew focus mainly on hardware rather than full solutions and how they provide re-branded hardware for many platforms and beacon providers. Steve Statler (Mr Beacon) provides the insight that many of those platforms don’t really want to sell hardware and they are often focussing on software their customers might not necessarily want.

The conversation turns to the growth and challenges of IoT. The main challenges are lack of clarity of return on investiment (ROI), proof of concepts (POC) taking too long and end results not being scalable. Eason identifies that better preparation is required before starting. Steve suggests projects should initially bring in consultants to provide expert and neutral advice.

The podcast resonates with what we do at Beaconzone. We set up Beaconzone because we identified the reliance on subscription-based cloud platforms and beacons locked to platforms was limiting the available information, products and solutions. We set up BeaconZone in 2015 to provide for standalone solutions, using original manufacture beacons, not locked to subscriptions. We use and stock Minew and tens of other manufacturers’ beacons and gateways.

The issues of IoT projects also resonates with what we have seen through providing consultancy. Too many people come to us, too late, with projects that shouldn’t have been started because they had obvious technical limitations or have been developed in a direction that makes them technically or financially non-viable. A small amount of expert advice, early on, can make a huge difference and reduce risk.

Even when organisations know they should seek initial help and contact us, we sometimes find they are reticent about investing what is a relatively small amount of money compared to a failed POC cost. The reason is that these organisations have no experience of using Bluetooth for IoT so don’t know the unknown unknowns. Everything looks feasible until they are deep into the POC. It’s for these situations that we also offer quick, low priced Micro Consultancy.

New Nordic Semiconductor Wireless Q Magazine

Nordic Semiconductor, the manufacturer of the System on a Chip (SoC) in many beacons, has published the latest online issue of Wireless Quarter Magazine. It showcases the many uses of Nordic SoCs.

The latest issue of the magazine highlights the increasing use of IoT. Nordic Semiconductor has been known for enabling Bluetooth and cellular solutions and with their recent acquisition of Imagination Technologies this now extends to WiFi.

The magazine covers many usecases including:

  • Bluetooth connected prosthetics
  • CHIP smart home
  • Smart health

There’s also an informative article exploring the usefulness of patents.

Read about Beacon Proximity and Sensing for the Internet of Things (IoT)

Sensor beacons

Gateways

Easy IoT with Bluetooth Beacons

When people think about IoT sensors they tend to envisage, for experimenters, discrete electronic components connected to single board computers (SBC) or for industrial, custom sensors connected to microcontrollers.

The problem for experimenters is the solution is fragile and needs to be evolved into a custom electronic design before it can be used in production. For industrial solutions, they tend to be proprietary, require deeply invasive installation and very expensive.

Example IoT Dashboard Using Sensor Beacons

Sensor beacons provide an easy, ready-made solution that have the following advantages:

  • They provide a solution that’s equally as good for experimentation as it is for the final production
  • They require no soldering or electronics skills.
  • They can be placed in remote areas where there’s no power or network connectivity.
  • They can be self powered and last for 5+ years.
  • They can detect quantities such as position, movement, temperature, humidity, air pressure, light and magnetism (hall effect), proximity and heart rate.
  • They can be easily attached to existing to exiting assets to make them IoT enabled.
  • Being Bluetooth standards-based, the sensor data can be easily read via gateways, smartphone apps or single board computers and sent on, as necessary, to servers.
Bluetooth-WiFi Gateway

Using beacons sensors in this way also provides for the ‘big data’ required for AI machine learning.

Read more about Beacon Proximity and Sensing for the Internet of Things (IoT)

View Sensor Beacons

Farm Management with Bluetooth Sensors

There’s new research by the Universities of Salento Italy and Panamericana Mexico on the Development of Sensors-Based Agri-Food Traceability System Remotely Managed by a Software Platform for Optimized Farm Management.

It demonstrates the use of IoT to revolutionise farming. A system was implemented to provide for:

  • Optimum water and fertiliser use
  • Better quality and yield of crops
  • Increased safety
  • Reduction in production costs
  • Reduction in negative impacts on the health and environment
  • Smart traceability

Sensors allow calibration of irrigation and fertilisation based on crop type, growth phase, soil and environmental conditions. The traceability allows monitoring of the movements of food products from the field, through storage to end consumers.

Bluetooth LE sensor tags are used for monitoring conditions during storage and transportation so as to assess freshness, integrity, as well as to provide for traceability.

The system enables enables management strategies that anticipate or delay crop collection, fine tuning the irrigation/fertilisation timing based on customers’ requests. This allows farmers to achieve economic benefits and reduce agri-food waste.

Read about Beacon Proximity and Sensing for the Internet of Things (IoT)

Bluetooth Gateways for AWS IoT Core, Azure IoT Hub and Google IoT Core

It never been easier to collect Bluetooth sensor information and store it in the cloud. The INGICS gateways come with step-by-step instructions how to set up AWS IoT Core, Azure IoT Hub and Google IoT Core.

Read more about Beacon Proximity and Sensing for the Internet of Things (IoT).

View Bluetooth Sensor Beacons