Communication control method and apparatus, cloudized network controller, and communication system
By determining the characteristic and interface information of the access device in the cloud network controller and automatically configuring the protocol, the problem of low communication configuration efficiency of the cloud network controller is solved, and accurate and fast communication is achieved.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- GREE ELECTRIC APPLIANCE INC OF ZHUHAI
- Filing Date
- 2024-12-31
- Publication Date
- 2026-05-08
AI Technical Summary
When receiving data from different devices, the cloud-based network controller has difficulty accurately configuring protocols and transmitting communication data, resulting in low communication configuration efficiency.
By determining the characteristic information of the access device and the matching target interface information, querying the corresponding target protocol information, and establishing communication based on the protocol information, automatic protocol configuration is achieved.
Even when the cloud-based network controller lacks a hardware interface, it can accurately and quickly query and configure protocols that match the access devices, thereby improving the accuracy and efficiency of communication.
Smart Images

Figure CN120017685B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of communication technology, and in particular to a communication control method, apparatus, cloud-based network controller, and communication system. Background Technology
[0002] In related technologies, cloud network controllers, in practical applications, face difficulties in accurately configuring protocols and transmitting communication for different data due to receiving a large amount of data uploaded from different devices. Summary of the Invention
[0003] This application provides a communication control method, apparatus, cloud-based network controller, and communication system to solve the technical problem of low communication configuration efficiency of cloud-based network controllers.
[0004] In a first aspect, this application provides a communication control method applied to a cloud-based network controller, comprising: in response to receiving target data from an access device, determining feature information of the target data and target interface information matching the access device; querying target protocol information corresponding to the access device based on the target interface information and the feature information; and establishing communication based on the target protocol information.
[0005] In one possible implementation, determining the feature information of the target data and the target interface information matching the access device includes: determining the feature information of the target data; polling based on data request information corresponding to multiple candidate interface information to determine the target interface information matching the access device.
[0006] In one possible implementation, the step of polling data request information corresponding to multiple candidate interface information to determine the target interface information matching the access device includes: polling and sending data request information corresponding to multiple candidate interface information; in response to receiving response information from the access device, determining the data request information responded to by the response information; and determining the candidate interface information corresponding to the response data request information as the target interface information matching the access device.
[0007] In one possible implementation, determining the feature information of the target data includes: determining the feature information of the target data based on at least one of the content of the target data, the type of the target data, the identification information of the target data, and the identification information of the access device.
[0008] In one possible implementation, the step of determining the feature information of the target data and the target interface information matching the access device in response to receiving target data from the access device includes: caching the target data in a storage area in response to receiving target data from the access device, and determining the feature information of the target data and the target interface information matching the access device.
[0009] In one possible implementation, establishing communication based on the target protocol information includes: reading the cached target data from the storage area; parsing the target data based on the target protocol information; storing the parsed target data in the data table corresponding to the target protocol information; and sending the target protocol information to a host computer so that the host computer can obtain the target data based on the target protocol information.
[0010] In one possible implementation, the method further includes: in response to receiving a data acquisition request sent by a host computer, determining target data based on target protocol information indicated by the host computer; and sending the target data to the host computer.
[0011] Secondly, this application provides a communication control device applied to a network controller. The device includes: a determining unit, configured to determine characteristic information of the target data and target interface information matching the access device in response to receiving target data from an access device; a querying unit, configured to query target protocol information corresponding to the access device based on the target interface information and the characteristic information; and a communication unit, configured to establish communication based on the target protocol information.
[0012] Thirdly, this application provides a cloud-based network controller, including the communication control device described in any one of the preceding second aspects.
[0013] Fourthly, this application provides a communication system, including: an access device, a host computer, and a cloud-based network controller as described in any one of the third aspects above.
[0014] Fifthly, this application provides an electronic device, including a processor, a communication interface, a memory, and a communication bus, wherein the processor, the communication interface, and the memory communicate with each other via the communication bus; the memory is used to store a computer program; and the processor is used to implement the method described in any one of the first aspects when executing the computer program.
[0015] Sixthly, this application also provides a storage medium having a computer program stored thereon, which, when executed by a processor, implements the method described in any one of the first aspects above.
[0016] Compared with the prior art, the technical solution provided in this application has the following advantages: The method provided in this application, in response to receiving target data from an access device, determines the feature information of the target data and the target interface information matching the access device; queries the target protocol information corresponding to the access device based on the target interface information and the feature information; and establishes communication based on the target protocol information. Thus, by determining the interface information matching the access device and the feature information of the data in the cloud network controller, the matching protocol can be queried more accurately and quickly, eliminating the need for manual protocol configuration for different access devices. Therefore, even when the cloud network controller lacks hardware interfaces, it can still automatically configure protocols for communication, improving the accuracy and efficiency of communication. Attached Figure Description
[0017] The accompanying drawings, which are incorporated in and form part of this specification, illustrate embodiments consistent with this application and, together with the description, serve to explain the principles of this application.
[0018] To more clearly illustrate the technical solutions in the embodiments of this application or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, for those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0019] One or more embodiments are illustrated by way of example with reference numerals in the accompanying drawings. These illustrations do not constitute a limitation on the embodiments. Elements with the same reference numerals in the drawings are denoted as similar elements. Unless otherwise stated, the figures in the drawings are not to be limited by scale.
[0020] Figure 1 A flowchart illustrating a communication control method provided in an embodiment of this application;
[0021] Figure 2 A flowchart illustrating a communication control method provided in an embodiment of this application;
[0022] Figure 3 A flowchart illustrating a communication control method provided in an embodiment of this application;
[0023] Figure 4 A schematic diagram of a building control system provided in an embodiment of this application;
[0024] Figure 5 A schematic diagram of a communication control flow provided in an embodiment of this application;
[0025] Figure 6 A flowchart illustrating a communication control method provided in an embodiment of this application;
[0026] Figure 7 A schematic diagram illustrating a process for determining interface information provided in an embodiment of this application;
[0027] Figure 8 A flowchart illustrating a communication control method provided in an embodiment of this application;
[0028] Figure 9 This is a data storage diagram of a data table provided in an embodiment of this application;
[0029] Figure 10 A schematic diagram of a communication control device provided in an embodiment of this application;
[0030] Figure 11 This is a schematic diagram of an electronic device provided in an embodiment of this application. Detailed Implementation
[0031] To make the objectives, technical solutions, and advantages of the embodiments of this application clearer, the technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this application, not all embodiments. Based on the embodiments of this application, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this application. It should be noted that, unless otherwise specified, the embodiments and features in the embodiments of this application can be combined with each other.
[0032] The following disclosure provides numerous different embodiments or examples for implementing various structures of this application. To simplify the disclosure, specific examples of components and arrangements are described below. These are merely examples and are not intended to limit the scope of this application. Furthermore, reference numerals and / or letters may be repeated in different examples. Such repetition is for simplification and clarity and does not in itself indicate a relationship between the various embodiments and / or arrangements discussed.
[0033] To address the technical problem of low efficiency in configuring communication protocols in existing technologies, this application provides a communication control method. First, the interface information matching the access device is determined, and then the corresponding protocol is queried based on data characteristics to establish communication. This allows for automatic configuration of protocols for different devices, thereby improving communication efficiency.
[0034] Figure 1 This is a flowchart illustrating a communication control method provided in this embodiment, as shown below. Figure 1 As shown, the method may include:
[0035] S10: In response to receiving target data from the access device, determine the characteristic information of the target data and the target interface information that matches the access device;
[0036] S20: Query the target protocol information corresponding to the access device based on the target interface information and feature information;
[0037] S30: Establish communication based on target protocol information.
[0038] The communication control method provided in this embodiment can be applied to a cloud network controller, or it can be applied to a server or other terminal that has the ability to control the cloud network controller, such as a terminal device that connects to the cloud network controller via Bluetooth, local area network or other means.
[0039] Here, a cloud-based network controller can also refer to a cloud-based network controller, which transmits data with access devices via a network. For example, a cloud-based network controller can implement the controller's control logic and functions on a general-purpose computing platform in the cloud, and utilize software-defined and virtualization technologies to implement control tasks, thereby reducing the development costs of controller hardware.
[0040] Optionally, the communication control method and cloud-based network controller provided in this embodiment can be applied to intelligent device control systems, such as building control systems. The cloud-based network controller and the access device do not need to be connected through a hardware interface.
[0041] In this embodiment, the access device can be a device that accesses the cloud-based network controller via a network. For example, the cloud-based network controller can receive data reported by the access device and control the access device. The target data can be data reported by the access device, such as heartbeat packets, data containing device status, data requesting control, etc.
[0042] In one embodiment, responding to receiving target data from the access device may include: responding to receiving the target data from the access device within a predetermined time period or a predetermined cycle. For example, the predetermined time period or predetermined cycle may be the time period or cycle during which the cloud network controller receives data reported by the access device.
[0043] In one embodiment, the characteristic information of the target data may include the data characteristics of the target data and the device characteristics of the access device. The data characteristics of the target data may be determined based on the content, data type, and identification information of the target data, while the device characteristics of the access device may be determined based on the identification information of the access device.
[0044] In one embodiment, the target interface information matching the access device can refer to the target interface information matching the access device and the target data. The target interface information can be hardware interface information.
[0045] In one embodiment, querying the target protocol information corresponding to the access device may include: querying the target protocol information corresponding to the access device in a predetermined database. Here, the target protocol information may include a protocol identifier of the target protocol, wherein the target protocol may be a communication protocol used to establish communication, and the protocol identifier may be a number of the target protocol or target protocol information, etc.
[0046] In one embodiment, the target protocol information may be a protocol component containing a protocol identifier and a dataset corresponding to the protocol identifier. The dataset may include the device type of the access device, the interface type used, the protocol type used, and location information related to the access device. Location information refers to the data type and data values of the target data collected by the access device, such as temperature values from a temperature sensor or rotational speed values from a fan.
[0047] In one embodiment, the predetermined database may be a protocol component library, for example, in which multiple target protocol information may be stored. Each target protocol information may contain a mapping between a target protocol and a set of datasets.
[0048] In one embodiment, a set of target interface information and feature information can correspond to a target protocol information, and different target interface information and feature information can correspond to different target protocol information.
[0049] In one embodiment, establishing communication based on the target protocol information can refer to establishing communication with a host computer based on the target protocol information.
[0050] In one embodiment, establishing communication based on the target protocol information may include: parsing and storing the target data based on the target protocol information, and establishing communication based on the target protocol information.
[0051] In this way, by determining the interface information and data characteristics that match the access device in the cloud network controller, the matching protocol can be found more accurately and quickly. There is no need to manually configure the protocol for different access devices. Thus, even if the cloud network controller does not have a hardware interface, it can still automatically configure the protocol for communication, thereby improving the accuracy and efficiency of communication.
[0052] Since the cloud-based network controller lacks a hardware interface, it is necessary to avoid errors and improve accuracy when determining the target interface information that matches the access device. Therefore, in some embodiments, such as Figure 2 As shown, in step S10, determining the feature information of the target data and the target interface information matching the access device may include:
[0053] S11: Determine the feature information of the target data;
[0054] S12: Poll the data request information corresponding to multiple alternative interface information to determine the target interface information that matches the access device.
[0055] In one embodiment, multiple alternative interface information can be stored in a predetermined database. For example, the target protocol information can store a protocol identifier and a dataset corresponding to the protocol identifier. The dataset can contain interface information corresponding to the target protocol. All interface information in the predetermined database is the multiple alternative interface information.
[0056] In one embodiment, determining the target interface information that matches the access device may refer to the hardware interface information that simulates the access device as the target interface information that matches the access device.
[0057] In one embodiment, polling based on data request information corresponding to multiple candidate interfaces can refer to sending data request information corresponding to multiple candidate interfaces in a polling manner. For example, sending data request information corresponding to multiple candidate interfaces to the access device in a polling manner.
[0058] Here, data request information can be request information used to request specific data from the access device or to request a response.
[0059] In one embodiment, determining the target interface information that matches the access device may refer to determining the target interface information that matches the access device based on the response information of the access device in response to the data request information.
[0060] In this way, by polling data requests through multiple alternative interface information, the interface information supported by the access device can be quickly determined. Even when the cloud network controller does not have a hardware interface, it can quickly simulate the interface matched by the device, thereby improving the accuracy and efficiency of automatic protocol configuration.
[0061] In some embodiments, such as Figure 3 As shown, step S12 may include:
[0062] S121: Poll and send data request information corresponding to multiple alternative interface information;
[0063] S122: In response to receiving the response information from the access device, determine the data request information responded to by the response information;
[0064] S123: Determine that the alternative interface information corresponding to the data request information in the response is the target interface information that matches the access device.
[0065] Here, the data request information can be a data request frame, etc.
[0066] In one embodiment, polling and sending data request information corresponding to multiple alternative interface information can refer to the access device polling and sending data request information corresponding to multiple alternative interface information, or broadcasting and polling and sending data request information corresponding to multiple alternative interface information, etc.
[0067] In one embodiment, polling and sending data request information corresponding to multiple candidate interface information may include: polling and sending data request information corresponding to multiple candidate interface information based on a predetermined sending period. For example, the predetermined sending period may be 100ms, 200ms, 500ms, or 1s, etc.
[0068] In one embodiment, the data request information corresponding to different alternative interface information is different. For example, the request identifier carried by the data request information corresponding to different alternative interface information is different.
[0069] In one embodiment, the response information returned by the access device may be the response information returned by the access device in response to the data request information.
[0070] In one embodiment, receiving a response from the access device can refer to receiving the response from the access device within a predetermined time window. For example, the start and end times of the predetermined time window can be the start time of polling and sending data request information, and a predetermined duration after the end time of polling and sending data request information.
[0071] In one embodiment, determining the data request information in response to the response information may refer to determining the data request information to which the access device's response information is directed.
[0072] In one embodiment, the data request information in response to the response information can be determined based on the time when the response information is received from the access device. For example, the most recently sent data request information before the time when the response information is received from the access device can be determined as the data request information in response to the response information.
[0073] In one embodiment, the data request information in the response information can also be determined based on the request identifier carried in the response information. For example, the request identifier carried in the response information is the summary request identifier carried in the data request information responded by the access device.
[0074] In one embodiment, when the number of data request messages in the response information is greater than 1, determining the candidate interface information corresponding to the response data request information as the target interface information matching the access device may include: selecting target data request information that matches the feature information of the target data from the data request information in the response information; and determining the candidate interface information corresponding to the target data request information as the target interface information matching the access device.
[0075] In this way, by polling and sending data requests corresponding to different interface information, and determining the data request that matches the access device based on the response of the access device, the corresponding interface information can be determined more accurately.
[0076] In some embodiments, determining the feature information of the target data includes:
[0077] The characteristic information of the target data is determined based on at least one of the content of the target data, the type of the target data, the identification information of the target data, and the identification information of the access device.
[0078] In one embodiment, the content of the target data may include the numerical value, unit, and data name of the target data. For example, the data name may include voltage value, current value, temperature value, and water level value. The type of the target data may refer to the data type of the target data, such as binary type and enumeration type.
[0079] In one embodiment, the identification information of the access device may refer to the unique identification code of the access device, such as the International Mobile Equipment Identity (IMEI).
[0080] In this way, the feature information of the target data can characterize the data and the access device in multiple dimensions, thereby more accurately determining the matching communication protocol and improving the reliability of data transmission.
[0081] In some embodiments, step S10 may include:
[0082] In response to receiving target data from the access device, the target data is cached in the storage area, and the characteristic information of the target data and the target interface information matching the access device are determined.
[0083] In one embodiment, caching the target data in a storage area may include: filtering the target data based on a controller identifier carried by the target data; and caching the filtered target data in the storage area. Here, the controller identifier can be a unique identifier for the network controller, and the controller identifier can be used to determine whether the target data is destined for the current network controller.
[0084] In one embodiment, caching the target data in a storage area may include: binding the target data with the identification information of the access device and then caching it in the storage area. For example, this step may include: filtering the target data based on the controller identifier carried by the target data; binding the filtered target data with the identification information of the access device and then caching it in the storage area.
[0085] In this way, after receiving data uploaded by the access device, caching it and then performing the protocol configuration process can avoid the loss of target data or the direct storage in memory, which would consume too many resources.
[0086] In some embodiments, establishing communication based on the target protocol information includes:
[0087] Read the cached target data from the storage area;
[0088] The target data is parsed based on the target protocol information;
[0089] The parsed target data is stored in the data table corresponding to the target protocol information;
[0090] The target protocol information is sent to the host computer so that the host computer can obtain the target data based on the target protocol information.
[0091] In one embodiment, the data table corresponding to the target protocol information can be determined based on the data table model contained in the target protocol information. For example, the data table model can indicate the rows, columns, data categories, and data locations in the data table.
[0092] In one embodiment, the target data, the instance corresponding to the access device, and the attribute information of the instance can form a mapping relationship, and the arrangement of the data table can reflect the above mapping relationship.
[0093] In one embodiment, sending the target protocol information to the host computer can refer to sending the protocol identifier in the target protocol information to the host computer, for example, the protocol identifier being a protocol number. The host computer can then obtain the corresponding target data from the network controller based on the protocol identifier.
[0094] In this way, by parsing the cached target data through the matching protocol and storing it in the data table corresponding to the protocol, the target data can be stored more accurately in the matching data table. Thus, the host computer can quickly and accurately obtain the required data based on the target protocol information, thereby improving communication efficiency.
[0095] In some embodiments, after step S20, the method may further include:
[0096] In response to receiving a data acquisition request from a host computer, the target data is determined based on the target protocol information indicated by the host computer;
[0097] The target data is sent to the host computer.
[0098] In one embodiment, determining target data based on the target protocol information indicated by the host computer may include: querying the target data corresponding to the protocol identifier carried in the data acquisition request.
[0099] In one embodiment, sending the target data to the host computer may include: reading part or all of the target data from a data table and sending the target data to the host computer.
[0100] In one embodiment, after sending the target data to the host computer, the method may further include: determining whether the target protocol information matches the access device based on the reception status of the data acquisition request and the transmission status of the target data; if they do not match, then re-determining the target protocol information corresponding to the access device.
[0101] Here, re-determining the target protocol information corresponding to the access device may include: determining the feature information of the target data and the target interface information matching the access device; and querying the target protocol information corresponding to the access device in a predetermined database that does not contain the current target protocol information based on the target interface information and the feature information.
[0102] In this way, the host computer can obtain the required target data based on the matched target protocol information. Through automatic protocol configuration, the data transmission configuration between the network controller and the host computer is realized, improving the efficiency and accuracy of communication.
[0103] As one possible implementation, a cloud-based network controller (hereinafter referred to as the controller) is provided, and based on this, a method for self-adaptation of device access protocols is proposed to realize the process from device access to data parsing through protocols and then to data display on the host computer interface. For example... Figure 4 As shown, the entire building control system architecture is illustrated. The controller's structural components are as follows: Figure 5As shown, it mainly consists of a central processing unit, a virtual hardware interface processing unit, a protocol component library, a data comparison unit, and a data storage area. The control system's workflow is as follows: Figure 6 As shown, it includes:
[0104] The central processing unit is mainly responsible for data processing and scheduling the work of other units. It also has an internal storage area for storing subsequently generated data tables.
[0105] The virtual hardware interface processing unit mainly virtualizes the necessary hardware interfaces for devices connected to the network controller, such as... Figure 7 As shown, it mainly works by polling and sending data request frames (data frames) according to the hardware interface information in the protocol component library, and then checking whether the access device has successfully responded to the data request. If a response to the data request is successfully received, it indicates that the hardware interface information adapted to the device has been successfully matched, and the data access request of the hardware interface is simulated based on this information, thereby achieving the purpose of simulating the hardware interface and thus more quickly matching the protocol component suitable for the access device (different protocols correspond to different data frame formats, while hardware interfaces and protocols are one-to-one, such as CAN interface corresponding to CAN bus protocol, RS485 interface corresponding to RS485 bus protocol, etc.).
[0106] The data comparison unit primarily filters the received data. Then, based on the interface type information and data characteristics virtualized by the virtual hardware interface processing unit, it compares and searches the protocol component library for components that match the device. It has an internal storage area to cache the received data. Data filtering mainly involves identifying the sequence number in the first segment of the received data. Typically, it can be stipulated that devices connected to the controller need to add the controller's serial number to the first segment of the data when transmitting data. This serial number is a unique identifier generated by the controller. By identifying this serial number, the data uploaded by the devices connected to the controller can be filtered out.
[0107] The protocol component library primarily stores standardized protocol components for all current devices. Each protocol component is numbered. A protocol component is a collection containing information about the device type, interface type, protocol type, and location information associated with that device. Location information refers to the data and values collected by that device, such as temperature values from a temperature sensor or rotational speed values from a fan. The data storage area primarily stores all data transmitted to the network controller from currently connected devices.
[0108] The network controller's workflow is as follows: Figure 8 As shown, it may specifically include:
[0109] First, when a device connects to the network controller (via Wi-Fi, Ethernet, etc.), the virtual hardware interface processing unit within the network controller detects the data characteristics sent by the device and virtualizes the device's hardware interface. The data characteristics consist of the data type (binary or enumerated), the device's unique identifier, and the content of the data (such as voltage, current, temperature, water level, etc.). The unique identifier is used to distinguish different devices, such as the IMEI code. The interface type is one of the common CAN communication interfaces, RS485 interfaces, or I2C.
[0110] After completing the virtualization of the access device's hardware interface, the virtual hardware interface processing unit sends the interface information and data characteristics to the data comparison unit. Simultaneously, it temporarily stores the data transmitted by the device in the data storage area. Upon receiving the device's data characteristics and interface type, the data comparison unit matches the appropriate protocol component from the protocol component library corresponding to that interface type. Since the data types transmitted by various devices can be broadly categorized into nine types, device instances can be mapped according to the data category uploaded. A device can have multiple instances, each containing multiple attributes. A mapping relationship is established between data types, instances, and attributes. This method constructs a flat data storage model, such as... Figure 9 As shown.
[0111] For example, a device for measuring water level and water pressure has instances of water level and water pressure measurement values. The current measurement value of water level and water pressure is the attribute of the corresponding instance. The data type of the two instances of water level and water pressure is real number read-only, which corresponds to analog input. In addition, there is an alarm status of water level and water pressure, which is divided into alarm and no alarm, i.e., 0 and 1. The corresponding data type is binary value read-only, which corresponds to binary input. The instances of this are the alarm status of water level and water pressure, and the attribute is alarm and no alarm, with the attribute value being 0 and 1.
[0112] Protocol components in the protocol component library are stored according to a mapping relationship between data type and device attributes, which is the flat data storage model. After matching the protocol component of the device, the data comparison unit sends the matched protocol component number to the central processing unit. The central processing unit retrieves the protocol component from the protocol component library and generates a data table according to the data storage model. Then, the central processing unit parses the data in the data storage area according to the matching protocol and stores it in the data table. At the same time, after matching the protocol component of the device, the number of the matched protocol component is sent to the host computer. Subsequently, the host computer uses its protocol component to find the location of the device's data stored in the data table to retrieve the data, thus completing the communication connection between the device, the device, and the host computer. This allows data to be displayed on the host computer platform as soon as the device is connected, achieving configuration-free operation of protocol points.
[0113] like Figure 10 As shown in the figure, this application provides a communication control device applied to a cloud-based network controller. The device may include:
[0114] The determining unit 100 is configured to, in response to receiving target data from the access device, determine the feature information of the target data and the target interface information matching the access device;
[0115] The query unit 200 is used to query the target protocol information corresponding to the access device based on the target interface information and the feature information;
[0116] The communication unit 300 is used to establish communication based on the target protocol information.
[0117] In one possible implementation, the determining unit 100 is specifically used to: determine the feature information of the target data; and poll based on the data request information corresponding to multiple alternative interface information to determine the target interface information that matches the access device.
[0118] In one possible implementation, the determining unit 100 is specifically configured to: poll and send data request information corresponding to multiple candidate interface information; in response to receiving response information from the access device, determine the data request information responded to by the response information; and determine the candidate interface information corresponding to the response data request information as target interface information matching the access device.
[0119] In one possible implementation, the determining unit 100 is specifically configured to: determine the feature information of the target data based on at least one of the content of the target data, the type of the target data, the identification information of the target data, and the identification information of the access device.
[0120] In one possible implementation, the determining unit 100 is specifically configured to: in response to receiving target data from the access device, cache the target data in a storage area, and determine the feature information of the target data and the target interface information matching the access device.
[0121] In one possible implementation, the communication unit 300 is specifically configured to: read the cached target data from the storage area; parse the target data based on the target protocol information; store the parsed target data in the data table corresponding to the target protocol information; and send the target protocol information to a host computer so that the host computer can obtain the target data based on the target protocol information.
[0122] In one possible implementation, the communication unit 300 is further configured to: in response to receiving a data acquisition request sent by a host computer, determine target data based on the target protocol information indicated by the host computer; and send the target data to the host computer.
[0123] This application also provides a cloud-based network controller, which includes the communication control device described in any one or more of the foregoing embodiments, or the cloud-based network controller executes the communication control method described in any one or more of the foregoing embodiments.
[0124] This application also provides a communication system, which includes: an access device, a host computer, and the cloud-based network controller described in any one or more of the foregoing embodiments.
[0125] The access device can connect to the cloud network controller via the network, and the host computer can also connect to the cloud network controller via the network.
[0126] like Figure 11 As shown in the figure, this application provides an electronic device, including a processor 111, a communication interface 112, a memory 113, and a communication bus 114, wherein the processor 111, the communication interface 112, and the memory 113 communicate with each other through the communication bus 114.
[0127] Memory 113 is used to store computer programs;
[0128] In one embodiment of this application, when the processor 111 executes the program stored in the memory 113, it implements the communication control method provided in any one or more of the foregoing method embodiments, which includes at least: in response to receiving target data from an access device, determining feature information of the target data and target interface information matching the access device; querying target protocol information corresponding to the access device based on the target interface information and the feature information; and establishing communication based on the target protocol information.
[0129] In one possible implementation, determining the feature information of the target data and the target interface information matching the access device includes: determining the feature information of the target data; polling based on data request information corresponding to multiple candidate interface information to determine the target interface information matching the access device.
[0130] In one possible implementation, the step of polling data request information corresponding to multiple candidate interface information to determine the target interface information matching the access device includes: polling and sending data request information corresponding to multiple candidate interface information; in response to receiving response information from the access device, determining the data request information responded to by the response information; and determining the candidate interface information corresponding to the response data request information as the target interface information matching the access device.
[0131] In one possible implementation, determining the feature information of the target data includes: determining the feature information of the target data based on at least one of the content of the target data, the type of the target data, the identification information of the target data, and the identification information of the access device.
[0132] In one possible implementation, the step of determining the feature information of the target data and the target interface information matching the access device in response to receiving target data from the access device includes: caching the target data in a storage area in response to receiving target data from the access device, and determining the feature information of the target data and the target interface information matching the access device.
[0133] In one possible implementation, establishing communication based on the target protocol information includes: reading the cached target data from the storage area; parsing the target data based on the target protocol information; storing the parsed target data in the data table corresponding to the target protocol information; and sending the target protocol information to a host computer so that the host computer can obtain the target data based on the target protocol information.
[0134] In one possible implementation, the method further includes: in response to receiving a data acquisition request sent by a host computer, determining target data based on target protocol information indicated by the host computer; and sending the target data to the host computer.
[0135] This application also provides a computer-readable storage medium storing a computer program thereon, which, when executed by a processor, implements the steps of the communication control method provided in any one or more of the foregoing method embodiments.
[0136] The device embodiments described above are merely illustrative. 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 modules can be selected to achieve the purpose of this embodiment according to actual needs.
[0137] Through the above description of the embodiments, those skilled in the art can clearly understand that each embodiment can be implemented using software plus a general-purpose hardware platform, or of course, using hardware. Based on this understanding, the above technical solutions, in essence or the parts that contribute to the related technology, can be embodied in the form of a software product. This computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, magnetic disk, optical disk, etc., and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute the methods described in the various embodiments or some parts of the embodiments.
[0138] It should be understood that the terminology used herein is for the purpose of describing particular exemplary embodiments only and is not intended to be limiting. Unless the context clearly indicates otherwise, the singular forms “a,” “an,” and “described” as used herein may also include the plural forms. The terms “comprising,” “including,” “containing,” and “having” are inclusive and therefore indicate the presence of the stated features, steps, operations, elements, and / or components, but do not exclude the presence or addition of one or more other features, steps, operations, elements, components, and / or combinations thereof. The method steps, processes, and operations described herein are not construed as requiring them to be performed in a particular order described or illustrated unless the order of performance is explicitly indicated. It should also be understood that additional or alternative steps may be used.
[0139] Unless otherwise specified, each step in a particular implementation or embodiment can be implemented as an independent embodiment, and the steps can be arbitrarily combined. For example, the solution after removing some steps in a particular implementation or embodiment can also be implemented as an independent embodiment, and the order of the steps in a particular implementation or embodiment can be arbitrarily interchanged. In addition, the optional methods or examples in a particular implementation or embodiment can be arbitrarily combined. Furthermore, the implementations or embodiments can be arbitrarily combined with each other. For example, some or all of the steps in different implementations or embodiments can be arbitrarily combined, and a particular implementation or embodiment can be arbitrarily combined with the optional methods or examples of other implementations or embodiments.
[0140] The above description is merely a specific embodiment of this application, enabling those skilled in the art to understand or implement this application. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of this application. Therefore, this application is not to be limited to the embodiments shown herein, but is to be accorded the widest scope consistent with the principles and novel features claimed herein.
Claims
1. A communication control method, characterized in that, Applied to cloud-based network controllers, the method includes: In response to receiving target data from the access device, the cloud network controller determines the feature information of the target data and the target interface information matching the access device. The cloud network controller and the access device are not connected through a hardware interface. When the access device accesses the cloud network controller, the virtual hardware interface processing unit in the cloud network controller detects the data features sent by the access device and virtualizes the hardware interface of the access device. The target interface information is the information of the virtual hardware interface of the access device. Based on the target interface information and the feature information, query the target protocol information corresponding to the access device; Communication is established based on the target protocol information.
2. The method according to claim 1, characterized in that, The determination of the feature information of the target data and the target interface information matching the access device includes: Determine the feature information of the target data; Based on the data request information corresponding to multiple alternative interface information, polling is performed to determine the target interface information that matches the access device.
3. The method according to claim 2, characterized in that, The step of polling based on data request information corresponding to multiple candidate interfaces to determine the target interface information matching the access device includes: Poll and send data request information corresponding to multiple alternative interfaces; In response to receiving a response from the access device, determine the data request information responded to by the response information; The alternative interface information corresponding to the data request information in the response is determined to be the target interface information that matches the access device.
4. The method according to claim 2, characterized in that, The determination of the feature information of the target data includes: The characteristic information of the target data is determined based on at least one of the content of the target data, the type of the target data, the identification information of the target data, and the identification information of the access device.
5. The method according to claim 1, characterized in that, The step of responding to receiving target data from the access device and determining the feature information of the target data and the target interface information matching the access device includes: In response to receiving target data from the access device, the target data is cached in the storage area, and the characteristic information of the target data and the target interface information matching the access device are determined.
6. The method according to claim 5, characterized in that, The establishment of communication based on the target protocol information includes: Read the cached target data from the storage area; The target data is parsed based on the target protocol information; The parsed target data is stored in the data table corresponding to the target protocol information; The target protocol information is sent to the host computer so that the host computer can obtain the target data based on the target protocol information.
7. The method according to claim 1, characterized in that, The method further includes: In response to receiving a data acquisition request from a host computer, the target data is determined based on the target protocol information indicated by the host computer; The target data is sent to the host computer.
8. A communication control device, characterized in that, The device, applied to a cloud-based network controller, includes: A determining unit is used to determine the characteristic information of the target data and the target interface information matching the access device in response to receiving target data from the access device. The cloud network controller and the access device are not connected through a hardware interface. When the access device accesses the cloud network controller, the virtual hardware interface processing unit in the cloud network controller detects the data characteristics sent by the access device and virtualizes the hardware interface of the access device. The target interface information is the information of the virtual hardware interface of the access device. The query unit is used to query the target protocol information corresponding to the access device based on the target interface information and the feature information; A communication unit is used to establish communication based on the target protocol information.
9. A cloud-based network controller, characterized in that, The cloud-based network controller includes the communication control device as described in claim 8.
10. A communication system, characterized in that, The communication system includes: an access device, a host computer, and the cloud-based network controller as described in claim 9.
11. An electronic device, characterized in that, include: The processor, communication interface, memory, and communication bus are connected, with the processor, communication interface, and memory communicating with each other via the communication bus. The memory is used to store computer programs; the processor is used to execute the computer programs to implement the method described in any one of claims 1-7.
12. A storage medium having a computer program stored thereon, characterized in that, When executed by a processor, the computer program implements the method described in any one of claims 1-7.
Citation Information
Patent Citations
Message processing system, method and equipment and storage medium
CN115396524A
Digital country management method, device and control system based on Internet of Things
CN115842869A