Additional Information

Site Information

 Loading... Please wait...

Blog

NMEA 2000 Data Scanner with Bluetooth, BLE for Android, iOS, PC Applications

Posted by Wilfried Voss on

NMEA 2000 to Bluetooth Gateway

Our N2K-BT gateway functions as a NMEA 2000 to Bluetooth data scanner for any host device with a Bluetooth or BLE (Bluetooth Low Energy) port, such as PCs, phones, or tablets. Therefore, it supports operating systems such as Windows, Linux, iOS, Android, and more. In addition, the wireless communication protocol employs easy-to-read and easy-to-process ASCII data strings, making it easy for iOS and Android developers to interpret the data stream. 

NMEA 2000 Data Scanner Test Environment

Hardware

The data scanner hardware utilizes the ESP32 processor with Bluetooth, BLE, and WiFi capabilities and a CAN Bus port with a transceiver. 

The ESP32 series employs a Tensilica Xtensa LX6 microprocessor in both dual-core and single-core variations and includes built-in antenna switches, RF balun, power amplifier, low-noise receive amplifier, filters, and power management modules. 

The module accepts an external power supply between 7 and 36 VDC with reverse polarity protection. It operates safely within a temperature range of -40C to +85C. The NMEA 2000 port is accessible via a Micro-C connector (M12 5Pin Male Socket). 

Software

It is important to emphasize that the module merely transmits processed CAN data frames as they appear in the network, i.e., it does not support NMEA 2000 protocol management features. 

However, it allows the user to monitor and filter PGNs needed for their application.

The ASCII data string includes: 

  • Data Page 
  • PGN 
  • Priority 
  • Destination Address 
  • Source Address 
  • DLC (Data Length Code)
  • Data 
  • Checksum

Bluetooth Test

We used a Windows PC with terminal software to test the Bluetooth communication. The terminal software connects to the Bluetooth COM port. Our test device connects to a NMEA 2000 simulation network based on our SAE J1939 to USB Gateway (NMEA 2000 is a derivative of SAE J1939). In addition, we monitor the CAN Bus data traffic with a separate CAN Bus monitor system.

The below screen shot shows the received data traffic on the Windows PC:

However, let's have a look at a single data frame. In the following example, we are using PGN 65336 (0xFF38, broadcast message) with a source address of 34 (0x22) and priority = 6.

The BT scanner converts the CAN data into the ASCCI string as shown below:

0 - Data Page

FF38 - PGN

6 - Priority

FF - Destination Address (Global Address)

20 - Source Address

8 - Data Length

8877665544332211 - Data

67 - Checksum

We are working on a documentation of our testing with an Android phone, and we will follow up with another post.

BLE (Bluetooth Low Energy)

BLE is a requirement for communication with Apple's iOS. At this point, we have a working version and will also introduce it in another post. The testing environment is, of course, different, i.e., we are using an iMac, and an iPhone in combination with the nRF Connect app.

Status and Availability

Officially, the N2K-BT module is still under development, and we target a release in October 2022. We consider the software development as finished regarding the mere data scanning capabilities, but we are considering, among others, the implementation of PGN filters to reduce the wireless data traffic.

Please feel free to contact us in case you need further information. We are also available to develop customized hardware and software to meet your requirements.


Getting Started with Bluetooth Low Energy: Tools and Techniques for Low-Power NetworkingGetting Started with Bluetooth Low Energy: Tools and Techniques for Low-Power Networking

With Bluetooth Low Energy (BLE), smart devices are about to become even smarter. This useful guide shows how this impressive wireless technology helps developers create mobile applications that share data with external hardware and how hardware engineers can obtain easy and reliable access to mobile operating systems.

This book renders a reliable, high-level overview of how devices use BLE to communicate with each other. You learn about valuable low-cost tools for developing and testing BLE-enabled mobile apps and embedded firmware and get examples using various development platforms, including iOS and Android for app developers and embedded platforms for product designers and hardware engineers.

  • Understand how data is organized and transferred by BLE devices
  • Explore BLE’s concepts, key limitations, and network topology
  • Dig into the protocol stack to grasp how and why BLE operates
  • Learn how BLE devices discover each other and establish secure connections
  • Set up the tools and infrastructure for BLE application development
  • Get examples for connecting BLE to iPhones, iPads, Android devices, and sensors
  • Develop code for a simple device that transmits heart rate data to a mobile device

More Information...

