Earlier, in a series of blogs on eStorm-B1 BLE module, we have discussed about few applications of the module such as smart metering, as a Bluetooth to serial adapter along with a demo of the same. Further to a very positive response to the module, Embien has come up with an Evaluation Kit for the same. Incorporating various features targeting different market segments, we have designed the EVK as a ready to use product. This blog will introduce the reader to the kit for eStorm-B1 BLE module and in detail its application as a BLE to RS232 MODBUS converter

RS232 Modbus serial interface 

RS232 serial interface is still one of the most used wired communication standards. Introduced in 1960, it has survived and still surviving onslaught from many advanced standards because of its reliability and simplicity. They are intended to operate over a distance up to 15 meters and the maximum data rate is around 160 Kbits per second. They are often being used in many applications such as data acquisition systems, PLCs etc. While the underlying logical layer can be handled by UART interface, there are many possible application layer protocols that can be run on it. One of the most popular industrial protocol standards is called Modbus.

Modbus is a serial communication protocol developed for transmitting information over serial lines between electronic devices. The Modbus network can have one Master device and up to 247 slave devices. The master device can request or write the information to the slave and the slave device will supply the information. Registers are allocated for each data in the slave device and the master will write or read data to and from a slave device’s register.

It is an open protocol, where the manufacturer can build into their equipment without any royalties. The protocol has multiple versions such as Modbus RTU, Modbus ASCII for serial communication and Modbus TCP for Ethernet. Modbus has become the standard communication protocol in industry and it is a commonly available means of connecting industrial electronic devices.

Need for Wireless Communication 

Day by day, the communication interfaces and protocols are being updated to handle large data more reliably and over a longer distance. Of late, due to the advent of Industry 4.0 and IIoT, the need for wireless communication becomes inevitable. Industry 4.0 brings smartness in automation and data exchange in manufacturing technologies. It includes IoT, cloud computing, etc which calls for seamless data communication. Existing infrastructure can enable them with minimal changes using wireless technologies. This necessitates a suitable gateway for converting the wired serial interfaces to wireless.

Embien, following the current industry trends has launched a wireless module “eStorm-B1” under its eStorm series of solutions. The BLE module can support wireless serial communication with the available UART interface and can readily be used as a BLE to UART converter bridge. In addition to the COTS BLE module, Embien has also launched an evaluation kit “eStorm-B1 EVK”. This evaluation kit can support quick evaluation of eStorm-B1 module features.

Following are the features of eStorm-B1 EVK,

  1. 1X RS232 or RS485 serial interface
  2. 1X CAN interface
  3. 1X LIN interface
  4. One analog input and one isolated digital input for external sensor interface
  5. One digital output for external load control
  6. Onboard EEPROM
  7. Onboard Accelerometer
  8. Battery operated with inbuilt battery charger
  9. Compact dimension with mounting holes
  10. Screw type PCB connectors for serial and CAN interface enabling rigid connection to external devices
Evaluation kit for eStorm-B1 BLE module

Evaluation Kit for eStorm-B1 BLE Module

eStorm-B1 EVK as Wireless Modbus gateway

Of various interfaces, one that interests us for this blog is the presence of a RS232 interface. eStorm-B1 EVK based BLE to RS232 Modbus converter is suited for wireless Modbus gateway applications discussed earlier. eStorm-B1 EVK supports three wire RS232 serial communication via null modem cable and is exposed via a screw type PCB Terminal connector. Designed for rugged industrial environments, the EVK can operate in 5V DC input and RS232 receiver can accept up to +/- 30V input withstanding surges up to 15-kV (HBM) in the RS232 lines. Optional enclosure is also available.

On the protocol front, it includes a fully tested Modbus Client stack. It can query Modbus slaves present in the line. Android application is also available that can be used to configure the device and acquire data. Some of the features supported by the eStorm-B1 EVK based Wireless Modbus Gateway are,

  • Configuration of baud rate, Stop and data bits.
  • Modbus RTC/ASCII support
  • Continuous data acquisition
  • Notification based on change of value
  • Customizable buttons in the App for simple configuration of Modbus slaves

Thus eStorm-B1 as a wireless Modbus gateway can be used to interface with multiple devices for applications such as wireless data acquisition via existing data acquisition device, controlling the machines via PLCs for various industrial automation application, etc.

About Embien

Embien Technologies is a leading provider of embedded design services for the industrial automation. We have done various types of Data acquisition Systems, Industrial Human Machine interfaces, BLE based pH Meters, precision measuring instruments etc. We are currently working on enabling the industry 4.0 initiatives to make them smarter and greener.

Understanding the growth of new technologies and keeping in mind of giving an added value to its existing product eStorm-L1, Embien launched an Android app named “DAQ Suite”. With experience in developing Android app for many segments such as IoT, healthcare, automotive etc we have developed “DAQ Suite” for enhancing user experience in multiple industrial applications such as remote control, remote data acquisition/logging, etc.

