Communication control method and device, cloud network controller and communication system
By determining the characteristic information and interface information of the access device in the cloud network controller, querying and configuring matching protocols, the problem of low communication configuration efficiency of the cloud network controller is solved, and more efficient and accurate communication is achieved.
Patent Information
- Application Number
- CN202411990469.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-31
- Publication Date
- 2025-05-16
- Estimated Expiration
- 2044-12-31
AI Technical Summary
When cloud network controllers receive large amounts of data uploaded by different devices, it is difficult to accurately configure protocols and communicate, resulting in low communication configuration efficiency.
By responding to the received target data of the access device, its characteristic information and matching target interface information are determined, the corresponding target protocol information is queried based on these information, and communication is established.
It realizes the rapid and accurate query and configuration of protocols matching the access device in a cloud network controller, without manual configuration, and improves the accuracy and efficiency of communication.
Smart Images

Figure CN120017685A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of communication technology, and in particular to a communication control method, device, cloud network controller and communication system. Background Art
[0002] In the related art, in actual application, since the cloud network controller receives a large amount of data uploaded by different devices, it is difficult to perform accurate protocol configuration and communication transmission for different data. Summary of the invention
[0003] The present application provides a communication control method, device, cloud network controller and communication system to solve the technical problem of low communication configuration efficiency of the cloud network controller.
[0004] In the first aspect, the present application provides a communication control method applied to a cloud network controller, comprising: in response to receiving target data of an access device, determining characteristic 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 characteristic information; and establishing communication based on the target protocol information.
[0005] In one possible implementation, determining the characteristic information of the target data and the target interface information matching the access device includes: determining the characteristic information of the target data; and polling based on data request information corresponding to multiple alternative interface information to determine the target interface information matching the access device.
[0006] In one possible implementation, the polling is performed based on data request information corresponding to multiple alternative interface information to determine the target interface information that matches the access device, including: polling and sending data request information corresponding to multiple alternative interface information; in response to response information received as feedback from the access device, determining the data request information that responds to the response information; and determining that the alternative interface information corresponding to the data request information of the response is the target interface information that matches the access device.
[0007] In a possible implementation, determining the characteristic information of the target data includes: determining the characteristic 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, in response to receiving target data from an access device, determining characteristic information of the target data and target interface information that matches the access device includes: in response to receiving target data from an access device, caching the target data in a storage area, and determining characteristic information of the target data and target interface information that matches 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 a 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 a 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] In the second aspect, the present application provides a communication control device, which is applied to a network controller, and the device includes: a determination unit, which is used to determine the characteristic information of the target data and the target interface information matching the access device in response to receiving the target data of the access device; a query unit, which is used to query the target protocol information corresponding to the access device based on the target interface information and the characteristic information; and a communication unit, which is used to establish communication based on the target protocol information.
[0012] In a third aspect, the present application provides a cloud network controller, comprising a communication control device as described in any one of the aforementioned second aspects.
[0013] In a fourth aspect, the present application provides a communication system, including: an access device, a host computer, and a cloud network controller as described in any one of the aforementioned third aspects.
[0014] In a fifth aspect, the present application provides an electronic device, a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory communicate with each other through the communication bus; the memory is used to store a computer program; and the processor is used to implement any one of the methods described in the first aspect when executing the computer program.
[0015] In a sixth aspect, the present application further provides a storage medium on which a computer program is stored, and when the computer program is executed by a processor, the method described in any one of the first aspects above is implemented.
[0016] The above technical solution provided by the embodiment of the present application has the following advantages over the prior art: the method provided by the embodiment of the present application, in response to receiving the target data of the access device, determines the characteristic 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 characteristic information; establishes communication based on the target protocol information. In this way, by determining the interface information and data characteristic information matching the access device in the cloud network controller, the matching protocol can be queried more accurately and quickly, without manually configuring the protocol for different access devices, so that when the cloud network controller does not have a hardware interface, the protocol can still be automatically configured for communication, thereby improving the accuracy and efficiency of communication. BRIEF DESCRIPTION OF THE DRAWINGS
[0017] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and, together with the description, serve to explain the principles of the present application.
[0018] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, for ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.
[0019] One or more embodiments are exemplarily described by pictures in the corresponding drawings, and these exemplified descriptions do not constitute limitations on the embodiments. Elements with the same reference numerals in the drawings represent similar elements, and unless otherwise stated, the figures in the drawings do not constitute proportional limitations.
[0020] Figure 1 A flow chart of a communication control method provided in an embodiment of the present application;
[0021] Figure 2 A flow chart of a communication control method provided in an embodiment of the present application;
[0022] Figure 3 A flow chart of a communication control method provided in an embodiment of the present application;
[0023] Figure 4 A schematic diagram of a building control system provided in an embodiment of the present application;
[0024] Figure 5 A schematic diagram of a communication control process provided in an embodiment of the present application;
[0025] Figure 6 A flow chart of a communication control method provided in an embodiment of the present application;
[0026] Figure 7 A schematic diagram of a process for determining interface information provided in an embodiment of the present application;
[0027] Figure 8 A flow chart of a communication control method provided in an embodiment of the present application;
[0028] Fig. 9 A data storage diagram of a data table provided in an embodiment of the present application;
[0029] Fig.10 A schematic diagram of a communication control device provided in an embodiment of the present application;
[0030] Fig.11 A schematic diagram of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0031] In order to make the purpose, technical scheme and advantages of the embodiments of the present application clearer, the technical scheme in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, rather than all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in the field without making creative work are within the scope of protection of the present application. It should be noted that the embodiments in the present application and the features in the embodiments can be combined with each other without conflict.
[0032] The disclosure below provides many different embodiments or examples to realize the different structures of the present application. In order to simplify the disclosure of the present application, the parts and settings of specific examples are described below. Of course, they are only examples, and the purpose is not to limit the present application. In addition, the present application can repeat reference numbers and / or letters in different examples. This repetition is for the purpose of simplification and clarity, and does not itself indicate the relationship between the various embodiments and / or settings discussed.
[0033] In order to solve the technical problem of low efficiency of communication protocol configuration in the prior art, the present application provides a communication control method, which first determines the interface information matching the access device, and then queries the corresponding protocol in combination with the data characteristics to establish communication, so that the protocol can be automatically configured for different devices to improve communication efficiency.
[0034] Figure 1 A flow chart of a communication control method provided in this embodiment is shown as follows: Figure 1 As shown, the method may include:
[0035] S10: In response to receiving target data of the access device, determining characteristic information of the target data and target interface information matching the access device;
[0036] S20: Query target protocol information corresponding to the access device based on the target interface information and feature information;
[0037] S30: Establishing communication based on the target protocol information.
[0038] The communication control method provided in this embodiment can be applied to a cloud network controller, or can also be applied to a server or other terminal that has the ability to control the cloud network controller, such as a terminal device connected to the cloud network controller via Bluetooth, local area network or other methods.
[0039] Here, the cloud network controller can also be a cloud network controller, etc., which transmits data with access devices through the network. For example, the cloud network controller can be a virtualized network controller that implements the control logic and functions of the controller on a cloud general computing platform, and uses software definition and virtualization technology to implement control tasks, thereby reducing the development cost of the controller hardware.
[0040] Optionally, the communication control method and cloud network controller provided in this embodiment may be applied to intelligent device control systems, such as building control systems, etc. The cloud network controller and the access device may not be connected through a hardware interface.
[0041] In this embodiment, the access device may be a device that accesses the cloud network controller through the network. For example, the cloud network controller may receive data reported by the access device and control the access device. The target data may be data reported by the access device, such as a heartbeat packet, data containing device status, data requesting control, etc.
[0042] In one embodiment, responding to receiving target data of the access device may include: responding to receiving target data of the access device within a predetermined time period or a predetermined cycle. For example, the predetermined time period or the predetermined cycle may be a time period or cycle for the cloud network controller to receive data reported by the access device.
[0043] In one embodiment, the characteristic information of the target data may include data characteristics of the target data and 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, and 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 may refer to the target interface information matching the access device and the target data, wherein the target interface information may 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 for establishing 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 including a protocol identifier and a data set corresponding to the protocol identifier. The data set may include the device type of the access device, the interface type used, the protocol type used, and the point information involved in the access device. The point information refers to the data type and data value of the target data collected by the access device, such as the temperature value of a temperature sensor, the speed value of a fan device, etc.
[0047] In one embodiment, the predetermined database may be a protocol component library, etc., for example, in which a plurality of target protocol information may be stored. Each target protocol information may include a corresponding relationship between a target protocol and a set of data sets.
[0048] In one embodiment, a set of target interface information and feature information may correspond to one target protocol information, and different target interface information and feature information may correspond to different target protocol information.
[0049] In one embodiment, establishing communication based on the target protocol information may 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 feature information that match the access device in the cloud network controller, the matching protocol can be queried more accurately and quickly, without the need to manually configure the protocol for different access devices. Therefore, even if the cloud network controller does not have a hardware interface, the protocol can still be automatically configured for communication, thereby improving the accuracy and efficiency of communication.
[0052] Since the cloud network controller does not have a hardware interface, it is necessary to avoid misjudgment and improve accuracy when determining the target interface information that matches the access device. Figure 2 As shown, in step S10, determining the characteristic information of the target data and the target interface information matching the access device may include:
[0053] S11: Determine characteristic information of target data;
[0054] S12: Polling is performed based on data request information corresponding to multiple candidate interface information to determine target interface information matching 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 data set corresponding to the protocol identifier. The data set can include 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 simulating hardware interface information corresponding to 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 interface information may refer to polling and sending data request information corresponding to multiple candidate interface information. For example, polling and sending data request information corresponding to multiple candidate interface information to the access device.
[0058] Here, the data request information may be request information used to request specified data or request a response from the access device, etc.
[0059] In one embodiment, determining the target interface information matching the access device may refer to determining the target interface information matching the access device based on response information fed back by the access device in response to data request information.
[0060] In this way, data request polling is performed through multiple alternative interface information, so that the interface information supported by the access device can be quickly determined. When the cloud network controller does not have a hardware interface, the interface matched by the device can be quickly simulated, thereby improving the accuracy and efficiency of the protocol automatic configuration.
[0061] In some embodiments, Figure 3 As shown, step S12 may include:
[0062] S121: Polling and sending data request information corresponding to multiple candidate interface information;
[0063] S122: In response to receiving the response information fed back by the access device, determining data request information corresponding to the response information;
[0064] S123: Determine that the candidate interface information corresponding to the responded data request information is the target interface information matching the access device.
[0065] Here, the data request information may be a data request frame or the like.
[0066] In one embodiment, polling and sending data request information corresponding to multiple candidate interface information may refer to polling and sending data request information corresponding to multiple candidate interface information to the access device, or broadcast polling and sending data request information corresponding to multiple candidate 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.
[0068] In one embodiment, different candidate interface information corresponds to different data request information. For example, different candidate interface information corresponds to different request identifiers carried in the data request information.
[0069] In one embodiment, the response information fed back by the access device may be response information fed back by the access device in response to the data request information.
[0070] In one embodiment, receiving the response information fed back by the access device may refer to receiving the response information fed back by the access device within a predetermined time window. For example, the start and end time points of the predetermined time window may be the start time of polling to send data request information and the predetermined time after the end time of polling to send data request information.
[0071] In one embodiment, determining the data request information to which the response information responds may refer to determining the data request information for which the access device feeds back the response information.
[0072] In one embodiment, the data request information in response to the response information can be determined based on the moment when the response information fed back by the access device is received. For example, the data request information most recently sent before the moment when the response information fed back by the access device is received is determined to be the data request information in response to the response information.
[0073] In one embodiment, the data request information responded to by the response information may 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 request identifier carried in the data request information responded by the access device.
[0074] In one embodiment, when it is determined that the number of data request information responded to the reply information is greater than 1, determining that the alternative interface information corresponding to the data request information of the response is the target interface information that matches the access device may include: selecting target data request information that matches the characteristic information of the target data in the data request information responded to the reply information; and determining that the alternative interface information corresponding to the target data request information is the target interface information that matches the access device.
[0075] In this way, by polling and sending data requests corresponding to different interface information, the data request matching the access device is determined according to the response of the access device, and then the corresponding interface information is determined, so that the interface information matching the access device can be determined more accurately.
[0076] In some embodiments, determining the characteristic information of the target data includes:
[0077] 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, characteristic information of the target data is determined.
[0078] In one embodiment, the content of the target data may include the value, unit, data name, etc. of the target data, for example, the data name may include voltage value, current value, temperature value, and water level value, etc. The type of the target data may refer to the data type of the target data, such as binary type and enumeration type, etc.
[0079] In one embodiment, the identification information of the access device may refer to a unique identification code of the access device, such as an International Mobile Equipment Identity (IMEI) code.
[0080] In this way, the characteristic information of the target data can be used to characterize the multi-dimensional characteristics of the data and the access device, so that the communication protocol that matches it can be determined more accurately, which is conducive to improving the reliability of data transmission.
[0081] In some embodiments, step S10 may include:
[0082] In response to receiving target data of an access device, the target data is cached in a storage area, and characteristic information of the target data and 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 may be a unique identifier of a network controller, and whether the target data is sent to the current network controller may be determined based on the controller identifier.
[0084] In one embodiment, caching the target data in a storage area may include: binding the target data with identification information of an access device and caching the target data in the storage area. For example, this step may include: filtering the target data based on a controller identification carried by the target data; binding the filtered target data with identification information of the access device and caching the target data in the storage area.
[0085] In this way, after receiving the data uploaded by the access device, the data is cached and then the protocol configuration process is performed, which can avoid the target data from being lost or directly stored in the memory, resulting in occupying more 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] parsing the target data 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 a 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 a data table model included in the target protocol information. For example, the data table model can indicate rows, columns, data classifications, 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 may constitute a mapping relationship, and the arrangement of the data table may reflect the above mapping relationship.
[0093] In one embodiment, sending the target protocol information to the host computer may refer to sending the protocol identifier in the target protocol information to the host computer, for example, the protocol identifier is a protocol number. The host computer may obtain the corresponding target data from the network controller based on the protocol identifier.
[0094] In this way, the cached target data is parsed through the matching protocol and then stored in the data table corresponding to the protocol. The target data can be stored in the matching data table more accurately, and the host computer can quickly and accurately obtain the required data according to 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 sent by a host computer, determining target data based on target protocol information indicated by the host computer;
[0097] The target data is sent to the host computer.
[0098] In one embodiment, determining the target data based on the target protocol information indicated by the host computer may include: querying the target data corresponding to the protocol identifier based on 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 also include: determining whether the target protocol information matches the access device based on the reception of the data acquisition request and the sending of the target data; if not, 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 characteristic information of the target data and the target interface information matching the access device; based on the target interface information and the characteristic information, querying the target protocol information corresponding to the access device in a predetermined database that does not contain the current target protocol information.
[0102] In this way, the host computer can obtain the required target data based on the matching target protocol information, and realize the data transmission configuration between the network controller and the host computer through automatic protocol configuration, thereby improving the efficiency and accuracy of communication.
[0103] As a possible implementation method, a cloud network controller (hereinafter referred to as controller) is provided and based on it, a method for device access protocol self-adaptation is proposed to realize the process from device access to data parsing through protocol and then to data self-parsing display on the host computer interface. Figure 4 As shown in the figure, the entire building control system architecture is shown. The structure of the controller is as follows Figure 5As shown in Figure 1, it is mainly composed 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 workflow is shown in Figure 1. Figure 6 As shown, including:
[0104] The central processing unit is mainly responsible for data processing and scheduling the work of other units. It also has a storage area inside for storing subsequently generated data tables.
[0105] The virtual hardware interface processing unit mainly virtualizes the required hardware interfaces for the devices connected to the network controller, such as Figure 7 As shown, it mainly polls the hardware interface information in the protocol component library to send data request frames, i.e., data frames, and then detects whether the access device has successfully responded to the data request with data. If the response to the data request is successfully received, it indicates that the hardware interface information adapted to the device is 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, so as to more quickly match the protocol components adapted to the access device (the data frame formats corresponding to different protocols are different, and the hardware interface corresponds to the protocol one-to-one, such as the CAN interface corresponds to the CAN bus protocol, the RS485 interface corresponds to the RS485 bus protocol, etc.).
[0106] The data comparison unit is mainly used to filter the received data, and then compare and search for the protocol components that meet the device from the protocol component library based on the interface type information and data characteristics virtualized by the virtual hardware interface processing unit. There is a storage area inside it to store the received data for caching, and data filtering is mainly through identifying the first serial number of the received data. It can usually be stipulated that the device connected to the controller needs to add the serial number of the controller to the first segment of the data when transmitting data. The serial number is a unique identifier generated for the controller. The serial number is identified to filter out the data uploaded by the device connected to the controller.
[0107] The protocol component library mainly stores the standardized protocol components of all current devices. Each protocol component is numbered. The so-called protocol component is a collection of the device type, interface type, protocol type, and point information involved in each device. Point information refers to the data information and data values collected under the device, such as the temperature value of the temperature sensor, the speed value of the fan device, etc. The data storage area mainly stores all the data transmitted to the network controller of the current access device.
[0108] The workflow of the network controller is as follows Figure 8 As shown, it may specifically include:
[0109] First, when a device is connected to the network controller (via wifi, Ethernet, etc.), the virtual hardware interface processing unit in the network controller will detect the data characteristics sent by the device and virtualize the hardware interface of the device. The so-called data characteristics are the data type of the data sent by the device (one of the binary type and enumeration type), the unique identification information of the device, and the content of the data sent (such as voltage value, current value, temperature value, water level value, etc.). The so-called unique identification information of the device is the information used to distinguish different devices, such as the IMEI code between different devices. The so-called interface type is one of the common CAN communication interface, RS485 interface, I2C, etc.
[0110] After completing the virtualization of the hardware interface of the access device, the virtual hardware interface processing unit sends the interface information and data features to the data comparison unit, and synchronously temporarily stores the data transmitted by the device in the data storage area. After receiving the data features and interface type of the device, the data comparison unit matches the protocol components corresponding to the interface type in the protocol component library to the protocol components that conform to the device. According to the data types transmitted by various devices at present, they can be roughly classified into 9 categories, so the instance of the device can be mapped according to the data category uploaded by the device. A device can have multiple instances, and the instance contains multiple attributes. The data type forms a corresponding mapping relationship with the instance and the attribute. In this way, a flat data storage model is constructed, such as Fig. 9 shown.
[0111] For example, a device for measuring water level and water pressure has instances of water level and water pressure measurement values, and the current measurement values of water level and water pressure are the attributes of the corresponding instances. The data types of the two instances of water level and water pressure are real number read-only, which corresponds to analog input. In addition, there are alarm states of water level and water pressure, which are divided into alarm and no alarm, that is, 0 and 1. The corresponding data type is binary value read-only, which corresponds to binary input. Its instances are the alarm states of water level and water pressure, and its attributes are alarm and no alarm, and the values of the attributes are 0 and 1.
[0112] The protocol components in the protocol component library are stored according to the mapping relationship between the data type and the device attributes. This 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 calls the protocol component from the protocol component library and generates a data table according to the data storage model. Then the central processing unit stores the data in the data storage area in the data table after parsing the matching protocol. At the same time, after matching the protocol component of the device, the number of the protocol component matched by the device is sent to the host computer. The host computer then finds the location where the device data is stored in the data table according to its protocol component to obtain the data, thereby completing the communication connection between the device and the device and the host computer, so that the device can be connected to display the data on the host computer platform, and the protocol point can be operated without configuration.
[0113] like Fig.10 As shown, an embodiment of the present application provides a communication control device, which is applied to a cloud network controller. The device may include:
[0114] A determination unit 100, configured to determine, in response to receiving target data of an access device, feature information of the target data and target interface information matching the access device;
[0115] A query unit 200, configured to query 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 a possible implementation manner, the determination unit 100 is specifically configured to: determine characteristic information of the target data; and perform polling based on data request information corresponding to a plurality of candidate interface information to determine target interface information matching the access device.
[0118] In one possible implementation, the determination unit 100 is specifically used to: poll and send data request information corresponding to multiple alternative interface information; in response to receiving response information fed back by an access device, determine the data request information that the response information responds to; and determine that the alternative interface information corresponding to the data request information of the response is the target interface information that matches the access device.
[0119] In a possible implementation, the determination unit 100 is specifically configured to determine characteristic information of the target data based on at least one of content of the target data, type of the target data, identification information of the target data, and identification information of the access device.
[0120] In a possible implementation, the determination unit 100 is specifically configured to: in response to receiving target data of an access device, cache the target data in a storage area, and determine feature information of the target data and target interface information matching the access device.
[0121] In one possible implementation, the communication unit 300 is specifically used 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 a 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 a possible implementation manner, 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 target protocol information indicated by the host computer; and send the target data to the host computer.
[0123] An embodiment of the present application also provides a cloud-based network controller, which includes the communication control device described in any one or more of the aforementioned embodiments, or the cloud-based network controller executes the communication control method described in any one or more of the aforementioned embodiments.
[0124] An embodiment of the present application also provides a communication system, which includes: an access device, a host computer, and a cloud network controller as described in any one or more of the aforementioned embodiments.
[0125] Among them, the access device can be connected to the cloud network controller through the network, and the host computer can also be connected to the cloud network controller through the network.
[0126] like Fig.11 As shown, an embodiment of the present 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] A memory 113, for storing computer programs;
[0128] In one embodiment of the present application, the processor 111, when executing the program stored in the memory 113, implements the communication control method provided by any one or more of the aforementioned method embodiments, which at least includes: in response to receiving target data of an access device, determining characteristic information of the target data and target interface information matching the access device; querying the target protocol information corresponding to the access device based on the target interface information and the characteristic information; and establishing communication based on the target protocol information.
[0129] In one possible implementation, determining the characteristic information of the target data and the target interface information matching the access device includes: determining the characteristic information of the target data; and polling based on data request information corresponding to multiple alternative interface information to determine the target interface information matching the access device.
[0130] In one possible implementation, the polling is performed based on data request information corresponding to multiple alternative interface information to determine the target interface information that matches the access device, including: polling and sending data request information corresponding to multiple alternative interface information; in response to response information received as feedback from the access device, determining the data request information that responds to the response information; and determining that the alternative interface information corresponding to the data request information of the response is the target interface information that matches the access device.
[0131] In a possible implementation, determining the characteristic information of the target data includes: determining the characteristic 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, in response to receiving target data from an access device, determining characteristic information of the target data and target interface information that matches the access device includes: in response to receiving target data from an access device, caching the target data in a storage area, and determining characteristic information of the target data and target interface information that matches 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 a 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 a 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] An embodiment of the present application also provides a computer-readable storage medium having a computer program stored thereon. When the computer program is executed by a processor, the steps of the communication control method provided by any one or more of the aforementioned method embodiments are implemented.
[0136] The device embodiments described above are merely illustrative, wherein the units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0137] Through the description of the above implementation methods, those skilled in the art can clearly understand that each implementation method can be implemented by means of software plus a general hardware platform, and of course, by hardware. Based on this understanding, the above technical solution is essentially or the part that contributes to the relevant technology can be embodied in the form of a software product, and the computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, a disk, an optical disk, etc., including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in each embodiment or some parts of the embodiments.
[0138] It should be understood that the terms used herein are only for the purpose of describing specific example embodiments and are not intended to be limiting. Unless the context clearly indicates otherwise, the singular forms "one", "an" and "said" as used herein may also be meant to include plural forms. The terms "include", "comprise", "contain", and "have" are inclusive, and therefore specify the existence of stated features, steps, operations, elements and / or parts, but do not exclude the existence or addition of one or more other features, steps, operations, elements, parts, and / or combinations thereof. The method steps, processes, and operations described herein are not interpreted as necessarily requiring them to be performed in the specific order described or illustrated, unless the execution order is clearly indicated. It should also be understood that additional or alternative steps may be used.
[0139] In the absence of contradiction, each step in a certain implementation mode or example can be implemented as an independent example, and the steps can be arbitrarily combined. For example, a solution after removing some steps in a certain implementation mode or example can also be implemented as an independent example, and the order of the steps in a certain implementation mode or example can be arbitrarily exchanged. In addition, the optional methods or optional examples in a certain implementation mode or example can be arbitrarily combined; in addition, the various implementation modes or examples can be arbitrarily combined. For example, some or all steps of different implementation modes or examples can be arbitrarily combined, and a certain implementation mode or example can be arbitrarily combined with the optional methods or optional examples of other implementation modes or examples.
[0140] The above description is only a specific implementation of the present application, so that those skilled in the art can understand or implement the present application. Various modifications to these embodiments will be apparent to those skilled in the art, and the general principles defined herein can be implemented in other embodiments without departing from the spirit or scope of the present application. Therefore, the present application will not be limited to the embodiments shown herein, but will conform to the widest range consistent with the principles and novel features applied for herein.
Claims
1. A communication control method, characterized in that: Applied to a cloud network controller, the method includes: In response to receiving target data of an access device, determining characteristic 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 characteristic information; Communication is established based on the target protocol information.
2. The method according to claim 1, characterized in that: The determining the characteristic information of the target data and the target interface information matching the access device includes: Determining characteristic information of the target data; Polling is performed based on data request information corresponding to multiple candidate interface information to determine target interface information matching the access device.
3. The method according to claim 2, characterized in that The polling based on the data request information corresponding to the 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 the response information fed back by the access device, determining the data request information responded to by the response information; Determine that the candidate interface information corresponding to the data request information of the response is the target interface information matching the access device.
4. The method according to claim 2, characterized in that: The determining the characteristic information of the target data includes: 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, characteristic information of the target data is determined.
5. The method according to claim 1, characterized in that The step of determining, in response to receiving target data of an access device, characteristic information of the target data and target interface information matching the access device comprises: In response to receiving target data of an access device, the target data is cached in a storage area, and characteristic information of the target data and target interface information matching the access device are determined.
6. The method according to claim 5, characterized in that The establishing of communication based on the target protocol information comprises: Read the cached target data from the storage area; parsing the target data 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 a 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 comprises: 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; The target data is sent to the host computer.
8. A communication control device, characterized in that: Applied to a cloud network controller, the device comprises: A determination unit, configured to determine, in response to receiving target data of an access device, feature information of the target data and target interface information matching the access device; A query unit, configured to query 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 network controller, characterized in that: The cloud network controller includes the communication control device described in claim 8.
10. A communication system, characterized in that: The communication system includes: an access device, a host computer and the cloud network controller described in claim 9.
11. An electronic device, characterized in that: include: 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 according to any one of claims 1 to 7 when executing the computer program.
12. A storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the method according to any one of claims 1 to 7 is implemented.
Citation Information
Patent Citations
Virtual network system accessing method, device and system
CN103516760A
Data conversion and transmission method and device
CN107623726A
Message processing system, method and equipment and storage medium
CN115396524A
Digital country management method, device and control system based on Internet of Things
CN115842869A
IPv6 virtual network VPN access method and system based on SDN
CN117834448A