A communication method and device based on a B-C hybrid software integration framework

By using pre-defined dynamic library functions for data conversion and parsing within the BC hybrid software integration framework, the problems of communication latency and high maintenance costs are solved, achieving efficient communication and reducing maintenance costs.

CN117411866BActive Publication Date: 2026-07-24HANGZHOU EBOYLAMP ELECTRONICS CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
HANGZHOU EBOYLAMP ELECTRONICS CO LTD
Filing Date
2023-10-27
Publication Date
2026-07-24

AI Technical Summary

Technical Problem

The traditional BC hybrid software integration framework suffers from high communication latency and high maintenance costs, which are particularly evident in application scenarios with high real-time requirements.

Method used

A communication method based on the BC hybrid software integration framework is adopted. The receiving device sends a connection request containing a preset communication protocol identifier. After the sending device detects and responds, it performs data conversion and transmission. The receiving device performs parsing and processing, and uses functions in the preset dynamic library to achieve direct communication, reducing the number of functions and thus reducing maintenance costs.

Benefits of technology

It achieves reduced communication latency and improved interaction efficiency, while also reducing communication maintenance costs and not increasing the number of functions as functionality increases.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117411866B_ABST
    Figure CN117411866B_ABST
Patent Text Reader

Abstract

The application discloses a communication method and device based on a B-C mixed software integration framework, the method comprising the following steps: a receiving end device sends a connection request containing a preset communication protocol identifier to a sending end device; when the sending end device detects a first port corresponding to the preset communication protocol identifier, the sending end device sends a connection success signal to the receiving end device; the sending end device converts and processes a user input instruction based on a first sending function in a preset dynamic library, and sends the converted data to the receiving end device; and the receiving end device analyzes the converted data based on a first receiving function in the preset dynamic library. The application establishes a connection through a preset communication protocol, and utilizes functions in a preset dynamic library, thereby realizing direct communication between the receiving end device and the sending end device, fixing the number of interfaces, and guaranteeing reduction of communication delay, improvement of interactive efficiency, and reduction of maintenance cost.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of communication technology, and in particular to a communication method and apparatus based on a BC hybrid software integration framework. Background Technology

[0002] Traditional command and control system software architectures are generally divided into two types: client / server (C / S) architecture and browser / server (B / S) architecture. A single C / S architecture requires extensive porting and adaptation of the same functions to fit various domestic platforms, resulting in high maintenance costs. A single B / S architecture suffers from limitations imposed by the browser's script execution environment on the local operating system, leading to functional limitations. Therefore, adopting a hybrid B / S software integration framework is an inevitable trend in command and control systems.

[0003] Existing BC hybrid software integration frameworks primarily achieve communication between browser pages and client components through transparent proxying of the server program. Specifically, the browser page first sends a message to the server program via HTTP, and the server program then sends the message to the client component via TCP, UDP, or other methods. However, this approach suffers from relatively high latency, posing performance limitations for applications with high real-time requirements. Furthermore, as functionality increases, the number of communication interfaces also grows, leading to higher maintenance costs. Summary of the Invention

[0004] This application aims to address the aforementioned problems of high communication latency and increased maintenance costs. Embodiments of this application provide a communication method and apparatus based on a BC hybrid software integration framework, the technical solution of which is as follows:

[0005] In a first aspect, embodiments of this specification provide a communication method based on a BC hybrid software integration framework. This method is applied to a BC hybrid software integration framework, which includes a transmitting end device and a receiving end device. The method includes:

[0006] The receiving device sends a connection request containing a preset communication protocol identifier to the sending device;

[0007] When the sending device detects the first port corresponding to the preset communication protocol identifier, it sends a connection success signal to the receiving device.

[0008] The sending device processes the user-input command based on the first sending function in the preset dynamic library, and sends the converted data to the second port of the receiving device through the first port; wherein the second port is the port corresponding to the preset communication protocol identifier;

[0009] The receiving device parses and processes the converted data based on the first receiving function in the preset dynamic library.

[0010] In one alternative embodiment of the first aspect, after the receiving device sends a connection request containing a preset communication protocol identifier to the sending device, the method further includes:

[0011] When the sending device fails to detect the first port corresponding to the preset communication protocol identifier, it sends a connection failure signal to the receiving device.

[0012] In another alternative to the first aspect, after sending a connection failure signal to the receiving device, the method further includes:

[0013] The sending device creates a first port corresponding to a preset communication protocol identifier and sends a corresponding notification signal to the receiving device.

[0014] When the receiving device receives the notification signal, it sends a connection request containing a preset communication protocol identifier to the sending device.

[0015] In another alternative to the first aspect, after the receiving device parses and processes the converted data based on a first receiving function in a preset dynamic library, the method further includes:

[0016] The receiving device performs corresponding operations based on the parsed data and records the operation results; the parsed data is the data obtained by parsing the converted data.

[0017] The receiving device converts the operation result based on the second sending function in the preset dynamic library to obtain feedback data;

[0018] The receiving device sends the feedback data to the sending device's first port through the second port.

[0019] The sending device parses and processes the feedback data based on the second receiving function in the preset dynamic library.

[0020] In another alternative to the first aspect, the receiving device also includes a video management component;

[0021] After the receiving device parses and processes the converted data based on the first receiving function in a preset dynamic library, the process also includes:

[0022] When the receiving device detects that the parsed data contains video retrieval data, the receiving device determines the video identifier corresponding to the video retrieval data based on the video retrieval data.

