Simulation data updating method, device and system

By establishing a long connection channel with the client and the simulation operation platform during the data simulation process, receiving and transmitting simulated data in real time, and automatically triggering client page refresh, the problems of cumbersome and delayed update operations in the existing technology are solved, and testing efficiency and user experience are improved.

CN119622139APending Publication Date: 2025-03-14JINGDONG TECH HLDG CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411755187.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-12-02
Publication Date
2025-03-14

AI Technical Summary

Technical Problem

In the data simulation process, the update operation is cumbersome and delayed, resulting in inefficient testing and poor user experience.

Method used

By establishing a long connection channel with the client and the simulation operation platform, receiving and transmitting simulated data in real time, automatically triggering client page refresh to achieve real-time dynamic refresh.

Benefits of technology

Reduces operational complexity, improves testing efficiency and user experience, and achieves automation and real-time updates.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119622139A_ABST
    Figure CN119622139A_ABST
Patent Text Reader

Abstract

The invention discloses an analog data updating method, device and system. Relates to the technical field of computers. A specific embodiment of the method comprises the following steps: establishing a long connection channel with a client and a simulation operation platform; based on the long connection channel, receiving simulation data sent by the client and sending the simulation data to the simulation operation platform; receiving a data updating instruction sent by the simulation operation platform and the edited simulation data; and sending the data updating instruction and the edited analog data to the client, and triggering the client to refresh a page based on the data updating instruction and the edited analog data. According to the embodiment, real-time refreshing can be automatically carried out, the operation complexity is reduced, the test efficiency is improved, and the user experience feeling is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of computer technology, and in particular to a method, device and system for updating simulation data. Background Art

[0002] In the current solution, when performing data simulation (mock), each data modification needs to be sent manually, and each device page needs to be manually refreshed to see the expected results.

[0003] In the process of implementing the present invention, the inventors found that there are at least the following problems in the related art:

[0004] Manual update operations are cumbersome and have delays, resulting in low testing efficiency and poor user experience. Summary of the invention

[0005] In view of this, the embodiments of the present invention provide a method, device and system for updating simulation data, which can automatically perform real-time refresh, reduce the complexity of operation, improve test efficiency and enhance user experience.

[0006] To achieve the above object, according to one aspect of an embodiment of the present invention, a method for updating simulation data is provided, which is applied to a server and includes:

[0007] Establish a long connection channel with the client and the simulation operation platform;

[0008] Based on the long connection channel, receive the simulation data sent by the client and send the simulation data to the simulation operation platform;

[0009] Receive data update instructions and edited simulation data sent by the simulation operation platform;

[0010] The data update instruction and the edited simulation data are sent to the client, triggering the client to refresh the page based on the data update instruction and the edited simulation data.

[0011] Optionally, the client is one or more.

[0012] Optionally, establish a long connection channel with the client and the simulation operation platform, including:

[0013] Start the persistent connection service and establish a persistent connection channel based on the persistent connection service and the simulation operation platform;

[0014] Generate a link identifier corresponding to the long connection channel, and feed the link identifier back to the simulation operation platform;

[0015] In response to receiving a persistent connection request sent by a client, a persistent connection channel is established with the client; wherein the persistent connection request is generated by the client by scanning a link identifier on a simulated operation platform.

[0016] Optionally, the simulation data includes device data and page configuration data; receiving the simulation data sent by the client includes:

[0017] Receive device data and page configuration data reported by the client; wherein the device data and page configuration data are acquired by the client based on a pre-configured dynamic framework monitoring;

[0018] The pre-created device management service and simulation interface list management service are used to store device data and page configuration data, so that the device management service and simulation interface list service send simulation data to the simulation operation platform.

[0019] According to a second aspect of an embodiment of the present invention, a method for updating simulation data is provided, which is applied to a client and includes:

[0020] Establishing a long connection channel with the server; wherein a long connection channel is established between the server and the simulation operation platform;

[0021] Sending simulation data to the server based on the long connection channel, and receiving the data update instruction and the edited simulation data sent by the server; wherein the data update instruction and the edited simulation data are obtained by the server sending the simulation data to the simulation operation platform based on the long connection channel;

[0022] Based on the data update instruction, refresh the page according to the edited simulation data.

[0023] Optionally, refresh the page based on the edited mock data, including:

[0024] Send a network request to the server, and receive the simulated interface list data fed back by the server based on the network request;

[0025] Match the simulated interface list data with the edited simulated data, and refresh the page based on the matching results.

[0026] According to a third aspect of an embodiment of the present invention, a first updating device for simulation data is provided. The first updating device is applied to a server, and includes:

[0027] A connection management module is used to establish a long connection channel with the client and the simulation operation platform;

[0028] A data receiving module is used to receive simulation data sent by the client based on a long connection channel and send the simulation data to the simulation operation platform;

[0029] An editing and receiving module is used to receive data update instructions and edited simulation data sent by the simulation operation platform;

[0030] The update trigger module is used to send the data update instruction and the edited simulation data to the client, triggering the client to refresh the page based on the data update instruction and the edited simulation data.

[0031] According to a fourth aspect of an embodiment of the present invention, a second updating device for simulation data is provided, and the second updating device is applied to a client, comprising:

[0032] A connection establishment module is used to establish a long connection channel with the server; wherein a long connection channel is established between the server and the simulation operation platform;

[0033] A data transmission module, used to send simulation data to the server based on a long connection channel, and receive data update instructions and edited simulation data sent by the server; wherein the data update instructions and edited simulation data are obtained by the server sending simulation data to the simulation operation platform based on the long connection channel;

[0034] The page refresh module is used to refresh the page according to the edited simulation data based on the data update instruction.

[0035] According to a fifth aspect of an embodiment of the present invention, there is provided a simulation data updating system, comprising: a first updating device, a second updating device and a simulation operation platform; wherein:

[0036] The first updating device establishes a long connection channel with the second updating device and the simulation operation platform;

[0037] The second updating device sends the simulation data to the first updating device based on the long connection channel, and the first updating device sends the simulation data to the simulation operation platform based on the long connection channel;

[0038] The simulation operation platform generates a data update instruction and the edited simulation data in response to the user editing the simulation data, and sends the data update instruction and the edited simulation data to the first updating device;

[0039] The first updating device sends the data updating instruction and the edited simulation data to the second updating device, and the second updating device refreshes the page based on the data updating instruction and the edited simulation data.

[0040] According to a sixth aspect of an embodiment of the present invention, there is provided an electronic device, including:

[0041] one or more processors;

[0042] a storage device for storing one or more programs,

[0043] When one or more programs are executed by one or more processors, the one or more processors implement the method provided by the first aspect or the second aspect of the embodiment of the present invention.

[0044] According to a seventh aspect of an embodiment of the present invention, a computer-readable medium is provided, on which a computer program is stored. When the program is executed by a processor, the method provided by the first aspect or the second aspect of the embodiment of the present invention is implemented.

[0045] According to an eighth aspect of an embodiment of the present invention, a computer program product is provided, including a computer program, and when the computer program is executed by a processor, the method provided by the first aspect or the second aspect of the embodiment of the present invention is implemented.

[0046] An embodiment of the above invention has the following advantages or beneficial effects: by establishing a long connection channel with the client and the simulation operation platform; based on the long connection channel, receiving the simulation data sent by the client and sending the simulation data to the simulation operation platform; receiving the data update instruction and the edited simulation data sent by the simulation operation platform; sending the data update instruction and the edited simulation data to the client, triggering the client to refresh the page based on the data update instruction and the edited simulation data. Thus, the server can automatically trigger the client to refresh in real time, reducing the complexity of the operation, and improving the test efficiency and user experience. By establishing a long connection channel with the server; wherein a long connection channel is established between the server and the simulation operation platform; sending simulation data to the server based on the long connection channel, and receiving the data update instruction and the edited simulation data sent by the server; wherein the data update instruction and the edited simulation data are obtained by the server sending the simulation data to the simulation operation platform based on the long connection channel; based on the data update instruction, refreshing the page according to the edited simulation data. Thus, real-time dynamic refresh can be performed, reducing the complexity of the operation, and improving the test efficiency and user experience.

[0047] The further effects of the above-mentioned non-conventional optional manner will be described below in conjunction with the specific implementation manner. BRIEF DESCRIPTION OF THE DRAWINGS

[0048] The accompanying drawings are used to better understand the present invention and do not constitute an improper limitation of the present invention.

[0049] Figure 1 is a schematic diagram of the main process of a method for updating simulation data according to an embodiment of the present invention;

[0050] Figure 2 is a schematic diagram of the main process of a method for updating simulation data according to another embodiment of the present invention;

[0051] Figure 3is a schematic diagram of the main process of a method for updating simulation data according to a preferred embodiment of the present invention;

[0052] Figure 4 is a schematic diagram of main modules of a first updating device for simulation data according to an embodiment of the present invention;

[0053] Figure 5 is a schematic diagram of main modules of a second updating device for simulation data according to an embodiment of the present invention;

[0054] Figure 6 is a schematic diagram of the main structure of a system for updating simulation data according to an embodiment of the present invention;

[0055] Figure 7 is an exemplary system architecture diagram to which embodiments of the present invention may be applied;

[0056] Figure 8 It is a schematic diagram of the structure of a computer system of a terminal device or a server suitable for implementing an embodiment of the present invention. DETAILED DESCRIPTION

[0057] The following is a description of exemplary embodiments of the present invention in conjunction with the accompanying drawings, including various details of the embodiments of the present invention to facilitate understanding, which should be considered as merely exemplary. Therefore, it should be recognized by those of ordinary skill in the art that various changes and modifications may be made to the embodiments described herein without departing from the scope and spirit of the present invention. Similarly, for clarity and conciseness, the description of well-known functions and structures is omitted in the following description.

[0058] It should be noted that the acquisition, storage and application of personal information involved in the embodiments of the present invention are in compliance with the provisions of relevant laws and regulations and do not violate public order and good morals.

[0059] In the current solution, when performing data simulation (mock), each data modification needs to be sent manually, and each device page needs to be manually refreshed to see the expected results. Manual update operations are cumbersome and updates are delayed, resulting in low test efficiency and poor user experience.

