Make Your Tablets and Smart Phones Smarter – Add Serial Capability for Seriously Remote Data

by Andy Ross, Director or Wireless Applications

To paraphrase Mark Twain, rumors about the demise of serial ports are greatly exaggerated. Serial ports are everywhere, in everything from industrial automation systems to scientific instrumentation. Too many people have too much invested in serial-equipped devices for the standard to disappear any time soon. But as data communications technology continues to evolve, the humble serial port is sometimes left behind. This article will review serial device server technology, its usefulness and drawbacks, and then demonstrate how to access serial data from locations that are either remote or restricted and therefore out of range of a WiFi network.

Back when the first serial device servers were introduced they closed a connectivity gap between connected devices and remote networked PCs. The development of the serial-to-Ethernet device server in the late 90’s was another huge step forward. Later, the advent of USB made accessing serial data from desktops and laptop PCs easier than ever.

But as tablets and smart phones become more ubiquitous in the corporate and M2M business world, connecting to serial ports has become a bit more complicated. Tablets and smart phones don’t have serial ports. In fact they tend to have limited wired connectivity of any kind, largely relying upon wireless communications for their interaction with the rest of the world. They’re wonderful devices, but they’re not natively designed to interact with serial equipment.

Manufacturers, suppliers and integrators of M2M equipment – as well as their customers — have a continuing need for serial communications. So what can they do about the communications gap?

HOW DOES IT WORK NOW?

Serial device servers can be wired or wireless. The most popular types are network or TCP/IP device servers. In either case — wired or wireless — the serial server translates the serial data into an Internet Protocol (IP) format that can be transmitted across a network.

Wired serial device servers use Ethernet cable to connect to the local area network (LAN).

Wireless device servers contain a WiFi client similar to the one in your laptop and connect via WiFi, or 802.11. (The most common standards are 802.11b/g and 802.11b/g/n.) Wireless servers can connect to either an infrastructure network or to an AdHoc network (see sidebar for explanation of network types).

When the Serial Device Server (SDS) network interface is connected to a LAN it provides an IP address that all other network devices can use for sending and receiving information. This address is unique to the SDS. Since this address is the location for all interactions, a secondary reference is used to locate the information or resource required for the specific interaction. This is called a port number.

Using the combination of IP address and port number it is possible to uniquely locate any serial port on the network. It works like this: A serial device server has a physical serial port connected to port 8023 on the network interface. The network interface connects to the network and gets an IP address of 192.168.2.100. After combining the two pieces of information the full address of the serial port would be 192.168.2.100:8023. Any network-connected device capable of accessing that address can receive data from — or send data to — the serial port. (See Fig.1)

Serial Device Servers - Figure 1

Figure 1

SO WHAT’S THE PROBLEM?

Current network SDS devices are designed to be used with an existing network infrastructure. If you have a manufacturing facility, warehouse or office, odds are that you already have a network installed — wired, wireless or both. Connecting to these networks has become much easier with the latest versions of SDS technology. (See Fig. 2)

Serial Device Server - Figure 2

Figure 2: Infrastructure: A wireless network uses Access Points to connect a variety of computers and equipment, allowing them to share resources and information. Referred to as Wireless Local Area Networks (WLAN) they use the Internet Protocol Suite for data communication between computers, networks, and devices.

But what happens when you want to talk to a device that isn’t covered by an existing wireless network? A large portion of the desired serial data may come from remote locations that are out of the coverage range of the corporate WiFi network, or in an area where access to the available network is restricted because of IT policy and security rules. How can users access the data from these devices?

Historically, a wireless network type called AdHoc has been used where no available infrastructure network exists. (See Fig. 3)

Serial Device Server - Figure 3

Figure 3: AdHoc: A peer-to-peer based network that does not use a central resource (Access Point) to manage the network connections and structure. AdHoc networks can be established when just two clients are within range of each other, with each group of devices being referred to as a cell. They use the Internet Protocol Suite for data communication between the devices n the AdHoc network.

AdHoc, however, has certain issues:

  • Static IP Addresses are needed: A service called DHCP, often used on large networks to provide IP addresses to the devices connected to the network, is not usually available on an AdHoc network. This has several drawbacks:
    • It requires manual assignment and distribution of unique addresses to devices.
    • It creates a static subnet for the network and for all devices on the AdHoc network. This restricts interaction between different networks.
    • It requires manual configuration of IT (laptop) equipment when connecting to the AdHoc network. Personnel are required to enter a static IP address.
  • AdHoc networks are not self healing: Even if you have multiple AdHoc networks within the same geographical location, and they are utilizing the same network name, devices in one network cannot talk to devices in the other. This can therefore limit or prevent access to serial data.