[0023] The receiving device obtains the video corresponding to the video identifier based on the video identifier;

[0024] The receiving device decodes the video using a video management component and then plays the decoded video.

[0025] In another alternative to the first aspect, the receiving device also includes an electronic map component;

[0026] After the receiving device parses and processes the converted data based on the first receiving function in a preset dynamic library, the process also includes:

[0027] When the receiving device detects that the parsed data contains geographic data, it obtains motion data based on the electronic map component.

[0028] The receiving device draws a motion trajectory corresponding to the geographic data based on at least two geographic coordinates and motion data from the geographic data.

[0029] In another alternative to the first aspect, the motion data includes a preset time interval, motion speed, and motion angle;

[0030] The receiving device draws a motion trajectory corresponding to the geographic data based on at least two geographic coordinates and motion data from the geographic data, including:

[0031] The receiving device calculates the distance of movement corresponding to each time interval based on a preset time interval and the movement speed;

[0032] Based on the movement distance, movement angle, and at least two geographic location coordinates in the geographic data, the movement position coordinates corresponding to each time interval are calculated sequentially.

[0033] By connecting any two adjacent motion coordinates, the motion trajectory corresponding to the geographic data can be obtained.

[0034] The motion trajectory is drawn based on the electronic map component.

[0035] Secondly, embodiments of this application provide a communication device based on a BC hybrid software integration framework. This device is applied to the BC hybrid software integration framework, which includes a transmitting end device and a receiving end device. The device includes:

[0036] The first processing module is used to send a connection request containing a preset communication protocol identifier from the receiving device to the sending device.

[0037] The second processing module is used to send a connection success signal to the receiving device when the sending device detects the first port corresponding to the preset communication protocol identifier;

[0038] The third processing module is used by the sending device to convert the user input command based on the first sending function in the preset dynamic library, and send the converted data to the second port of the receiving device through the first port; wherein the second port is the port corresponding to the preset communication protocol identifier;

[0039] The fourth processing module is used by the receiving device to parse and process the converted data based on the first receiving function in the preset dynamic library.

[0040] Thirdly, embodiments of this application also provide a communication device based on the BC hybrid software integration framework, including a processor and a memory;

[0041] The processor is connected to the memory;

[0042] Memory, used to store executable program code;

[0043] The processor runs a program corresponding to the executable program code by reading the executable program code stored in the memory, so as to implement the communication method based on the BC hybrid software integration framework provided by the first aspect or any implementation of the first aspect of the embodiments of this application.

[0044] Fourthly, embodiments of this application provide a computer storage medium storing a computer program, which includes program instructions. When executed by a processor, the program instructions can implement the communication method based on the BC hybrid software integration framework provided by the first aspect or any implementation of the first aspect of this application.

[0045] The beneficial effects of the technical solutions provided in some embodiments of this specification include at least the following:

[0046] In the communication process based on the BC hybrid software integration framework, the receiving device sends a connection request containing a preset communication protocol identifier to the sending device. When the sending device detects a first port corresponding to the preset communication protocol identifier, it sends a connection success signal to the receiving device. The sending device then processes the user-input command based on a first sending function in a preset dynamic library and sends the converted data to a second port of the receiving device through the first port; the second port is the port corresponding to the preset communication protocol identifier. The receiving device then parses the converted data based on a first receiving function in a preset dynamic library. By establishing a connection through a preset communication protocol and utilizing the first sending and receiving functions in the preset dynamic library, direct communication between the receiving and sending devices is achieved, ensuring reduced communication latency and improved interaction efficiency. Furthermore, since data transmission between the receiving and sending devices is implemented through fixed functions in the preset dynamic library, no additional functions are added with the increase of functionality. Consequently, the number of communication interfaces implemented through functions does not increase with the increase of functionality, thus reducing the maintenance cost of communication. Attached Figure Description

[0047] To more clearly illustrate the technical solutions in the embodiments of this application, the accompanying drawings used in the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0048] Figure 1 A flowchart illustrating an overall communication method based on a BC hybrid software integration framework, provided for embodiments of this application;

[0049] Figure 2 A schematic diagram of a BC hybrid software integration framework provided in an embodiment of this application;

[0050] Figure 3 A data interaction diagram based on a BC hybrid software integration framework is provided as an embodiment of this application;

[0051] Figure 4 A schematic diagram of the structure of a communication device based on a BC hybrid software integration framework provided in an embodiment of this application;

[0052] Figure 5 This is a schematic diagram of the structure of another communication device based on the BC hybrid software integration framework provided in an embodiment of this application. Detailed Implementation

[0053] The technical solutions in the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings.

[0054] In the following description, the terms "first" and "second" are used for descriptive purposes only and should not be construed as indicating or implying relative importance. The following description provides multiple embodiments of this application, which can be substituted or combined with each other. Therefore, this application can also be considered to include all possible combinations of the same and / or different embodiments described. Thus, if one embodiment includes features A, B, and C, and another embodiment includes features B and D, then this application should also be considered to include embodiments containing one or more other possible combinations of A, B, C, and D, even if such embodiments are not explicitly described in the following text.

[0055] The following description provides examples and does not limit the scope, applicability, or examples set forth in the claims. Changes may be made to the function and arrangement of the described elements without departing from the scope of this application. Various processes or components may be appropriately omitted, substituted, or added to the examples. For example, the described methods may be performed in a different order than described, and various steps may be added, omitted, or combined. Furthermore, features described with respect to some examples may be combined into other examples.