[0060] In view of this, according to one aspect of an embodiment of the present invention, a method for updating simulation data is provided.

[0061] Figure 1 FIG. 1 is a schematic diagram of the main process of the method for updating simulation data according to an embodiment of the present invention. Figure 1 As shown, the simulation data updating method according to the embodiment of the present invention is applied to the server and includes the following steps S101 to S104.

[0062] Step S101, establishing a long connection channel with the client and the simulation operation platform.

[0063] The client is the device that runs the user application, which can be an Android or iOS mobile device. The simulation operation platform is an interface or system for managing and editing simulation data, which can run on a PC (Personal Computer) or a Web (Web page). Users can view and modify the simulation data of the device through the platform. The simulation operation platform also communicates with the server through a long connection channel so that any modification operation can be synchronized to the client in real time.

[0064] A persistent two-way communication connection is created between the server and the client and the simulation operation platform. The persistent connection channel can be realized through protocols that support two-way communication, such as Web Socket. Web Socket is a full-duplex communication protocol that allows the server and the client to maintain an open communication channel after the connection is established. Compared with the traditional HTTP protocol (Hyper Text Transfer Protocol), which requires a new connection for each request, this method can maintain continuous communication and improve the efficiency of data processing. For example, the server starts the Web Socket service and listens for connection requests from the client and the simulation operation platform. The client and the simulation operation platform initiate connection requests through their respective network modules. The connection request can carry necessary authentication information (such as a link code or user credentials). After receiving these connection requests, the server can also verify to determine whether the request comes from a legitimate device or platform. After the verification is passed, the server establishes a stable persistent connection channel and assigns a unique connection identifier to each connection to distinguish the communication between different devices and platforms.

[0065] Step S102: Based on the long connection channel, receive the simulation data sent by the client and send the simulation data to the simulation operation platform.

[0066] Simulation data refers to various types of data generated by the client and sent to the server, usually including device status, sensor information, network request response data, etc. These data can be key data for device simulation, debugging or testing, and are used to make adjustments on the simulation platform. The server receives the above simulation data by listening to the messages of the long connection channel, and classifies and stores them so that they can be sent to the simulation operation platform through the long connection channel. The high efficiency of the long connection channel ensures the real-time transmission of simulation data, so that the simulation operation platform and the client can keep in sync. When the client sends data to the server, the server immediately passes the data to the simulation operation platform, which improves the consistency of data updates on the platform and client data; the long connection channel is used to ensure the rapid response and stable transmission of data, avoiding the delay problem caused by traditional polling, so that the client's simulation data can be reflected in the simulation operation platform in real time.

[0067] Step S103, receiving the data update instruction and edited simulation data sent by the simulation operation platform.

[0068] The data update command is a command sent by the platform to the server after the user edits the device data or page configuration data on the simulation operation platform, which is used to notify the server that the current data needs to be updated. The edited simulation data is the result of the user's modification of the original simulation data, including adjustments to the device behavior, page display, or network request response data.

[0069] Specifically, when the user performs editing operations on the simulation operation platform, the simulation operation platform will generate corresponding data update instructions based on the user's editing content, and send the edited simulation data together with the above data update instructions to the server. After receiving this information, the server can parse the data update instructions, determine the data content that needs to be updated and its target device, and then compare the edited simulation data with the currently stored data to determine the correctness and consistency of the modified content, and finally synchronize these data to the specified client so that the client can refresh the page and simulate the behavior based on these updated data. In addition, after receiving the data update instructions and the edited simulation data, the server can also convert, filter or verify the data format according to the preset rules to determine the accuracy and validity of the simulation data. After completing the data processing, the server pushes the data to multiple clients according to the priority of the update instructions, so that all relevant devices receive the latest simulation data and maintain data consistency between multiple devices.

[0070] Step S104: sending the data update instruction and the edited simulation data to the client, triggering the client to refresh the page based on the data update instruction and the edited simulation data.

[0071] After receiving the data update instructions and edited simulation data sent by the simulation operation platform, the server transmits them to the client through the established long connection channel. After receiving this information, the client can process it accordingly according to the data update instructions, parse the content of the update instructions, and refresh the page based on the requirements in the update instructions. The server can also compress or convert the data according to the client's device type or network conditions to improve the efficiency and accuracy of data transmission; after receiving the data, the client decompresses or converts the data, and performs corresponding rendering and layout adjustments on the page to ensure consistent performance on multiple devices.

[0072] The embodiment of the present invention establishes a long connection channel with the client and the simulation operation platform; based on the long connection channel, receives the simulation data sent by the client and sends the simulation data to the simulation operation platform; receives the data update instruction and the edited simulation data sent by the simulation operation platform; sends the data update instruction and the edited simulation data to the client, and triggers the client to refresh the page based on the data update instruction and the edited simulation data. In this way, the server can automatically trigger the client to refresh in real time, reducing the complexity of the operation, improving the test efficiency and enhancing the user experience.

