emWeb — Web Server
Provide easy to use graphical interfaces to control your target.
Can be used from any device that has a browser such as PC/Mac and mobile devices.
买彩票那个数字容易中奖Easy to maintain by separating design and content.
- Provide easy to use graphical interfaces for control or data acquisition
- Compatible with all browsers for PC/Mac and mobile devices
- Supports modern standards like WebSockets (additional add-on), REST, SSE and many more
- Independent of the TCP/IP stack: Any stack with sockets can be used
- Can be used on embedded targets or PC (Windows/Linux/...) and Mac
- Samples for embedded targets and PC included, showing simple and advanced use cases
- High performance
- Small footprint
- Smallest configuration can run in a single task for multiple connections
Provide easy to use graphical user interfaces that can be accessed from anywhere!
买彩票那个数字容易中奖emweb allows you to use the most widely accepted language for providing graphical user interfaces in the world, html.
emweb can not only be incorporated into embedded targets, but pc/mac or even mobile applications as well.
Even targets that do not feature traditional network access via Ethernet cable or WiFi access can benefit by using a browser UI. With the IP-over-USB technology, SEGGER provides a state-of-the-art solution for USB devices to be powered by a browser UI.
design only one ui that will work on any end user device.
买彩票那个数字容易中奖for your product, using a browser based ui comes with a lot of advantages over a traditional application gui. the biggest advantage, of course, is that you can operate the target from any host that features a browser, independent of the operating system. while this is a clear advantage to the programmer and designer of an ui, there are even more advantages for your customers, making your device more user friendly than ever before:
- No software to download or install
- Can be accessed and configured using any device with a browser (PC/Mac or mobile devices like smartphones or tablets)
- Can even be made available over the Internet
Devices using browser UIs
devices using browser uis are becoming more and more the state-of-the-art standard. the following is a list of devices already using browser uis for configuration purposes today:
- Routers, switches and Access Points
- Almost any IoT device
- Debug probes
- All kinds of gadgets
买彩票那个数字容易中奖let's look at the following examples:
printers are a popular examples for devices that already use a browser ui for configuration, at least if they support a network interface like ethernet or wifi anyhow.
买彩票那个数字容易中奖while a browser based ui is typically thought of being exclusive to ethernet or wifi capable devices, this is not where it has to end!
Even targets that do not feature traditional network access via Ethernet cable or WiFi access can benefit by using a browser UI. With the IP-over-USB technology, SEGGER provides a state-of-the-art solution for USB devices to be powered by a browser UI. This allows using the same UI for device families that come in different models and features regarding their host interfaces.
an example for this would be different printer models of the same product family that come with different host interfaces. one model might come with usb only while another model features usb, ethernet cable and wifi. all of them can share the same browser ui.
Using the IP-over-USB technology, basically all devices that come with an USB connector can feature a browser UI. As almost all modern devices use regular USB for charging, this means all of these products are ready by their hardware to feature this state-of-the-art technology.
买彩票那个数字容易中奖typical examples of devices that benefit from a browser ui are non-stationary like:
- Wireless headphones (configuration of presets)
- MP3 player (configuration and playlist management)
- Fitness tracker (configuration and statistics)
using a browser based ui is not exclusive to an external device being accessed. due to the fact that a browser ui is operating system independent, it makes a great alternative for any kind of application gui. uis designed this way can also be easily integrated into other application. an example would be a configuration page of one application/product that can easily be added into any other application using the webkit engine.
emweb requires a tcp/ip stack. it is optimized for emnet, but any rfc-compliant tcp/ip stack can be used. the shipment includes a win32 implementation sample which uses the standard winsock api, as well as an implementation which uses the socket api of emnet.
the web server needs to run as a separate thread. therefore, a multi tasking system is required to use the web server emweb.
买彩票那个数字容易中奖http is a communication protocol originally designed to transfer information via hypertext pages. the development of http is coordinated by the ietf (internet engineering task force) and the w3c (world wide web consortium). the typically used protocol version is still 1.1 that gets extended by various sub-protocols.
the http protocol itself is implemented on top of the tcp protocol.
|Application layer||Application layer protocol:|
|Transport layer||Tranport layer protocol:|
|Network layer||Network layer protocol:|
|Link layer||Link layer protocol:|
Ethernet (IEEE 802.3), ...
HTTP Communication Basics
HTTP is a challenge and response protocol. A client initiates a TCP connection to the Web server and sends a HTTP request. A HTTP request starts with a method token. [RFC 2616] defines 8 method tokens. The method token indicates the method to be performed on the requested resource. emWeb implements the major methods which are typically required.
|GET||The GET method means that it retrieves whatever information is identified by the Request-URI.|
|POST||The POST method submits data to be processed to the identified resource. The data is included in the body of the request.|
买彩票那个数字容易中奖emweb supports different techniques to create dynamic pages.
the common gateway interface (cgi) is a replace mechanism that is used in conjunction with a template page. a visitor counter in a page with static content would be one of the simplest use cases.
the template page can be a simple html page with a placeholder for the counter value. whenever the page is processed by emweb, the placeholder will be exchanged for the output of a custom application code.
|Virtual files||Virtual files allow to deliver complete pages that are built when they are requested. Typical examples are XML files that represent the current state of an application and are therefore subject to change for almost every request.|
to request data, with ajax the browser needs to poll for data.
买彩票那个数字容易中奖unlike ajax, server-sent events (sse) are an html5 technique that allows a server to send data to the browser, without the browser permanently polling for data and therefore reducing unnecessary data overhead.
sse works by the browser subscribing to the web server and keeping the connection up for further data sent.
emWeb Live Statistic Sample
the chart sample is part of the emweb shipment. the sample can easily be modified to fit your needs.
in the sample application, that is available for windows and can be downloaded below, emweb is listening on tcp port 8181. to access the web page after starting the executable, the web browser should be directed to: .
emweb web server live statistics sample
emweb supports the following authentication mechanisms.
买彩票那个数字容易中奖as the name implies, the basic authentication scheme is a very simplistic mechanism for access control, in terms of security. the user name and password are transmitted in clear text.
while it is insecure by its design, it is still in use as ssl/tls security in modern applications strengthen the underlying layers.
|Digest||The Digest Authentication scheme uses an MD5 based challenge/response handshake including nonce data. The password is never sent in clear text, which makes it a good choice in case a lightweight and secure authentication is required where SSL/TLS is not possible.|