Site Information

 Loading... Please wait...

Blog

Building Wireless CAN Gateways with ESP32-S3

Posted by Wilfried Voss on

Building Wireless CAN Gateways with ESP32-S3The convergence of wireless networking and CAN bus technology is opening entirely new possibilities for automotive, industrial, agricultural, and embedded systems. Instead of connecting a laptop directly to a CAN network with a USB cable, engineers increasingly want remote access through Wi-Fi, Bluetooth, or Bluetooth Low Energy (BLE). Whether monitoring a machine from across a factory floor, collecting diagnostic data from a fleet of vehicles, or building an Industrial IoT gateway, the ESP32-S3 has become one of the most capable and affordable platforms available.

ESP32S3 Board with CAN FD and Classical CAN PortsEven more compelling is the availability of hardware that combines both Classical CAN and CAN FD on a single development board. The ESP32-S3 Board with CAN FD and Classical CAN Ports serves as an excellent example of such a platform, allowing developers to focus on firmware development rather than hardware design. It combines wireless connectivity, modern processing power, and dual CAN interfaces into one compact solution suitable for prototypes as well as production-ready applications.

Why Wireless CAN Gateways?

Traditional CAN interfaces connect directly to a PC through USB. While this remains the preferred solution for development, wireless connectivity offers significant advantages:

  • Remote diagnostics without physical access

  • Fleet-wide monitoring

  • Mobile service applications

  • Wireless firmware updates

  • Cloud-connected data logging

  • Portable handheld diagnostic tools

  • Industrial IoT integration

Instead of bringing a computer to the machine, the machine becomes available on the network.

The ESP32-S3 Advantage

The ESP32-S3 is far more than another microcontroller. It integrates wireless communication, substantial memory resources, and high processing performance into a single chip.

Key capabilities include:

  • Dual-core Xtensa LX7 processor operating up to 240 MHz

  • Hardware floating-point unit

  • 8 MB Flash

  • 8 MB PSRAM

  • Native USB OTG

  • Wi-Fi 802.11 b/g/n

  • Bluetooth 5

  • Bluetooth Low Energy (BLE)

  • Bluetooth Mesh support

  • Excellent Arduino IDE support

  • Extensive ESP-IDF software ecosystem

This combination makes the ESP32-S3 particularly attractive for communication gateways, where multiple protocols must operate simultaneously.

Supporting Both Classical CAN and CAN FD

Many industries currently operate mixed environments.

Older equipment often communicates through Classical CAN operating up to 1 Mbps, while newer systems increasingly rely on CAN FD for higher throughput and larger payloads.

The featured development board supports both technologies simultaneously:

Classical CAN

The ESP32-S3 includes Espressif's built-in TWAI controller, providing native support for Classical CAN (CAN 2.0A and CAN 2.0B). An onboard high-speed CAN transceiver connects the controller directly to the bus.

Typical applications include:

  • J1939

  • CANopen

  • DeviceNet

  • NMEA 2000

  • Proprietary industrial protocols

CAN FD

For modern applications, the board incorporates a dedicated Microchip MCP2518FD controller connected through SPI.

CAN FD provides several advantages:

  • Data rates up to 8 Mbps

  • Payloads up to 64 bytes

  • Higher overall throughput

  • Reduced bus utilization

  • Improved efficiency for larger data transfers

The result is a development platform capable of supporting both legacy and next-generation CAN networks.

Gateway Architecture

A wireless CAN gateway generally follows a straightforward architecture:

Classical CAN
      │
CAN Controller (TWAI)
      │
 ESP32-S3 Application
      │
 Wi-Fi / BLE / Bluetooth
      │
 Smartphone
 Laptop
 Cloud Server
 MQTT Broker
 REST API

For CAN FD applications:

CAN FD
     │
MCP2518FD
     │
 ESP32-S3
     │
Wireless Network

The gateway firmware receives CAN messages, processes them if necessary, and forwards them over the selected wireless interface.

Wi-Fi Connectivity

Wi-Fi is the natural choice whenever bandwidth is important.

Typical Wi-Fi applications include:

Remote Monitoring

Operators can monitor machine parameters from anywhere on the local network.

Embedded Web Servers

The ESP32-S3 can host a web interface that displays:

  • Live CAN traffic

  • Diagnostic information

  • Error counters

  • Bus load

  • Configuration settings

No dedicated PC software is required.

Cloud Connectivity

CAN data can be uploaded to cloud services using:

  • MQTT

  • HTTPS

  • WebSockets

  • REST APIs

Applications include:

  • Predictive maintenance

  • Fleet management

  • Industrial monitoring

  • Long-term data logging