[0073] Optionally, there are one or more clients. That is, multiple devices and multiple terminals can be processed synchronously. A client can be a single device, such as a mobile phone, computer or other smart device; when there are multiple clients, it can maintain connection with multiple terminal devices at the same time, and synchronize and manage the data of multiple devices, which improves the scalability and compatibility of the system and can be applied to complex application scenarios, such as cross-platform operations and multi-device linkage. When there are multiple clients, the server can correctly distinguish the data when receiving the data of each client, and process it accordingly according to the characteristics and status of each client. Different clients may have different screen sizes, operating systems, and network environments. The server can customize the data transmission and page update methods according to these differences, so that each client can correctly display and respond to the simulation operation. In addition, after receiving an update request from a client, the server can immediately synchronize the updated data to other connected clients. For example, when the user updates the simulation data on the PC, the server can send the data to all connected mobile devices to achieve real-time data synchronization. This multi-terminal synchronization mechanism can make all clients in a consistent state and improve the user experience. Whether it is a single client or multiple clients, this embodiment can ensure the real-time and accuracy of data, and improve the practicality of application scenarios through flexible multi-terminal support.

[0074] Optionally, establishing a long connection channel with the client and the simulation operation platform includes: starting a long connection service, establishing a long connection channel with the simulation operation platform based on the long connection service; generating a link identifier corresponding to the long connection channel, and feeding back the link identifier to the simulation operation platform; in response to receiving a long connection request sent by the client, establishing a long connection channel with the client; wherein the long connection request is generated by the client by scanning the link identifier on the simulation operation platform.

[0075] To establish a long connection channel with the client and the simulation operation platform, first start the long connection service, which is a service that can handle long-term continuous communication between multiple devices. A stable channel is created between the long connection service and the simulation operation platform, so that the simulation operation platform can monitor and send data to the server in real time. In order to identify the uniqueness of this long connection channel, the server can generate a link identifier corresponding to the long connection channel after the connection is established. This link identifier is a unique mark used for subsequent connection operations. The link identifier can be a unique ID (Identifier), token or QR code to identify the relevant information of the channel. After generating the link identifier, the server can feedback the link identifier to the simulation operation platform, and the simulation operation platform can display the link identifier for the client to use. For example, the link identifier is displayed in the form of a QR code on the platform interface for the user to scan with a mobile device client. When the client is ready to establish a connection, the user can generate a long connection request by scanning the link identifier on the simulation operation platform. The request contains the client's device information and the corresponding link identifier. After receiving this request, the server can establish a long connection channel with the client by parsing the identification information in the request. In this way, the server can establish independent long connection channels with multiple clients and simulation operation platforms at the same time, and use the generated link identifier to make each connection channel unique and stable, realizing real-time data interaction between the client, server and simulation operation platform.

[0076] Optionally, the simulation data includes device data and page configuration data; receiving the simulation data sent by the client includes: receiving the device data and page configuration data reported by the client; wherein the device data and page configuration data are acquired by the client based on a pre-configured dynamic framework monitoring; using a pre-created device management service and a simulation interface list management service to store the device data and page configuration data, so that the device management service and the simulation interface list service send the simulation data to the simulation operation platform.

[0077] Among them, device data and page configuration data are a series of device-related hardware information and UI information (User Interface) related to page configuration reported by the client. Device data includes information such as device model, operating system version, resolution, hardware identifier, etc.; page configuration data includes information such as the structure, layout, location and attributes of UI elements of the current page. With these data, the server can perform personalized simulation and response for different devices. Device data and page configuration data are obtained by the client based on pre-configured dynamic framework monitoring. Dynamic technology is used to update data in real time by intercepting network requests or monitoring page changes. The dynamic framework can be integrated in the client's network request module or UI rendering module. It can capture changes in device status and page configuration in the background without interrupting normal operations, and send these changes to the server in real time. The server uses the pre-created device management service and simulation interface list management service to store device data and page configuration data, and can call these data in real time for simulation operations. Among them, the device management service is used to process, classify and store device data from different clients, so that each device's data has a unique identifier and management mechanism on the server side; the simulation interface list management service is used to store simulation data related to the interface. For each request from the client, it stores the requested interface address, request parameters, simulation return data and other information. Through the combination of these two services, the server side can effectively manage the device and interface related data obtained from the client.

[0078] According to a second aspect of an embodiment of the present invention, a method for updating simulation data is provided.

[0079] Figure 2 FIG. 1 is a schematic diagram of the main process of a method for updating simulation data according to another embodiment of the present invention. Figure 2 As shown, the simulation data updating method according to the embodiment of the present invention is applied to the client and includes the following steps S201 to S203.

[0080] Step S201, establishing a long connection channel with the server; wherein a long connection channel is established between the server and the simulation operation platform;

[0081] Step S202, sending simulation data to the server based on the long connection channel, and receiving the data update instruction and the edited simulation data sent by the server; wherein the data update instruction and the edited simulation data are obtained by the server sending the simulation data to the simulation operation platform based on the long connection channel;

[0082] Step S203: based on the data update instruction, refresh the page according to the edited simulation data.

[0083] The client first needs to establish a long connection channel with the server. The long connection channel can use the Web Socket protocol or other real-time communication technologies to enable two-way, real-time data transmission between the client and the server. The client initiates a connection request, and the server responds to establish a connection. In order to ensure stable communication, a long connection channel is also established between the server and the simulation operation platform to form a complete data link. On this basis, the connection between the client and the server enables the entire system to synchronize and update data between multiple terminals.