There’s an additional issue with AdHoc networks. The latest Android™ tablets and smart phones don’t connect to them without advanced modification of the devices. There are also known issues with certain iOS devices that make it impossible to use them with AdHoc networks that employ wireless SDS’s, which forces to carry bulky laptops for remote access.

HOW ABOUT AN EMBEDDED HOTSPOT?

There is emerging technology that supports embedded Access Point functionality without changing the SDS functionality. As an example, B+B SmartWorx’s SDS technology features an embedded AP device (See Fig. 4) that creates a small, self-sustaining WiFi network around the remote equipment that isn’t all that different from the hotspot in a coffee shop. As your technician comes into range of the network, his WiFi tablet or smart phone sees the network, connects to it and receives an IP address from the embedded AP. His device can then access the serial port on the AP using the appropriate IP address and port number. It doesn’t change the way the SDS devices are used, it just makes them easily accessible to tablets and phones.

BENEFITS OF EMBEDDED AP:

  • Tablets and smart phones will be able to access serial data in addition to existing network devices like laptops.
  • Network devices won’t need reconfiguring to use static IP addresses.
  • A self-maintaining network won’t lose devices or compromise their access.
  • Users can simultaneously add and access wireless and wired devices on the embedded hotspot .
  • There is no change to the existing use paradigm of networked serial device servers.

The example B+B device can support up to two serial devices, an Ethernet 10/100 network and multiple wireless clients simultaneously. It provides WPA/WPA2 security and an embedded DHCP server. Both external box and embedded module versions are available.

Serial ports have been around for a long time, and they represent an earlier generation in communications engineering. But that doesn’t mean that tablets and smart phones shouldn’t talk to them. They still have a lot of information to share.

APPLICATION EXAMPLE – TABLET ACCESSES SERIAL DATA USING EMBEDDED AP FOR REMOTE SECURITY-MONITORING:

Homeland Security has expanded the need for camera-based monitoring systems in extremely remote locations, and many security-monitoring applications will have both remote sensors and vision systems. In one such application, a B+B SmartWorx customer has installed an IP camera, barometric pressure and temperature sensors and a microcontroller capable of storing event or time-based scenarios. It can record a picture or a short video coupled with a time code and a record of environmental conditions. The remote location is not accessible from an existing network, so an officer visits it once or twice a week and downloads the data to a tablet that accesses the embedded AP attached to the serial port on the controller.

Making Wireless Sensors as Accessible as Web Servers

The Internet of Things revolution is upon us, and by the year 2020, therewill be over 50 billion connected things in the world. With the world’s population increasing and resources...

Wzzard Network Planning and Installation Application Note

Planning, deploying and installing a Wzzard network does not require any special network expertise. But some simple guidelines should be followed. Let’s discuss some topics that are the keys to enabling a robust network installation. These include Planning a Deployment, Verification of Network Health and Troubleshooting common problems.

Getting Security Right in Wireless Sensor Networks

You may define rules in the router for switching between two APNs on one SIM card or between two SIM cards or network providers. The router can automatically switch between the network setups when the active PPP connection is lost, the data limit is exceeded, or the binary input on the front panel goes active.

Wzzard Security Platform

The Spectre Network Gateway places the SmartMesh IP network behind a firewall. If connecting via the cellular data networks, the Spectre Network Gateway lets users use VPN tunneling, which makes the cellular systems as secure as proprietary infrastructure.

A Second Warm Welcome to Wireless Mesh Networking

You may define rules in the router for switching between two APNs on one SIM card or between two SIM cards or network providers. The router can automatically switch between the network setups when the active PPP connection is lost, the data limit is exceeded, or the binary input on the front panel goes active.

Connect Any Sensor to the Internet of Things

You may define rules in the router for switching between two APNs on one SIM card or between two SIM cards or network providers. The router can automatically switch between the network setups when the active PPP connection is lost, the data limit is exceeded, or the binary input on the front panel goes active.

Spectre Router Configuration for Automatic Failover

You may define rules in the router for switching between two APNs on one SIM card or between two SIM cards or network providers. The router can automatically switch between the network setups when the active PPP connection is lost, the data limit is exceeded, or the binary input on the front panel goes active.

Sensor Networking Cost Model

Are the high costs of deploying cabling in your industrial environment preventing you from deploying a remote sensor monitoring solution?

Cellular and the Promise of SWARM Intelligence

The power of SWARM intelligence is visible in nature, where the collective efforts of very simple creatures like ants, bees and termites can produce highly sophisticated results.

SWARM Intelligence: Greater than the Sum of Its Parts

The power of SWARM intelligence is visible in nature, where the collective efforts of very simple creatures like ants, bees and termites can produce highly sophisticated results. Termites build enormous...

