CN106941500B - Multi-device control method and system based on browser - Google Patents

Multi-device control method and system based on browser Download PDF

Info

Publication number
CN106941500B
CN106941500B CN201710278945.3A CN201710278945A CN106941500B CN 106941500 B CN106941500 B CN 106941500B CN 201710278945 A CN201710278945 A CN 201710278945A CN 106941500 B CN106941500 B CN 106941500B
Authority
CN
China
Prior art keywords
browser
terminal
equipment
terminal device
proxy
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.)
Active
Application number
CN201710278945.3A
Other languages
Chinese (zh)
Other versions
CN106941500A (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.)
Xian Novastar Electronic Technology Co Ltd
Original Assignee
Xian Novastar Electronic Technology 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 Xian Novastar Electronic Technology Co Ltd filed Critical Xian Novastar Electronic Technology Co Ltd
Priority to CN201710278945.3A priority Critical patent/CN106941500B/en
Publication of CN106941500A publication Critical patent/CN106941500A/en
Application granted granted Critical
Publication of CN106941500B publication Critical patent/CN106941500B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/02Protocols based on web technology, e.g. hypertext transfer protocol [HTTP]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • H04L61/50Address allocation
    • H04L61/5007Internet protocol [IP] addresses
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/10Network architectures or network communication protocols for network security for controlling access to devices or network resources
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/56Provisioning of proxy services

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer Hardware Design (AREA)
  • Computer Security & Cryptography (AREA)
  • Computing Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Computer And Data Communications (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The embodiment of the invention discloses a multi-device control method and a multi-device control system based on a browser, wherein the browser sends an http protocol request according to an IP address, acquires a web control page provided by proxy equipment, and sends a terminal equipment search instruction to the proxy equipment through the web control page; the agent equipment responds to the terminal equipment searching instruction and searches the terminal equipment which is in the same local area network as the agent equipment; the proxy equipment returns the searched terminal equipment information to the web control page through an http protocol; and the web control page controls the appointed terminal equipment through cross-domain access of an http protocol according to the terminal equipment information of the appointed terminal equipment. The embodiment of the invention can improve the communication speed and the response speed of the web control page through cross-domain access.

Description

Multi-device control method and system based on browser
Technical Field
The invention relates to the technical field of multi-device control, in particular to a multi-device control method based on a browser and a multi-device control system based on the browser.
Background
At present, in the field of LED screen display control, upper computer control of a C/S-like structure (namely a client and a server structure) cannot be used across platforms, and a client is required to install a specific client on a specific platform, so that inconvenience is brought to the client to a certain extent. In view of the usage amount of the platform, the upper computer needs to be used on platforms of Windows, macOS, Android, iOS, and then specific clients need to be developed according to the four platforms, which undoubtedly needs a lot of manpower and material resources for development and maintenance. In order to solve the compatibility problem of cross-platform use, the upper computer control of a B/S-like structure (namely a browser and server structure) is introduced, the browser can be used as long as the used platform supports the browser, a specific platform is not required to be used, a specific client is not required to be installed on the specific platform, and the manpower and material resources in development and maintenance are saved.
In the existing multi-device control system based on the browser, when the browser accesses the specified terminal device, the proxy device is required to forward information, so that tcp connection needs to be established between the proxy device and the specified terminal device, the complexity of the system is increased, and the stability of the system is reduced. Moreover, as the protocol derived from information forwarding is packaged and analyzed, the transmission speed of data and the response speed of the web control page are reduced, thereby reducing the experience of the user.
Disclosure of Invention
The embodiment of the invention provides a multi-device control method based on a browser and a multi-device control system based on the browser, which solve the technical problem that the data transmission speed and the response speed of a control page are reduced due to information forwarding.
In one aspect, a multi-device control method based on a browser is provided, which includes: the browser sends an http protocol request according to the IP address, acquires a web control page provided by the proxy equipment, and sends a terminal equipment search instruction to the proxy equipment through the web control page; the proxy equipment responds to the terminal equipment searching instruction and searches for the terminal equipment which is in the same local area network with the proxy equipment; the proxy equipment returns the searched terminal equipment information to the web control page through an http protocol; and the web control page controls the appointed terminal equipment through http protocol cross-domain access according to the terminal equipment information of the appointed terminal equipment, wherein the appointed terminal equipment and an http server deployed by the proxy equipment have the same protocol and port number and different IP addresses, and the proxy equipment authorizes the browser cross-domain access permission.
In another aspect, a browser-based multi-device control system is provided, including: the system comprises a browser and a plurality of terminal devices, wherein the browser and the terminal devices are connected to the same local area network, and http servers deployed by the terminal devices have the same protocol and port numbers and different IP addresses; the browser sends an http protocol request according to an IP address to acquire a web control page provided by a first terminal device in the plurality of terminal devices, and sends a terminal device search instruction to the first terminal device through the web control page; the first terminal device serving as a proxy device responds to the terminal device searching instruction, searches for terminal devices which are located in the local area network and are the same as the first terminal device, and returns the searched terminal device information to the web control page through an http protocol; and the browser performs http protocol cross-domain access control on a second terminal device in the plurality of terminal devices according to the searched terminal device information of the second terminal device through the web control page, wherein the first terminal device authorizes the browser to have cross-domain access.
One of the above technical solutions has the following advantages or beneficial effects: the use of the upper computer control by the user is not limited by a specific platform and a specific client, convenience is brought to the use of the user, the specific client does not need to be developed and maintained for mainstream platforms such as Windows, macOS, Android, iOS and the like, and manpower and material resources are saved; moreover, the cross-domain access enables the operation that a web control page is required to be sent according to the IP address of each terminal device to control one terminal device to be more intelligent, the web control page is required to be sent according to the IP address of any terminal device (as proxy device), the IP addresses of other terminal devices are searched by using the terminal device as the proxy device, the designated terminal device is directly controlled on the web control page provided by the proxy device through the http protocol and the cross-domain access according to the IP address of the designated terminal device, the communication speed and the response speed of the web control page are improved, and the experience of a user is further improved.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings needed to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
Fig. 1 is a schematic diagram of a browser-based multi-device control system according to an embodiment of the present invention.
Fig. 2 is a schematic view of a multi-device control flow based on a browser according to an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Specifically, an architecture of a multi-device control system based on a browser according to an embodiment of the present invention is shown in fig. 1, which can implement cross-domain access. The whole multi-device control system comprises a browser, a star-structured local area network and a plurality of terminal devices, and any one of the plurality of terminal devices can be used as proxy device. Each terminal device is provided with the same http server (httpServer) and is provided with a udp client (udp client) and a udp server (udp Server); the browser communicates with the terminal equipment through an http protocol according to an IP address of any terminal equipment, the terminal equipment is used as proxy equipment, and the proxy equipment communicates with other terminal equipment through the http protocol and a cross-domain access mode.
In order to meet the cross-domain access condition, all terminal devices deploy the same http server, the protocol and the port number are the same except that the domains (IP addresses) are different, and the proxy device is allowed to authorize the browser to have the cross-domain access right.
Referring to fig. 2, it is a flowchart of a multi-device control based on a browser according to this embodiment. As shown in fig. 2, the browser sends an http protocol request according to an IP address of any terminal device, obtains a web control page, and determines a proxy device. And sending a terminal device searching instruction to the proxy device through the web control page, searching other terminal devices in the local area network through udp broadcasting by the proxy device, and returning the searched terminal device information such as an IP address, an MAC address, a port number, a subnet mask, a gateway, a device name, a device ID, a hardware version number, a software version number and the like to the web control page through an http protocol, wherein the IP address, the MAC address and the port number are main parameters for establishing network connection. And the web control page directly controls the appointed terminal equipment through an http protocol and cross-domain access according to the IP address of the appointed terminal equipment.
As can be seen from the above, the web control page in the embodiment of the present invention does not need to forward information through the proxy device to control other terminal devices, and each terminal device does not need to embed tcp server (tcpServer) and tcp client (tcpClient) functions.
In summary, the embodiment of the invention enables the use of the upper computer control by the user not to be limited by a specific platform and a specific client, brings convenience to the use of the user, does not need to develop and maintain the specific client for mainstream platforms such as Windows, macOS, Android, iOS and the like, and saves manpower and material resources; moreover, the cross-domain access is used, so that the operation that a web control page is required to be sent according to the IP address of each terminal device to control one terminal device is more intelligent, the web control page is required to be sent according to the IP address of any terminal device (as proxy device), the IP addresses of other terminal devices are searched by using the terminal device as the proxy device, and the designated terminal device is directly accessed and controlled on the web control page provided by the proxy device through the http protocol according to the IP address of the designated terminal device, so that the communication speed and the response speed of the web control page are improved, and further the experience of a user is improved.
Finally, it is worth mentioning that the plurality of terminal devices shown in fig. 1 may be devices having the same hardware structure or different hardware structures, for example, they may be a plurality of video controllers, etc., where each video controller is typically configured with a video processor chip such as STDP8028 and a microcontroller electrically connected to the video processor chip such as an ARM-based MCU, and even further configured with a transmitting card logic including a programmable logic device and a multi-network PHY, and the transmitting card logic electrically connected to the microcontroller and the video processor chip. Moreover, each video controller can be further connected with the LED display screen body through a receiving card. Of course, the transmitting card logic can also be a device independent of the video controller, such as the transmitting card used in the LED display screen control system.
In the several embodiments provided in the present application, it should be understood that the disclosed system, apparatus and method may be implemented in other manners. For example, the above-described embodiments of the apparatus are merely illustrative, and for example, the division of the units is only one logical division, and the actual implementation may have another division, for example, multiple units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on multiple network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, or in a form of hardware plus a software functional unit.
The integrated unit implemented in the form of a software functional unit may be stored in a computer readable storage medium. The software functional unit is stored in a storage medium and includes several instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute some steps of the methods according to the embodiments of the present invention. And the aforementioned storage medium includes: various media capable of storing program codes, such as a usb disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk, or an optical disk.
Finally, it should be noted that: the above examples are only intended to illustrate the technical solution of the present invention, but not to limit it; although the present invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; and such modifications or substitutions do not depart from the spirit and scope of the corresponding technical solutions of the embodiments of the present invention.

Claims (7)

1. A multi-device control method based on a browser is characterized by comprising the following steps:
the browser sends an http protocol request according to the IP address, acquires a web control page provided by the proxy equipment,
sending a terminal device search instruction to the proxy device through the web control page;
the proxy equipment responds to the terminal equipment searching instruction and searches for the terminal equipment which is in the same local area network with the proxy equipment;
the proxy equipment returns the searched terminal equipment information to the web control page through an http protocol;
the web control page controls the appointed terminal equipment through http protocol cross-domain access according to the terminal equipment information of the appointed terminal equipment, wherein the appointed terminal equipment and an http server deployed by the proxy equipment have the same protocol and port number and different IP addresses, and the proxy equipment authorizes the browser cross-domain access permission;
the designated terminal equipment and the agent equipment are both video controllers and are in the same local area network; each video controller is configured with a video processor chip, a microcontroller and a sending card logic, the microcontroller is connected with the video processor chip and the sending card logic, and the sending card logic is also connected with the video processor chip.
2. The browser-based multi-device control method of claim 1, wherein the specified terminal device and the proxy device further have udp server and udp client functions but are not configured with tcp server and tcp client functions.
3. The browser-based multi-device control method according to claim 1, wherein the searched terminal device information includes an IP address, a MAC address, and a port number.
4. A browser-based multi-device control system, comprising:
the system comprises a browser and a plurality of terminal devices, wherein the browser and the terminal devices are connected to the same local area network, and http servers deployed by the terminal devices have the same protocol and port numbers and different IP addresses;
the browser sends an http protocol request according to an IP address to acquire a web control page provided by a first terminal device in the plurality of terminal devices, and sends a terminal device search instruction to the first terminal device through the web control page;
the first terminal device serving as a proxy device responds to the terminal device searching instruction, searches for terminal devices which are located in the local area network and are the same as the first terminal device, and returns the searched terminal device information to the web control page through an http protocol;
and the browser performs http protocol cross-domain access control on a second terminal device in the plurality of terminal devices according to the searched terminal device information of the second terminal device through the web control page, wherein the first terminal device authorizes the browser to have cross-domain access.
5. The browser-based multi-device control system of claim 4, wherein the plurality of terminal devices further have udp server and udp client functions but are not configured with tcp server and tcp client functions.
6. The browser-based multi-device control system according to claim 4, wherein the searched terminal device information includes an IP address, a MAC address, and a port number.
7. The browser-based multi-device control system according to claim 4, wherein the plurality of terminal devices are a plurality of video controllers connected to the same local area network; each video controller is configured with a video processor chip, a microcontroller and a sending card logic, the microcontroller is connected with the video processor chip and the sending card logic, and the sending card logic is also connected with the video processor chip.
CN201710278945.3A 2017-04-25 2017-04-25 Multi-device control method and system based on browser Active CN106941500B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710278945.3A CN106941500B (en) 2017-04-25 2017-04-25 Multi-device control method and system based on browser

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710278945.3A CN106941500B (en) 2017-04-25 2017-04-25 Multi-device control method and system based on browser

Publications (2)

Publication Number Publication Date
CN106941500A CN106941500A (en) 2017-07-11
CN106941500B true CN106941500B (en) 2020-02-14

Family

ID=59463229

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710278945.3A Active CN106941500B (en) 2017-04-25 2017-04-25 Multi-device control method and system based on browser

Country Status (1)

Country Link
CN (1) CN106941500B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110290204B (en) * 2019-06-25 2022-05-17 腾讯科技(深圳)有限公司 Browser over-proxy implementation method and device and terminal equipment

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103780673A (en) * 2013-10-25 2014-05-07 上海视恒电子科技有限公司 Method for controlling LED screen
CN104079653A (en) * 2014-07-03 2014-10-01 上海积谕信息科技有限公司 Smart home control method and system based on B/S framework
CN105429838A (en) * 2015-12-31 2016-03-23 西安诺瓦电子科技有限公司 Led display system
CN105679231A (en) * 2015-12-31 2016-06-15 西安诺瓦电子科技有限公司 Terminal device access control system and led display system

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103780673A (en) * 2013-10-25 2014-05-07 上海视恒电子科技有限公司 Method for controlling LED screen
CN104079653A (en) * 2014-07-03 2014-10-01 上海积谕信息科技有限公司 Smart home control method and system based on B/S framework
CN105429838A (en) * 2015-12-31 2016-03-23 西安诺瓦电子科技有限公司 Led display system
CN105679231A (en) * 2015-12-31 2016-06-15 西安诺瓦电子科技有限公司 Terminal device access control system and led display system

Also Published As

Publication number Publication date
CN106941500A (en) 2017-07-11

Similar Documents

Publication Publication Date Title
US11075821B2 (en) Method and apparatus for managing field device based on cloud server
CN105430108B (en) Test environment access method and proxy server
CN109347881B (en) Network protection method, device, equipment and storage medium based on network spoofing
CN105376107B (en) Terminal testing method and proxy server
CN105591923B (en) A kind of storage method and device of forwarding-table item
JP6656612B2 (en) Network service configuration method and network management device
US8700820B2 (en) Method for accessing USB device attached to home gateway, home gateway and terminal
CN110248364B (en) IOT equipment network distribution method, device, equipment and medium
CN104135460B (en) A kind of push channel keepalive method and push server
WO2016029792A1 (en) Hardware device debugging method, device and system
CN110198334A (en) Access method, device and storage medium based on object storage service
CN110312140B (en) Live broadcast data processing method, device and system and computer readable storage medium
CN104994079A (en) Access request processing method, access request processing device and acceleration server
CN111049946B (en) Portal authentication method, portal authentication system, electronic equipment and storage medium
CN105871853A (en) Portal authenticating method and system
US20160269380A1 (en) Vpn communication terminal compatible with captive portals, and communication control method and program therefor
CN104821925A (en) Data interaction method, system and device
CN105450767A (en) Network connection method and apparatus for intelligent device and intelligent device
JP6665190B2 (en) Network sharing implementation method and apparatus
CN105337642B (en) A kind of offline terminal accesses the method and system of network data
EP2709337A1 (en) Service data processing method, device and system
CN106856484A (en) Control information transmission method based on Digital Operating Room, apparatus and system
CN104582011B (en) A kind of method and apparatus for mobile terminal to be connected to network
CN106941500B (en) Multi-device control method and system based on browser
CN103973753B (en) A kind of method and apparatus of data processing

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

Address after: 710075 DEF101, Zengyi Square, Xi'an Software Park, No. 72 Zhangbajie Science and Technology Second Road, Xi'an High-tech Zone, Shaanxi Province

Applicant after: Xi'an Nova Nebula Technology Co., Ltd.

Address before: High tech Zone technology two road 710075 Shaanxi city of Xi'an Province, No. 68 Xi'an Software Park D District 401

Applicant before: Xian Novastar Electronic Technology Co., Ltd.

CB02 Change of applicant information
GR01 Patent grant
GR01 Patent grant