Bluetooth Low Energy (BLE) Wireless Modules Suitable For High-Speed IoT Devices And Applications

Fujitsu Components America released their FWM7BLZ20B series of Bluetooth 5.0 Low Energy wireless modules matching the speed demands of Internet-of-Things (IoT) devices and applications.The FWM7BLZ20B series is powered by Nordic Semiconductor's nRF52832 System-on-Chip (SoC). The symbol rate and data rate supports both 1Mbps and enhanced 2Mbps to expedite communication speed with other Bluetooth devices.The series comprises [...]

Read More »


Configuration-Free Wireless CAN Bus Bridge Connects Two CAN Bus Networks With Different CAN Bus Bitrates

Kvaser, a specialist in CAN Bus (Controller Area Network) development, introduced their Air Bridge Light HS, a wireless CAN Bus bridge to connect CAN networks. Comprising a preconfigured pair of plug-and-play units, with integrated antennas and rugged housings, the Kvaser Air Bridge Light HS provides a method of raw CAN Bus data exchange. Kvaser Air Bridge Light HS, [...]

Read More »


Ruggedized CAN Bus - IoT Gateway Connects Vehicles To The Cloud Via Wireless Or Cellular Interfaces

TTControl, a joint-venture company of TTTech Computertechnik and Hydac International, introduced an end-to-end solution connecting vehicles and mobile machines via a cloud platform for data processing and analysis. The product was designed to enable OEMs (Original Equipment Manufacturer) and fleet owners to optimize their fleet management and machine design. It also serves to assure the availability [...]

Read More »


Safe Wireless CAN Bus Bridge For Machine To Machine Communication Also Supports SAE J1939

The CAN-Sync wireless CAN Bus bridge from Humanistic Robotics (HRI) allows the user to transmit CAN data wirelessly over a transparent point-to-point bridge, without modifying the data. Higher-Layer Protocols such as SAE J1939 and CANopen are also supported.The product provides a wireless link between two CAN Bus interfaces with HRI’s Safetysense technology which is designed to guarantee that critical control [...]

Read More »


SAE J1939 Network Bridge With RS232/Wireless Connection

As part of another customer project, we have started work on an SAE J1939 network bridge device, which we call the jCOM.J1939.BRIDGE. The bridging serial hardware layer is RS232 in combination with a bit-stuffing protocol, similar to the protocol described at JCOM.J1939 PROTOCOL & PROGRAMMING INTERFACE (PDF).  Our customer will use the RS232 serial port for extension of [...]

Read More »


Wireless CAN Bus Bridge with USB Interface

ESD Electronics announced its CAN-CBX-AIR/3, a wireless CAN Bus bridge with USB interface. The bridge meets the requirements according to ETSI EN 300 328 V.2.0.20 (RED) standard. Like the previous CAN-CBX-AIR/2 version, the CAN-CBX-AIR/3 module works with a carrier frequency of 2,4 GHz in the ISM band. The transmission distance is up to 200 m (~ 600 ft) line-of-sight [...]

Read More »


Industrial Linux SBC With ARM Processor Supports WiFi, Bluetooth Plus Two CAN Bus Interfaces

Technologic Systems introduced their TS-7680, an embedded computer system powered by a 454 MHz ARM CPU that offers a great balance between industrial features, such as a 24-position rugged screw terminal connector and 3-Amp relays, and high-end capabilities, such as WiFi and Bluetooth. The TS-7680 offers low power and low cost at industrial grade, including industrial [...]

Read More »


LTE-Advanced Vehicle Router With Long-Range Gigabit Wi-Fi And Gigabit Ethernet Connects To SAE J1939 Or OBD-II Networks

The AirLink® MP70 by Sierra Wireless is a high performance, LTE-Advanced vehicle router developed specifically for mobile mission critical applications in public safety, transit and field services.The MP70 router a high-performance vehicle networking solution to connect multiple high-bandwidth applications in and around the vehicle, while also providing IT departments with the flexibility to manage mobile assets in [...]

Read More »


Wireless Module All-In-One 802.11n WLAN Access Point, Repeater, And Client Device

The FL WLAN 1101 by Phoenix Contact is the first in a series of all-in-one 802.11n WLAN access point, repeater, client devices. An innovative form factor and an IP-rated housing make the FL WLAN 1101 ideal for out-of-the-cabinet mounting. With strong, dual internal antennas, it provides a powerful, cost-effective wireless solution to keep a user’s devices connected. Future [...]

Read More »