[0056] Please see Figure 1 , Figure 1 The diagram shows an overall flowchart of a communication method based on a BC hybrid software integration framework provided in an embodiment of this application.

[0057] like Figure 1 As shown, the communication method based on the BC hybrid software integration framework may include at least the following steps:

[0058] Step 101: The receiving device sends a connection request containing a preset communication protocol identifier to the sending device.

[0059] In this embodiment, the communication method based on the BC hybrid software integration framework is applied within the framework, which includes a receiving device and a sending device. The receiving device can be, but is not limited to, a display terminal corresponding to a browser, and the sending device can be, but is not limited to, a client terminal. During communication within the BC hybrid software integration framework, the receiving device and the sending device can establish a connection through a preset communication protocol and achieve data communication between them through fixed communication functions in a preset dynamic library.

[0060] Specifically, in the communication process based on the BC hybrid software integration framework, the receiving device can select a preset communication protocol according to the needs of the specific application scenario, and determine a unique identifier corresponding to the protocol, so as to send the connection request containing the identifier to the sending device.

[0061] Here, two specific examples can be used as reference for the selection of the preset communication protocol: When the receiving device is used in the military field where security requirements are high, the HTTPS protocol, which can encrypt communication data, can be selected to ensure the confidentiality and integrity of the communication; when the receiving device is used in the command and control system where real-time and two-way communication capabilities are high, the WebSocket real-time two-way communication protocol can be selected to ensure the immediacy of the communication.

[0062] Furthermore, after selecting a preset communication protocol, the receiving device can use the protocol name, protocol version number, or other information that can uniquely identify the preset communication protocol as the preset communication protocol identifier, and send a connection request containing the identifier to the sending device.

[0063] It is worth noting that after selecting a preset communication protocol and before sending a connection request to the sending device, the receiving device can also create a connection object based on the preset communication protocol to initiate a connection request to the sending device. The methods for initiating a connection request based on a connection object include, but are not limited to, the following four: First, based on a database connection object, which requires providing information such as a connection string, username, and password, and then calling the corresponding method to initiate the connection request; second, based on a network connection object, which requires providing information such as the target server's IP address and port number, and then calling the corresponding method to initiate the connection request; third, based on a file or stream connection object, which requires providing the file path or stream information, and then calling the corresponding method to initiate the connection request; and fourth, based on a message queue connection object, which requires providing the message queue connection information and authentication information, and then calling the corresponding method to initiate the connection request.

[0064] In addition, before receiving a connection request containing a preset communication protocol identifier, the sending device may first create a listening port corresponding to the preset communication protocol identifier to ensure that the sending device can successfully receive the connection request when the receiving device initiates a connection request. It is understood that the listening port may be, but is not limited to, the first port mentioned in one or more embodiments of this application.

[0065] Step 102: When the sending device detects the first port corresponding to the preset communication protocol identifier, it sends a connection success signal to the receiving device.

[0066] Specifically, after receiving a connection request from the receiving device, the sending device can, but is not limited to, use port scanning tools such as Nmap or Masscan to scan all configured ports. During the scan, the port scanning tool will attempt to connect to various ports on the sending device to determine which ports are open (i.e., available) and which are closed (i.e., non-existent or unavailable). Understandably, when the sending device identifies a first port corresponding to a preset communication protocol identifier among the open ports determined by the port scanning tool, it can establish a communication connection with the receiving device through that first port and the connection request, and send a connection success signal to the receiving device, thereby ensuring normal data interaction between the sending and receiving devices.

[0067] As an optional embodiment of this application, after the receiving device sends a connection request containing a preset communication protocol identifier to the sending device, the method further includes:

[0068] When the sending device fails to detect the first port corresponding to the preset communication protocol identifier, it sends a connection failure signal to the receiving device.

[0069] Specifically, when the open ports identified by the port scanning tool do not include the first port corresponding to the preset communication protocol identifier, it indicates that the first port for listening to any service corresponding to the preset communication protocol identifier has not been created. Therefore, it cannot establish a connection with the receiving device and sends a connection failure signal to the receiving device.

[0070] As another optional embodiment of this application, after sending a connection failure signal to the receiving device, the method further includes:

[0071] The sending device creates a first port corresponding to a preset communication protocol identifier and sends a corresponding notification signal to the receiving device.

[0072] When the receiving device receives the notification signal, it sends a connection request containing a preset communication protocol identifier to the sending device.

[0073] Specifically, after the sending device sends a connection failure signal to the receiving device, the sending device can create a first port corresponding to the preset communication protocol identifier in the connection request to establish a successful connection with the receiving device. When the first port is created, the sending device can send a notification signal containing information indicating that the first port creation is complete to the receiving device, informing the receiving device that it can send a connection request again. It is understood that when the receiving device receives this notification signal, it can resend a connection request containing the preset communication protocol identifier to the sending device to establish a successful connection.

[0074] Step 103: The sending device converts the user-input command based on the first sending function in the preset dynamic library, and sends the converted data to the second port of the receiving device through the first port.

[0075] Specifically, after the receiving device and the sending device successfully connect, the sending device can process the user-input instructions using a first sending function in a preset dynamic library. This allows instructions of different data types to be converted into data that the receiving device can parse and process. The conversion methods corresponding to the first sending function include, but are not limited to, regular expressions, string splitting, or pattern matching, to identify and extract the meaning and key information of the instructions, and convert this meaning and key information into data types such as strings, arrays, or lists.