This blog is the sequel of the blog “eStorm-L1 as GSM based remote switch” demonstrating the relay control and sensor monitor via an Android app. The following video shows the remote monitoring and control application typically applicable in industrial domain and many other verticals. The demo is setup using the GSM based remote switch and android application controlling the device through SMS command.

For the demo purpose we have connected two LED’s and two switches for demonstrating the relay control and sensor monitor functionality respectively. In the real time application, the LED could actually be a relay with suitable external DC supply for coil excitation and switch could be a sensor/transducer output preferably a digital high/low signal or even a pulse type output. The device stores all the configuration settings corresponding to the user, IO, etc in the EEPROM and hence preserved even on power cycling. Also the device has an option to erase the memory on site and start the user settings from the initial factory default.

The DAQ Suite android app includes the following menu options

  1. Device type selection setting – To select the type of the device need to be monitored or controlled. Available device will be listed in the Device model list box.
  2. User settings – To set the user details such as name, phone number, password, device description, and phone number to be taken for call actions etc.
  3. Relay settings – To set the on duration, ON/OFF delay etc. For multiple relays, the name of the device attached to the relay can be set.
  4. Update settings – To set the update interval for how much time interval the user need to receive the SMS about the current status of the relay and digital input. Many options can be chosen from the list view such as on change, periodic, both and none.
  5. Call actions settings – To set the action to be done on the relay upon calling the device. Either the relay can be switched ON/OFF.

The main screen of the DAQ suite includes the status of the SMS command being sent and time information of the last received/sent SMS. The control switch to toggle the relay and the status LED of the digital inputs is also included in the main screen.

Upon every operation, a SMS will be sent to the device with the predefined command set and the respective status of the digital inputs and relay will be displayed on the main screen based on the acknowledge SMS from the device.

DaqSuite, the user friendly Android App for GSM based remote switch and sensor monitor applications is available in Google Play store. Feel free to try it or contact us for more information.

About Embien: Primary focus of Embien technologies lies in the Industrial Automation segment. We have a rich experience in working on industrial automation and control systems with customers across geographies to enable their factories and assembly lines run efficiently. Our team have developed protocol stacks for various industrial protocols and enabled them in customer devices. We have created various Human Machine Interfaces (HMI) systems to make easier the interface with the machine. Our Machine to Machine (M2M) service offering includes developing system capable of remote monitoring and controlling of machines, PLC’s, etc.

 

Android was designed originally for use in consumer electronics especially tablets and phones. Due to its wide proliferation, now there are many needs for developing platforms based on Android OS that finds applications in industrial HMI, Auto infotainment, etc. Simplicity, portability, low cost and rich GUI are some of the advantages of using Android in such applications.

Freescale iMx6 based SECOSBC-A62

On the hardware front, there are a lot of low cost development boards like Raspberry Pi/Raspberry Pi+, TI’s Beagleboard/Beagebone, Freescale’s SABRE platforms, UDOO board, Allwinner based Cubie platforms, Rockchip platforms, Intel boards etc. While these platforms are ideal for many applications, using them for a qualified industrial application is not possible as they are not industrial grade systems. Of a few options available, the latest offering from SECO the A62 SBC is an ideal choice. Available in multiple variants, features of the SECOSBC-A62 board include

  • Processor – Freescale i.MX6 Series – i.MX6S/i.MX6DL/i.MX6Q
  • Memory – 1GB DDR3L, 64-bit interface
  • Graphics – Integrated Graphics, with up to 3 separated HW accelerators for
  • 2D, OpenGL® ES2.0 3D,
  • Video Interfaces – 1 x Dual Channel or 2 x Single Channel 18/24 bit LVDS interface HDMI connector
  • Mass Storage – 4GB eMMC disc soldered onboard, microSD Card slot
  • Networking – Gigabit Ethernet connector, Internal USB connector for Wi-Fi Module
  • USB – 2 x USB 2.0 Type-A ports and 1 x USB 2.0 internal connector, USB micro-B Client port
  • Audio – AC’97 Audio Codec Realtek ALC655 with Mic-In, Line-Out audio Jacks
  • Serial Ports – 1 x Serial (TTL level), 2 x Serial (RS-232), 1 x CAN (TTL level)
  • Other Interfaces – Dedicated connector (I2C, GPIO signals) for external Touch Screen controller, MIPI-CSI Camera connector.
  • Configurable expansion connector with:
    • Up to 28 GPIO
    • SPI interface
    • SPDIF Audio interface
    • CAN interface (TTL level)
    • SDIO interface
    • PWM
    • I2C
    • UARTs

Android Lollipop on iMX6 based SECOSBC-A62

Embien has ported Android Lollipop on iMX6 based industrial grade SECOSBC-A62 platform. Below video demonstrates the same.

About Embien: A leading technology service provider in Embedded domain, Embien offers highly specialized services for Android including BSP porting, HAL developments, Customization, Optimization etc. Our other service offering include embedded software services, hardware design services, Industrial protocol development, technical consultancy etc. We also offer corporate training on Android, Multimedia, GStreamer and other technologies. Kindly contact us for your embedded/Android development and/or training requirements.