emUSB-Web
Overview
The emUSB-Web software library provides a solution for accessing a web server running on an embedded device via USB bulk. This technology enables secure connectivity without the need for an internet connection. It is designed for ease of use and seamless integration with existing systems.
The web server allows a device to be accessed from any host operating system - Linux, macOS, and Windows.
This technology is easily accessible for all USB devices, enhancing their value and ease of use. There is no need for keys or a display on the unit, as any PC can be used to operate the device.
With emUSB-Web the web server is accessible without any network stack. Communication is forwarded from straight through USB bulk to the web server. This saves significantly on memory usage.
Key features
- Webserver access over USB Bulk
- Same web pages can be used as over TCP/IP
- No network stack necessary
- PC Tool for Linux / macOS / Windows
- Low footprint
Resource Usage
The ROM usage depends on the compiler options, the compiler version, and the CPU used. The memory requirements of the emUSB-Web add-on shown in the tables below have been measured on a Cortex-M7 system.
Add-on | ROM |
---|---|
emUSB-Web | Approximately 500 bytes |
Add-on | RAM |
---|---|
emUSB-Web | Approximately 100 bytes |
Additionally, the resource usage of the emUSB-Device Bulk component, the resource usage of emWeb, and the resource usage of the used real time operating system should be considered.
Use cases
SEGGER Debug Probe J-Link
The J-Link makes its web interface available using emUSB-Web. See the J-Link wiki to learn more.
USB Headset
Most contemporary noise-canceling Bluetooth headphones have a lithium battery that can be recharged using a USB cable, usually with a Micro-USB connector. Despite their excellent capabilities, setting them up can be difficult due to the lack of a display and limited buttons, including an ON/OFF switch. Pairing with a Bluetooth host and managing features such as volume limits can also be challenging.
However, using a web page available through emUSB-Web, adjusting these settings is simple and user-friendly, with no need for a manual.
Printer
Web browsers provide a simple and convenient way to access information from a printer, such as the reason for not printing, the number of pages printed, and the remaining toner level.
Additionally, web browsers make it easy to set up a printer by allowing users to select options such as paper type and format, print quality, color, and DPI settings.
emUSB-Web allows the user to use a web browser for quick and easy configuration.
Measurement Device
A web page provided using emUSB-Web would be ideal for a measurement device as it could allow the user to easily retrieve log files, change settings or even send commands to the device via a simple terminal integrated within the web page.
emUSB-Device performance
More information on emUSB-Device performance values and how they are measured...
Try it now
Download the PC application for Linux / macOS / Windows:
Download emUSB-Web PC application (Linux)
Download emUSB-Web PC application (macOS)
Download emUSB-Web PC application (Windows)
Download the emUSB-Web demo for the emPower board:
Download emPower emUSB-Web demo
- Start the emUSB-Web PC application
- Program the emPower with the default application using Embedded Studio
- Connect the HS USB connector to your PC
- The demo web page will automatically open in the default browser
Other Eval Packages: emUSB-Web is also available for other boards. Have a look in our download section.
emUSB-Web Demo in detail
Upon starting the emUSB-Web PC application, the default browser is opened with a page instructing the user to connect a device running the emUSB-Web embedded counterpart.
As soon as a device running emUSB-Web is connected, the content of the web page is automatically substituted for the content provided by the embedded device.
Components required for emUSB-Web
Name | Purpose | Purchasing |
---|---|---|
emUSB-Web | The emUSB-Web application. | emUSB-Device pricing |
emUSB-Device BASE + driver | The emUSB-Device base package providing basic USB functionality. | |
emUSB-Device BULK | Bulk communication for the target and PC. | emUSB-Device pricing |
emWeb | Webserver software. | emWeb pricing |
FAQ
Q: Can I use the same web pages I used in my Ethernet based product?
A: Yes, same pages can be used.
Q: Do I need to use the emUSB-Web PC tool?
A: Yes. The emUSB-Web PC application provides a socket interface for the browser to facilitate the data transfer between the browser and the USB device. This is not yet done by any operating system (e.g. Windows, Linux, or macOS), therefore it is necessary.