[0076] It is worth noting that the communication ports between the sending device and the receiving device are the first port and the second port, respectively. That is, when the sending device communicates with the receiving device, it receives and sends data through the first port, while the receiving device receives and sends data through the second port. Furthermore, all data that the sending device needs to send to the receiving device must be processed by the first sending function before being sent.

[0077] Step 104: The receiving device parses and processes the converted data based on the first receiving function in the preset dynamic library.

[0078] Specifically, after the receiving device receives data sent from the sending device, it can parse and process the received data using a first receiving function in a preset dynamic library. The parsing and processing methods corresponding to the first receiving function include, but are not limited to, parsing and extracting JSON data using a JSON parser, parsing and extracting XML data using an XML parser, and parsing complex data using serialization and deserialization, in order to parse the received data and extract key information.

[0079] Here, when this application is applied to a loopback network within the network card, the Protocol Buffers protocol can be used to parse and process the converted data. This processing method involves data serialization and deserialization using binary format. It is understood that Protocol Buffers is a specific data protocol commonly used in cross-platform data communication, offering advantages such as smaller data size and faster parsing speed.

[0080] As another optional embodiment of this application, after the receiving device parses and processes the converted data based on the first receiving function in a preset dynamic library, the method further includes:

[0081] The receiving device performs corresponding operations based on the parsed data and records the operation results; the parsed data is the data obtained by parsing the converted data.

[0082] The receiving device converts the operation result based on the second sending function in the preset dynamic library to obtain feedback data;

[0083] The receiving device sends the feedback data to the sending device's first port through the second port.

[0084] The sending device parses and processes the feedback data based on the second receiving function in the preset dynamic library.

[0085] Specifically, after the receiving device obtains the parsed data through the first receiving function, it can execute operations corresponding to the user-input instructions based on the information in the parsed data, including but not limited to controlling the on / off state of the device, adjusting the output signal, acquiring data, and adjusting parameters. Simultaneously, the receiving device records the execution status of this operation as text content as the operation result, such as "data acquisition failed" or "a parameter has been adjusted to a certain value," and then processes this operation result through a second sending function in a preset dynamic library to obtain feedback data. The conversion processing methods corresponding to the second sending function include, but are not limited to, keyword extraction algorithms, NER algorithms, and TextRank algorithms. It is worth noting that the feedback data mainly consists of two parts: the operation content and the operation result. It can be, but is not limited to, data of array or key-value pair types, but cannot be data of string types that can only provide a single description. If a feedback data is of array type and the array name is 'a', where array index 1 indicates a data acquisition operation, array content of 1 indicates successful operation, and array content of 0 indicates operation failure, then "data acquisition failed" can be represented as [a]1=0.

[0086] Next, the receiving device can send the feedback data to the sending device's first port through the second port. The sending device then parses and processes the feedback data using a pre-defined second receiving function in a dynamic library. The parsing methods corresponding to the second receiving function include, but are not limited to, parsing and extracting JSON data using a JSON parser, parsing and extracting XML data using an XML parser, and parsing data rows and columns using a CSV parser. It can be understood that the feedback data received by the sending device can accurately characterize the execution status of the corresponding operation performed by the receiving device based on the user's input command, allowing the user to determine the next command to be input to the sending device based on the operation's execution status. For example, in a command and control system, when the user inputs a movement command, if the command is executed successfully (i.e., the target object has successfully moved to the target position), the next command input to the sending device could be a stop command or another movement command, such as moving to the next target position. If the user input command fails (i.e., the target object has not moved to the target position), the next command input to the sending device could be a command to retry the movement command or an command to abandon the movement and take other actions, such as a turning command.

[0087] As another optional embodiment of this application, the receiving device further includes a video management component;

[0088] After the receiving device parses and processes the converted data based on the first receiving function in a preset dynamic library, the process also includes:

[0089] When the receiving device detects that the parsed data contains video retrieval data, the receiving device determines the video identifier corresponding to the video retrieval data based on the video retrieval data.

[0090] The receiving device obtains the video corresponding to the video identifier based on the video identifier;

[0091] The receiving device decodes the video using a video management component and then plays the decoded video.

[0092] Specifically, when a user's input command includes a video retrieval operation, the corresponding parsed data will also include video retrieval data. In this case, the receiving device can determine the required video identifier based on the video retrieval data and search for and retrieve the corresponding video file in its database. The video identifier can include, but is not limited to, information such as the video recording time, location, file name, storage location, or content category. For example, if the user inputs a command like "retrieve video recordings from a specific date and time," the receiving device can use the video recording time as the video identifier to search for and retrieve the desired video. Subsequently, the receiving device can decode the video file using a video management component to obtain a playable video file for online or offline playback. Decoding methods include, but are not limited to, using multimedia processing tools like FFmpeg or video processing libraries like OpenCV.

[0093] As another optional embodiment of this application, the receiving device further includes an electronic map component;

[0094] After the receiving device parses and processes the converted data based on the first receiving function in a preset dynamic library, the process also includes:

[0095] When the receiving device detects that the parsed data contains geographic data, it obtains motion data based on the electronic map component.

[0096] The receiving device draws a motion trajectory corresponding to the geographic data based on at least two geographic coordinates and motion data from the geographic data.