The Basics of MQTT

Message Queue Telemetry Transport (MQTT), is an open, lightweight publish/subscribe messaging protocol that was developed specifically for small, constrained devices over wireless networks. MQTT brings a simplicity and scalability not...

Solving Industrial Monitoring Challenges through Wireless I/O

Abstract Remote monitoring and control applications present a range of challenges. In recent years, new technologies and products have emerged to address some of these challenges, but in many cases...

SimpleWire Replacement with Zlinx® Radio Modems: Knowledge, Tips, Fixes

A problem free wireless network installation is more than a wish, it’s what most of our customers experience. But a little knowledge and planning up front makes succeeding on your...

Wireless Technology for Modern Health Care

Some medical devices become immensely more valuable if you can make them mobile. Moving a modern medical cart from room to room is far more efficient than moving the patients...

Smart Phones & M2M – Connecting Made Easy, Finally

by Bill Conley You could argue that wireless data communications began in 1782, when Claude Chappe used semaphore towers to send messages between Paris, France, and the city of Lille,...

USB: Adaptable for Industrial Applications

The Universal Serial Bus (USB) provides a high data rate and Hot Swap connection for PCs, providing an easy connection to a wide variety of multimedia and network USB devices....

Ruggedizing USB Connections for Tough Environments

USB is ubiquitous, it’s useful and it’s here to stay. But it isn’t inherently rugged or reliable. It’s up to you to make it that way. When technician John Baker...

The Ten Commandments of USB

Don’t forget that USB uses copper wire and can thus transfer power surges from lightning strikes or heavy machinery to places where they can do serious damage. You can prevent...

Data Line Isolation Theory

When it comes time to protect data lines from electrical transients, surge suppression is often the first thing that leaps to mind. The concept of surge suppression is intuitive and...

Optical Isolation: Your Best Investment for Reliability

In 1999 the Science department at NASA conducted a study on lightning, ground voltage, and structural impact. A building in North Carolina, located within 45 meters of a 42-meter water...

RS-485 Connections FAQ

How Do I Make RS-485 Connections? First check the pinout connections and specifications of the devices you want to connect in order to determine whether you need a “2-wire” RS-485...

RS-422 and RS-485 Applications eBook

A Practical Guide to Using RS-422 and RS-485 Serial Interfaces The purpose of this ebook is to describe the main elements of RS-422 and RS-485 data communications systems. The authors...

MTBF, MTTR, MTTF, FIT – Explanation of Terms

The intent of this White Paper is to provide an understanding of MTBF and other product reliability methods. Understanding the methods for the lifecycle prediction for a product enables the...

An Overview of Fiber Optic Technology

The use of fiber optics in telecommunications and wide area networking has been common for many years, but more recently fiber optics have become increasingly prevalent in industrial data communications...

Calculating Fiber Loss in Fiber Optic Networking

Fiber optic networking can be a daunting undertaking, but it really is not as difficult as it seems. Understanding factors such as fiber modes, fiber launch power, receive sensitivity, fiber...

Troubleshooting and Auto-Negotiation Features for Media Conversion Products

Media converters make the critical connection between different types of media, ensuring seamless integration of new equipmentin legacy networks. Media converters simply provide the electrical-to-optical conversion, and cost-effectively bridge the...

Introduction to Modbus

Modbus is one of the most popular protocols used in the industrial world. Supporting traditional serial protocols of RS232/422/485 and Ethernet protocols allow industrial devices such a PLCs, HMIs and...

Media Converters

Introduction to Media Converters Media converters play an important role in today’s multi-protocol, mixed media Local Area Networks. For example, LAN administrators can deploy media converters to integrate fiber optic cabling and active...

Port Powered Serial Converters FAQ

How do port powered serial converters derive their power? These converters steal their power from the connected RS-232 device’s output signals. As an example, a PC normally has outputs on the...

Managed Ethernet Switches

Key Features For a Powerful Industrial Network  Success for an industrial engineer has always had roots in the search for dependability and function at an affordable cost. Ethernet always held out the promise of high function...

Cellular Data Networking Goes Industrial

Refresh cycles for industrial data communications equipment have traditionally been measured in decades rather than years. That’s partly because of the enormous capital investments involved, partly because so many industrial...

What is SmartMesh IP™?

SmartMesh IP is defining the way to connect smart devices. With advanced network management and comprehensive security features, SmartMesh IP delivers reliable, scalable, energy efficient wireless sensor connectivity. Using up...

What Is The Internet of Things?

There’s a lot of hype surrounding the phrase “Internet of Things”, but what does it really mean for you? Mike Fahrion offers a pragmatic approach to realizing the potential for...