Bluetooth Classic

Bluetooth Classic remains an excellent choice for direct communication between the gateway and nearby devices.

Typical applications include:

  • Laptop diagnostics

  • Mobile configuration utilities

  • Portable service tools

  • Wireless serial replacement

Many existing desktop and Android applications can communicate over Bluetooth without requiring a Wi-Fi infrastructure.

Bluetooth Low Energy (BLE)

BLE is increasingly becoming the preferred wireless technology for battery-powered and mobile devices.

Possible applications include:

Mobile Apps

A smartphone application can:

  • Display live CAN values

  • Configure gateway parameters

  • Retrieve diagnostic information

  • Perform firmware updates

Wireless Sensors

BLE peripherals can transmit additional sensor information to the gateway, allowing CAN data to be combined with:

  • Temperature

  • Humidity

  • GPS

  • Pressure

  • Vibration

  • Environmental measurements

Low Power Operation

BLE's reduced power consumption makes it suitable for portable diagnostic equipment and battery-powered gateways.

Combining Multiple Wireless Interfaces

One of the ESP32-S3's greatest strengths is its ability to support multiple communication methods within the same application.

A single gateway might simultaneously:

  • Receive J1939 traffic on Classical CAN

  • Receive CAN FD messages

  • Publish selected parameters over Wi-Fi using MQTT

  • Accept configuration commands through BLE

  • Provide a USB diagnostic interface

  • Log data to onboard memory

Such flexibility enables developers to create highly capable embedded systems without additional processors.

Typical Gateway Applications

The hardware lends itself to a wide range of professional applications.

Wireless CAN Data Logger

Store CAN traffic locally while allowing remote access through Wi-Fi.

Fleet Telematics

Transmit selected vehicle information to a central server.

Industrial IoT Gateway

Bridge factory equipment to cloud services.

Wireless Diagnostics

Replace lengthy USB cables with Bluetooth or Wi-Fi connections.

Protocol Translation

Receive messages from one CAN network, process them, and retransmit them on another network.

Mobile Service Tool

Develop portable diagnostic devices using smartphones or tablets as the user interface.

Software Development

Developers have several software options available.

Arduino IDE remains an excellent choice for rapid prototyping and proof-of-concept development.

For larger commercial projects, the ESP-IDF framework provides:

  • Advanced networking

  • BLE services

  • Secure communication

  • File systems

  • OTA firmware updates

  • Real-time operating system support

Because the board exposes both CAN interfaces, developers can build sophisticated gateway software without designing custom hardware.

Hardware Designed for Professional Projects

The development board includes features that simplify deployment beyond the laboratory.

Highlights include:

  • Native USB-C programming

  • High-speed CAN transceivers

  • Wide 7–24 V power input

  • Reverse polarity protection

  • Onboard RGB status LED

  • I²C expansion connector

  • Compact PCB layout

These features make the platform suitable for both development and deployment in demanding automotive and industrial environments.

Looking Ahead

Wireless connectivity is rapidly becoming an expected feature of embedded systems. At the same time, CAN FD continues to gain traction across automotive, heavy-duty vehicle, agricultural, and industrial applications.

A development platform combining Wi-Fi, Bluetooth, BLE, Classical CAN, and CAN FD provides engineers with exceptional flexibility. Whether the goal is remote diagnostics, Industrial IoT, fleet management, wireless data logging, or protocol conversion, the ESP32-S3 delivers the processing power and connectivity needed to build modern gateway solutions.

For developers looking to explore wireless CAN applications, the ESP32-S3 Board with CAN FD and Classical CAN Ports offers an outstanding starting point. By integrating native Classical CAN, dedicated CAN FD hardware, advanced wireless communication, and a powerful dual-core processor into a single platform, it significantly shortens development time while leaving ample room for innovation.


The Wireless Cookbook- Build Real Projects and Master Wi-Fi, Bluetooth, and LoRaThe Wireless Cookbook: Build Real Projects and Master Wi-Fi, Bluetooth, and LoRa

Wi-Fi, Bluetooth, and LoRa power the connected world, but building reliable wireless systems is rarely as simple as it seems. Connections drop unexpectedly, documentation leaves out critical details, and error messages often create more questions than answers.

This book takes a practical, hands-on approach to wireless development with Raspberry Pi and Linux. Through a collection of self-contained projects, you'll learn not only how today's wireless technologies work, but also how to troubleshoot them, control them, and build systems that perform reliably in real-world applications. Every project is designed to be both educational and immediately useful, providing a solid foundation you can adapt to your own designs.