[0097] Specifically, when the user-input command contains geographical information, the corresponding parsed data will also include geographical data. This geographical data can be, but is not limited to, the geographical coordinates of the target object, wind direction and speed, and terrain features. In this case, the receiving device can search for the target object's motion data in the historical motion data stored in the electronic map component. The search method can be, but is not limited to, searching for historical motion data under the same or similar terrain conditions as the corresponding motion data, or searching for historical motion data under the same wind direction and speed conditions as the corresponding motion data. The motion data can include, but is not limited to, motion speed, motion angle, and preset time intervals.

[0098] Next, the receiving device uses at least two geographic coordinates from the motion data and geographic data—namely, the starting and ending coordinates of the target object, or the starting and ending coordinates of the target object and its position coordinates during motion—and relevant physical formulas to obtain other position coordinates of the target object during its motion. This allows the device to draw the corresponding motion trajectory based on all position coordinates of the moving object during its motion. The relevant physical formulas include, but are not limited to, the displacement formulas for uniform linear motion, uniformly accelerated linear motion, and free fall.

[0099] As another optional embodiment of this application, the motion data includes a preset time interval, motion speed, and motion angle;

[0100] The receiving device draws a motion trajectory corresponding to the geographic data based on at least two geographic coordinates and motion data from the geographic data, including:

[0101] The receiving device calculates the distance of movement corresponding to each time interval based on a preset time interval and the movement speed;

[0102] Based on the movement distance, movement angle, and at least two geographic location coordinates in the geographic data, the movement position coordinates corresponding to each time interval are calculated sequentially.

[0103] By connecting any two adjacent motion coordinates, the motion trajectory corresponding to the geographic data can be obtained.

[0104] The motion trajectory is drawn based on the electronic map component.

[0105] Specifically, the receiving device can calculate the distance the target object moves within each time interval based on a preset time interval and the motion speed. It can be understood that when the motion speed is constant, the distance the target object moves within each time interval can be calculated using, but is not limited to, the displacement formula for uniform linear motion. When the motion speed is variable, the target object can be considered to be moving at a constant speed, and the average speed within each time interval can be taken as the speed of uniform motion. Thus, the distance the target object moves within each time interval can be calculated using the displacement formula for uniform linear motion. The average speed can be, but is not limited to, calculated as the average of the initial and final speeds within each time interval, or the speed at a certain moment within each time interval can be taken as the average speed.

[0106] Next, the receiving device can calculate the motion position coordinates corresponding to each time interval based on the starting point coordinates, ending point coordinates, the target object's movement distance and angle within each time interval, using mathematical formulas such as the Pythagorean theorem, but not limited to these methods. This yields the target object's motion position coordinates across all time intervals during its entire motion. Here, the motion angle can be obtained, but is not limited to, by measuring the direction of the Earth's magnetic field using a magnetometer carried on the target object. Specifically, the calculation process can involve using the arctangent function to calculate two components of the magnetic field strength values ​​on the three axes output by the magnetometer—namely, the X-axis and Y-axis components—to obtain the angle of the magnetic field on the horizontal plane. This angle can then be used as the target object's motion angle.

[0107] Next, any two adjacent motion position coordinates are connected. The connection method includes, but is not limited to, directly connecting any two adjacent motion position coordinates with a straight line in sequence or interpolating any two adjacent motion position coordinates. All the processed coordinate points are then connected with a smooth curve to obtain the motion trajectory corresponding to the motion data, that is, the motion trajectory corresponding to the geographic data. The interpolation method includes, but is not limited to, Bézier curve algorithm, spline curve interpolation algorithm, and linear interpolation algorithm.

[0108] Next, the receiving device uses an electronic map component to draw the motion trajectory formed by the connection and display it on the receiving device's display interface.

[0109] Please see Figure 2 , Figure 2 A schematic diagram of the structure of a BC hybrid software integration framework provided in an embodiment of this application is shown.

[0110] like Figure 2As shown, the BC hybrid software integration framework includes a receiving device and a sending device. Both the receiving and sending devices contain three pre-defined dynamic libraries: a first dynamic library, a second dynamic library, and a third dynamic library. Here, the first dynamic library 201 includes at least four communication functions: a first sending function, a first receiving function, a second sending function, and a second receiving function, primarily used for communication between the receiving and sending devices. The second dynamic library 202 mainly provides communication methods between components at the process level and monitors process components. If a process crashes abnormally, it automatically restarts the process to ensure that the human-computer interaction process is not interrupted due to component abnormalities. The third dynamic library 203 mainly creates a plugin manager to manage the loading, unloading, and invocation of plugins. Plugins include, but are not limited to, text editor plugins, graphics and design plugins, web development plugins, database and server plugins, and IDE and development tool plugins.

[0111] Next, the receiving device may also include, but is not limited to, a video management component 204, an electronic map component 205, and a browser component 206. The video management component 204 primarily provides a video streaming plugin based on FFmpeg decoding. This plugin supports online playback, offline playback, and multi-channel synchronous playback, facilitating the receiving device to send video data to the sending device. The command and control personnel at the sending device can then observe the video footage, understand the overall situation, and make corresponding decisions. The electronic map component 205 primarily provides a plugin that can draw the motion trajectory of a target object and display it on the receiving device's interface, enabling motion data visualization. This allows the receiving device to send visualized motion data to the sending device, allowing the command and control personnel at the sending device to promptly grasp the target object's motion and adjust subsequent input commands accordingly. The browser component 206 primarily provides a Chrome-based browser access method, used to display and monitor various data on the browser page, such as real-time data, statistical data, and report data. This facilitates the command and control personnel at the sending device to view and analyze the data to make appropriate decisions.

