CN105868312B - A kind of device management method and device based on browser - Google Patents

A kind of device management method and device based on browser Download PDF

Info

Publication number
CN105868312B
CN105868312B CN201610179358.4A CN201610179358A CN105868312B CN 105868312 B CN105868312 B CN 105868312B CN 201610179358 A CN201610179358 A CN 201610179358A CN 105868312 B CN105868312 B CN 105868312B
Authority
CN
China
Prior art keywords
local expansion
expansion equipment
index tree
resource
browser
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.)
Expired - Fee Related
Application number
CN201610179358.4A
Other languages
Chinese (zh)
Other versions
CN105868312A (en
Inventor
周坤
李晓冬
彭世伟
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Sichuan Changhong Electric Co Ltd
Original Assignee
Sichuan Changhong Electric Co Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Sichuan Changhong Electric Co Ltd filed Critical Sichuan Changhong Electric Co Ltd
Priority to CN201610179358.4A priority Critical patent/CN105868312B/en
Publication of CN105868312A publication Critical patent/CN105868312A/en
Application granted granted Critical
Publication of CN105868312B publication Critical patent/CN105868312B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/10File systems; File servers
    • G06F16/13File access structures, e.g. distributed indices
    • G06F16/134Distributed indices

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Data Mining & Analysis (AREA)
  • Databases & Information Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The invention discloses a kind of device management method and device based on browser.When equipment management device detects the insertion of local expansion equipment, the TCP connection with cloud service platform is on the one hand created immediately, so that transmission channel be pre-created for file index tree;On the other hand, equipment management device scans expansion equipment, and the resource for local expansion equipment establishes file index tree.After file index tree completes creation, cloud service platform is transmitted it to by the TCP connection created immediately.When Web App needs to access the resource of local expansion equipment, access cloud service platform determines that the resource whether there is by file index tree first;If it is present obtaining position of the resource in local expansion equipment.The present invention accelerates the speed and fluency that Web App obtains local expansion equipment resource, improves user experience.

Description

A kind of device management method and device based on browser
Technical field
The present invention relates to a kind of built-in browser and Internet technologies, and in particular to a kind of equipment pipe based on browser Manage method and device.
Background technique
The development of network technology and intelligent terminal (mobile phone, plate, TV etc.) it is universal, promoted mobile Internet It is flourishing.Instantly, Native App abundant is applied and is brought great convenience to the every aspect that user lives.User can be with Check mail, the geographical location for obtaining oneself whenever and wherever possible using intelligent terminal, share picture video etc., it is greatly enriched use The mode that family obtains information and exchanges with the external world.
But there is problems by Native App.Firstly, developer must be directed to android, ios, windows The operating system platforms such as phone and firefox develop corresponding App, greatly increase development difficulty, increase exploitation at This, extends the development cycle, to reduce the timeliness of App.Secondly as the thousand poor ten thousand of device screen size and resolution ratio Not, Native App must take into consideration how to be adapted to all terminals.Finally, developer issues App program trouble and takes a long time. User installation and the cost of upgrading App are also larger.
The disadvantages mentioned above of Native App has promoted the development of Web App.Web App can easily realize cross-platform, open Originator no longer needs to consider the problems of complicated bottom adaptation and Cross-border congestion management language, so that development cost is greatly reduced, Shorten exploitation and issuing time, enhances the timeliness of App.And since Web App is without installation, customer upgrade convenience and cost It is very low.But Web App is weak for the access ability of local resource, speed is slow, can be tight when it needs to obtain local resource Ghost image rings user experience.
Summary of the invention
[technical problems to be solved]
Present invention aim to address the above-mentioned problems of the prior art, provide a kind of equipment management based on browser Method and device.This method is to rely on browser, and cloud service platform is support, improves Web App local resource access Speed, so that the user experience is improved.
[technical solution]
In order to reach above-mentioned technical effect, the present invention takes following technical scheme:
The invention proposes a kind of equipment management devices based on browser, and by the device, Web App can quickly sentence Resource information that is disconnected and positioning local expansion equipment improves to accelerate the speed that Web App obtains local expansion equipment resource The fluency of the access local device resource of Web App, the user experience is improved.
A kind of device management method based on browser, it the following steps are included:
(1) it opens browser and inputs network address, load Web App, while opening equipment management device;
(2) when equipment management device detects the insertion of local expansion equipment, while the file rope of local expansion equipment is established Draw the TCP connection of tree and creation and cloud service platform;
(3) after the completion of file index tree, this document index tree is transmitted to by cloud service platform by TCP connection;
(4) when Web App need to access the resource of local expansion equipment, cloud service platform is accessed first, passes through inquiry text Part index tree obtains the location information of purpose resource, then directly obtains purpose resource from the corresponding position of local expansion equipment.
The further technical solution of the present invention establishes time >=creation and the cloud of the file index tree of local expansion equipment The time of the TCP connection of service platform.
The further technical solution of the present invention, in the file index tree, the root of the entitled tree of local expansion equipment Node, the folder resource in local expansion equipment are trunk node, and the file resource in file is leaf node.
The further technical solution of the present invention, when exiting browser, equipment management device and cloud service platform can be protected Deposit the file index tree of the local expansion equipment.
A kind of equipment management device based on browser, it includes monitoring module, file index tree establishes module and TCP connects Connection module;Wherein, module is monitored for detecting whether there is the insertion of local expansion equipment;Local expansion has been detected when monitoring module When opening up the insertion of equipment, monitors module and establish module and the sending enabled instruction of TCP connection module to file index tree simultaneously;File Index tree is established operation resource scan module after module receives enabled instruction and is scanned to local expansion equipment, and according to scanning As a result the foundation of file index tree is carried out;When TCP connection module receives enabled instruction, TCP company is established with cloud service platform immediately It connects;After the completion of file index tree is established, file index tree establishes module and passes this document index tree by the TCP connection established Transport to cloud service platform.
It will be described in detail the present invention below.
Equipment management device of the invention is based on a kind of built-in browser.The browser has primary browsing The general utility functions that device is possessed also possess the local expansion equipment managing device of oneself on this basis, and Web App passes through clear Look at the device and cloud service platform of device, it can be with the resource information of quick obtaining local expansion equipment.Equipment management fills first It sets and the resource information of local expansion equipment is formed into file index tree, and be uploaded to cloud service platform.When Web App needs to access When the resource of local expansion equipment, access cloud service platform is provided with determining that resource whether there is if it is present obtaining first The specific location of source in a device.When Web App needs to obtain the resource really, by the location information, directly from local It is obtained in expansion equipment, to complete whole processes of a resource acquisition.Compared to the local expansion equipment of directly access, Web App accesses the speed of cloud service platform faster, because the calculating speed and efficiency of transmission of cloud service platform are all stronger than intelligent terminal, To improve access speed, the user experience is improved.
Detailed description of the invention
Fig. 1 is that the present invention is based on the equipment management devices of browser.
Specific embodiment
Below with reference to the embodiment of the present invention, the invention will be further elaborated.
Embodiment:
A kind of device management method based on browser, it the following steps are included:
(1) it opens browser and inputs network address, load Web App, while opening equipment management device;The equipment pipe of browser Reason device starts with browser, and whether monitor in real time has local expansion equipment to be inserted into.
(2) when equipment management device detects the insertion of local expansion equipment, while the file rope of local expansion equipment is established Draw the TCP connection of tree and creation and cloud service platform;Specifically, equipment management device can be after the insertion of local expansion equipment, wound The TCP connection of cloud service platform is built, so that transmission channel is established in the transmission for the file index tree of next step.TCP connection is built The vertical and foundation of file index tree synchronize start, because of time of the foundation required time than establishing TCP connection of file index tree It is long, in this way, TCP connection has created after file index tree is established, so as to transmit local extension to cloud service platform immediately The file index tree of equipment.
(3) after the completion of file index tree, this document index tree is transmitted to by cloud service platform by TCP connection;Specifically, The equipment management device of browser can be scanned all resources of entire local expansion equipment, to form a file rope Draw tree.The root node of the entitled file index tree of local expansion equipment, by root node, Web App can traverse access originally All resource files of ground expansion equipment.The folder resource of local expansion equipment is trunk node, the file money in file Source is leaf node.After the creation of file index tree, TCP connection is utilized immediately, transmits it to cloud service platform.File index Being formed for tree quickly can provide the resource information of equipment to Web App.
(4) when Web App need to access the resource of local expansion equipment, cloud service platform is accessed first, passes through inquiry text Part index tree obtains the location information of purpose resource, then directly obtains purpose resource from the corresponding position of local expansion equipment. After accessing cloud service platform, pass through the lookup of file index tree, it may be determined that purpose resource whether there is, if it does, can be into one Walk the position for determining purpose resource in local expansion equipment.Since cloud service platform usually has very strong computing capability and height The transmittability of speed, Web App access cloud service platform query resource file is faster than directly accessing local expansion equipment speed, from And reducing the time for obtaining local expansion equipment resource information, this is most important to user experience is improved.
In addition, be by another advantage that file index tree is transmitted to cloud service platform can be to multiple Web App simultaneously The resource information of local expansion equipment is provided.Since cloud service platform has stronger oncurrent processing ability, as multiple Web App When needing to access local expansion equipment simultaneously, cloud service platform is capable of providing more preferable, faster service.
When exiting browser, equipment management device and cloud service platform can save the file index of the local expansion equipment Tree.When purpose is to detect identical local expansion equipment insertion again, if device resource without change, is not necessarily to pass again Defeated file index tree is to cloud service platform.
Equipment management device based on browser described above, as shown in Figure 1, it includes monitoring module, file index Tree establishes module and TCP connection module;Wherein, module is monitored for detecting whether there is the insertion of local expansion equipment;Work as monitoring When module detects the insertion of local expansion equipment, monitors module and establish module and TCP connection mould to file index tree simultaneously Block issues enabled instruction;File index tree establishes after module receives enabled instruction and runs resource scan module to local expansion equipment It is scanned, and carries out the foundation of file index tree according to scanning result;When TCP connection module receives enabled instruction, immediately with Cloud service platform establishes TCP connection;After the completion of file index tree is established, file index tree establishes module for this document index tree Cloud service platform is transmitted to by the TCP connection of foundation.
Although reference be made herein to invention has been described for explanatory embodiment of the invention, and above-described embodiment is only this hair Bright preferable embodiment, embodiment of the present invention are not limited by the above embodiments, it should be appreciated that those skilled in the art Member can be designed that a lot of other modification and implementations, these modifications and implementations will fall in principle disclosed in the present application Within scope and spirit.

Claims (5)

1. a kind of device management method based on browser, it is characterised in that it the following steps are included:
(1) it opens browser and inputs network address, load Web App, while opening equipment management device;
(2) when equipment management device detects the insertion of local expansion equipment, while the file index tree of local expansion equipment is established With the TCP connection of creation and cloud service platform;
(3) after the completion of file index tree, this document index tree is transmitted to by cloud service platform by TCP connection;
(4) when Web App need to access the resource of local expansion equipment, cloud service platform is accessed first, is passed through and is inquired file rope Draw tree, obtain the location information of purpose resource, then directly obtains purpose resource from the corresponding position of local expansion equipment.
2. the device management method according to claim 1 based on browser, it is characterised in that establish local expansion equipment File index tree time >=creation and cloud service platform TCP connection time.
3. the device management method according to claim 1 based on browser, it is characterised in that in the file index tree, The root node of the entitled tree of local expansion equipment, the folder resource in local expansion equipment are trunk node, in file File resource be leaf node.
4. the device management method according to claim 1 based on browser, it is characterised in that when exiting browser, if Standby managing device and cloud service platform can save the file index tree of the local expansion equipment.
5. a kind of equipment management device based on browser is based on browser for realizing Claims 1 to 4 is described in any item Device management method, it is characterised in that it includes monitoring module, file index tree to establish module and TCP connection module;Wherein, Module is monitored for detecting whether there is the insertion of local expansion equipment;When monitoring module detects the insertion of local expansion equipment When, it monitors module and establishes module and the sending enabled instruction of TCP connection module to file index tree simultaneously;File index tree establishes mould Operation resource scan module is scanned local expansion equipment after block receives enabled instruction, and carries out file according to scanning result The foundation of index tree;When TCP connection module receives enabled instruction, TCP connection is established with cloud service platform immediately;Work as file index After the completion of tree is established, file index tree establishes module and this document index tree is transmitted to cloud service and is put down by the TCP connection of foundation Platform.
CN201610179358.4A 2016-03-25 2016-03-25 A kind of device management method and device based on browser Expired - Fee Related CN105868312B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610179358.4A CN105868312B (en) 2016-03-25 2016-03-25 A kind of device management method and device based on browser

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610179358.4A CN105868312B (en) 2016-03-25 2016-03-25 A kind of device management method and device based on browser

Publications (2)

Publication Number Publication Date
CN105868312A CN105868312A (en) 2016-08-17
CN105868312B true CN105868312B (en) 2019-09-10

Family

ID=56624915

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610179358.4A Expired - Fee Related CN105868312B (en) 2016-03-25 2016-03-25 A kind of device management method and device based on browser

Country Status (1)

Country Link
CN (1) CN105868312B (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101488143A (en) * 2008-01-16 2009-07-22 重庆安软信息科技有限公司 Novel web application and local application interaction mode
CN102055771A (en) * 2011-01-24 2011-05-11 上海红神信息技术有限公司 Device and method for controlling cloud service-oriented multiple concurrent service flow
CN102938767A (en) * 2012-11-13 2013-02-20 西安电子科技大学 Efficient verified fuzzy key word searching method based on cloud data subcontract system
CN102945169A (en) * 2012-12-05 2013-02-27 江苏鸿信系统集成有限公司 Native APP fused Web APP development system based on Android
CN104994141A (en) * 2015-06-16 2015-10-21 四川长虹电器股份有限公司 Cooperative storage system relieving storing and computing pressures of cloud server

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20120317172A1 (en) * 2011-06-13 2012-12-13 International Business Machines Corporation Mobile web app infrastructure

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101488143A (en) * 2008-01-16 2009-07-22 重庆安软信息科技有限公司 Novel web application and local application interaction mode
CN102055771A (en) * 2011-01-24 2011-05-11 上海红神信息技术有限公司 Device and method for controlling cloud service-oriented multiple concurrent service flow
CN102938767A (en) * 2012-11-13 2013-02-20 西安电子科技大学 Efficient verified fuzzy key word searching method based on cloud data subcontract system
CN102945169A (en) * 2012-12-05 2013-02-27 江苏鸿信系统集成有限公司 Native APP fused Web APP development system based on Android
CN104994141A (en) * 2015-06-16 2015-10-21 四川长虹电器股份有限公司 Cooperative storage system relieving storing and computing pressures of cloud server

Also Published As

Publication number Publication date
CN105868312A (en) 2016-08-17

Similar Documents

Publication Publication Date Title
CN102811438B (en) Information interaction method, relevant device and system
US11146641B2 (en) Internet of things information system
US10095666B2 (en) Method and terminal for adding quick link
CN105451154A (en) Vehicle-mounted information system and control method thereof
CN102722551A (en) Intelligent switching method and system for browser kernels
US10404774B2 (en) Mobile device and method for controlling transmission to web server in mobile device
CN104978358A (en) Method for displaying web page fragment on desktop and system for capturing web page fragment to desktop for displaying
CN105095407A (en) Method and system for real-time search of application program content
CN102959546A (en) Method and apparatus for converting content
CN103607454A (en) Method for setting private proxy server for Android system browser
CN110555145A (en) Browser-based webpage content acquisition system and acquisition method thereof
CN115269411A (en) Service testing method, device, electronic equipment and storage medium
CN103425501A (en) Application installation method, client, server side and system
WO2014098308A1 (en) Method for displaying unified app information based on open app store, and computer readable recording medium therefor
CN104219287A (en) Distributed multimedia entertainment device, system and method
CN107135516B (en) Parameter test processing method, mobile terminal and computer readable storage medium
AU2019101539A4 (en) Android-based image and text information feedback terminal system
CN105868312B (en) A kind of device management method and device based on browser
CN103002127A (en) Mobile terminal and method for processing link application thereof
CN102968807B (en) image automatic generation method and system
CN103648003A (en) Television set, and processing method and apparatus for remote memory equipment
US20140101246A1 (en) Location based social networking system and method
CN103793459B (en) Webpage opening method and device
CN111324364A (en) Method, device, equipment and storage medium for equipment management
CN106354881A (en) Picture viewer based on mobile terminal cross-platform and implementation method of picture viewer

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20190910