Among the many projects in this book, you'll build:

  • A BLE audio receiver for high-quality wireless sound
  • A battery-powered LoRa node capable of communicating over miles
  • A self-healing Wi-Fi mesh network
  • A real-time signal strength monitor with a mini TFT display
  • A wireless intrusion detection system with a captive portal

As you progress through the projects, you'll develop a practical understanding of Linux networking, master wireless technologies including IEEE 802.11 Wi-Fi, Bluetooth Low Energy (BLE), and LoRaWAN, and gain the confidence to design, deploy, and troubleshoot your own wireless solutions.

Each chapter focuses on a real-world wireless challenge, guiding you from understanding the underlying concepts to building a working solution you can immediately put to use.

Wireless development doesn't have to be mysterious. With Raspberry Pi, Linux, and this book as your guide, you'll have the knowledge and practical experience to build wireless systems that simply work. More information...

Copperhill Technologies Launches an Engineering Community for the Entire SAE J1939 Ecosystem

Copperhill Technologies today announced the expansion of the JCOM1939 Community into a dedicated engineering forum serving professionals across the entire SAE J1939 ecosystem. While the community has traditionally focused on embedded software development, it now welcomes Test & Validation Engineers, Systems Integrators, OEM engineers, hardware developers, technical support specialists, and others involved in designing, integrating, [...]

Read More »


How to Build a Raspberry Pi CAN-to-Ethernet Gateway

The Controller Area Network (CAN) remains one of the most reliable communication technologies in embedded systems, industrial automation, commercial vehicles, marine electronics, and robotics. At the same time, Ethernet has become the preferred medium for connecting systems over long distances, integrating with cloud services, and providing remote access. Bridging these two worlds is a common requirement [...]

Read More »


CAN Bus vs. CAN FD: When Is It Worth Upgrading? A Practical Guide for Embedded System Developers

For more than three decades, Classical CAN (Controller Area Network) has been the workhorse of industrial automation, automotive electronics, agricultural machinery, marine systems, and countless embedded applications. It has earned a reputation for exceptional reliability, deterministic communication, and outstanding error detection. Yet the demands placed on embedded networks continue to grow. Today's systems generate far more [...]

Read More »


How to Build a CAN Bus Prototype Before Designing Your PCB

Modern embedded systems rarely begin with a custom PCB. In fact, the fastest and often the most successful development projects start on inexpensive development hardware that allows engineers to validate concepts, write firmware, and test communication long before the first schematic is finalized. When developing CAN Bus and SAE J1939 applications, I have found that the [...]

Read More »


Why Embedded Engineers Need Raspberry Pi for CAN Bus Development

The Raspberry Pi has earned its reputation as one of the most versatile embedded computing platforms ever created. Originally introduced as an educational computer, it has evolved into a serious engineering tool used for industrial automation, robotics, automotive development, data acquisition, and IoT applications. For engineers working with CAN Bus and CAN FD networks, adding [...]

Read More »


Understanding CAN Bus Error Frames: A Practical Guide to Diagnosing CAN Network Problems

When you first connect a new CAN Bus network, everything usually works perfectly—until it doesn't. Your firmware transmits messages, but nothing appears on the network. Your CAN controller reports transmit errors. Suddenly, the node enters Error Passive mode, and eventually Bus Off. Your analyzer may even display Error Frames, but it rarely explains why they occurred. If [...]

Read More »


ESP32 CAN Bus Projects: Practical Wi-Fi Applications for Embedded Systems

The convergence of wireless networking and CAN Bus technology has fundamentally changed how engineers design embedded systems. For years, CAN Bus networks operated as isolated, wired communication systems found in vehicles, industrial equipment, agricultural machinery, and marine electronics. While they excel at reliable real-time communication, accessing data often required a physical connection through a CAN [...]

Read More »


Why Professional Engineers Still Use the Arduino IDE in 2026

A recent Facebook comment caught my attention: "Who's using Arduino IDE in 2026?" At first, I dismissed it as another attempt to provoke a reaction. But the more I thought about it, the more I realized that it reflects a common misconception. Many engineers still associate the Arduino IDE exclusively with hobbyists building blinking LEDs and garage [...]

Read More »


Why Teensy Is One of the Best Microcontrollers for CAN Bus Applications

When engineers begin working with Controller Area Network (CAN) systems, one of the first questions is usually, "Which microcontroller should I use?" The answer depends on the application, but one platform consistently stands out for its combination of performance, flexibility, and ease of development: Teensy. Originally developed by PJRC, the Teensy family has earned an excellent [...]

Read More »