[0112] Please see Figure 3 , Figure 3 This illustration shows a data interaction diagram based on a BC hybrid software integration framework provided in an embodiment of this application.

[0113] like Figure 3As shown, the data interaction diagram based on the BC hybrid software integration framework includes a first port of the sending device, a second port of the receiving device, and four data interaction functions. Here, the four data interaction functions include: a first sending function 301, a second sending function 302, a notification signal function 303 bound to the first receiving function, and a notification signal function 304 bound to the second receiving function. The first sending function 301 is mainly used to convert various types of data that the sending device needs to send into data that can be parsed by the receiving device and then send it. The second sending function 302 is mainly used to convert various types of data that the receiving device needs to send into data that can be parsed by the sending device and then send it. The notification signal function 303 bound to the first receiving function is mainly used to send a notification signal to the receiving device after the sending device sends data to the receiving device, so that the receiving device calls the first receiving function bound to the notification signal to parse the data received by the receiving device. The notification signal function 304 bound to the second receiving function is mainly used to send a notification signal to the sending device after the receiving device sends data to the sending device, so that the sending device calls the second receiving function bound to the notification signal to parse the data received by the sending device.

[0114] Please see Figure 4 , Figure 4 This illustration shows a schematic diagram of a communication device based on a BC hybrid software integration framework provided in an embodiment of this application.

[0115] like Figure 4 As shown, the communication device based on the BC hybrid software integration framework may include at least a first processing module 401, a second processing module 402, a third processing module 403, and a fourth processing module 404, wherein:

[0116] The first processing module 401 is used to send a connection request containing a preset communication protocol identifier from the receiving device to the sending device.

[0117] The second processing module 402 is used to send a connection success signal to the receiving device when the sending device detects the first port corresponding to the preset communication protocol identifier;

[0118] The third processing module 403 is used to convert the user-input command by the sending device based on the first sending function in the preset dynamic library, and send the converted data to the second port of the receiving device through the first port; wherein the second port is the port corresponding to the preset communication protocol identifier;

[0119] The fourth processing module 404 is used by the receiving device to parse and process the converted data based on the first receiving function in the preset dynamic library.

[0120] In some possible embodiments, after the receiving device sends a connection request containing a preset communication protocol identifier to the sending device, the method further includes:

[0121] The first processing module 401 is specifically used for:

[0122] When the sending device fails to detect the first port corresponding to the preset communication protocol identifier, it sends a connection failure signal to the receiving device.

[0123] In some possible embodiments, after sending a connection failure signal to the receiving device, the method further includes:

[0124] The first processing module 401 is specifically used for:

[0125] The sending device creates a first port corresponding to a preset communication protocol identifier and sends a corresponding notification signal to the receiving device.

[0126] When the receiving device receives the notification signal, it sends a connection request containing a preset communication protocol identifier to the sending device.

[0127] In some possible embodiments, after the receiving device parses the converted data based on a first receiving function in a preset dynamic library, the method further includes:

[0128] The fourth processing module 404 is specifically used for:

[0129] The receiving device performs corresponding operations based on the parsed data and records the operation results; the parsed data is the data obtained by parsing the converted data.

[0130] The receiving device converts the operation result based on the second sending function in the preset dynamic library to obtain feedback data;

[0131] The receiving device sends the feedback data to the sending device's first port through the second port.

[0132] The sending device parses and processes the feedback data based on the second receiving function in the preset dynamic library.

[0133] In some possible embodiments, the receiving device further includes a video management component;

[0134] After the receiving device parses and processes the converted data based on the first receiving function in a preset dynamic library, the process also includes:

[0135] The fourth processing module 404 is specifically used for:

[0136] When the receiving device detects that the parsed data contains video retrieval data, the receiving device determines the video identifier corresponding to the video retrieval data based on the video retrieval data.

[0137] The receiving device obtains the video corresponding to the video identifier based on the video identifier;

[0138] The receiving device decodes the video using a video management component and then plays the decoded video.

[0139] In some possible embodiments, the receiving device may also include an electronic map component;

[0140] After the receiving device parses and processes the converted data based on the first receiving function in a preset dynamic library, the process also includes:

[0141] The fourth processing module 404 is specifically used for:

[0142] When the receiving device detects that the parsed data contains geographic data, it obtains motion data based on the electronic map component.

[0143] The receiving device draws a motion trajectory corresponding to the geographic data based on at least two geographic coordinates and motion data from the geographic data.

[0144] In some possible embodiments, the motion data includes a preset time interval, motion speed, and motion angle;

[0145] The receiving device draws a motion trajectory corresponding to the geographic data based on at least two geographic coordinates and motion data from the geographic data, including:

[0146] The fourth processing module 404 is specifically used for:

[0147] The receiving device calculates the distance of movement corresponding to each time interval based on a preset time interval and the movement speed;

[0148] Based on the movement distance, movement angle, and at least two geographic location coordinates in the geographic data, the movement position coordinates corresponding to each time interval are calculated sequentially.

[0149] By connecting any two adjacent motion coordinates, the motion trajectory corresponding to the geographic data can be obtained.

[0150] The motion trajectory is drawn based on the electronic map component.

[0151] Please see Figure 5 , Figure 5 This illustration shows a schematic diagram of the structure of another communication device based on the BC hybrid software integration framework provided in an embodiment of this application.

[0152] like Figure 5 As shown, the communication device 500 based on the BC hybrid software integration framework may include at least one processor 501, at least one network interface 504, user interface 503, memory 505, and at least one communication bus 502.

