Terminal equipment linkage method and system
By establishing a mapping relationship between the terminal device and the server, receiving and processing the call instructions from the browser side, the problem of low mobilization efficiency of traditional terminal device clusters is solved, efficient information transmission and device linkage are achieved, and the needs of IoT device clusters are met.
Patent Information
- Application Number
- CN202411735900.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-11-29
- Publication Date
- 2025-04-22
AI Technical Summary
The traditional terminal device cluster mobilization efficiency is low, resulting in low information implementation efficiency, which cannot meet the needs of large-scale device calls of terminal device clusters in IoT device clusters.
By establishing terminal device management folders and server supervision folders, a mapping relationship between the server and the terminal device is formed, calling instructions from the browser side are received, and corresponding trigger action data is analyzed and sent, which improves information transmission efficiency.
It solves the problem of high complexity in traditional server layout, enhances the linkage between servers and terminal devices, improves information realization efficiency, and meets the needs of large-scale device calls in IoT device clusters.
Smart Images

Figure CN119865485A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of device communication technology, and in particular to a terminal device linkage method and system. Background Art
[0002] Traditional terminal device cluster mobilization is to transmit mobilization information step by step through the communication network. The information architecture of this information transmission step by step is relatively complex, and the efficiency of information realization is low. Traditional terminal device cluster mobilization can be implemented using B / S architecture. B / S architecture is a browser and server architecture mode. The complexity of server layout in the B / S architecture directly affects the efficiency of information realization. At present, there is an application trend of large-scale device calls in terminal device clusters in the Internet of Things device clusters. How to efficiently call terminal device clusters is the current industry difficulty. To this end, it is necessary to propose a terminal device linkage method and system to address the defect of low efficiency of traditional terminal device cluster mobilization. Summary of the invention
[0003] Based on this, it is necessary to propose a terminal device linkage method and system to address the defect of low efficiency of traditional terminal device cluster mobilization.
[0004] The present application provides a terminal device linkage method, comprising:
[0005] Establish terminal device management folders and server supervision folders to form a mapping relationship between servers and terminal devices;
[0006] Receive calling instructions from the browser;
[0007] Based on the mapping relationship between the server and the terminal device, find the server corresponding to the call instruction;
[0008] Analyze the trigger threshold in the call instruction;
[0009] Based on the trigger threshold, sending trigger action data matching the trigger threshold;
[0010] Receive feedback information from the server corresponding to the call instruction;
[0011] Analyze feedback information and obtain feedback data;
[0012] Send feedback data to the browser.
[0013] The present application provides a terminal device linkage system, including:
[0014] A central server, used to execute the terminal device linkage method;
[0015] The browser is connected to the central server for communication;
[0016] The server is communicatively connected with the central server.
[0017] The present application relates to a terminal device linkage method and system, which forms a mapping relationship between a server and a terminal device by establishing a terminal device management folder and a server supervision folder. This solves the defect of high complexity of the layout of traditional servers and enhances the linkage between the server and the terminal device. By receiving the call instruction on the browser side, the server corresponding to the call instruction can be found based on the mapping relationship between the server and the terminal device, which greatly enhances the efficiency of information realization and meets the application requirements of large-scale device calls of terminal device clusters in the Internet of Things device cluster. Since there is a communication relationship between the server and multiple devices in the terminal device cluster, the trigger threshold in the call instruction is parsed, and based on the trigger threshold, the trigger action data matching the trigger threshold is sent, so that information can be sent to the terminal device cluster clearly and quickly through the server. BRIEF DESCRIPTION OF THE DRAWINGS
[0018] Figure 1 A method flow chart of a terminal device linkage method provided in one embodiment of the present application.
[0019] Figure 2 A structural connection diagram of a terminal device linkage system provided in one embodiment of the present application.
[0020] Reference numerals:
[0021] 100-central server; 200-browser; 300-server. DETAILED DESCRIPTION
[0022] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.
[0023] The present application provides a terminal device linkage method.
[0024] like Figure 1 As shown, in one embodiment of the present application, a terminal device linkage method includes:
[0025] S100, establishing a terminal device management folder and a server supervision folder to form a mapping relationship between the server and the terminal device.
[0026] S200, receiving a calling instruction from a browser.
[0027] S300, based on the mapping relationship between the server and the terminal device, searching for the server corresponding to the calling instruction.
[0028] S400, parsing the trigger threshold in the call instruction.
[0029] S500: Based on the trigger threshold, trigger action data matching the trigger threshold is sent.
[0030] S600, receiving feedback information sent by a server corresponding to the calling instruction.
[0031] S700: Analyze the feedback information and obtain feedback data.
[0032] S800: Send the feedback data to the browser.
[0033] The present application relates to a terminal device linkage method, which forms a mapping relationship between a server and a terminal device by establishing a terminal device management folder and a server supervision folder. This solves the defect of high complexity of the layout of traditional servers and enhances the linkage between the server and the terminal device. By receiving the call instruction on the browser side, the server corresponding to the call instruction can be found based on the mapping relationship between the server and the terminal device, which greatly enhances the efficiency of information realization and meets the application requirements of large-scale device calls of terminal device clusters in the Internet of Things device cluster. Since there is a communication relationship between the server and multiple devices in the terminal device cluster, the trigger threshold in the call instruction is parsed, and based on the trigger threshold, the trigger action data matching the trigger threshold is sent, so that information can be sent to the terminal device cluster clearly and quickly through the server.
[0034] In one embodiment of the present application, S100 includes:
[0035] S111, establishing a management device table.
[0036] S112, receiving the terminal device serial number.
[0037] S113, adding the terminal device serial number to the management device table.
[0038] S114, returning the receiving terminal device serial number until all terminal device serial numbers are received.
[0039] Specifically, the B / S architecture is the browser / server architecture, which concentrates the core functions of the system on the server, and the client only needs to install a web browser to operate. This architecture model simplifies the development, maintenance and use of the system, and realizes the connection and information sharing of heterogeneous systems.
[0040] In this embodiment, in order to improve the information realization efficiency of the browser / server architecture, the terminal device cluster is brought under the jurisdiction of the server, and the terminal device serial numbers of the terminal device cluster are managed by establishing a management device table.
[0041] Use the terminal device serial number to find the corresponding terminal device. One terminal device serial number corresponds to one terminal device.
[0042] This embodiment uses the serial number of the terminal device as information for searching the terminal device, which is helpful to simplify the difficulty of searching the terminal device and improve the efficiency of calling the terminal device.
[0043] In one embodiment of the present application, S100 further includes:
[0044] S121, parsing the terminal device serial number based on the terminal device serial number.
[0045] S122, generating multiple management folders.
[0046] S123, select a management folder.
[0047] S124, assigning identification data in the device serial number to the management folder.
[0048] S125, based on the mark data, the terminal device serial numbers having the same mark data are included in the management folder.
[0049] S126, returns to the selection of a management folder until all management folders are selected. Specifically, in the B / S architecture, the user sends requests to the central server through the browser, and the central server processes these requests and returns data to the browser. This involves three main layers: presentation layer, logic layer and data layer. The presentation layer is responsible for the user interface and input and output functions. The logic layer mainly handles business logic. The data layer is responsible for data storage and retrieval.
[0050] This embodiment involves the data layer. The secondary architecture layer of the central server is each server. These servers can communicate with multiple terminal devices. By generating multiple management folders, the information of multiple terminal devices belonging to the same server can be more clearly saved in one management folder.
[0051] The same server has the same identification data during information communication, and the same identification data can be used to include the serial numbers of terminal devices with the same identification data into the same management folder.
[0052] In one embodiment of the present application, before S200, the following steps are included:
[0053] S210, receiving a network access application from at least one browser.
[0054] S220, select a browser-side network access application.
[0055] S230, verifying the network access application from the browser.
[0056] S240: Establish a communication connection with the browser based on the verification information.
[0057] S250, returning to the step of selecting a network access application on a browser side until all network access applications are completed.
[0058] Specifically, in the B / S architecture, the communication between the browser and the server mainly relies on the HTTP / HTTPS protocol. When a user enters a URL or clicks a link in the browser, a request is triggered and sent to the server. The server processes the request and returns the corresponding data to the browser, which then parses and displays the data to the user.
[0059] To realize the complete communication process, you need to understand its detailed steps and related technologies. They are as follows:
[0060] Domain name resolution includes the following steps:
[0061] Lookup cache: The browser first checks the local cache and operating system cache to see if the IP address of the domain name exists. If found, it directly uses the IP address and skips the subsequent steps.
[0062] Query the DNS server: If no cache is found, the browser will send a request to the DNS server of the network to obtain the IP address corresponding to the domain name.
[0063] Root domain name server resolution: If the DNS server does not have the record, it will initiate a request to the root domain name server (RootServer), and the root domain name server will return the address of the top-level domain name server (gTLD Server).
[0064] Top-level domain name server resolution: The DNS server then initiates a request to the top-level domain name server to obtain the address of the Name Server responsible for the domain name resolution, and finally obtains the IP address corresponding to the domain name from the Name Server.
[0065] Establishing a TCP connection includes the following steps:
[0066] First handshake: The client sends a SYN packet to the server, indicating that it wants to establish a connection.
[0067] Second handshake: The server responds with a SYN-ACK packet to confirm the client's SYN packet and request to establish a connection.
[0068] The third handshake: The client sends an ACK packet to the server, confirms the server's SYN-ACK packet, and completes the connection establishment.
[0069] Sending an HTTP request includes the following steps:
[0070] Building a request: The browser builds an HTTP request based on the URL and other information (such as method, headers, form data, etc.).
[0071] Send request: The request is sent to the server, and the server listens on the specified port and receives the request.
[0072] The server processes the request in the following steps:
[0073] Parsing the request: The server parses the HTTP request to determine the request type (GET, POST, etc.) and the target resource.
[0074] Handling dynamic content: If the request involves dynamic content, the server will execute related scripts or query the database to generate the response data.
[0075] Return response: The response data generated by the server (such as HTML, pictures, scripts, etc.) is sent back to the browser.
[0076] The browser parsing and presentation includes the following steps:
[0077] Parsing HTML: The browser parses the HTML file returned by the server and builds a DOM tree.
[0078] Download resources: The browser downloads CSS, JavaScript, images and other resources based on the links and references in the HTML.
[0079] Rendering the page: The browser renders the page according to the CSS style and executes the JavaScript code to finally present the complete page.
[0080] In fact, the above steps are a communication process between a browser and a central server. The central server can communicate with multiple browsers at the same time or at different times. This greatly improves the device calls in the same small cluster or different small clusters in the terminal device cluster.
[0081] Based on the communication between the browser and the central server, and the communication between the central server and the server, the communication architecture of the entire device layer has a clear structure and high communication efficiency.
[0082] In one embodiment of the present application, S100 further includes:
[0083] S131, establishing a management server table.
[0084] S132, receiving the server serial number.
[0085] S133, adding the server serial number to the management device table.
[0086] S134, returning the receiving server serial number until all server serial numbers are received.
[0087] S141, parsing the server serial number based on the server serial number.
[0088] S142, generating multiple supervision folders.
[0089] S143, select a supervision folder.
[0090] S144, assigning characteristic data in the server serial number to the supervision folder.
[0091] S145, based on the characteristic data, the server device serial numbers having the same characteristic data are included in the supervision folder.
[0092] S146, returning to the step of selecting a supervision folder until all supervision folders are selected.
[0093] Specifically, based on the management server table, server serial number, and multiple supervision folders, the device architecture between the central server and the server can be built. Between the server and the central server, the construction, response, and call of the logical layer can be realized more clearly through the management server table. This greatly improves the communication convenience and information transmission efficiency of the entire architecture.
[0094] In the B / S architecture, the communication between the central server and the server mainly depends on network protocols and middleware technologies, such as HTTP / HTTPS protocols, database connections, and message queues.
[0095] The specific steps of network protocol communication are as follows:
[0096] Establish connection: The central server and the application server establish a connection through the TCP / IP protocol. This process usually includes DNS resolution to find the IP address of the target server, and then a TCP three-way handshake to establish the connection.
[0097] Data transmission: After the connection is established, the central server sends a request to the application server through the HTTP / HTTPS protocol to transmit data. The request data can be GET, POST and other types of operations.
[0098] The specific steps of middleware technology are as follows:
[0099] Database connection: In many B / S architecture applications, the central server needs to interact with the database server. This is usually achieved through database connection pool technology, such as using JDBC, ODBC and other connection methods.
[0100] Message queue: In order to achieve asynchronous communication and load balancing, message queue technology may be used between the central server and the application server, such as RabbitMQ, Kafka, etc. In this way, the central server can send requests and data to the queue in the form of messages, and the application server obtains and processes these messages from the queue according to its own processing capabilities.
[0101] The specific steps of load balancing technology are as follows:
[0102] Distribute requests: When the system has a large amount of traffic, you can use load balancing technology to distribute the requests to multiple application servers. This can be achieved through a hardware load balancer or a software load balancer (such as Nginx).
[0103] Health check: The load balancer can also perform health checks regularly to ensure that each application server can receive and process requests normally.
[0104] The specific steps of the distributed system are as follows:
[0105] Microservice architecture: In a complex B / S architecture system, the central server may need to communicate with multiple microservices. Each microservice can be regarded as an independent application server, and they communicate with each other through RESTful API or gRPC protocol.
[0106] Service discovery: In a microservice architecture, the service discovery mechanism allows the central server to dynamically perceive available service instances, which is achieved through a registration center (such as Eureka, Consul).
[0107] The specific steps of secure communication technology are as follows:
[0108] Encrypted transmission: In order to protect data security during transmission, the communication between the central server and the application server usually adopts the HTTPS protocol, and the data transmission process is encrypted through SSL / TLS.
[0109] Authentication and authorization: The central server needs to perform identity authentication and authorization when communicating with the application server. Common technologies include OAuth, API keys, and JWT (JSON Web Tokens).
[0110] It is worth mentioning that through multiple supervision folders, load balancing technology can be implemented. Servers managed by the same supervision folder can achieve load balancing, and the central server distributes the communication computing load with large computing volume to each server managed by the same supervision folder.
[0111] In one embodiment of the present application, S100 further includes:
[0112] S151, select a supervision folder.
[0113] S152, select a server serial number in the supervision folder.
[0114] S153, select a management folder.
[0115] S154, determining whether the server serial number matches the management folder.
[0116] S155, if the server serial number matches the management folder, a mapping relationship is formed between each terminal device serial number in the management folder and the server serial number, and the process returns to selecting a management folder until all management folders are selected.
[0117] S156, if the server serial number does not match the management folder, return to the step of selecting a management folder until all management folders are selected.
[0118] S157, returning to the process of selecting a server serial number in the supervision folder until all server serial numbers are selected.
[0119] S158, returning to the step of selecting a supervision folder until all supervision folders are selected.
[0120] Specifically, one server can communicate with multiple terminal devices. By judging the matching degree between the server serial number and the management folder, a mapping relationship can be formed between the server serial number and each terminal device serial number of the management folder.
[0121] Compared with the traditional B / S architecture, this embodiment introduces a terminal device and associates the terminal device with the server, which reduces the complexity of the information architecture for information transmission step by step, and the efficiency of information realization is higher.
[0122] In one embodiment of the present application, before S400, the process includes:
[0123] S411: Select a mapping relationship.
[0124] S412: Generate a value range of a trigger threshold based on the mapping relationship.
[0125] S413: Using the number of terminal device serial numbers in the mapping relationship, call at least one trigger threshold in the numerical range.
[0126] S414, select a terminal device serial number.
[0127] S415: assign a trigger threshold to the terminal device serial number.
[0128] S416, returning to the step of selecting a terminal device serial number until all terminal device serial numbers are selected.
[0129] S417, returning to the step of selecting a mapping relationship until all mapping relationships are selected.
[0130] Specifically, since the server manages multiple terminal devices, different terminal devices can be distinguished during the actual calling process by using the trigger threshold.
[0131] To illustrate with an example, when trigger threshold A is received, terminal device 1 may respond.
[0132] When trigger threshold B is received, terminal device 2 may respond.
[0133] When the trigger threshold A1 is received, the terminal device 1 may respond by invoking a monitoring operation.
[0134] When the trigger threshold A2 is received, the terminal device 1 may respond by invoking an audio operation.
[0135] In one embodiment of the present application, S400 includes:
[0136] S421, receiving a calling instruction.
[0137] S422, determining a trigger threshold.
[0138] Specifically, if the trigger threshold is A, it is not the trigger threshold is 1.
[0139] S423, searching for a value range based on the trigger threshold.
[0140] Specifically, server 1 to server 4 correspond to trigger thresholds A to D.
[0141] Servers 5 to 8 correspond to trigger thresholds 1 to 4.
[0142] It can be determined by the trigger threshold being A that communication with server 1 is required.
[0143] S424, determining the server serial number in the mapping relationship based on the numerical range.
[0144] S425, establishing a communication connection with the server corresponding to the server serial number.
[0145] This embodiment involves the use of trigger thresholds. In fact, when the trigger threshold A1 is received, the terminal device 1 can respond to call a monitoring operation. When the trigger threshold A2 is received, the terminal device 1 can respond to call an audio operation.
[0146] The present application provides a terminal device linkage system.
[0147] like Figure 2 As shown, in one embodiment of the present application, a terminal device linkage system includes a central server 100, a browser terminal 200 and a server 300.
[0148] The central server 100 is used to execute the terminal device linkage method.
[0149] The browser 200 is connected to the central server 100 for communication.
[0150] The server 300 is in communication connection with the central server 100 .
[0151] The present application relates to a terminal device linkage system, in which the central server 100 forms a mapping relationship between the server and the terminal device by establishing a terminal device management folder and a server supervision folder. This solves the defect of high complexity of the layout of traditional servers and enhances the linkage between the server 200 and the terminal device. By receiving the call instruction of the browser end 200, the server corresponding to the call instruction can be found based on the mapping relationship between the server and the terminal device, which greatly enhances the efficiency of information realization and meets the application requirements of large-scale device calls of the terminal device cluster in the Internet of Things device cluster. Since there is a communication relationship between the server and multiple devices in the terminal device cluster, the trigger threshold in the call instruction is parsed, and based on the trigger threshold, the trigger action data matching the trigger threshold is sent, so that information can be sent to the terminal device cluster clearly and quickly through the server.
[0152] The technical features of the above-described embodiments may be arbitrarily combined, and the execution order of the method steps is not limited. To make the description concise, not all possible combinations of the technical features in the above-described embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.
[0153] The above-described embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the present application. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the attached claims.
Claims
1. A terminal device linkage method, characterized in that: The method comprises: Establish terminal device management folders and server supervision folders to form a mapping relationship between servers and terminal devices; Receive calling instructions from the browser; Based on the mapping relationship between the server and the terminal device, find the server corresponding to the call instruction; Analyze the trigger threshold in the call instruction; Based on the trigger threshold, sending trigger action data matching the trigger threshold; Receive feedback information from the server corresponding to the call instruction; Analyze feedback information and obtain feedback data; Send feedback data to the browser.
2. The terminal device linkage method according to claim 1, characterized in that: The step of establishing a terminal device management folder and a server supervision folder to form a mapping relationship between the server and the terminal device includes: Establish a management equipment table; Receive terminal device serial number; Include the terminal device serial number in the management device table; The receiving terminal device serial number is returned until all terminal device serial numbers are received.
3. The terminal device linkage method according to claim 2, characterized in that: The establishment of the terminal device management folder and the server supervision folder to form a mapping relationship between the server and the terminal device also includes: Based on the terminal device serial number, parse the terminal device serial number; Generate multiple management folders; Select an administrative folder; Assigning the identification data in the device serial number to the management folder; Based on the identification data, the terminal device serial numbers having the same identification data are included in the management folder; Return to the step of selecting a management folder until all management folders are selected.
4. The terminal device linkage method according to claim 3, characterized in that: Before receiving the calling instruction from the browser, the method further includes: Receiving a network access application from at least one browser; Select a browser-based network application; Verify the network access application on the browser side; Based on the verification information, a communication connection is established with the browser; Return to selecting a browser-side network access application until all network access applications are completed.
5. The terminal device linkage method according to claim 4, characterized in that: The step of establishing a server supervision folder includes: Create a management server table; Receive server serial number; Include the server serial number in the management device table; The receiving server serial number is returned until all server serial numbers are received.
6. The terminal device linkage method according to claim 5, characterized in that: The establishment of the terminal device management folder and the server supervision folder to form a mapping relationship between the server and the terminal device also includes: Based on the server serial number, parse the server serial number; Generate multiple regulatory folders; Select a regulatory folder; Assign characteristic data in the server serial number to the supervision folder; Based on the characteristic data, the server device serial numbers having the same characteristic data are included in the supervision folder; Return to Select a Supervision Folder until all supervision folders are selected.
7. The terminal device linkage method according to claim 6, characterized in that: The establishment of the terminal device management folder and the server supervision folder to form a mapping relationship between the server and the terminal device also includes: Select a regulatory folder; Select a server serial number in the supervision folder; Select an administrative folder; Determine whether the server serial number matches the management folder; If the server serial number matches the management folder, a mapping relationship is formed between each terminal device serial number in the management folder and the server serial number, and the process returns to selecting a management folder until all management folders are selected; If the server serial number does not match the management folder, return to the step of selecting a management folder until all management folders are selected; Return to selecting a server serial number in the supervision folder until all server serial numbers are selected; Return to Select a Supervision Folder until all supervision folders are selected.
8. The terminal device linkage method according to claim 7, characterized in that: Before parsing the trigger threshold in the call instruction, the method further includes: Select a mapping relationship; Based on the mapping relationship, a value range of the trigger threshold is generated; Using the number of terminal device serial numbers in the mapping relationship, call at least one trigger threshold in the value range; Select a terminal device serial number; Assigning a trigger threshold to the terminal device serial number; Return to the step of selecting a terminal device serial number until all terminal device serial numbers have been selected; Return to selecting a mapping relationship until all mapping relationships are selected.
9. The terminal device linkage method according to claim 8, characterized in that: The trigger threshold in the parsing call instruction includes: Receive call instructions; Determine the trigger threshold; Based on the trigger threshold, find the value range; Based on the value range, determine the server serial number in the mapping relationship; Establish a communication connection with the server corresponding to the server serial number.
10. A terminal device linkage system, characterized in that: include: A central server, configured to execute the terminal device linkage method according to any one of claims 1 to 9; The browser is connected to the central server for communication; The server is communicatively connected with the central server.