CN116301840A - Operation interface application system based on modern browser - Google Patents
Operation interface application system based on modern browser Download PDFInfo
- Publication number
- CN116301840A CN116301840A CN202211483344.3A CN202211483344A CN116301840A CN 116301840 A CN116301840 A CN 116301840A CN 202211483344 A CN202211483344 A CN 202211483344A CN 116301840 A CN116301840 A CN 116301840A
- Authority
- CN
- China
- Prior art keywords
- module
- shielding
- interface
- browser
- control
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/30—Creation or generation of source code
- G06F8/38—Creation or generation of source code for implementing user interfaces
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/30—Creation or generation of source code
- G06F8/35—Creation or generation of source code model driven
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02P—CLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
- Y02P90/00—Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
- Y02P90/02—Total factory control, e.g. smart factories, flexible manufacturing systems [FMS] or integrated manufacturing systems [IMS]
Landscapes
- Engineering & Computer Science (AREA)
- Software Systems (AREA)
- General Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Human Computer Interaction (AREA)
- Information Transfer Between Computers (AREA)
Abstract
本发明公开了一种基于现代浏览器的操作界面应用系统,涉及设备界面开发的技术领域,包括界面交互端和硬件控制模块,界面交互端包括界面展示模块、指令生成模块和指令传输模块,界面展示模块用于开启预设的浏览器并控制开启的浏览器显示预设的操作界面;指令生成模块用于基于操作界面的点击操作生成相应的控制指令;指令传输模块用于与硬件控制模块连接将控制指令发送给硬件控制模块;硬件控制模块用于接收控制指令以控制设备动作。由现代浏览器访问特定的网址来展示预设的web网页,通过web网页来代替传统的GUI界面,用户通过对web网页的操作也可以正常生成控制指令以控制硬件设备动作,而web网页的开发更加通用、高效。
The invention discloses an operation interface application system based on a modern browser, relates to the technical field of equipment interface development, and includes an interface interaction terminal and a hardware control module. The interface interaction terminal includes an interface display module, an instruction generation module and an instruction transmission module. The display module is used to open the preset browser and control the opened browser to display the preset operation interface; the instruction generation module is used to generate corresponding control instructions based on the click operation of the operation interface; the instruction transmission module is used to connect with the hardware control module Send the control instruction to the hardware control module; the hardware control module is used to receive the control instruction to control the action of the device. A modern browser visits a specific URL to display a preset web page, and replaces the traditional GUI interface with a web page. Users can also generate control commands to control the actions of hardware devices through the operation of the web page, and the development of web pages More versatile and efficient.
Description
技术领域technical field
本发明涉及设备界面开发的技术领域,尤其是涉及一种基于现代浏览器的操作界面应用系统。The invention relates to the technical field of device interface development, in particular to an operation interface application system based on a modern browser.
背景技术Background technique
在工厂中交互设备往往具有简洁的操作界面,用户通过与操作界面互动即可控制相应的硬件设备工作。Interactive devices in factories often have simple operation interfaces, and users can control the corresponding hardware devices by interacting with the operation interface.
而早期交互设备的操作界面采用图形用户界面应用程序(GUI),比如Window MFC、Linux Gnome/KDE、跨平台QT开发框架。The operation interface of early interactive devices adopts graphical user interface application program (GUI), such as Window MFC, Linux Gnome/KDE, and cross-platform QT development framework.
随着CCS、HTML5和JavaScript引擎V8发布,web页面成为用户交互界面的主流。相比传统GUI,web页面排版更加美观、开发效率高。With the release of CCS, HTML5 and JavaScript engine V8, web pages have become the mainstream of user interaction interfaces. Compared with the traditional GUI, the layout of web pages is more beautiful and the development efficiency is higher.
借鉴web,QT开发框架推出QML,这是一种描述性脚本语言,让传统GUI开发人员可像web一样编写界面。另外QT的WebEngine模块允许直接嵌入HTML页面。通过集成Web浏览器控件,如CEF(Chromium Embedded Framework),GUI界面允许直接嵌入HTML页面。Drawing on the web, the QT development framework introduces QML, a descriptive scripting language that allows traditional GUI developers to write interfaces like the web. In addition, QT's WebEngine module allows direct embedding of HTML pages. By integrating Web browser controls, such as CEF (Chromium Embedded Framework), the GUI interface allows direct embedding of HTML pages.
但是QT QML是一种新语言,需要开发人员重新学习;QT WebEngine对HTML新特性支持不及时,且不稳定;CEF是个很大的库,集成成本高,还需要维护版本升级。因此,需要一种更适用的操作界面应用系统。However, QT QML is a new language that requires developers to relearn; QT WebEngine does not support new HTML features in a timely manner and is unstable; CEF is a large library with high integration costs and requires maintenance version upgrades. Therefore, a more applicable operation interface application system is needed.
发明内容Contents of the invention
本申请提供一种基于现代浏览器的操作界面应用系统,使得web页面也能够适用于交互设备的操作界面展示。The present application provides an operation interface application system based on a modern browser, so that web pages can also be suitable for displaying operation interfaces of interactive devices.
本申请提供一种基于现代浏览器的操作界面应用系统,采用如下的技术方案:This application provides a modern browser-based operation interface application system, which adopts the following technical solutions:
一种基于现代浏览器的操作界面应用系统,包括界面交互端和硬件控制模块,An operation interface application system based on a modern browser, including an interface interaction terminal and a hardware control module,
所述界面交互端包括界面展示模块、指令生成模块和指令传输模块,其中,The interface interaction terminal includes an interface display module, an instruction generation module and an instruction transmission module, wherein,
界面展示模块,用于开启预设的浏览器并控制开启的浏览器显示预设的操作界面;The interface display module is used to open a preset browser and control the opened browser to display a preset operation interface;
指令生成模块,用于基于操作界面的点击操作生成相应的控制指令;An instruction generation module, configured to generate corresponding control instructions based on a click operation on the operation interface;
指令传输模块,用于与硬件控制模块连接将控制指令发送给硬件控制模块;The command transmission module is used to connect with the hardware control module and send the control command to the hardware control module;
硬件控制模块,用于接收控制指令并响应控制指令以控制硬件设备动作。The hardware control module is used to receive control instructions and respond to the control instructions to control the actions of hardware devices.
通过上述技术方案,由现代浏览器访问特定的网址来展示预设的web网页,通过web网页来代替传统的GUI界面,用户通过对web网页的操作也可以正常生成控制指令以控制硬件设备动作,而web网页的开发更加通用、高效,实现人力复用。Through the above technical solution, a modern browser accesses a specific website to display a preset web page, and the traditional GUI interface is replaced by the web page, and the user can also normally generate control instructions to control the actions of the hardware device through the operation of the web page. The development of web pages is more versatile and efficient, enabling human reuse.
可选的,所述界面交互端还包括数据接收模块;Optionally, the interface interaction terminal also includes a data receiving module;
所述硬件控制模块,还用于收集硬件设备的运行状态并定期传输给数据接收模块;The hardware control module is also used to collect the running status of the hardware device and periodically transmit it to the data receiving module;
所述数据接收模块,用于接收运行状态并将运行状态显示到操作界面中。The data receiving module is used to receive the running status and display the running status on the operation interface.
通过上述技术方案,操作界面除了与用户互动以生成控制指令外,还用于显示硬件设备的运行状态,以便于用户了解硬件设备实时状态。Through the above technical solution, in addition to interacting with the user to generate control instructions, the operation interface is also used to display the running status of the hardware device, so that the user can understand the real-time status of the hardware device.
可选的,还包括自检模块,所述自检模块包括代理识别模块和预启动模块,Optionally, a self-check module is also included, and the self-check module includes an agent identification module and a pre-start module,
代理识别模块,基于上电动作开启,用于判断是否存在预设地址,若存在预设地址,则输出启动指令,若不存在预设地址,则判断是否存在代理,The agent identification module is turned on based on the power-on action, and is used to judge whether there is a preset address. If there is a preset address, it will output a start command. If there is no preset address, it will judge whether there is an agent.
若存在代理,则预设的代理地址作为预设地址并启动指令;若不存在代理,则直接将预设的本地地址作为预设地址并启动指令;If there is an agent, the preset agent address is used as the default address and the command is started; if there is no proxy, the preset local address is directly used as the default address and the command is started;
预启动模块,用于接收启动指令并响应启动指令以启动界面展示模块。The pre-start module is configured to receive a start instruction and respond to the start instruction to start the interface display module.
通过上述技术方案,界面互动端往往不会联网或者是只连接局域网,这就导致界面互动端只能访问本地文件,而访问本地文件的方式有通过代理和不通过代理这两种,因此需要先区分是否存在代理,再安排数据读取。Through the above technical solutions, the interface interaction terminal is often not connected to the Internet or only connected to the LAN, which leads to the interface interaction terminal can only access local files, and there are two ways to access local files through proxy and without proxy. Distinguish whether there is an agent, and then arrange data reading.
可选的,还包括屏蔽模块,所述屏蔽模块包括系统检测模块和屏蔽执行模块,Optionally, a shielding module is also included, the shielding module includes a system detection module and a shielding execution module,
系统检测模块,用于识别浏览器所处操作系统的类型以获取实时类型,并将实时类型发送给屏蔽执行模块;The system detection module is used to identify the type of the operating system where the browser is located to obtain the real-time type, and sends the real-time type to the shielding execution module;
屏蔽执行模块,用于根据实时类型确定屏蔽方式,并运行相应的屏蔽方式以开启对特定组合键的屏蔽。The shielding execution module is configured to determine the shielding mode according to the real-time type, and run the corresponding shielding mode to enable the shielding of the specific key combination.
通过上述技术方案,主流的操作系统都会提供禁止浏览器退出展台模式的服务或插件,而不同的操作系统具有不同的屏蔽方式,因此需要先确定当前浏览器所处的系统是哪一个,再具体执行如何屏蔽。Through the above technical solutions, mainstream operating systems will provide services or plug-ins that prohibit the browser from exiting the kiosk mode, and different operating systems have different blocking methods, so it is necessary to first determine which system the current browser is in, and then specifically How to perform masking.
可选的,所述屏蔽模块还包括键盘检测模块;Optionally, the shielding module also includes a keyboard detection module;
键盘检测模块,用于检测交互设备是否外接有键盘,若是,则分别启动系统检测模块和屏蔽执行模块。The keyboard detection module is used to detect whether the interactive device is externally connected with a keyboard, and if so, start the system detection module and the shielding execution module respectively.
通过上述技术方案,展台模式的退出一般需要触发特定的组合键,在交互设备外接了键盘后用户就可能触发组合键,因此检测到外接键盘时需要及时启动屏蔽执行单元以屏蔽组合键。Through the above technical solution, the exit of the booth mode generally needs to trigger a specific combination key. After the interactive device is connected with an external keyboard, the user may trigger the combination key. Therefore, when the external keyboard is detected, the shielding execution unit needs to be activated in time to block the combination key.
可选的,所述键盘检测模块,还用于检测浏览器所处的操作系统是否具有唤起电子键盘的功能,若是,则分别启动系统检测模块和屏蔽执行模块。Optionally, the keyboard detection module is also used to detect whether the operating system where the browser is located has the function of invoking the electronic keyboard, and if so, start the system detection module and the shielding execution module respectively.
通过上述技术方案,除了交互设备外接键盘外,有些系统也允许直接唤起电子键盘,同样在唤起电子键盘时,也需要防止通过电子键盘触发组合键,因此也需要启动屏蔽执行单元。Through the above technical solution, in addition to the external keyboard of the interactive device, some systems also allow the electronic keyboard to be directly aroused. Similarly, when the electronic keyboard is aroused, it is also necessary to prevent the combination key from being triggered through the electronic keyboard, so the shielding execution unit also needs to be activated.
可选的,所述屏蔽执行模块内存储有多个屏蔽方式以及与屏蔽方式一一对应的系统类型,Optionally, multiple shielding modes and system types corresponding to the shielding modes are stored in the shielding execution module,
所述屏蔽执行模块用于根据实时类型匹配到相同的系统类型,再根据匹配出的系统类型确定屏蔽方式。The shielding execution module is used to match the same system type according to the real-time type, and then determine the shielding mode according to the matched system type.
通过上述技术方案,不同类型的操作系统所提供的禁止组合键的插件或服务往往不同,因此屏蔽执行单元在禁止组合键前需要先确认当前的操作系统的类型,再通过对应的屏蔽方式禁止组合键。Through the above technical solution, different types of operating systems provide different plug-ins or services for prohibiting combination keys. Therefore, the shielding execution unit needs to confirm the type of the current operating system before prohibiting combination keys, and then prohibit the combination through the corresponding shielding method. key.
可选的,所述硬件控制模块和数据接收模块采用websocket协议进行数据传输。Optionally, the hardware control module and the data receiving module use the websocket protocol for data transmission.
通过上述技术方案,websocket协议可双向通信,支持硬件控制模块主动和web页面通信。因此当硬件控制模块需要将硬件设备的运行状态主动发给操作界面时就需要额外构建websocket通讯。Through the above technical solution, the websocket protocol can communicate bidirectionally, and supports the hardware control module to actively communicate with the web page. Therefore, when the hardware control module needs to actively send the running status of the hardware device to the operation interface, it is necessary to additionally build websocket communication.
综上所述,用web页面代替传统GUI界面,实现人力复用;用现代浏览器渲染页面,省去嵌入web浏览器的开发工作。To sum up, using web pages instead of traditional GUI interfaces realizes manpower reuse; using modern browsers to render pages saves the development work of embedding web browsers.
附图说明Description of drawings
图1是本申请实施例的系统结构示意图。FIG. 1 is a schematic diagram of the system structure of the embodiment of the present application.
图2是本申请实施例的自检模块的结构示意图。FIG. 2 is a schematic structural diagram of a self-inspection module in an embodiment of the present application.
图3是本申请实施例的屏蔽模块的结构示意图。Fig. 3 is a schematic structural diagram of a shielding module according to an embodiment of the present application.
图4是本申请实施例的信息传输的示意图。Fig. 4 is a schematic diagram of information transmission according to an embodiment of the present application.
图5是本申请实施例的主界面的示意图。Fig. 5 is a schematic diagram of the main interface of the embodiment of the present application.
附图标记说明:Explanation of reference signs:
1、界面交互端;11、界面展示模块;12、指令生成模块;13、指令传输模块;14、数据接收模块;15、自检模块;151、代理识别模块;152、预启动模块;16、屏蔽模块;161、系统检测模块;162、屏蔽执行模块;163、键盘检测模块;2、硬件控制模块。1. Interface interaction terminal; 11. Interface display module; 12. Instruction generation module; 13. Instruction transmission module; 14. Data receiving module; 15. Self-inspection module; 151. Agent identification module; 152. Pre-start module; 16. Shielding module; 161. System detection module; 162. Shielding execution module; 163. Keyboard detection module; 2. Hardware control module.
具体实施方式Detailed ways
以下结合附图1至图5对本申请作进一步详细说明。The present application will be described in further detail below in conjunction with accompanying drawings 1 to 5 .
一种基于现代浏览器的操作界面应用系统,参见图1,包括界面交互端1和硬件控制模块2。其中,硬件控制模块2可以有多个,多个硬件控制模块2分别对应一个硬件设备。且多个硬件控制模块2均与界面交互端1建立有数据传输通道。界面交互端1用于在交互设备上的显示屏中显示操作界面。硬件控制设备用于控制相应的硬件设备动作。A modern browser-based operation interface application system, as shown in FIG. 1 , includes an interface interaction terminal 1 and a
界面交互端1通过现代浏览器在显示屏中展示操作界面,现代浏览器是指能够理解、支持HTML和XHTML的浏览器,例如谷歌浏览器(Chrome)、Microsoft Edge,本文中将现代浏览器简称为浏览器。The interface interaction terminal 1 displays the operation interface on the display screen through a modern browser. A modern browser refers to a browser that can understand and support HTML and XHTML, such as Google Chrome (Chrome) and Microsoft Edge. In this article, the modern browser will be referred to as for the browser.
浏览器所提供的web页面是当前用户交互界面的主流,技术上具有通用性,开发成本低。相较于传统的图形用户界面应用程序(GUI),比如Window MFC、Linux Gnome/KDE、跨平台QT开发框架,采用web页面开发设备GUI界面,有利于实现人力复用。The web page provided by the browser is the mainstream of the current user interaction interface, which is technically versatile and has low development costs. Compared with traditional graphical user interface applications (GUI), such as Window MFC, Linux Gnome/KDE, and cross-platform QT development frameworks, the use of web pages to develop device GUI interfaces is conducive to the realization of human reuse.
界面交互端1通过浏览器展示操作界面后,同样可以经与用户的互动来生成控制指令,界面交互端1再将控制指令传输给适配的硬件控制模块2。硬件控制模块2用于根据所接收到的控制指令控制相应的硬件设备动作。After the interface interaction terminal 1 displays the operation interface through the browser, it can also generate control instructions through interaction with the user, and the interface interaction terminal 1 then transmits the control instructions to the adapted
参见图1,界面交互端1包括界面展示模块11、指令生成模块12和指令传输模块13。Referring to FIG. 1 , the interface interaction terminal 1 includes an interface display module 11 , an
界面展示模块11,用于开启预设的浏览器并控制开启的浏览器显示预设的操作界面。The interface display module 11 is configured to open a preset browser and control the opened browser to display a preset operation interface.
由于浏览器的web页面存在地址栏、工具栏、书签栏等浏览器元素,而这些浏览器元素对于用户操作并没有用处,甚至会干扰用户的正常交互。因此在使用时需要去除这些无用的浏览器元素。而主流的浏览器均具有展台模式。在展台模式下,HTML页面全屏展示,没有任何浏览器痕迹。Because browser elements such as address bar, tool bar, and bookmark bar exist in the web page of the browser, these browser elements are useless for user operations, and may even interfere with the normal interaction of the user. Therefore, these useless browser elements need to be removed during use. The mainstream browsers all have a kiosk mode. In kiosk mode, the HTML page is displayed in full screen without any trace of the browser.
另外,一个完善的界面交互端1往往具有多个操作界面以分别展示不同的内容,而这些操作界面中会存在一个主界面,通过主界面来串联其他操作界面,以实现界面交互端1所显示的操作界面的切换。预设的操作界面即为主界面,主界面的界面布局可参考图5所示。In addition, a complete interface interaction terminal 1 often has multiple operation interfaces to display different content respectively, and there will be a main interface in these operation interfaces, and other operation interfaces are connected in series through the main interface to realize the display of interface interaction terminal 1. Switching of the operation interface. The preset operation interface is the main interface, and the interface layout of the main interface can be referred to as shown in FIG. 5 .
而预设的操作界面对应有预设地址,预设地址是经浏览器访问以显示出预设的操作界面的web页面所对应的网页地址。The preset operation interface corresponds to a preset address, and the preset address is a webpage address corresponding to a web page accessed by a browser to display the preset operation interface.
因此,界面展示模块11是控制浏览器启动的同时访问预设地址以及进入展台模式。Therefore, the interface display module 11 controls the browser to start and access the preset address and enter the kiosk mode at the same time.
为了保证同步性,预设浏览器进入展台模式的方法会和预设地址结合以形成综合指令,通过综合指令来启动浏览器,即可实现浏览器访问预设地址并同步进入展台模式。In order to ensure synchronization, the preset method for the browser to enter the booth mode will be combined with the preset address to form a comprehensive command. By starting the browser through the comprehensive command, the browser can access the preset address and enter the booth mode synchronously.
指令生成模块12,用于基于操作界面的点击操作生成相应的控制指令。The
基于操作界面的点击操作生成的指令有很多种类,按照应用对象的不同,可以将这些指令划分成控制指令和基础指令。其中,基础指令是指仅针对界面交互端1本身进行操作的指令,例如上述提及的操作界面的切换所对应的指令;控制指令则是指用于发送给硬件控制模块2的指令。There are many types of instructions generated based on the click operation on the operation interface. According to different application objects, these instructions can be divided into control instructions and basic instructions. Among them, the basic instruction refers to the instruction that only operates on the interface interaction terminal 1 itself, such as the instruction corresponding to the above-mentioned switching of the operation interface; the control instruction refers to the instruction for sending to the
因此指令生成模块12生成的控制指令会通过指令传输模块13发送给硬件控制模块2,而指令生成模块12生成的基础指令则会直接被执行。Therefore, the control instructions generated by the
指令传输模块13,用于与硬件控制模块2连接将控制指令发送给硬件控制模块2。The
硬件控制模块2具有HTTP接口。指令传输模块13和硬件控制模块2采用HTTP协议进行数据传输。The
另外,当硬件控制模块2有多个时,为了提高控制指令的发送精准性,控制指令中会包含对应硬件控制模块2的端口,每个硬件控制模块2对应一个端口。指令生成模块12生成控制指令后指令传输模块13根据端口即可准确地将该控制指令发送给对应的硬件控制模块2。In addition, when there are multiple
硬件控制模块2,用于接收控制指令并响应控制指令以控制硬件设备动作。The
需注意的是,界面交互端1不一定联网,这就要求界面交互端1在断网情况下也能正常展示操作界面。那么界面交互端1中的浏览器就必须访问本地数据。由于本地数据的部署方式有两种:本地文件部署和本地nginx部署。本地文件部署就是将web页面所需的数据资源直接存放在本地磁盘中。本地nginx部署是将web页面所需的数据资源放在nginx的特定路径。It should be noted that the interface interaction terminal 1 is not necessarily connected to the Internet, which requires that the interface interaction terminal 1 can display the operation interface normally even when the network is disconnected. Then the browser in the interface interaction terminal 1 must access the local data. There are two ways to deploy local data: local file deployment and local nginx deployment. Local file deployment is to directly store the data resources required by the web page in the local disk. The local nginx deployment is to place the data resources required by the web page in a specific path of nginx.
这就导致浏览器访问本地数据的方式也有对应的两种,即直接访问本地文件和通过代理访问本地文件。这两种不同的访问方式就对应不同的预设地址。也就导致需要在浏览器开启前,先确定出适用于当前浏览器的预设地址。This leads to two corresponding ways for browsers to access local data, that is, directly accessing local files and accessing local files through a proxy. These two different access methods correspond to different preset addresses. It also leads to the need to determine the default address applicable to the current browser before the browser is opened.
具体的,参见图1和图2,界面交互端1还包括自检模块15,自检模块15包括代理识别模块151和预启动模块152。Specifically, referring to FIG. 1 and FIG. 2 , the interface interaction terminal 1 further includes a self-
代理识别模块151,用于基于上电动作开启,并在启动后判断是否存在预设地址,若存在预设地址,则输出启动指令,若不存在预设地址则再判断当前操作系统中是否存在代理,若当前操作系统中存在代理,则预设的代理地址作为实时地址并输出启动指令;若当前操作系统中不存在代理,则直接将预设的本地地址作为实时地址并输出启动指令。The
预设的代理地址是用于访问nginx的访问地址,预设的本地地址是本地数据所在文件夹的访问地址。The preset proxy address is the access address for accessing nginx, and the preset local address is the access address of the folder where the local data is located.
在操作系统刚安装后,操作系统内还未存储有预设地址,因此在第一次开启交互设备时,代理识别模块151会判断出未存在预设地址,进而根据是否存在代理而生成预设地址。而在后续开启交互设备时,由于操作系统中已经存储有预设地址,则代理识别模块151会快速地输出启动指令。Just after the operating system is installed, there is no preset address stored in the operating system. Therefore, when the interactive device is turned on for the first time, the
预启动模块152,用于接收启动指令并响应启动指令以控制界面展示模块11开启。The
另外,浏览器能够进入展台模式,自然也可以退出展台模式。但是界面交互端1中所应用的浏览器并不需要浏览器退出展台模式,因此需要主动将退出展台模式给禁止掉,以避免用户在操作过程中无意退出展台模式。In addition, the browser can enter the kiosk mode, and can naturally exit the kiosk mode. However, the browser used in the interface interaction terminal 1 does not require the browser to exit the kiosk mode, so it is necessary to actively disable the exit from the kiosk mode, so as to prevent the user from accidentally exiting the kiosk mode during operation.
退出展台模式的方式是浏览器接收到退出指令,而退出指令是受键盘上的组合键的触发而生成的,因此为了防止浏览器退出展台模式,就要禁止组合键的触发而生成退出指令。The way to exit the kiosk mode is that the browser receives the exit command, and the exit command is generated by the trigger of the combination key on the keyboard. Therefore, in order to prevent the browser from exiting the kiosk mode, it is necessary to prohibit the trigger of the combination key to generate the exit command.
键盘是一种用于操作计算机设备运行的输入设备,根据形式的不同,键盘可分为物理键盘和电子键盘,常见的物理键盘为按键式键盘,常见的电子键盘有屏幕键盘和触摸键盘。其中,物理键盘需要通过数据线连接界面交互端1;电子键盘则是由界面交互端1中的应用系统所提供,当需要使用键盘时,电子键盘在应用系统中被唤起;不需要使用键盘时,电子键盘重新隐藏到应用系统中。A keyboard is an input device used to operate computer equipment. According to different forms, keyboards can be divided into physical keyboards and electronic keyboards. Common physical keyboards are key-type keyboards. Common electronic keyboards include on-screen keyboards and touch keyboards. Among them, the physical keyboard needs to be connected to the interface interactive terminal 1 through a data cable; the electronic keyboard is provided by the application system in the interface interactive terminal 1. When the keyboard is needed, the electronic keyboard is awakened in the application system; when the keyboard is not needed , the electronic keyboard is hidden in the application system again.
由于键盘类型的不同,禁止退出指令的生成就需要兼顾物理键盘和电子键盘。而无关是物理键盘还是电子键盘,一般都不会直接阻止用户去触发任何按键,因此实际上的禁止退出指令的生成是使操作系统不响应特定的组合键的触发。Due to the different types of keyboards, the generation of the prohibition exit command needs to take both physical keyboards and electronic keyboards into consideration. Regardless of whether it is a physical keyboard or an electronic keyboard, generally it will not directly prevent the user from triggering any keys, so the generation of the actual prohibition command is to make the operating system not respond to the triggering of the specific key combination.
具体的,参见图1和图3,界面交互端1还包括屏蔽模块16,屏蔽模块16包括键盘检测模块163、系统检测模块161和屏蔽执行模块162。Specifically, referring to FIG. 1 and FIG. 3 , the interface interaction terminal 1 further includes a
键盘检测模块163,用于检测是否外接有键盘以及检测浏览器所处的操作系统是否唤起电子键盘。无论是检测到外接有键盘,还是检测到浏览器所处的操作系统唤起电子键盘,键盘检测模块163均会启动系统检测模块161和屏蔽执行模块162。The
键盘检测模块163是由人工选择开启的,在系统安装过程中,由用户选择是否需要开启键盘屏蔽,若用户选择开启键盘屏蔽,则启动键盘检测模块163。The
系统检测模块161,用于识别浏览器所处操作系统的类型以获取实时类型,并将实时类型发送给屏蔽执行模块162。The
屏蔽执行模块162,用于根据实时类型确定屏蔽方式。其中,屏蔽执行模块162内存储有多个屏蔽方式以及与屏蔽方式一一对应的系统类型。The shielding
大多数操作系统都会提供禁止组合键的插件或服务,只是不同的操作系统所禁止组合键的工具或服务也往往不同。例如,Linux操作系统中的Ubuntu可以通过xmodmap工具禁止不需要的按键或组合键;Windows 10企业版提供键盘筛选器功能,可使用键盘筛选器禁止不需要的按键或组合键。Most operating systems provide plug-ins or services that prohibit key combinations, but different operating systems often have different tools or services that prohibit key combinations. For example, Ubuntu in the Linux operating system can prohibit unnecessary keys or key combinations through the xmodmap tool; Windows 10 Enterprise Edition provides a keyboard filter function, which can be used to prohibit unnecessary keys or key combinations.
屏蔽方式是通过相应操作系统所提供的工具或服务来禁止操作系统响应特点组合键的触发。The shielding method is to prohibit the operating system from responding to the triggering of the characteristic key combination through the tools or services provided by the corresponding operating system.
而在确定屏蔽方式前,就需要先判断出当前的操作系统的类型。Before determining the shielding method, it is necessary to determine the type of the current operating system.
但是屏蔽执行模块162确定屏蔽方式后,操作系统中并不一定具有与屏蔽方式相对应的插件,这就使得屏蔽执行模块162会触发操作系统重启以安装相应的插件,在操作系统中具有相应插件后,屏蔽执行模块162就会将相应的插件设置为开机自动,以实现长期的屏蔽浏览器退出展台模式。However, after the shielding
在操作系统安装时已经完成屏蔽后,后续启动界面交互端1的过程中就不会再启动屏蔽模块16。After the shielding has been completed during the installation of the operating system, the shielding
为了方便用户了解各个硬件设备的状态,除了界面交互界面向硬件控制模块2传输控制指令外,还可以由硬件控制模块2收集硬件设备的相关数据再反馈给界面交互端1。In order to facilitate the user to understand the status of each hardware device, in addition to the interface interaction interface transmitting control instructions to the
具体的,参见图1,界面交互端1还包括数据接收模块14。且硬件控制模块2还具有websocket接口,硬件控制模块2通过websocket接口与数据接收模块14建立符合websocket协议的数据通讯。Specifically, referring to FIG. 1 , the interface interaction terminal 1 further includes a
硬件控制模块2还用于收集硬件设备的运行状态并传输给数据接收模块14。The
硬件控制模块2可以定期向数据接收模块14传输硬件设备的运行状态,也可以实时向数据接收模块14传输硬件设备的运行状态,具体的传输频次由工作人员视实际需求以及数据的处理能力来定。The
数据接收模块14,用于接收运行状态并将运行状态显示到操作界面中。The
常规的HTTP协议只能由web页面发起访问,无法实现硬件控制模块2主动发起。websocket协议类似TCP协议,可双向通信,支持硬件控制模块2主动和web页面通信。因此通过websocket接口,硬件控制模块2可主动向数据接收模块14发起相应硬件设备的通知、状态变化等数据。The conventional HTTP protocol can only be accessed by web pages, and cannot be initiated actively by the
当然,在通过websocket协议建立双向通信后,指令传输模块13也可以将控制指令通过websocket接口传输给硬件控制模块2。Of course, after the two-way communication is established through the websocket protocol, the
另外,受设备的重要程度不同,数据传输的周期也会不同,当设备的重要程度越高,数据传输的周期就越短,硬件控制模块2就要越频繁地向数据接收模块14传输数据。除了主动传输设备的相关数据外,硬件控制模块2还会主动传输心跳包。In addition, depending on the importance of the device, the cycle of data transmission will be different. When the importance of the device is higher, the cycle of data transmission will be shorter, and the
相应的,数据接收模块14还用于通过核对是否能够在预设期限内接收到心跳包来判断对应的硬件控制模块2是否在线,其中,预设期限是工作人员以心跳包的发送间隔为基础适当增加时间后而设定出来的。Correspondingly, the
若硬件控制模块2不在线,则可以在操作界面中将相应的设备显示为掉线状态;反之,则在操作界面中将相应的设备显示为在线状态。如此一来,不但可以将设备产生的运行状态同步到操作界面中,还可以对硬件控制设备是否正常进行监控。If the
工作原理:在操作系统刚安装时,检测交互设备是否外接键盘或者交互设备中的操作系统是否能够唤起电子键盘,以确定是否需要进行屏蔽操作。若需要,则先确定操作系统的类型,再根据操作系统的类型匹配出对应的屏蔽方式,并运行该屏蔽方式。Working principle: When the operating system is just installed, it detects whether the interactive device is connected with an external keyboard or whether the operating system in the interactive device can arouse the electronic keyboard, so as to determine whether a shielding operation is required. If necessary, first determine the type of the operating system, then match the corresponding shielding mode according to the type of the operating system, and run the shielding mode.
然后在给界面交互端1上电后,根据是否存在代理,即本地数据的存储方式的不同,生成预设地址以供后续浏览器访问使用。Then, after the interface interactive terminal 1 is powered on, according to whether there is an agent, that is, the storage method of local data, a preset address is generated for subsequent browser access.
而后,界面交互端1中的界面展示模块11启动,并控制浏览器访问预设地址并进入展台模式,浏览器中的web界面显示到交互设备的显示屏中,数据的交互方式参见图4。Then, the interface display module 11 in the interface interaction terminal 1 starts, and controls the browser to access the preset address and enter the booth mode, and the web interface in the browser is displayed on the display screen of the interactive device. Refer to FIG. 4 for the data interaction mode.
在用户与交互设备互动下,指令生成模块12生成控制指令并通过HTTP协议传输给硬件控制模块2,硬件控制模块2根据控制指令控制硬件模块作出相应动作。硬件控制模块2采集硬件设备的运行状态并通过websocket协议主动发送给交互设备端,交互设备端将硬件设备的运行状态显示到交互设备的显示屏中。Under the interaction between the user and the interactive device, the
以上均为本申请的较佳实施例,并非依此限制本申请的保护范围,故:凡依本申请的结构、形状、原理所做的等效变化,均应涵盖于本申请的保护范围之内。All of the above are preferred embodiments of the application, and are not intended to limit the protection scope of the application. Therefore, all equivalent changes made according to the structure, shape, and principle of the application should be covered by the protection scope of the application. Inside.
Claims (8)
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202211483344.3A CN116301840A (en) | 2022-11-24 | 2022-11-24 | Operation interface application system based on modern browser |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202211483344.3A CN116301840A (en) | 2022-11-24 | 2022-11-24 | Operation interface application system based on modern browser |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| CN116301840A true CN116301840A (en) | 2023-06-23 |
Family
ID=86817327
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN202211483344.3A Pending CN116301840A (en) | 2022-11-24 | 2022-11-24 | Operation interface application system based on modern browser |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN116301840A (en) |
Citations (6)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US6286001B1 (en) * | 1999-02-24 | 2001-09-04 | Doodlebug Online, Inc. | System and method for authorizing access to data on content servers in a distributed network |
| CN103106362A (en) * | 2013-02-05 | 2013-05-15 | 广东全通教育股份有限公司 | Method and system based on usage limit of established website platform for user |
| CN103973682A (en) * | 2014-04-30 | 2014-08-06 | 北京奇虎科技有限公司 | Method and device for having access to webpage |
| CN105553959A (en) * | 2015-12-11 | 2016-05-04 | Tcl集团股份有限公司 | Remote control method and system capable of dynamically generating intelligent device operation interface |
| CN106972950A (en) * | 2017-02-20 | 2017-07-21 | 上海赛印信息技术股份有限公司 | Quality information service end and the quality information management system comprising it |
| CN109597501A (en) * | 2018-12-10 | 2019-04-09 | 深圳市网心科技有限公司 | A kind of shortcut key management method and relevant apparatus |
-
2022
- 2022-11-24 CN CN202211483344.3A patent/CN116301840A/en active Pending
Patent Citations (6)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US6286001B1 (en) * | 1999-02-24 | 2001-09-04 | Doodlebug Online, Inc. | System and method for authorizing access to data on content servers in a distributed network |
| CN103106362A (en) * | 2013-02-05 | 2013-05-15 | 广东全通教育股份有限公司 | Method and system based on usage limit of established website platform for user |
| CN103973682A (en) * | 2014-04-30 | 2014-08-06 | 北京奇虎科技有限公司 | Method and device for having access to webpage |
| CN105553959A (en) * | 2015-12-11 | 2016-05-04 | Tcl集团股份有限公司 | Remote control method and system capable of dynamically generating intelligent device operation interface |
| CN106972950A (en) * | 2017-02-20 | 2017-07-21 | 上海赛印信息技术股份有限公司 | Quality information service end and the quality information management system comprising it |
| CN109597501A (en) * | 2018-12-10 | 2019-04-09 | 深圳市网心科技有限公司 | A kind of shortcut key management method and relevant apparatus |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US10726135B2 (en) | Web page processing method and apparatus, and storage medium | |
| CA2736490C (en) | Method and apparatus for remotely displaying screen files and efficiently handling remote operator input | |
| CN110032519B (en) | Cloud function debugging method and device, computer equipment and storage medium | |
| EP2960734A1 (en) | Communication system, programmable indicator, information processing device, operation control method, information processing method, and program | |
| EP3036633A1 (en) | Cloud deployment infrastructure validation engine | |
| CN105339932A (en) | Browser-driven power saving | |
| US10084637B2 (en) | Automatic task tracking | |
| JP2015219890A (en) | Management device, and control method and program for the same | |
| CN110188043A (en) | A kind of method and control equipment of the test of control multiple devices | |
| US11249771B2 (en) | Terminal input invocation | |
| WO2016019105A1 (en) | Method and system for testing page link addresses | |
| US20130290934A1 (en) | Monitoring applications executing on a computer device using programmatic triggers | |
| RU2611961C2 (en) | Method and system of regression testing of web page functionality, machine-readable data storage media | |
| CN111783019A (en) | Browser subpage creation method, apparatus, computer device and storage medium | |
| CN108804147A (en) | Link closedown method, device and client | |
| CN103377228B (en) | A kind of content of pages rendering method for browser and device | |
| JP2014119872A (en) | Information processor, method for controlling information processor and computer program | |
| CN105117252A (en) | Method for storing server startup information through BMC | |
| CN116301840A (en) | Operation interface application system based on modern browser | |
| US8302070B2 (en) | Output styling in an IDE console | |
| CN111245917B (en) | Katalon-based work order entry device and implementation method thereof | |
| CN104160389A (en) | Dynamic user interface aggregation through smart eventing with non-instantiated content | |
| CN113765731A (en) | Information processing method, device and computer readable storage medium | |
| KR102324518B1 (en) | Gateway apparatus for securing server based on deep learning and control method thereof | |
| US20180189118A1 (en) | Systems and methods for transforming applications |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| PB01 | Publication | ||
| PB01 | Publication | ||
| SE01 | Entry into force of request for substantive examination | ||
| SE01 | Entry into force of request for substantive examination | ||
| CB02 | Change of applicant information | ||
| CB02 | Change of applicant information |
Country or region after: China Address after: B1f-112, Zone C, Huaxun building, software park, torch hi tech Zone, Xiamen City, Fujian Province, 361000 Applicant after: Reconova Technologies Co.,Ltd. Address before: B1f-112, Zone C, Huaxun building, software park, torch hi tech Zone, Xiamen City, Fujian Province, 361000 Applicant before: XIAMEN RUIWEI INFORMATION TECHNOLOGY CO.,LTD. Country or region before: China |