[0153] The communication bus 502 can be used to realize the connection and communication of the above components.

[0154] The user interface 503 may include buttons, and the optional user interface may also include a standard wired interface or a wireless interface.

[0155] The network interface 504 may include, but is not limited to, Bluetooth modules, NFC modules, Wi-Fi modules, etc.

[0156] The processor 501 may include one or more processing cores. The processor 501 connects to various parts within the electronic device 500 using various interfaces and lines. It executes various functions and processes data by running or executing instructions, programs, code sets, or instruction sets stored in the memory 505, and by calling data stored in the memory 505. Optionally, the processor 501 may be implemented using at least one hardware form of DSP, FPGA, or PLA. The processor 501 may integrate one or more of the following: CPU, GPU, and modem. The CPU primarily handles the operating system, user interface, and applications; the GPU is responsible for rendering and drawing the content required for display; and the modem handles wireless communication. It is understood that the modem may also not be integrated into the processor 501 and may be implemented as a separate chip.

[0157] The memory 505 may include RAM or ROM. Optionally, the memory 505 may include a non-transitory computer-readable medium. The memory 505 may be used to store instructions, programs, code, code sets, or instruction sets. The memory 505 may include a program storage area and a data storage area, wherein the program storage area may store instructions for implementing an operating system, instructions for at least one function (such as touch function, sound playback function, image playback function, etc.), instructions for implementing the above-described method embodiments, etc.; the data storage area may store data involved in the above-described method embodiments, etc. Optionally, the memory 505 may also be at least one storage device located remotely from the aforementioned processor 501. Figure 5As shown, the memory 505, which serves as a computer storage medium, may include an operating system, a network communication module, a user interface module, and a communication application based on the BC hybrid software integration framework.

[0158] Specifically, processor 501 can be used to call the communication application based on the BC hybrid software integration framework stored in memory 505, and specifically perform the following operations:

[0159] The receiving device sends a connection request containing a preset communication protocol identifier to the sending device;

[0160] When the sending device detects the first port corresponding to the preset communication protocol identifier, it sends a connection success signal to the receiving device.

[0161] The sending device processes the user-input command based on the first sending function in the preset dynamic library, and sends the converted data to the second port of the receiving device through the first port; wherein the second port is the port corresponding to the preset communication protocol identifier;

[0162] The receiving device parses and processes the converted data based on the first receiving function in the preset dynamic library.

[0163] This application also provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the steps of the above-described method. The computer-readable storage medium may include, but is not limited to, any type of disk, including floppy disks, optical disks, DVDs, CD-ROMs, microdrives, as well as magneto-optical disks, ROMs, RAMs, EPROMs, EEPROMs, DRAMs, VRAMs, flash memory devices, magnetic cards or optical cards, nanosystems (including molecular memory ICs), or any type of medium or device suitable for storing instructions and / or data.

[0164] It should be noted that, for the sake of simplicity, the foregoing method embodiments are all described as a series of actions. However, those skilled in the art should understand that this application is not limited to the described order of actions, as some steps may be performed in other orders or simultaneously according to this application. Furthermore, those skilled in the art should also understand that the embodiments described in the specification are preferred embodiments, and the actions and modules involved are not necessarily essential to this application.

[0165] In the above embodiments, the descriptions of each embodiment have different focuses. For parts not described in detail in a certain embodiment, please refer to the relevant descriptions in other embodiments.

[0166] In the several embodiments provided in this application, it should be understood that the disclosed apparatus can be implemented in other ways. For example, the apparatus embodiments described above are merely illustrative; for instance, the division of units is only a logical functional division, and in actual implementation, there may be other division methods. For example, multiple units or components may be combined or integrated into another system, or some features may be ignored or not executed. Furthermore, the coupling or direct coupling or communication connection shown or discussed may be through some service interface; the indirect coupling or communication connection between apparatuses or units may be electrical or other forms.

[0167] The units described as separate components may or may not be physically separate. The components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the units can be selected to achieve the purpose of this embodiment according to actual needs.

[0168] Furthermore, the functional units in the various embodiments of this application can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The integrated unit can be implemented in hardware or as a software functional unit.

[0169] If the integrated unit is implemented as a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage device (CMD). Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the prior art, or all or part of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a memory and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods of the various embodiments of this application. The aforementioned memory includes various media capable of storing program code, such as a USB flash drive, read-only memory (ROM), random access memory (RAM), portable hard drive, magnetic disk, or optical disk.

[0170] Those skilled in the art will understand that all or part of the steps in the various methods of the above embodiments can be implemented by a program instructing related hardware. The program can be stored in a computer-readable storage medium, which may include: a flash drive, a read-only memory (ROM), a random access memory (RAM), a magnetic disk, or an optical disk, etc.

[0171] The above are merely exemplary embodiments of this disclosure and should not be construed as limiting the scope of this disclosure. Any equivalent changes and modifications made in accordance with the teachings of this disclosure shall still fall within the scope of this disclosure. Those skilled in the art will readily conceive of embodiments of this disclosure upon considering the specification and practicing the disclosure herein. This application is intended to cover any variations, uses, or adaptations of this disclosure that follow the general principles of this disclosure and include common knowledge or customary techniques in the art not described herein. The specification and embodiments are to be considered exemplary only, and the scope and spirit of this disclosure are defined by the claims.

Claims