[0084] The client sends simulation data to the server through the long connection channel established with the server. After receiving the data, the server uses the connection with the simulation operation platform to transmit the data to the simulation operation platform. The simulation operation platform analyzes or edits the received data and returns the processed data to the server. The server then sends the data update instructions and the edited simulation data to the client through the long connection channel. This real-time data transmission enables the client to obtain the latest page update content in a timely manner.

[0085] After receiving the data update instruction and the edited simulation data sent by the server, the client will immediately respond and refresh the page. According to the data update instruction, the client updates the existing page content and renders the edited simulation data returned by the server onto the page, realizing real-time page refresh and dynamic update, which greatly improves the immediacy of operation and user experience.

[0086] Optionally, refreshing the page according to the edited simulation data includes: sending a network request to the server, receiving simulation interface list data fed back by the server based on the network request; matching the simulation interface list data with the edited simulation data, and refreshing the page based on the matching result.

[0087] The client first sends a network request to the server. The server responds with data containing a list of simulated interfaces based on the network request. After receiving this data, the client matches it with the previously received edited simulated data. The matching process compares the interface identifier or data content to ensure accurate data correspondence. After the matching is completed, the client uses this data to dynamically update the page so that the page content can reflect the edited simulation results, thereby achieving a real-time visual refresh effect. In addition, the client can also compare these interface list data with the edited simulation data one by one, and adjust the elements or data rendering methods in the page based on the matching results. When the match is successful, the client immediately refreshes the relevant part of the page so that the user can immediately see the latest operation results and interface changes. This method can finely control page updates and improve the smoothness of the user experience.

[0088] Figure 3FIG. 1 is a schematic diagram of the main process of a method for updating simulation data according to a preferred embodiment of the present invention. Figure 3 As shown in the figure, the flowchart shows the system interaction process composed of PC, server and client, in which a simulation operation platform is configured on the PC. The user opens a simulation operation platform on the PC, which can display a QR code. The client scans the QR code to establish a long connection with the socket service on the server by turning on the mock function. The client can also obtain the required data through network requests. The client first checks whether there is a URL list (Uniform Resource Locator) locally. If the local URL list exists, the client will directly use the local data for processing; if the URL list does not exist locally, the client will initiate a network request to obtain the relevant gateway data. The obtained network data will be used to update the page content until the process ends. In addition, the device management module will send device data information to the interface receiving device data, and store the data through the interface data storage module. The data will be sent to the data list module for further processing. After receiving the data, the mock data module will also send a data update instruction. The data list module obtains the corresponding data from the mock data module and feeds it back to the interface data storage module. In the server, in addition to managing device data, the device management module will also interact with the client and send device data to the client. After the interface data storage module processes and stores the device information, it will pass the relevant data to the interface data mock module, so that the data mock processing can proceed smoothly. Finally, the client updates the page information through the docked network data to complete the entire interaction process.

[0089] The embodiments of the present invention combine multiple technical means to achieve real-time data simulation and control of multi-terminal devices. The Web Socket link address can be quickly obtained by scanning the mobile phone QR code, which simplifies the connection process. Based on the protocol rules, the server can uniformly control Android and iOS dual-end devices by issuing instructions to achieve cross-platform control. With the help of dynamic interface monitoring, the client will report the request and response data to the server when initiating a network request on the dynamic page to achieve real-time monitoring. When the user turns on or off the Mock capability of the specified interface, it will be synchronized to the server and the client, and the request path will be switched to the server. When the Mock data is modified in real time on the PC, the client page will be refreshed synchronously, thereby achieving real-time synchronization and dynamic data update between multi-end devices.

[0090] According to a third aspect of an embodiment of the present invention, a first updating device for simulation data is provided.

[0091] Figure 4 is a schematic diagram of main modules of a first updating device for simulation data according to an embodiment of the present invention, such as Figure 4 As shown, the first updating device 400 is applied to the server, and includes:

[0092] The connection management module 401 is used to establish a long connection channel with the client and the simulation operation platform;

[0093] The data receiving module 402 is used to receive the simulation data sent by the client based on the long connection channel and send the simulation data to the simulation operation platform;

[0094] The editing receiving module 403 is used to receive the data updating instruction and the edited simulation data sent by the simulation operation platform;

[0095] The update trigger module 404 is used to send the data update instruction and the edited simulation data to the client, and trigger the client to refresh the page based on the data update instruction and the edited simulation data.

[0096] Optionally, the client is one or more.

[0097] Optionally, the connection management module 401 is used to:

[0098] Start the persistent connection service and establish a persistent connection channel based on the persistent connection service and the simulation operation platform;

[0099] Generate a link identifier corresponding to the long connection channel, and feed the link identifier back to the simulation operation platform;

[0100] In response to receiving a persistent connection request sent by a client, a persistent connection channel is established with the client; wherein the persistent connection request is generated by the client by scanning a link identifier on a simulated operation platform.

[0101] Optionally, the simulation data includes device data and page configuration data; the data receiving module 402 is used to:

[0102] Receive device data and page configuration data reported by the client; wherein the device data and page configuration data are acquired by the client based on a pre-configured dynamic framework monitoring;

[0103] The pre-created device management service and simulation interface list management service are used to store device data and page configuration data, so that the device management service and simulation interface list service send simulation data to the simulation operation platform.

[0104] It should be noted that the specific implementation content of the first updating device for simulation data in the embodiment of the present invention has been described in detail in the above simulation data updating method, so the repeated content will not be described again here.

[0105] According to a fourth aspect of an embodiment of the present invention, a second updating device for simulation data is provided.

[0106] Figure 5 is a schematic diagram of main modules of a second updating device for simulation data according to an embodiment of the present invention, such as Figure 5 As shown, a second updating device 500 for simulation data, the second updating device is applied to a client, comprising:

[0107] The connection establishment module 501 is used to establish a long connection channel with the server; wherein a long connection channel is established between the server and the simulation operation platform;

[0108] The data transmission module 502 is used to send simulation data to the server based on the long connection channel, and receive the data update instruction and the edited simulation data sent by the server; wherein the data update instruction and the edited simulation data are obtained by the server sending the simulation data to the simulation operation platform based on the long connection channel;

[0109] The page refresh module 503 is used to refresh the page according to the edited simulation data based on the data update instruction.

[0110] Optionally, the page refresh module 503 is used to:

[0111] Send a network request to the server, and receive the simulated interface list data fed back by the server based on the network request;

[0112] Match the simulated interface list data with the edited simulated data, and refresh the page based on the matching results.

[0113] It should be noted that the specific implementation content of the second updating device for analog data in the embodiment of the present invention has been described in detail in the above analog data updating method, so the repeated content will not be described again here.

[0114] According to a fifth aspect of an embodiment of the present invention, a simulation data updating system is provided.

[0115] Figure 6 is a schematic diagram of the main structure of the updating system of simulation data according to an embodiment of the present invention. Figure 6 As shown, a simulation data updating system 600 includes: a first updating device 400, a second updating device 500 and a simulation operation platform 601; wherein,

[0116] The first updating device 400 establishes a long connection channel with the second updating device 500 and the simulation operation platform 601;

[0117] The second updating device 500 sends the simulation data to the first updating device 400 based on the long connection channel, and the first updating device 400 sends the simulation data to the simulation operation platform 601 based on the long connection channel;

[0118] The simulation operation platform 601 generates a data update instruction and the edited simulation data in response to the user editing the simulation data, and sends the data update instruction and the edited simulation data to the first updating device 400;

[0119] The first updating device 400 sends the data updating instruction and the edited simulation data to the second updating device 500, and the second updating device 500 refreshes the page based on the data updating instruction and the edited simulation data.

[0120] According to a sixth aspect of an embodiment of the present invention, there is provided an electronic device, including:

[0121] one or more processors;

[0122] a storage device for storing one or more programs,

[0123] When one or more programs are executed by one or more processors, the one or more processors implement the method provided by the first aspect of the embodiment of the present invention and / or the second aspect of the embodiment of the present invention.

[0124] According to a seventh aspect of an embodiment of the present invention, a computer-readable medium is provided, on which a computer program is stored. When the program is executed by a processor, the method provided by the first aspect of the embodiment of the present invention and / or the second aspect of the embodiment of the present invention is implemented.

[0125] According to an eighth aspect of an embodiment of the present invention, a computer program product is provided, including a computer program, which, when executed by a processor, implements the method provided by the first aspect of the embodiment of the present invention and / or the second aspect of the embodiment of the present invention.

[0126] Figure 7 An exemplary system frame 700 is shown to which the simulation data updating method, the simulation data first updating device or the simulation data second updating device according to the embodiment of the present invention can be applied.

[0127] like Figure 7 As shown, system architecture 700 may include terminal devices 701, 702, 703, network 704 and server 705. Network 704 is used to provide a medium for communication links between terminal devices 701, 702, 703 and server 705. Network 704 may include various connection types, such as wired, wireless communication links or optical fiber cables, etc.

[0128] Users can use terminal devices 701, 702, and 703 to interact with server 705 through network 704 to receive or send messages, etc. Various communication client applications can be installed on terminal devices 701, 702, and 703, such as shopping applications, web browser applications, search applications, instant messaging tools, email clients, social platform software, etc.

[0129] The terminal devices 701 , 702 , and 703 may be various electronic devices having a display screen and supporting web browsing, including but not limited to smart phones, tablet computers, laptop computers, and desktop computers.

[0130] The server 705 may be a server that provides various services, such as a background management server that provides support for shopping websites browsed by users using the terminal devices 701, 702, and 703. The background management server may analyze and process the received data such as the update request of the simulation data, and feed back the processing result (such as the update result, etc. - just an example) to the terminal device.

[0131] It should be noted that the simulation data updating method provided in the embodiment of the present invention is generally executed by the server 705 , and accordingly, the first updating device of the simulation data and the second updating device of the simulation data are generally arranged in the server 705 .

