Embedded devices and display systems
The embedded device optimizes communication and authentication by using unencrypted and encrypted methods for built-in and external browsers, respectively, addressing processing load and security challenges in embedded devices with display units, enhancing user experience and resource efficiency.
Patent Information
- Application Number
- JP2024515198
- Authority / Receiving Office
- JP · JP
- Patent Type
- Patents
- Current Assignee / Owner
- Filing Date
- 2022-04-11
- Publication Date
- 2024-10-11
- Estimated Expiration
- 2042-04-11
AI Technical Summary
Existing embedded devices with display units face increased processing loads and security challenges when displaying screens on both built-in and external browsers due to differences in communication security requirements, necessitating separate screen development and authentication processes.
An embedded device with a web server that performs unencrypted communication for built-in browsers and encrypted communication for external browsers, using internal and external virtual servers to manage screen display and authentication based on the same web document, reducing processing load and maintaining security.
This approach reduces processing load on embedded devices by optimizing communication methods and improves user operability through tailored authentication processes for built-in and external connections, while maintaining device security and resource efficiency.
Smart Images

Figure 0007566207000001 
Figure 0007566207000002 
Figure 0007566207000003
Abstract
Description
[Technical field]
[0001] The present disclosure relates to an embedded device and a display system. [Background technology]
[0002] Embedded devices equipped with a display unit that displays a screen are known. In addition, as embedded devices become network-compatible, it is becoming possible to control embedded devices from external terminals. For example, Patent Document 1 discloses an image processing device that can display different operation screens depending on whether the device is accessed via a built-in web browser or a web browser on an external device. [Prior art documents] [Patent documents]
[0003] [Patent Document 1] JP 2011-197968 A Summary of the Invention [Problem to be solved by the invention]
[0004] In systems in which screens are displayed on both the built-in browser of the embedded device and an external browser installed on an external terminal as described above, there is a demand to reduce the effort required for screen development by generating the screens to be displayed on both the built-in browser and the external browser from the same Web document.
[0005] However, there is a difference in the level of security required between built-in browsers and external browsers. Specifically, when displaying a screen on an external browser, strong security measures are required because communication takes place via an external network. In contrast, when displaying a screen on a built-in browser of an embedded device, the communication is internal to the embedded device, so strong security measures are not required compared to communication with an external browser. Taking into account these differences in security requirements, there is a demand to reduce the processing load in communication with built-in browsers.
[0006] The present disclosure has been made to solve the problems described above, and aims to provide an embedded device that can reduce the processing load in communication with an built-in browser in an embedded device that displays a screen based on the same Web document in both a built-in browser and an external browser. [Means for solving the problem]
[0007] In order to achieve the above object, the embedded device according to the present disclosure comprises: An embedded device communicably connected to an external terminal having an external browser, A storage unit for storing web documents; The built-in browser transmitting the Web document stored in the storage unit to the built-in browser via unencrypted communication and displaying a first screen based on the Web document on the built-in browser; a web server that transmits the web document stored in the storage unit to the external browser via encrypted communication and causes the external browser to display a second screen based on the web document. 、 The web server The unencrypted communication is performed between the internal virtual server and the built-in browser, The encrypted communication is carried out between the external browser and the external virtual server. Effect of the Invention
[0008] In the present disclosure, a Web server transmits a Web document stored in a storage unit to a built-in browser via unencrypted communication, causes the built-in browser to display a first screen based on the Web document, transmits the Web document stored in the storage unit to an external browser via encrypted communication, and causes the external browser to display a second screen based on the Web document. Thus, according to the present disclosure, in an embedded device that displays screens based on the same Web document on the built-in browser and the external browser, it is possible to reduce the processing load in communication with the built-in browser. [Brief description of the drawings]
[0009] [Figure 1] FIG. 1 is a first diagram showing a configuration of a display system according to a first embodiment; [Diagram 2] FIG. 2 is a second diagram showing a configuration of a display system according to the first embodiment; [Diagram 3] FIG. 1 shows a configuration of a Web server according to a first embodiment. [Figure 4] FIG. 13 is a diagram showing an example of a user authentication input screen displayed on an external browser according to the first embodiment; [Diagram 5] FIG. 13 shows an example of a user authentication completion screen displayed on the built-in browser and the external browser according to the first embodiment. [Figure 6] FIG. 1 shows an example of an operation screen displayed on a built-in browser and an external browser according to the first embodiment. [Figure 7] A flowchart showing the flow of user authentication processing executed by the embedded device according to the first embodiment. [Figure 8] 1 is a flowchart showing the flow of an operation screen display process executed by the embedded device according to the first embodiment. [Figure 9] FIG. 13 is a diagram showing a configuration related to user authentication by an authentication device in an embedded device according to a second embodiment. [Figure 10] FIG. 13 is a diagram showing an example of a screen that prompts an operation of an authentication device displayed on the built-in browser according to the second embodiment; [Figure 11] FIG. 13 is a diagram showing a system configuration using a virtual machine in an embedded device according to a third embodiment. [Figure 12] FIG. 13 is a diagram showing a system configuration using container virtualization in an embedded device according to a fourth embodiment. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0010] Hereinafter, embodiments will be described in detail with reference to the drawings, in which the same or corresponding parts are designated by the same reference numerals.
[0011] (Embodiment 1) 1 shows the configuration of a display system 1 according to embodiment 1. The display system 1 includes an embedded device 10 and an external terminal 30. The embedded device 10 is equipped with a screen display function, and a user can operate the embedded device 10 by directly touching it while viewing the screen.
[0012] The embedded device 10 and the external terminal 30 are connected to each other so that they can communicate with each other via an external network indicated by a dashed line. The external network is a communication network, specifically, an information communication network such as a LAN (Local Area Network) or the Internet. By going through the external network, a user can operate the embedded device 10 from a browser of the external terminal 30 without directly contacting the embedded device 10.
[0013] The embedded device 10 is an electronic device controlled by embedded software, and specifically, is an electronic device for a specific purpose such as an air conditioner, a water heater, a rice cooker, a washing machine, a refrigerator, a television, etc. In the following, an air conditioning controller for operating an air conditioner will be taken as an example of the embedded device 10.
[0014] The embedded device 10 comprises a control unit 11, a memory unit 12, an operation unit 13, a display unit 14, and a communication unit 15. These can also be called a device-side control unit, a device-side memory unit, a device-side operation unit, a device-side display unit, and a device-side communication unit, respectively.
[0015] The control unit 11 includes a CPU (Central Processing Unit). The CPU is also called a central processing unit, central arithmetic unit, processor, microprocessor, microcomputer, etc., and functions as a processing unit that executes processing and calculations related to the control of the embedded device 10. In the control unit 11, the CPU reads out and operates programs and data stored in the storage unit 12, and performs overall control of the embedded device 10.
[0016] The storage unit 12 includes a ROM (Read Only Memory), a RAM (Random Access Memory), a flash memory, etc. The storage unit 12 stores programs and data used by the control unit 11 to perform various processes. The storage unit 12 also stores data generated or acquired by the control unit 11 performing various processes.
[0017] Specifically, storage unit 12 stores Web document 121. Web document 121 is a data file that defines an image to be displayed on display unit 14. Web document 121 defines screen data to be displayed on display unit 14, such as a user authentication screen and an operation screen of embedded device 10, in accordance with predetermined rules. For example, Web document 121 includes HTML (Hyper Text Markup Language) or CSS (Cascading Style Sheets) that specify the screen layout, and JavaScript that describes the contents of the screen.
[0018] The operation unit 13 includes input devices such as a touch panel, a touch pad, a keyboard, a mouse, and physical buttons, and receives operation input from a user. The user can input various instructions to the embedded device 10 by operating the operation unit 13. When the operation unit 13 receives an instruction input from the user, it outputs the received instruction to the built-in browser 111.
[0019] The display unit 14 includes a display device such as a liquid crystal panel, an organic EL (Electro-Luminescence) panel, etc. The display unit 14 is driven by a display drive circuit, and displays various images output from the built-in browser 111.
[0020] The communication unit 15 includes a communication interface for communicating with devices external to the embedded device 10. For example, the communication unit 15 communicates with external devices including the external terminal 30 in accordance with well-known communication standards such as LAN and USB (Universal Serial Bus).
[0021] Specifically, communication unit 15 performs encrypted communication with external terminal 30 via an external network. In response to a request from external terminal 30, communication unit 15 transmits Web document 121 stored in storage unit 12 to external terminal 30.
[0022] The external terminal 30 is a terminal device external to the embedded device 10 and functions as a Web client. Specifically, the external terminal 30 is an operation terminal operated by a user, such as a personal computer, a smartphone, a tablet terminal, etc. The external terminal 30 is connected to the embedded device 10 via an external network, and can operate the embedded device 10, monitor its status, etc.
[0023] The external terminal 30 includes a control unit 31, a storage unit 32, an operation unit 33, a display unit 34, and a communication unit 35. These can also be called a terminal-side control unit, a terminal-side storage unit, a terminal-side operation unit, a terminal-side display unit, and a terminal-side communication unit, respectively.
[0024] The control unit 31 includes a CPU. The CPU is also called a central processing unit, central arithmetic unit, processor, microprocessor, microcomputer, etc., and functions as a processing unit that executes processes and calculations related to the control of the external terminal 30. In the control unit 31, the CPU reads out and operates programs and data stored in the storage unit 32, and performs overall control of the external terminal 30.
[0025] The storage unit 32 includes a ROM, a RAM, a flash memory, etc. The storage unit 32 stores programs and data used by the control unit 31 to perform various processes. The storage unit 32 also stores data generated or acquired by the control unit 31 performing various processes.
[0026] The operation unit 33 includes input devices such as a button, a touch pad, and a touch panel, and receives operation input from a user. The user can input various instructions to the external terminal 30 by operating the operation unit 33. When the operation unit 33 receives an instruction input from the user, it outputs the received instruction to the external browser 311.
[0027] The display unit 34 includes a display device such as an LCD panel, an organic EL display, etc. The display unit 34 is driven by a display drive circuit, and displays various images output from the external browser 311.
[0028] The communication unit 35 includes a communication interface for communicating with devices external to the external terminal 30. For example, the communication unit 35 communicates with external devices including the embedded device 10 in accordance with well-known communication standards such as LAN and USB.
[0029] Specifically, the communication unit 35 performs encrypted communication with the embedded device 10 via the external network. As a result, the communication unit 35 obtains the Web document 121 transmitted from the embedded device 10.
[0030] In the embedded device 10, the control unit 11 functionally comprises an internal browser 111, a Web server 112, and an application server 113. In the external terminal 30, the control unit 31 functionally comprises an external browser 311.
[0031] Each of these units is realized by software, firmware, or a combination of software and firmware. The software and firmware are written as programs and stored in the ROM or storage unit 12, 32. The CPU executes the programs stored in the ROM or storage unit 12, 32 to realize the functions of each unit.
[0032] Next, the functions of each unit included in the control units 11 and 31 will be described with reference to FIG.
[0033] In the embedded device 10, the built-in browser 111 is a web browser built into the embedded device 10, and displays a display screen on the display unit 14. The built-in browser 111 also acquires from the operation unit 13 an operation instruction input by a user of the embedded device 10 operating the operation unit 13.
[0034] The built-in browser 111 can connect to the Web server 112 via internal communication of the embedded device 10. The built-in browser 111 acquires the Web document 121 stored in the storage unit 12 from the Web server 112 via the internal communication, and outputs a display screen based on the Web document 121 to the display unit 14. The built-in browser 111 also transmits user operation instructions acquired from the operation unit 13 to the Web server 112 via the internal communication.
[0035] More specifically, the built-in browser 111 connects to the Web server 112 via loopback communication, which is an internal communication. In loopback communication, in the case of IPv4 (Internet Protocol version 4), the address of both the source browser and the destination server is "127.0.0.1", and in the case of IPv6 (Internet Protocol version 6), the address is "::1". By assigning such addresses, loopback communication can be distinguished from communication from an external network.
[0036] In the external terminal 30, the external browser 311 is a Web browser installed in the external terminal 30, and displays a display screen on the display unit 34. In addition, the external browser 311 acquires from the operation unit 33 an operation instruction input by a user of the external terminal 30 operating the operation unit 33.
[0037] The external browser 311 can connect to the Web server 112 of the embedded device 10 via an external network. The external browser 311 acquires the Web document 121 stored in the storage unit 12 from the Web server 112 via the external network, and outputs a display screen based on the Web document 121 to the display unit 34. The external browser 311 also transmits user operation instructions acquired from the operation unit 33 to the Web server 112 via the external network.
[0038] In the embedded device 10, the Web server 112 has a function of causing the built-in browser 111 and the external browser 311, which are Web browsers, to display screens. The Web server 112 also has a function of a reverse proxy that relays communications accessed from the built-in browser 111 and the external browser 311. The Web server 112 is constructed, for example, by Nginx (registered trademark).
[0039] Web server 112 distributes Web document 121 to built-in browser 111 and external browser 311, and causes display units 14, 34 to display a display screen based on Web document 121. More specifically, Web server 112 distributes Web document 121 stored in storage unit 12 to both built-in browser 111 and external browser 311. In this way, by distributing a common Web document 121 to both built-in browser 111 and external browser 311, and displaying a display screen based on the distributed Web document 121, the development costs of Web document 121 can be reduced.
[0040] In this way, when the Web screen is shared between the built-in browser 111 and the external browser 311, it is not necessarily necessary to take the same security measures for the display process in the built-in browser 111 and the display process in the external browser 311. Specifically, when the external terminal 30 connects to the embedded device 10 via an external network, security measures are essential to prevent unauthorized access to the embedded device 10.
[0041] Specifically, the security measures include (1) encryption of communications between the external terminal 30 and the embedded device 10, (2) user authentication, and (3) authentication of a WebAPI (Application Programming Interface) for operating the embedded device 10 via an external network. In the first embodiment, different security measures are implemented for each of (1) to (3) between the display process in the built-in browser 111 and the display process in the external browser 311.
[0042] (1) Encryption of communications First, encryption of communication will be described. The communication between the built-in browser 111 and the Web server 112 is loopback communication, and the communication content is not leaked to the outside, so there is no need to encrypt the communication. Also, since the CPU mounted on the embedded device 10 has lower performance than the CPU of a general personal computer, performing unnecessary encrypted communication causes a problem of CPU load.
[0043] Therefore, the Web server 112 performs unencrypted communication with the built-in browser 111, while performing encrypted communication with the external browser 311. Here, an example of the unencrypted communication is HTTP (Hypertext Transfer Protocol) communication, and an example of the encrypted communication is HTTPS (Hypertext Transfer Protocol Secure) communication.
[0044] In order to realize the function of changing the encryption status depending on the connection destination, the Web server 112 has a function called a virtual server. A virtual server is a technology that makes it possible to obtain the same effect as operating multiple servers by operating a single piece of software.
[0045] 3, the Web server 112 has the functions of an internal virtual server 141 and an external virtual server 142. The Web server 112 performs unencrypted communication with the built-in browser 111 via the internal virtual server 141, and performs encrypted communication with the external browser 311 via the external virtual server 142.
[0046] When the Web server 112 receives communication from the built-in browser 111 or the external browser 311, it determines whether the connection destination of the communication is the built-in browser 111 or the external browser 311. As described above, the built-in browser 111 communicates with the Web server 112 by loopback communication, and the external browser 311 communicates with the Web server 112 by an external network.
[0047] Therefore, when the destination address corresponds to a loopback address, the Web server 112 determines that the connection has been received from the built-in browser 111, and when the destination address corresponds to an address other than a loopback address, the Web server 112 determines that the connection has been received from the external browser 311. The loopback address is "127.0.0.1" for IPv4 and "::1" for IPv6.
[0048] If it is determined that a connection has been received from the built-in browser 111, the internal virtual server 141 accepts the connection. On the other hand, if it is determined that a connection has been received from the external browser 311, the external virtual server 142 accepts the connection. In the internal virtual server 141, only HTTP communication, which is unencrypted communication, is enabled, and in the external virtual server 142, only HTTPS communication, which is encrypted communication, is enabled.
[0049] As a result, when operating the screen from the built-in browser 111, unencrypted communication is performed, reducing the CPU load of the embedded device 10. On the other hand, for example, when connecting from an external network using HTTP communication, the destination address is not a loopback address, so there is no connection to the internal virtual server 141. On the other hand, the external virtual server 142 does not support HTTP communication, so there is no connection to the external virtual server 142 either. Therefore, unencrypted communication to the external network is rejected, so the security of the device is maintained.
[0050] The Web server 112 transmits the Web document 121 stored in the storage unit 12 to the built-in browser 111 via unencrypted HTTP communication, and causes the built-in browser 111 to display a first screen based on the Web document 121. On the other hand, the Web server 112 transmits the Web document 121 stored in the storage unit 12 to the external browser 311 via encrypted HTTPS communication, and causes the external browser 311 to display a second screen based on the Web document 121.
[0051] Here, the first screen and the second screen are a user authentication screen, which will be described later, or an operation screen of the embedded device 10. The first screen and the second screen are generated from the same Web document 121, and are therefore identical except for differences due to display settings that are individually determined for the embedded device 10 and the external terminal 30. The display settings are, for example, the frame rate of animations included in the screen, the frequency of thinning out events when the screen is enlarged, reduced, or scrolled, and are determined by cookies.
[0052] (2) User authentication Secondly, user authentication will be described. User authentication is a process executed to identify a valid user when the user starts using the embedded device 10.
[0053] When the embedded device 10 is operated from the external terminal 30 via an external network, strong user authentication is required as a security measure. On the other hand, security measures may be implemented in the location where the embedded device 10 is installed. In this case, user authentication is not required when the user directly touches and operates the embedded device 10.
[0054] In this way, the user authentication required differs between when the user operates the embedded device 10 by direct contact and when the user operates the embedded device 10 via an external network. Therefore, the display system 1 generates user authentication screens for these two cases using the same Web document 121, and switches the user authentication depending on the Web browser from which the connection originates.
[0055] First, when a user authentication request is received from external browser 311 via HTTPS communication, Web server 112 causes external browser 311 to display an input screen for user authentication as a second screen. More specifically, when a user of external terminal 30 operates operation unit 33 to use embedded device 10, external browser 311 transmits an HTML document for the user authentication request to embedded device 10 via HTTPS communication. The user authentication request is a request for accessing a URL (Uniform Resource Locator) of a user authentication input screen in Web document 121.
[0056] When a user authentication request is sent from the external browser 311, the Web server 112 receives the user authentication request via the external virtual server 142. Since the user authentication request is encrypted by HTTPS communication, the external virtual server 142 decrypts the received request. Then, in response to the request, the external virtual server 142 returns a Web document 121 for generating an input screen for user authentication to the external browser 311 via HTTPS communication.
[0057] Here, Web document 121 stored in storage unit 12 includes a description for generating a user authentication screen. The user authentication screen includes an input screen for user authentication and a completion screen for user authentication.
[0058] When the Web document 121 is returned, the external browser 311 analyzes the returned Web document 121, generates a screen, and displays it on the display unit 34. The external browser 311 displays, for example, a user authentication input screen shown in Fig. 4 on the display unit 34. The user of the external terminal 30 performs user authentication by operating the operation unit 33 to input a user name and a password on the user authentication input screen.
[0059] The external browser 311 transmits the input user name and password to the Web server 112 via HTTPS communication. The external virtual server 142 determines whether the user authentication is successful or unsuccessful depending on whether the user name and password transmitted from the external browser 311 are correct. The external virtual server 142 then transmits a Web document 121 for generating a user authentication completion screen back to the external browser 311 via HTTPS communication.
[0060] When user authentication is successful as a result of the operation accepted by the operation unit 33, the external browser 311 displays a screen indicating that user authentication has been successful, for example, as shown in Fig. 5, as a user authentication completion screen on the display unit 34. On the other hand, when user authentication is unsuccessful as a result of the operation accepted by the operation unit 33, the external browser 311 displays a screen indicating that user authentication has been unsuccessful, as a user authentication completion screen, on the display unit 34, although not shown in the figure.
[0061] On the other hand, when a user authentication request is received from the built-in browser 111 via HTTP communication, the Web server 112 does not display the user authentication input screen on the built-in browser 111, but instead displays a user authentication completion screen as the first screen on the built-in browser 111. More specifically, when a user of the embedded device 10 operates the operation unit 13 to use the embedded device 10, the built-in browser 111 transmits an HTML document of a user authentication request to the embedded device 10 via HTTP communication. The user authentication request is a request to access the URL of the user authentication input screen in the Web document 121.
[0062] When a user authentication request is sent from the built-in browser 111, the Web server 112 receives the user authentication request from the internal virtual server 141. At this time, since the user authentication request is not encrypted, the internal virtual server 141 does not execute decryption for the received request.
[0063] When a user authentication request is received from the built-in browser 111, it is assumed that high security is maintained if the user operates from the built-in browser 111. Therefore, the internal virtual server 141 skips the process of displaying the user authentication input screen and causes the built-in browser 111 to display a user authentication completion screen.
[0064] More specifically, when a user authentication request is received from the built-in browser 111, the internal virtual server 141 redirects or rewrites the URL to change the connection destination of the request from the user authentication input screen to the user authentication completion screen. Here, redirect means a mechanism for transferring to a different URL when a specific URL is accessed.
[0065] When performing redirection, the internal virtual server 141 transfers the request received with the URL of the user authentication input screen as the connection destination to the URL of the user authentication completion screen. Alternatively, when performing URL rewriting, the internal virtual server 141 changes the connection destination URL of the received request from the URL of the user authentication input screen to the URL of the user authentication completion screen.
[0066] By such redirection or URL rewriting, the internal virtual server 141 guides the user to a user authentication completion screen without displaying the user authentication input screen. As a result, the internal virtual server 141 returns the Web document 121 for generating a user authentication completion screen, rather than the user authentication input screen, to the built-in browser 111 via HTTP communication as a response to the request.
[0067] When the Web document 121 is returned, the built-in browser 111 analyzes the returned Web document 121, generates a screen, and displays it on the display unit 14. Specifically, the built-in browser 111 displays a screen indicating that the user authentication has been successful, such as that shown in Fig. 5, on the display unit 14 as a user authentication completion screen.
[0068] In this way, the Web server 112 does not execute a process to display a user authentication input screen when a user authentication request is received from the built-in browser 111. This makes it possible to reduce the load of user authentication processing on the embedded device 10.
[0069] (3) WebAPI authentication Thirdly, authentication of the WebAPI will be described. The application server 113 executes processing based on application software installed in the embedded device 10. The embedded device 10 is installed with application software prepared by the original developer vendor and application software for device operation developed by a third party other than the original developer vendor. The application software calls the WebAPI to operate the embedded device 10.
[0070] WebAPI refers to a mechanism in which an operation request for operating the embedded device 10 is sent in an HTML format document, and the embedded device 10 performs the operation according to the operation request and then returns a response document of the operation result. To prevent unauthorized operation of the embedded device 10, it is necessary to prepare an authentication mechanism that conforms to Web standards for determining whether or not to accept an operation request from an external network.
[0071] 2, the application server 113 includes the functions of an authentication control unit 131 and a WebAPI server 132. The authentication control unit 131 executes authentication processing for using application software. The WebAPI server 132 executes application processing, which is processing based on the application software.
[0072] When operating the embedded device 10 using the WebAPI, the built-in browser 111 or the external browser 311 sends an HTML document requesting operation of the embedded device 10 to a specified URL in the embedded device 10. Direct access to the application server 113 from the built-in browser 111 or the external browser 311 is not permitted, and access is made via a reverse proxy.
[0073] When the Web server 112 receives an HTML document of an operation request with a WebAPI URL as the connection destination from the built-in browser 111 via HTTP communication, it operates as an internal reverse proxy and transfers the received HTML document to the application server 113. On the other hand, when the Web server 112 receives an HTML document of an operation request with a WebAPI URL as the connection destination from the external browser 311 via HTTPS communication, it operates as an external reverse proxy and decrypts the received HTML document before transferring it to the application server 113. Because the Web server 112 decrypts the HTML document, the application server 113 does not need to support encrypted HTTPS communication.
[0074] In the application server 113, the authentication control unit 131 performs authentication processing for an operation request before the WebAPI server 132 actually operates the WebAPI. The authentication processing by the authentication control unit 131 is authentication processing for protecting the WebAPI, which is separate from user authentication for a user to access the embedded device 10 itself.
[0075] Specifically, the authentication control unit 131 determines whether or not the HTML document of the operation request contains correct authentication information. If the HTML document of the operation request does not contain correct authentication information, the authentication control unit 131 rejects the operation request and does not transfer it to the WebAPI server 132.
[0076] Here, the authentication information is added to the HTML document of the operation request by the Web browser if the user authentication on the user authentication screen shown in Fig. 4 is successful. Therefore, if the user operates from the external browser 311, the correct authentication information is added to the HTML document of the operation request. On the other hand, if the user operates from the built-in browser 111, the user authentication on the user authentication screen is skipped, and the correct authentication information is not added to the HTML document of the operation request.
[0077] When an HTML document of an operation request is sent from the built-in browser 111, the authentication control unit 131 does not execute authentication processing, and unconditionally passes the HTML document of the operation request to the WebAPI server 132. This prevents the authentication control unit 131 from rejecting the operation request sent from the built-in browser 111.
[0078] The authentication control unit 131 judges whether the sender of the operation request transferred from the Web server 112 to the application server 113 is the built-in browser 111 or the external browser 311. Here, since the operation request is transferred from the Web server 112 functioning as a reverse proxy, the direct sender from the application server 113 is the reverse proxy regardless of whether the operation request is sent from the built-in browser 111 or the external browser 311. Therefore, the sender address as seen from the application server 113 is a loopback address in either case.
[0079] In order to enable the application server 113 to distinguish whether the sender of an operation request is the built-in browser 111 or the external browser 311, the Web server 112 further includes the functions of address assignment units 143 and 144 as shown in FIG.
[0080] When the Web server 112 receives an operation request transmitted from the built-in browser 111 via the internal virtual server 141, the address assignment unit 143 assigns a loopback address to the received operation request as the source address of the operation request. When the Web server 112 receives an operation request transmitted from the external browser 311 via the external virtual server 142, the address assignment unit 144 assigns the address of the external browser 311 to the received operation request as the source address of the operation request.
[0081] More specifically, when the Web server 112 receives an operation request from the built-in browser 111 or the external browser 311, the Web server 112 assigns the sender's address to the operation request by adding the sender's address to the header or query parameter of the operation request.
[0082] In a first address assignment method, the Web server 112 operating as a reverse proxy adds the address of the sender to the header of the operation request. The header of the operation request specifically corresponds to the HTML header, which is the header of the HTML document of the operation request. The HTML document includes a header and a body based on the HTML specifications. When an HTML document is used in the WebAPI, the operation request is described in the body of the HTML document.
[0083] In addition to standard header names defined by official standards, non-standard header names can be used in HTML headers. There is no standard header name for assigning the sender's address. However, as a de facto standard, the sender's address is often assigned to an HTML header name of X-Forwarded-For or X-Real-IP. Therefore, Web server 112 adds the sender's address to X-Forwarded-For or X-Real-IP.
[0084] In this case, the authentication control unit 131 judges whether X-Forwarded-For or X-Real-IP exists in the HTML header of the HTML document. If the content of X-Forwarded-For or X-Real-IP is a loopback address, the authentication control unit 131 skips the authentication process and passes the HTML document to the WebAPI server 132.
[0085] Alternatively, as a second address assignment method, the Web server 112 operating as a reverse proxy may add the address of the sender to a query parameter of the operation request. A query parameter means information added to the end of a URL. When using a query parameter, the Web server 112 adds the address of the sender to the query parameter of the URL of the Web API to which the operation request is connected.
[0086] In this case, the authentication control unit 131 acquires the URL of the HTML document. If the source address of the URL query parameter is a loopback address, the authentication control unit 131 skips the authentication process and passes the HTML document to the WebAPI server 132.
[0087] Both the first address assignment method and the second address assignment method require rewriting by a reverse proxy. In particular, the first address assignment method requires updating of the contents of the HTML document. In encrypted HTTPS communication, the contents of the communication cannot be referred to or tampered with in the middle of the communication path. Therefore, before rewriting by the reverse proxy, the HTTPS server needs to decrypt the operation request sent from the external browser 311. Meanwhile, as described above, the Web server 112 having the function of distributing the Web document 121 functions as an HTTPS server. Therefore, in the first embodiment, the Web server 112 and the reverse proxy are not separated as separate units, and the Web server 112 operates as a reverse proxy.
[0088] When the sender address is assigned to the operation request in this manner, the Web server 112 transfers the operation request to the application server 113. In the application server 113, the authentication control unit 131 determines whether the sender of the operation request is the built-in browser 111 or the external browser 311, based on the sender address assigned to the operation request.
[0089] If it is determined that the sender is the external browser 311, the authentication control unit 131 executes authentication processing based on the user authentication information included in the operation request. If the authentication is successful, the authentication control unit 131 transfers the operation request to the WebAPI server 132. On the other hand, if the authentication control unit 131 determines that the sender is the built-in browser 111, it does not execute authentication processing and transfers the operation request as is to the WebAPI server 132.
[0090] In this way, the authentication control unit 131 uses the authenticated result on the user authentication screen when an operation request is sent from the external browser 311, and skips the authentication process when an operation request is sent from the built-in browser 111. This reduces the burden on the user because there is no need to perform both user authentication for the embedded device 10 itself and authentication for the WebAPI.
[0091] In particular, when the WebAPI is protected by authentication, it is necessary to disclose the authentication specifications of the WebAPI to the developer of the application and develop the application software according to the specifications. On the other hand, when application software developed by a third party is loaded into the embedded device 10, if only certified application software is loaded into the embedded device 10, there is no risk of the WebAPI being used illegally and the embedded device 10 is not manipulated illegally. Therefore, if the application software is allowed to use the WebAPI without authentication, it becomes unnecessary to disclose the authentication specifications of the embedded device 10 to a third party and the burden on the user of the embedded device 10 can be reduced.
[0092] When the WebAPI server 132 receives an operation request from the authentication control unit 131, it executes application processing based on application software in accordance with the transferred operation request. For example, if the embedded device 10 is an air conditioning controller, the application processing is processing related to air conditioning control. When executing application processing, the WebAPI server 132 instructs the Web server 112 to display an operation screen for executing the application processing on the built-in browser 111 or the external browser 311.
[0093] More specifically, when an operation request is received from the built-in browser 111 via HTTP communication, the Web server 112 causes the built-in browser 111 to display an operation screen as a first screen. In this case, the Web server 112 operates as an internal virtual server 141, and transmits a Web document 121 for generating an operation screen of the embedded device 10 to the built-in browser 111 via HTTP communication as a response to the operation request. Here, the Web document 121 stored in the storage unit 12 includes a description for generating the operation screen.
[0094] When the Web document 121 is transmitted, the built-in browser 111 analyzes the Web document 121 to generate an operation screen, which is displayed on the display unit 14. As an example, when the embedded device 10 is an air conditioning controller, the built-in browser 111 displays the operation screen shown in Fig. 6 on the display unit 14. While viewing such an operation screen, the user can input settings such as turning the air conditioning on / off, switching the operation mode, and setting the set temperature and air volume.
[0095] On the other hand, when an operation request is received from the external browser 311 via HTTPS communication, after the authentication control unit 131 executes the authentication process as described above, the Web server 112 causes the external browser 311 to display an operation screen as a second screen. In this case, the Web server 112 operates as the external virtual server 142, and returns the Web document 121 for generating the operation screen of the embedded device 10 to the external browser 311 via HTTPS communication as a response to the operation request.
[0096] When the Web document 121 is transmitted, the external browser 311 analyzes the Web document 121 to generate an operation screen, and displays the operation screen similar to that shown in Fig. 6 on the display unit 34. The operation screen displayed on the built-in browser 111 and the operation screen displayed on the external browser 311 are the same, except for differences due to display settings.
[0097] The built-in browser 111 and the external browser 311 accept operation information input by the user on such an operation screen, and transmit it to the Web server 112 and the WebAPI server 132. The WebAPI server 132 executes application processing according to the transmitted operation information.
[0098] Next, the flow of processing executed by the display system 1 will be described with reference to FIGS.
[0099] First, the user authentication process executed by the embedded device 10 will be described with reference to Fig. 7. The user authentication process shown in Fig. 7 is executed when a user desires to start using the embedded device 10 by operating the operation unit 13 of the embedded device 10 or the operation unit 33 of the external terminal 30.
[0100] When the user authentication process starts, the Web server 112 of the embedded device 10 receives a request for user authentication (step S101). More specifically, when the user operates the operation unit 13 of the embedded device 10, the built-in browser 111 transmits an HTML document requesting user authentication to the Web server 112 via the internal communication of the embedded device 10. In contrast, when the user operates the operation unit 33 of the external terminal 30, the external browser 311 transmits an HTML document requesting user authentication to the Web server 112 via the external network. The Web server 112 receives the HTML document requesting user authentication transmitted from the built-in browser 111 or the external browser 311 in this manner.
[0101] When receiving a user authentication request, the Web server 112 judges the sender of the received request (step S102). More specifically, the Web server 112 judges whether the sender address is a loopback address or not. If the sender address is a loopback address, the Web server 112 judges that the sender is the built-in browser 111, and if the sender address is an address other than a loopback address, the Web server 112 judges that the sender is the external browser 311.
[0102] If the request source is the external browser 311 (step S102; external browser), the Web server 112 accepts the connection via the external virtual server 142 (step S103). The external virtual server 142 decrypts the received request.
[0103] When the connection is accepted, the external virtual server 142 transmits the Web document 121 describing the user authentication input screen to the external browser 311, and causes the display unit 34 to display, for example, the user authentication input screen shown in FIG. 4 (step S104).
[0104] When the user authentication input screen is displayed, the external virtual server 142 receives the user name and password entered on the user authentication input screen from the external browser 311, and determines whether the user authentication has been successful (step S105).
[0105] If the authentication fails (step S105; NO), the external virtual server 142 transmits the Web document 121 describing an authentication failure screen to the external browser 311, and causes the display unit 34 to display the authentication failure screen (step S106).
[0106] On the other hand, if the authentication is successful (step S105; YES), the external virtual server 142 sends a Web document 121 describing an authentication success screen to the external browser 311, and displays, for example, the authentication success screen shown in FIG. 5 on the display unit 34 (step S107).
[0107] On the other hand, in step S102, if the sender of the user authentication request is the built-in browser 111 (step S102; built-in browser), the Web server 112 accepts the connection via the internal virtual server 141 (step S108).
[0108] When the connection is accepted, the internal virtual server 141 directs the received request to the URL of the authentication success screen by redirecting or rewriting the URL (step S109). Then, the internal virtual server 141 transmits the Web document 121 describing the authentication success screen to the built-in browser 111, and causes the display unit 14 to display, for example, the authentication success screen shown in Fig. 5 (step S110). With the above, the user authentication process shown in Fig. 7 ends.
[0109] Secondly, the operation screen display process executed by the embedded device 10 will be described with reference to Fig. 8. The operation screen display process shown in Fig. 8 is executed after the user authentication by the user authentication process shown in Fig. 7 is successful.
[0110] When the operation screen display process starts, the Web server 112 receives an operation request from the embedded device 10 (step S201). More specifically, when the user operates the operation unit 13 of the embedded device 10, the built-in browser 111 transmits an HTML document of the operation request to the Web server 112 via the internal communication of the embedded device 10. In contrast, when the user operates the operation unit 33 of the external terminal 30, the external browser 311 transmits an HTML document of the operation request to the Web server 112 via the external network. The Web server 112 receives the HTML document of the operation request transmitted from the built-in browser 111 or the external browser 311 in this manner.
[0111] When receiving an operation request, the Web server 112 judges the sender of the received operation request (step S202). More specifically, the Web server 112 judges whether the sender address is a loopback address or not. If the sender address is a loopback address, the Web server 112 judges that the sender is the built-in browser 111, and if the sender address is an address other than a loopback address, the Web server 112 judges that the sender is the external browser 311.
[0112] When the sender of the operation request is the external browser 311 (step S202; external browser), the Web server 112 accepts the connection through the external virtual server 142 (step S203). The external virtual server 142 decrypts the received operation request.
[0113] When the connection is accepted, the address assignment unit 144 assigns the address of the sender to the operation request (step S204). Specifically, the address assignment unit 144 adds the address of the external browser 311 as the address of the sender to the header or query parameter of the received operation request.
[0114] After assigning the sender address, address assigner 144 transfers the operation request to application server 113 (step S205).
[0115] On the other hand, in step S202, if the sender of the operation request is the built-in browser 111 (step S202; built-in browser), the Web server 112 accepts the connection via the internal virtual server 141 (step S206).
[0116] When the connection is accepted, the address assignment unit 143 assigns the address of the sender to the operation request (step S207). Specifically, the address assignment unit 144 adds a loopback address as the address of the sender to the header or query parameter of the received operation request.
[0117] After assigning the sender address, address assigner 144 transfers the operation request to application server 113 (step S208).
[0118] When the operation request is transferred from the Web server 112, the authentication control unit 131 in the application server 113 determines the sender of the transferred operation request (step S209). Specifically, the authentication control unit 131 determines whether the sender of the operation request is the external browser 311 or the built-in browser 111, based on the address attached to the operation request.
[0119] If the sender is the external browser 311 (step S209; external browser), the authentication control unit 131 executes authentication processing (step S210). Specifically, the authentication control unit 131 determines whether or not the transferred operation request contains correct authentication information provided by the external browser 311 during user authentication. If the operation request contains correct authentication information, the authentication control unit 131 determines that the authentication has been successful, and passes the operation request to the WebAPI server 132. On the other hand, if the operation request does not contain correct authentication information, the authentication control unit 131 determines that the authentication has failed, and does not pass the operation request to the WebAPI server 132.
[0120] On the other hand, if the sender is the built-in browser 111 (step S209; built-in browser), the authentication control unit 131 skips the authentication process in step S210, and passes the transferred operation request to the WebAPI server 132 unconditionally.
[0121] When the operation request is transferred from the authentication control unit 131, the WebAPI server 132 displays an operation screen on the built-in browser 111 or the external browser 311 via the Web server 112. Then, the WebAPI server 132 executes application processing based on the transferred operation request (step S211).
[0122] More specifically, the WebAPI server 132 instructs the Web server 112 to display an operation screen. The Web server 112 transmits a Web document 121 describing the operation screen to the Web browser that has sent the operation request, either the built-in browser 111 or the external browser 311, and displays the operation screen shown in Fig. 6, for example, on the display unit 14 or the display unit 34. The WebAPI server 132 executes application processing according to operation information input by the user to the operation screen. With the above, the operation screen display processing shown in Fig. 8 ends.
[0123] As described above, in the embedded device 10 according to the first embodiment, the Web server 112 transmits the Web document 121 stored in the storage unit 12 to the built-in browser 111 via unencrypted communication, and causes the built-in browser 111 to display a first screen based on the Web document 121. On the other hand, the Web server 112 transmits the Web document 121 stored in the storage unit 12 to the external browser 311 via encrypted communication, and causes the external browser 311 to display a second screen based on the Web document 121.
[0124] In this way, in the embedded device 10 that displays a screen based on the same Web document 121 on the built-in browser 111 and the external browser 311, different security measures are applied to the built-in browser 111 and the external browser 311, so it is possible to reduce the processing load in communication with the built-in browser 111. As a result, it is possible to improve the performance of the embedded device 10.
[0125] Furthermore, when the embedded device 10 according to the first embodiment receives a user authentication request from the external browser 311, it displays an input screen for user authentication on the external browser 311, whereas when the embedded device 10 receives a user authentication request from the built-in browser 111, it does not display an input screen for user authentication on the built-in browser 111, but displays a user authentication completion screen on the built-in browser 111. In this way, it is possible to switch the user authentication method in consideration of the difference in security between the case where a connection is made from the built-in browser 111 and the case where a connection is made from the external browser 311. As a result, it is possible to improve the operability for the user.
[0126] Furthermore, in the embedded device 10 according to the first embodiment, the Web server 112 that distributes the Web document 121 also serves as a reverse proxy for the WebAPI, and also operates a virtual server. This allows the single Web server 112 to function as four different servers, namely an external Web server, an external reverse proxy, an internal Web server, and an internal reverse proxy. As a result, the resources of the embedded device 10 can be saved.
[0127] Furthermore, in the embedded device 10 according to the first embodiment, when the Web server 112 receives a request for user authentication from the built-in browser 111, the Web server 112 changes the connection destination of the request for user authentication from the input screen for user authentication to a completion screen by redirecting or rewriting the URL. The process of switching the screen between the connection from the built-in browser 111 and the connection from the external browser 311 can also be realized by describing it in JavaScript in the Web document 121. However, the source code of the JavaScript in the Web document 121 can be referenced from the Web browser. Therefore, describing internal processing in JavaScript can lead to the internal processing being leaked. In the first embodiment, since redirecting or rewriting the URL is used, only processing that may be leaked can be described in the source code of the JavaScript in the Web document 121, and the leakage of the internal processing can be prevented.
[0128] (Embodiment 2) Next, a description will be given of embodiment 2. Descriptions of configurations and functions similar to those of embodiment 1 will be omitted where appropriate.
[0129] In the above-mentioned first embodiment, the Web server 112 can omit user authentication when the built-in browser 111 connects to the Web server 112 by rewriting or redirecting the URL of the user authentication screen. In contrast, in the second embodiment, when the built-in browser 111 connects to the Web server 112, the Web server 112 guides the user to a screen for performing user authentication using the authentication device 400 mounted on the embedded device 10.
[0130] A user who operates the external browser 311 is usually located in a place physically distant from the embedded device 10, and therefore has difficulty operating a hardware device mounted on the embedded device 10. However, in a configuration in which an application server 113 capable of operating hardware devices runs on the embedded device 10, a user who operates the built-in browser 111 can operate the hardware device. Taking advantage of this, in the second embodiment, an authentication device 400 is mounted on the embedded device 10 as a hardware device, and the authentication device 400 is used to authenticate a user who operates the embedded device 10.
[0131] A configuration related to user authentication in the second embodiment will be described with reference to Fig. 9. The embedded device according to the second embodiment further includes an authentication device 400. The authentication device 400 is a device that authenticates a user who operates the embedded device .
[0132] The authentication device 400 is, for example, a biometric authentication device that performs biometric authentication of a user, such as fingerprint authentication, face authentication, vein authentication, iris authentication, etc. Alternatively, the authentication device 400 may be a reading device that reads an ID (Identification) card held by a user, such as a contact IC (Integrated Circuit) card reader, an NFC (Near Field Communication) reader, etc.
[0133] In this way, the authentication device 400 is a device that the user can operate at hand while viewing the built-in browser 111. In order for the authentication device 400 to perform user authentication, the user needs to have physical access to the authentication device 400.
[0134] When the Web server 112 receives a user authentication request from the built-in browser 111 via unencrypted HTTP communication, it uses the function of the internal virtual server 141 to cause the built-in browser 111 to display, as the first screen, a screen that prompts the user to operate the authentication device 400.
[0135] Specifically, the Web server 112 redirects or rewrites the URL to change the connection destination of the user authentication request from the user authentication input screen shown in Fig. 4 to a screen that prompts the user to operate the authenticated device 400. The Web server 112 then transmits a Web document 121 for generating a screen that prompts the user to operate the authenticated device 400 to the built-in browser 111 via HTTP communication. Note that in the second embodiment, the Web document 121 includes a description for generating a screen that prompts the user to operate the authenticated device 400.
[0136] The built-in browser 111 displays on the display unit 14, as a first image based on the Web document 121 transmitted from the Web server 112, a screen instructing the user to perform user authentication using the authentication device 400, as shown in Fig. 10. When the user sees such a screen, he or she physically accesses the authentication device 400 and performs biometric authentication or card reading authentication.
[0137] At this time, the Web server 112 assigns a loopback address, which is the address of the sender, to the user authentication request sent from the built-in browser 111 by the address assignment unit 143, and transfers the user authentication request to the application server 113. As a result, the Web server 112 calls a WebAPI for controlling the authentication device 400, and starts the operation of the authentication device 400. The user authentication request is transferred to the WebAPI server 132 without being subjected to authentication processing by the authentication control unit 131, similar to the operation request sent from the built-in browser 111 described in the first embodiment.
[0138] Thereafter, the WebAPI server 132 monitors the authentication device 400 and determines whether or not the user authentication by the authentication device 400 has been successful. Then, the WebAPI server 132 notifies the built-in browser 111 of the result of the user authentication via the Web server 112. For example, if the user authentication is successful, the WebAPI server 132 causes the built-in browser 111 to display a screen indicating that the user authentication has been successful, as shown in FIG. 5, via the Web server 112. On the other hand, if the user authentication has failed, the WebAPI server 132 causes the built-in browser 111 to display a screen indicating that the user authentication has failed, via the Web server 112.
[0139] Notification from the WebAPI server 132 to the built-in browser 111 must comply with Web specifications. One method is to periodically inquire about the result of user authentication by polling from JavaScript running on the built-in browser 111. Another method is to have the built-in browser 111 connect to the WebAPI server 132 using WebSocket technology when the authentication device 400 starts operating, and have the WebAPI server 132 notify the built-in browser 111 of the success of user authentication via WebSocket.
[0140] When a user authentication request is received from the external browser 311 via encrypted HTTPS communication, the Web server 112 executes the same process as in the first embodiment using the function of the external virtual server 142. Specifically, the Web server 112 transmits the Web document 121 stored in the storage unit 12 to the external browser 311 via HTTPS communication. Then, the Web server 112 causes the external browser 311 to display, as a second screen, for example, an input screen for user authentication that does not use the authentication device 400, as shown in FIG.
[0141] The authentication device 400 may be pre-installed in the embedded device 10 at the time of shipment from the factory. Alternatively, the authentication device 400 may be added later to the embedded device 10 by being connected to a slot, a USB connector, or the like provided in the embedded device 10. As described above, application software can be added later to the application server 113. Therefore, by implementing a WebAPI that operates the authentication device 400 as application software, user authentication by the authentication device 400 can also be added later as user authentication.
[0142] The authentication device 400 is not limited to being a biometric authentication device or a reading device. For example, the authentication device 400 may be a device that performs user authentication using a PIN (Personal Identification Number) code. When a PIN code is used, a user name and a password are written in a local storage area of the embedded device 10. The four-digit number of the PIN code is used as an access key to the local storage area. When a PIN code is used, hardware access to the local storage area is also required, so a method similar to that when the authentication device 400 is a biometric authentication device or a reading device can be used.
[0143] (Embodiment 3) Next, a description will be given of embodiment 3. Descriptions of configurations and functions similar to those of embodiments 1 and 2 will be omitted where appropriate.
[0144] In the above-mentioned first embodiment, the Web server 112 has the functions of the internal virtual server 141 and the external virtual server 142. In contrast, in the third embodiment, the Web server 112 does not have the functions of a virtual server.
[0145] One method for providing a difference in security between connections from the built-in browser 111 and connections from the external browser 311 without using the virtual server function is to operate both an HTTP server and an HTTPS server on one server. Specifically, one Web server 112 can operate as both an HTTP server and an HTTPS server.
[0146] In this case, when the Web server 112 receives a connection from the built-in browser 111 via internal communication, the Web server 112 receives the connection via the HTTP server. On the other hand, when the Web server 112 receives a connection from the external browser 311 on the external terminal 30 via the external network, the Web server 112 receives the connection via the HTTPS server. At this time, the Web server 112 controls the built-in browser 111 to be able to connect to the HTTP server by using a firewall function, but not to be able to connect to the HTTP server from the external network. This solves the problem of providing a difference in security between connections from the built-in browser 111 and connections from the external browser 311.
[0147] However, when both an HTTP server and an HTTPS server are operated on one server, the HTTP server and the HTTPS server are not separated, so redirection and URL rewriting cannot be performed depending on whether the connection originates from the built-in browser 111 or the external browser 311.
[0148] One method for redirecting and rewriting URLs without using the virtual server function is to take advantage of the different port numbers used by the HTTP server and the HTTPS server and prepare two identical Web servers 112. More specifically, one of the two Web servers 112 starts up with settings for HTTP, and the other starts up with settings for HTTPS.
[0149] In this case, since the HTTP settings and the HTTPS settings are separate, it becomes possible to support redirection and URL rewriting depending on whether the connection originates from the built-in browser 111 or the external browser 311. However, when two Web servers 112 are started in this way, there is a problem that the resources used by the embedded device 10 increase.
[0150] Therefore, in the third embodiment, virtualization of the Web server 112 is adopted. Here, virtualization of the Web server 112 means starting one Web server application and running multiple different Web servers within that Web server application. In other words, virtualization of the Web server 112 means a function that can be realized by the Web server software alone and that the Web server software has. The Web server software refers to, for example, Nginx (registered trademark).
[0151] In the third embodiment, virtual machine technology is used as one method for virtualizing the Web server 112. In order to use the virtual machine technology, virtual machine software is required in addition to the Web server software. The virtual machine software is, for example, Linux (registered trademark) KVM, VirtualBox, or VMWare (registered trademark).
[0152] When the virtual machine technology is used, multiple virtual machines run on the embedded device 10. Then, multiple virtual web servers run on the multiple virtual machines as the web server 112. The web server 112 performs unencrypted communication with the built-in browser 111 via a first virtual machine, and performs encrypted communication with the external browser 311 via a second virtual machine.
[0153] Specifically, as shown in FIG. 11, the embedded device 10 according to the third embodiment has the functions of a plurality of virtual machines 1 to 3. Each of the virtual machines 1 to 3 runs on a host OS (Operating System) 550 of the embedded device 10. The virtual machines 1 to 3 run on libraries 512, 522, and 532, respectively. An OS 513 and an HTTP server 511 run on the first virtual machine 1. An OS 523 and an HTTPS server 521 run on the second virtual machine 2. An OS 533 and an application server 531 run on the third virtual machine 3. In this way, different OSs run individually on the virtual machines 1 to 3, and a server runs individually on each OS.
[0154] When the built-in browser 111 connects to the Web server 112, the HTTP server 511 running on the first virtual machine 1 accepts the connection. On the other hand, when the external browser 311 connects to the Web server 112, the HTTPS server 521 running on the second virtual machine 2 accepts the connection. Then, the first virtual machine 1 executes a process similar to that of the internal virtual server 141 described in the first embodiment, the second virtual machine 2 executes a process similar to that of the external virtual server 142 described in the first embodiment, and the third virtual machine 3 executes a process similar to that of the application server 113 described in the first embodiment. At this time, the first virtual machine 1 and the second virtual machine 2 use a common Web document 121 by sharing a network file between different virtual machines.
[0155] As described above, in the third embodiment, the Web server 112 operates a plurality of virtual machines 1 to 3 on the embedded device 10 without using a virtual server function. The Web server 112 operates an HTTP server 511 on the first virtual machine 1, and an HTTPS server 521 on the second virtual machine 2. Since access from an external network is limited to the second virtual machine 2, security can be improved.
[0156] 11 shows an example of using a virtual machine called a host type among several types of virtual machines. However, even if a different type of virtual machine is used, the fact that multiple virtual machines are operated on the same embedded device 10 remains unchanged, so other types of virtual machines may also be used.
[0157] (Embodiment 4) Next, a description will be given of embodiment 4. Descriptions of configurations and functions similar to those of embodiments 1 to 3 will be omitted where appropriate.
[0158] In the above-mentioned third embodiment, multiple virtual machines are operated on the embedded device 10. However, since the hardware resources of the embedded device 10, such as the CPU and memory, are smaller than those of a general personal computer, it may be difficult to operate multiple virtual machines. Therefore, in the fourth embodiment, a container virtualization technique is used as another method for virtualizing the Web server 112.
[0159] Container virtualization technology is a simple virtualization software that can be realized with fewer hardware resources than a virtual machine. To use container virtualization technology, container virtualization software is required in addition to web server software. An example of container virtualization software is Docker (registered trademark).
[0160] In container virtualization, the Web server 112 and a configuration file required for its operation are collected into a single package called a container, and run on a container-by-container basis. In other words, multiple containers are generated on the embedded device 10. Then, multiple virtual Web servers run on the multiple containers as the Web servers 112. Container virtualization is similar to the method of starting multiple identical Web servers 112, but in container virtualization, the file system is separated for each running container.
[0161] In the configuration using virtual machines described in the third embodiment, the machines themselves are virtualized and an independent OS runs on each virtual machine. In contrast, in container virtualization, the only OS running is the OS of the embedded device 10, so that in principle, fewer hardware resources are used than in the configuration using virtual machines.
[0162] The Web server 112 performs unencrypted communication with the built-in browser 111 using a first container generated by container virtualization technology, and performs encrypted communication with the external browser 311 using a second container generated by container virtualization technology.
[0163] Specifically, as shown in Fig. 12, the embedded device 10 according to the fourth embodiment includes a plurality of containers 1 to 3 and the functions of a container management unit 640. Each of the containers 1 to 3 is managed by the container management unit 640, and runs on an OS 650 of the embedded device 10. The containers 1 to 3 run based on libraries 612, 622, and 632, respectively. An HTTP server 611 runs on the first container 1. An HTTPS server 621 runs on the second container 2. An application server 631 runs on the third container 3. In this way, different OSs run individually on each virtual machine, and a server runs individually on each OS.
[0164] When the built-in browser 111 connects to the Web server 112, the HTTP server 611 operating on the first container 1 accepts the connection. On the other hand, when the external browser 311 connects to the Web server 112, the HTTPS server 621 operating on the second container 2 accepts the connection. Then, the first container 1 executes a process similar to that of the internal virtual server 141 described in the first embodiment, the second container 2 executes a process similar to that of the external virtual server 142 described in the first embodiment, and the third container 3 executes a process similar to that of the application server 113 described in the first embodiment.
[0165] The redirection and URL rewriting of the Web server 112 are set in the first container 1. Since it is also possible to access the file system of the embedded device 10 itself from each of the containers 1 to 3, the Web document 121 for sharing the screen may be placed in the file system of the embedded device 10 side.
[0166] As described above, in the fourth embodiment, the Web server 112 generates multiple containers 1 to 3 on the embedded device 10. The Web server 112 operates an HTTP server 611 on the first container 1, and operates an HTTPS server 621 on the second container 2. Since the file systems are separated for each container, by including a screen dedicated to the built-in browser 111 only in the first container 1, the screen dedicated to the built-in browser 111 cannot be accessed from the external network.
[0167] (Modification) Although the embodiments have been described above, it is possible to combine the embodiments, or to modify or omit the embodiments as appropriate.
[0168] For example, in the above embodiment, the embedded device 10 implements different security measures for each of (1) communication encryption, (2) user authentication, and (3) WebAPI authentication between the display process in the built-in browser 111 and the display process in the external browser 311. However, the embedded device 10 is not limited to implementing different security measures for all of (1) to (3), and may implement different security measures for at least one of (1) to (3).
[0169] Also, the user authentication screen for the built-in browser 111 may be changed according to a setting input by the user. For example, when the Web server 112 receives a request for user authentication from the built-in browser 111, the Web server 112 displays, by default, the same input screen for user authentication as that when the request for user authentication is received from the external browser 311 on the built-in browser 111. When the Web server 112 receives a request for user authentication from the built-in browser 111, the Web server 112 may switch between displaying a default input screen on the built-in browser 111 or displaying a completion screen for user authentication without displaying the input screen, according to a setting input by the user via the operation unit 13. Furthermore, an option to display a screen for prompting the user to operate the authentication device 400 described in the second embodiment may be added. The Web server 112 can switch the screen to be displayed when the request for user authentication is received from the built-in browser 111 by redirecting or rewriting the URL, according to a setting input by the user.
[0170] In the above embodiment, the embedded device 10 has been described as an air conditioning controller. However, the embedded device 10 is not limited to this, and may be an electronic device such as a water heater, a rice cooker, a washing machine, a refrigerator, or a television, or may be a controller for operating these devices.
[0171] In the above embodiment, the unencrypted communication and the encrypted communication are respectively described as HTTP and HTTPS communication, but communication methods other than HTTP and HTTPS may be used.
[0172] In the above embodiment, the control unit 11 functions as the built-in browser 111, the Web server 112, and the application server 113 by the CPU executing the program stored in the storage unit 12. Also, the control unit 31 functions as the external browser 311 by the CPU executing the program stored in the storage unit 32. However, the control units 11 and 31 may be dedicated hardware. The dedicated hardware is, for example, a single circuit, a composite circuit, a programmed processor, an ASIC (Application Specific Integrated Circuit), an FPGA (Field-Programmable Gate Array), or a combination of these. When the control units 11 and 31 are dedicated hardware, the functions of each unit may be realized by individual hardware, or the functions of each unit may be realized together by a single piece of hardware.
[0173] In addition, some of the functions of each unit may be realized by dedicated hardware, and other parts may be realized by software or firmware. In this way, the control units 11 and 31 can realize each of the above-mentioned functions by hardware, software, firmware, or a combination of these.
[0174] By applying a program that specifies the operation of each of the embedded device 10 and the external terminal 30 to an existing computer such as a personal computer or an information terminal device, it is also possible to cause the computer to function as each of the embedded device 10 and the external terminal 30.
[0175] Furthermore, such programs may be distributed in any manner, and may be distributed by storing them on a computer-readable recording medium such as a CD-ROM (Compact Disk ROM), a DVD (Digital Versatile Disk), an MO (Magneto Optical Disk), or a memory card, or may be distributed via a communications network such as the Internet.
[0176] Various embodiments and modifications of the present disclosure are possible without departing from the broad spirit and scope of the present disclosure. The above-described embodiments are for explaining the present disclosure and do not limit the scope of the present disclosure. That is, the scope of the present disclosure is indicated by the claims, not the embodiments. Various modifications made within the scope of the claims and the scope of the disclosure equivalent thereto are considered to be within the scope of the present disclosure. [Explanation of symbols]
[0177] 1 display system, 10 embedded device, 11,31 control unit, 12,32 memory unit, 13,33 operation unit, 14,34 display unit, 15,35 communication unit, 30 external terminal, 111 built-in browser, 112 Web server, 113,531,631 application server, 121 Web document, 131 authentication control unit, 132 WebAPI server, 141 internal virtual server, 142 external virtual server, 143,144 address assignment unit, 311 external browser, 400 authentication device, 511,611 HTTP server, 521,621 HTTPS server, 512,522,532,612,622,632 library, 513,523,533,550,650 OS, 640 container management unit
Claims
1. An embedded device communicably connected to an external terminal having an external browser, A storage unit for storing a Web document; The built-in browser transmitting the Web document stored in the storage unit to the built-in browser via unencrypted communication and displaying a first screen based on the Web document on the built-in browser; a web server that transmits the web document stored in the storage unit to the external browser via encrypted communication and causes the external browser to display a second screen based on the web document; The web server includes: The unencrypted communication is performed between the internal virtual server and the built-in browser, performing the encrypted communication with the external browser by an external virtual server; Embedded devices.
2. The web server includes: when a request for user authentication is received from the built-in browser via the unencrypted communication, displaying a completion screen for the user authentication on the built-in browser as the first screen, without displaying an input screen for the user authentication on the built-in browser; when the request for user authentication is received from the external browser via the encrypted communication, the input screen is displayed on the external browser as the second screen. The embedded device according to claim 1 .
3. when the Web server receives the request for user authentication from the built-in browser, the Web server changes the connection destination of the received request from the input screen to the completion screen by redirecting or rewriting a URL. The embedded device according to claim 2.
4. When the Web server receives the request for user authentication from the built-in browser or the external browser, the Web server determines whether the sender of the received request is the built-in browser or the external browser based on whether the sender address of the received request corresponds to a loopback address. The embedded device according to claim 2 or 3.
5. when the Web server receives the request for user authentication from the built-in browser, it switches between displaying the input screen as the first screen on the built-in browser, or displaying the completion screen on the built-in browser without displaying the input screen as the first screen, according to a setting input by a user. The embedded device according to claim 2 or 3.
6. The web server includes: When an operation request is received from the built-in browser via the unencrypted communication, an operation screen of the embedded device is displayed on the built-in browser as the first screen; when the operation request is received from the external browser via the encrypted communication, the operation screen is displayed on the external browser as the second screen. The embedded device according to any one of claims 1 to 3.
7. the embedded device further comprises an application server that executes an authentication process for using application software and an application process based on the application software; The application server includes: When the Web server receives an operation request from the built-in browser via the unencrypted communication, the Web server executes the application process without executing the authentication process; When the Web server receives the operation request from the external browser via the encrypted communication, the Web server executes the authentication process and then executes the application process. The embedded device according to any one of claims 1 to 3.
8. When the Web server receives the operation request from the built-in browser or the external browser, the Web server assigns an address of a sender of the received operation request to the operation request; the application server determines whether the sender is the built-in browser or the external browser based on the sender address added to the operation request; The embedded device according to claim 7.
9. when the Web server receives the operation request from the built-in browser or the external browser, the Web server adds the address of the sender to a header or a query parameter of the received operation request, thereby assigning the address of the sender to the operation request; The embedded device according to claim 8.
10. the embedded device further includes an authentication device that authenticates a user who operates the embedded device; The web server includes: when a request for user authentication is received from the built-in browser via the unencrypted communication, a screen prompting the user to operate the authentication device is displayed on the built-in browser as the first screen; when the request for user authentication is received from the external browser via the encrypted communication, an input screen for user authentication without using the authentication device is displayed on the external browser as the second screen. The embedded device according to claim 1 .
11. The web server includes: performing the unencrypted communication between the embedded browser and a first virtual machine running on the embedded device; performing the encrypted communication between the external browser and the second virtual machine running on the embedded device; The embedded device according to claim 1, 2, 3 or 10.
12. The web server includes: performing the unencrypted communication with the built-in browser through a first container generated by a container virtualization technology; performing the encrypted communication with the external browser using a second container generated by the container virtualization technology; The embedded device according to claim 1, 2, 3 or 10.
13. The embedded device according to claim 1, 2, 3 or 10, and the external terminal. Display system.
Citation Information
Patent Citations
Control method of electronic apparatus
JP2006352336A
Document display apparatus and program
JP2008186160A
Image processing apparatus, and data processing method and data processing program for image processor
JP2011197968A
Information processing device, system, information processing method, and program
JP2015179894A
Image processing device and program
JP2016004561A