1. A communication method based on a BC hybrid software integration framework, characterized in that, The method is applied to a BC hybrid software integration framework, which includes a transmitting device and a receiving device. The method includes: The receiving device sends a connection request containing a preset communication protocol identifier to the sending device; When the transmitting device detects the first port corresponding to the preset communication protocol identifier, it sends a connection success signal to the receiving device. The sending device processes the user-input command based on a first sending function in a preset dynamic library, and sends the converted data to a second port of the receiving device through the first port; wherein the second port is a port corresponding to the preset communication protocol identifier; The receiving device parses and processes the converted data based on the first receiving function in the preset dynamic library; After the receiving device sends a connection request containing a preset communication protocol identifier to the sending device, the method further includes: When the transmitting device fails to detect the first port corresponding to the preset communication protocol identifier, it sends a connection failure signal to the receiving device. After sending the connection failure signal to the receiving device, the method further includes: The sending device creates a first port corresponding to the preset communication protocol identifier and sends a corresponding notification signal to the receiving device. When the receiving device receives the notification signal, it sends a connection request containing the preset communication protocol identifier to the sending device. After the receiving device parses the converted data based on the first receiving function in the preset dynamic library, the process further includes: The receiving device performs corresponding operations based on the parsed data and records the operation results corresponding to the operations; wherein, the parsed data is data obtained by parsing the converted data; The receiving device performs a conversion process on the operation result based on the second sending function in the preset dynamic library to obtain feedback data; The receiving device sends the feedback data to the first port of the sending device through the second port; The sending device parses and processes the feedback data based on the second receiving function in the preset dynamic library; The receiving device also includes a video management component; After the receiving device parses the converted data based on the first receiving function in the preset dynamic library, the process further includes: When the receiving device detects that the parsed data contains video retrieval data, the receiving device determines the video identifier corresponding to the video retrieval data based on the video retrieval data. The receiving device obtains the video corresponding to the video identifier based on the video identifier; The receiving device decodes the video based on the video management component and plays the decoded video.

2. The method according to claim 1, characterized in that, The receiving device also includes an electronic map component; After the receiving device parses the converted data based on the first receiving function in the preset dynamic library, the process further includes: When the receiving device detects that the parsed data contains geographic data, it acquires motion data based on the electronic map component. The receiving device draws a motion trajectory corresponding to the geographic data based on at least two geographic coordinates in the geographic data and the motion data.

3. The method according to claim 2, characterized in that, The motion data includes preset time intervals, motion speed, and motion angles; The step of drawing a motion trajectory corresponding to the geographic data based on at least two geographic coordinates in the geographic data and the motion data by the receiving device includes: The receiving device calculates the movement distance corresponding to each of the preset time intervals and the movement speed. Based on the movement distance, the movement angle, and at least two geographic location coordinates in the geographic data, the movement position coordinates corresponding to each time interval are calculated sequentially. Connect any two adjacent motion coordinates to obtain the motion trajectory corresponding to the geographic data; The motion trajectory is drawn based on the electronic map component.

4. A communication device based on a BC hybrid software integration framework, characterized in that, The device is applied to a BC hybrid software integration framework, which includes a transmitting device and a receiving device. The device includes: The first processing module is used to send a connection request containing a preset communication protocol identifier from the receiving device to the sending device. The second processing module is used to send a connection success signal to the receiving device when the sending device detects the first port corresponding to the preset communication protocol identifier; The third processing module is used by the sending device to convert the user-input command based on a first sending function in a preset dynamic library, and to send the converted data to a second port of the receiving device through the first port; wherein the second port is a port corresponding to the preset communication protocol identifier; The fourth processing module is used by the receiving device to parse and process the converted data based on the first receiving function in the preset dynamic library; After the receiving device sends a connection request containing a preset communication protocol identifier to the sending device, the method further includes: When the transmitting device fails to detect the first port corresponding to the preset communication protocol identifier, it sends a connection failure signal to the receiving device. After sending the connection failure signal to the receiving device, the method further includes: The sending device creates a first port corresponding to the preset communication protocol identifier and sends a corresponding notification signal to the receiving device. When the receiving device receives the notification signal, it sends a connection request containing the preset communication protocol identifier to the sending device. After the receiving device parses the converted data based on the first receiving function in the preset dynamic library, the process further includes: The receiving device performs corresponding operations based on the parsed data and records the operation results corresponding to the operations; wherein, the parsed data is data obtained by parsing the converted data; The receiving device performs a conversion process on the operation result based on the second sending function in the preset dynamic library to obtain feedback data; The receiving device sends the feedback data to the first port of the sending device through the second port; The sending device parses and processes the feedback data based on the second receiving function in the preset dynamic library; The receiving device also includes a video management component; After the receiving device parses the converted data based on the first receiving function in the preset dynamic library, the process further includes: When the receiving device detects that the parsed data contains video retrieval data, the receiving device determines the video identifier corresponding to the video retrieval data based on the video retrieval data. The receiving device obtains the video corresponding to the video identifier based on the video identifier; The receiving device decodes the video based on the video management component and plays the decoded video.

5. A communication device based on a BC hybrid software integration framework, characterized in that, Including the processor and memory; The processor is connected to the memory; The memory is used to store executable program code; The processor runs a program corresponding to the executable program code stored in the memory to perform the steps of the method as described in any one of claims 1-3.

6. A computer-readable storage medium having a computer program stored thereon, characterized in that, The computer-readable storage medium stores instructions that, when executed on a computer or processor, cause the computer or processor to perform the steps of the method as described in any one of claims 1-3.