[0132] It should be understood that Figure 7 The number of terminal devices, networks and servers in the embodiment is only for illustration. Any number of terminal devices, networks and servers may be provided according to the implementation requirements.

[0133] Reference below Figure 8 , which shows a schematic diagram of the structure of a computer system 800 of a terminal device suitable for implementing an embodiment of the present invention. Figure 8 The terminal device shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present invention.

[0134] like Figure 8 As shown, the computer system 800 includes a central processing unit (CPU) 801, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 802 or a program loaded from a storage part 808 to a random access memory (RAM) 803. In the RAM 803, various programs and data required for the operation of the system 800 are also stored. The CPU 801, the ROM 802, and the RAM 803 are connected to each other through a bus 804. An input / output (I / O) interface 805 is also connected to the bus 804.

[0135] The following components are connected to the I / O interface 805: an input section 806 including a keyboard, a mouse, etc.; an output section 807 including a cathode ray tube (CRT), a liquid crystal display (LCD), etc., and a speaker, etc.; a storage section 808 including a hard disk, etc.; and a communication section 809 including a network interface card such as a LAN card, a modem, etc. The communication section 809 performs communication processing via a network such as the Internet. A drive 810 is also connected to the I / O interface 805 as needed. A removable medium 811, such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, etc., is installed on the drive 810 as needed, so that a computer program read therefrom is installed into the storage section 808 as needed.

[0136] In particular, according to the embodiments disclosed in the present invention, the process described above with reference to the flowchart can be implemented as a computer software program. For example, the embodiments disclosed in the present invention include a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program contains program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from the network through the communication part 809, and / or installed from the removable medium 811. When the computer program is executed by the central processing unit (CPU) 801, the above-mentioned functions defined in the system of the present invention are executed.

[0137] It should be noted that the computer-readable medium shown in the present invention may be a computer-readable signal medium or a computer-readable storage medium or any combination of the above two. The computer-readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In the present invention, a computer-readable storage medium may be any tangible medium containing or storing a program that can be used by or in combination with an instruction execution system, device or device. In the present invention, a computer-readable signal medium may include a data signal propagated in a baseband or as part of a carrier wave, which carries a computer-readable program code. This propagated data signal may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. Computer-readable signal media may also be any computer-readable medium other than computer-readable storage media, which may send, propagate or transmit a program for use by or in conjunction with an instruction execution system, apparatus or device. The program code contained on the computer-readable medium may be transmitted using any appropriate medium, including but not limited to: wireless, wire, optical cable, RF, etc., or any suitable combination of the above.

[0138] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, function and operation of the system, method and computer program product according to various embodiments of the present invention. In this regard, each box in the flow chart or block diagram can represent a module, a program segment, or a part of a code, and the above-mentioned module, program segment, or a part of a code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a different order from the order marked in the accompanying drawings. For example, two boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram or flow chart, and the combination of the boxes in the block diagram or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.

[0139] The modules involved in the embodiments of the present invention may be implemented in software or in hardware. The modules described may also be arranged in a processor, for example, they may be described as: a processor including a connection management module, a data receiving module, an editing receiving module and an update triggering module. The names of these modules do not, in some cases, constitute limitations on the modules themselves. For example, the connection management module may also be described as a "module for establishing a long connection channel with a client and a simulation operation platform". Alternatively, a processor includes a connection establishment module, a data transmission module and a page refresh module, wherein the names of these modules do not, in some cases, constitute limitations on the modules themselves. For example, the page refresh module may also be described as a "module for refreshing a page according to edited simulation data based on a data update instruction".

[0140] As another aspect, the present invention also provides a computer-readable medium, which may be included in the device described in the above embodiment; or it may exist independently without being assembled into the device. The above computer-readable medium carries one or more programs, and when the above one or more programs are executed by a device, the device includes: establishing a long connection channel with the client and the simulation operation platform; based on the long connection channel, receiving the simulation data sent by the client and sending the simulation data to the simulation operation platform; receiving the data update instruction and the edited simulation data sent by the simulation operation platform; sending the data update instruction and the edited simulation data to the client, triggering the client to refresh the page based on the data update instruction and the edited simulation data. Alternatively, the device implements the following method: establishing a long connection channel with the server; wherein a long connection channel is established between the server and the simulation operation platform; sending simulation data to the server based on the long connection channel, and receiving the data update instruction and the edited simulation data sent by the server; wherein the data update instruction and the edited simulation data are obtained by the server sending the simulation data to the simulation operation platform based on the long connection channel; based on the data update instruction, refreshing the page according to the edited simulation data.

[0141] The computer program product provided by the embodiment of the present invention includes a computer program, which, when executed by a processor, implements the simulation data updating method in the embodiment of the first aspect of the present invention and / or the simulation data updating method in the embodiment of the second aspect of the present invention.

[0142] According to the technical solution of the embodiment of the present invention, the following advantages or beneficial effects are achieved: by establishing a long connection channel with the client and the simulation operation platform; based on the long connection channel, receiving the simulation data sent by the client and sending the simulation data to the simulation operation platform; receiving the data update instruction and the edited simulation data sent by the simulation operation platform; sending the data update instruction and the edited simulation data to the client, triggering the client to refresh the page based on the data update instruction and the edited simulation data. Thus, the server can automatically trigger the client to refresh in real time, reducing the complexity of the operation, and improving the test efficiency and user experience. By establishing a long connection channel with the server; wherein a long connection channel is established between the server and the simulation operation platform; sending simulation data to the server based on the long connection channel, and receiving the data update instruction and the edited simulation data sent by the server; wherein the data update instruction and the edited simulation data are obtained by the server sending the simulation data to the simulation operation platform based on the long connection channel; based on the data update instruction, refreshing the page according to the edited simulation data. Thus, real-time dynamic refresh can be performed, reducing the complexity of the operation, and improving the test efficiency and user experience.

[0143] The above specific implementations do not constitute a limitation on the protection scope of the present invention. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions may occur depending on design requirements and other factors. Any modification, equivalent substitution and improvement made within the spirit and principle of the present invention shall be included in the protection scope of the present invention.

Claims

1. A method for updating simulation data, applied to a server, characterized in that: include: Establish a long connection channel with the client and the simulation operation platform; Based on the long connection channel, receiving simulation data sent by the client and sending the simulation data to the simulation operation platform; Receiving the data update instruction and the edited simulation data sent by the simulation operation platform; The data update instruction and the edited simulation data are sent to the client, triggering the client to refresh the page based on the data update instruction and the edited simulation data.

2. The method according to claim 1, characterized in that The client is one or more.

3. The method according to claim 1 or 2, characterized in that: Establish a long connection channel with the client and the simulation operation platform, including: Starting a persistent connection service, and establishing a persistent connection channel with the simulation operation platform based on the persistent connection service; Generate a link identifier corresponding to the long connection channel, and feed the link identifier back to the simulation operation platform; In response to receiving a persistent connection request sent by the client, a persistent connection channel is established with the client; wherein the persistent connection request is generated by the client by scanning a link identifier on the simulation operation platform.

4. The method according to claim 1 or 2, characterized in that: The simulation data includes device data and page configuration data; receiving the simulation data sent by the client includes: Receiving the device data and page configuration data reported by the client; wherein the device data and page configuration data are acquired by the client based on a pre-configured dynamic framework monitoring; The device data and page configuration data are stored using the pre-created device management service and simulation interface list management service, so that the device management service and simulation interface list service send the simulation data to the simulation operation platform.

5. A method for updating simulation data, applied to a client, characterized in that: include: Establishing a long connection channel with the server; wherein a long connection channel is established between the server and the simulation operation platform; Sending simulation data to the server based on the long connection channel, and receiving a data update instruction and edited simulation data sent by the server; wherein the data update instruction and edited simulation data are obtained by the server sending the simulation data to the simulation operation platform based on the long connection channel; Based on the data update instruction, the page is refreshed according to the edited simulation data.

6. The method according to claim 5, characterized in that Refresh the page according to the edited simulation data, including: Sending a network request to a server, and receiving simulated interface list data fed back by the server based on the network request; The simulated interface list data and the edited simulated data are matched, and the page is refreshed based on the matching result.

7. A first updating device for simulation data, characterized in that: The first updating device is applied to the server, and includes: A connection management module is used to establish a long connection channel with the client and the simulation operation platform; A data receiving module, used for receiving simulation data sent by the client based on the long connection channel and sending the simulation data to the simulation operation platform; An editing and receiving module, used for receiving a data updating instruction and edited simulation data sent by the simulation operation platform; The update trigger module is used to send the data update instruction and the edited simulation data to the client, triggering the client to refresh the page based on the data update instruction and the edited simulation data.

8. A second updating device for simulation data, characterized in that: The second updating device is applied to the client, and includes: A connection establishment module is used to establish a long connection channel with the server; wherein a long connection channel is established between the server and the simulation operation platform; A data transmission module, used for sending simulation data to the server based on the long connection channel, and receiving a data update instruction and edited simulation data sent by the server; wherein the data update instruction and edited simulation data are obtained by the server sending the simulation data to the simulation operation platform based on the long connection channel; The page refresh module is used to refresh the page according to the edited simulation data based on the data update instruction.

9. A simulation data updating system, characterized in that: include: A first updating device, a second updating device and a simulation operation platform; wherein, The first updating device establishes a long connection channel with the second updating device and the simulation operation platform; The second updating device sends the simulation data to the first updating device based on the long connection channel, and the first updating device sends the simulation data to the simulation operation platform based on the long connection channel; The simulation operation platform generates a data update instruction and the edited simulation data in response to the user editing the simulation data, and sends the data update instruction and the edited simulation data to the first updating device; The first updating device sends the data updating instruction and the edited simulation data to the second updating device, and the second updating device refreshes the page based on the data updating instruction and the edited simulation data.

10. An electronic device, characterized in that: include: one or more processors; a storage device for storing one or more programs, When the one or more programs are executed by the one or more processors, the one or more processors implement the method according to any one of claims 1 to 6.

11. A computer readable medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, the method according to any one of claims 1 to 6 is implemented.

12. A computer program product, comprising a computer program, characterized in that When the computer program is executed by a processor, the method according to any one of claims 1 to 6 is implemented.