CN114449059A - Communication control method and device - Google Patents

Communication control method and device Download PDF

Info

Publication number
CN114449059A
CN114449059A CN202210055636.0A CN202210055636A CN114449059A CN 114449059 A CN114449059 A CN 114449059A CN 202210055636 A CN202210055636 A CN 202210055636A CN 114449059 A CN114449059 A CN 114449059A
Authority
CN
China
Prior art keywords
communication
communication protocol
target
target device
network
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202210055636.0A
Other languages
Chinese (zh)
Other versions
CN114449059B (en
Inventor
陈仁甫
郑海波
孙抗
麦志望
施杰
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Lazas Network Technology Shanghai Co Ltd
Original Assignee
Lazas Network Technology Shanghai Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Lazas Network Technology Shanghai Co Ltd filed Critical Lazas Network Technology Shanghai Co Ltd
Priority to CN202210055636.0A priority Critical patent/CN114449059B/en
Publication of CN114449059A publication Critical patent/CN114449059A/en
Application granted granted Critical
Publication of CN114449059B publication Critical patent/CN114449059B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/18Multiprotocol handlers, e.g. single devices capable of handling multiple protocols
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/14Network analysis or design
    • H04L41/145Network analysis or design involving simulating, designing, planning or modelling of a network

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer Security & Cryptography (AREA)
  • Communication Control (AREA)

Abstract

本发明实施例公开了一种通信控制方法及装置。所述方法在获取目标设备的设备信息和目标设备与业务服务器之间的通信相关数据后,会以所述设备信息和所述通信相关数据为输入,基于预先训练的通信协议决策模型,确定目标通信协议,再将目标通信协议通知目标设备与业务服务器,使得目标设备与业务服务器之间采用目标通信协议进行数据传输。其中,所述通信协议决策模型用于确定满足目标设备网络传输需求的通信协议,所述通信协议用于指示目标设备与业务服务器之间的数据传输规则。通过所述方法可以提高通信质量。

Figure 202210055636

Embodiments of the present invention disclose a communication control method and device. After obtaining the device information of the target device and the communication-related data between the target device and the service server, the method will take the device information and the communication-related data as input, and determine the target based on a pre-trained communication protocol decision model. communication protocol, and then notify the target device and the service server of the target communication protocol, so that the target device and the service server use the target communication protocol for data transmission. Wherein, the communication protocol decision model is used to determine a communication protocol that meets the network transmission requirements of the target device, and the communication protocol is used to indicate a data transmission rule between the target device and the service server. The communication quality can be improved by the method.

Figure 202210055636

Description

通信控制方法及装置Communication control method and device

技术领域technical field

本发明涉及通信领域,具体涉及一种通信控制方法及装置。The present invention relates to the field of communication, in particular to a communication control method and device.

背景技术Background technique

远程智能设备,例如智能快递柜、智能售货柜或智能取餐柜通常需要与业务服务器建立通信连接,以便远程智能设备与业务服务器之间能够进行数据传输,从而实现远程智能设备的相关功能。Remote smart devices, such as smart express cabinets, smart vending cabinets or smart food pickup cabinets, usually need to establish a communication connection with a business server, so that data transmission can be performed between the remote smart device and the business server, so as to realize the related functions of the remote smart device.

在现有技术中,远程智能设备通常是通过移动通信系统(3G/4G/5G)与业务服务器通信。但在网络情况较差状态下,业务服务器下发给远程智能设备的关键信息经常无法触达,容易造成通信障碍从而带来损失,难以保证通信质量。In the prior art, the remote smart device usually communicates with the service server through a mobile communication system (3G/4G/5G). However, in a state of poor network conditions, the key information sent by the service server to the remote smart device is often inaccessible, which may easily cause communication obstacles and bring losses, and it is difficult to ensure communication quality.

发明内容SUMMARY OF THE INVENTION

有鉴于此,本发明实施例提供了一种通信控制方法及装置,以提高通信质量。In view of this, embodiments of the present invention provide a communication control method and apparatus to improve communication quality.

第一方面,本发明实施例提供一种通信控制方法,所述方法包括:In a first aspect, an embodiment of the present invention provides a communication control method, the method includes:

获取目标设备的设备信息和所述目标设备与业务服务器之间的通信相关数据;Obtain the device information of the target device and the communication-related data between the target device and the service server;

以所述设备信息和所述通信相关数据为输入,基于预先训练的通信协议决策模型,确定目标通信协议;Taking the device information and the communication-related data as input, and based on a pre-trained communication protocol decision model, determine a target communication protocol;

将所述目标通信协议通知所述目标设备与业务服务器,使得所述目标设备与业务服务器之间采用所述目标通信协议进行数据传输;Notifying the target device and the service server of the target communication protocol, so that the target device and the service server use the target communication protocol for data transmission;

其中,所述通信协议决策模型用于确定满足所述目标设备网络传输需求的通信协议,所述通信协议用于指示所述目标设备与业务服务器之间的数据传输规则。The communication protocol decision model is used to determine a communication protocol that meets the network transmission requirements of the target device, and the communication protocol is used to indicate a data transmission rule between the target device and the service server.

第二方面,本发明实施例提供一种通信控制装置,所述装置包括:In a second aspect, an embodiment of the present invention provides a communication control device, where the device includes:

获取单元,用于获取目标设备的设备信息和所述目标设备与业务服务器之间的通信相关数据;an acquisition unit, configured to acquire device information of the target device and communication-related data between the target device and the service server;

确定单元,以所述设备信息和所述通信相关数据为输入,基于预先训练的通信协议决策模型,确定目标通信协议;a determining unit, taking the device information and the communication-related data as inputs, and determining a target communication protocol based on a pre-trained communication protocol decision model;

通知单元,用于将所述目标通信协议通知所述目标设备与业务服务器,使得所述目标设备与业务服务器之间采用所述目标通信协议进行数据传输;a notification unit, configured to notify the target device and the service server of the target communication protocol, so that the target communication protocol is used for data transmission between the target device and the service server;

其中,所述通信协议决策模型用于确定满足所述目标设备网络传输需求的通信协议,所述通信协议用于指示所述目标设备与业务服务器之间的数据传输规则。The communication protocol decision model is used to determine a communication protocol that meets the network transmission requirements of the target device, and the communication protocol is used to indicate a data transmission rule between the target device and the service server.

第三方面,本发明实施例提供一种计算机可读存储介质,其上存储计算机程序指令,所述计算机程序指令在被处理器执行时实现如第一方面中任一项所述的方法。In a third aspect, embodiments of the present invention provide a computer-readable storage medium storing computer program instructions thereon, the computer program instructions implementing the method according to any one of the first aspects when executed by a processor.

第四方面,本发明实施例提供一种电子设备,所述设备包括:In a fourth aspect, an embodiment of the present invention provides an electronic device, the device comprising:

存储器,用于存储一条或多条计算机程序指令;memory for storing one or more computer program instructions;

处理器,所述一条或多条计算机程序指令被所述处理器执行以实现如第一方面中任一项所述的方法。A processor, the one or more computer program instructions being executed by the processor to implement the method of any one of the first aspects.

本发明实施例的通信控制方法在获取目标设备的设备信息和目标设备与业务服务器之间的通信相关数据后,会以所述设备信息和所述通信相关数据为输入,基于预先训练的通信协议决策模型,确定目标通信协议,再将目标通信协议通知目标设备与业务服务器,使得目标设备与业务服务器之间采用目标通信协议进行数据传输。其中,所述通信协议决策模型用于确定满足目标设备网络传输需求的通信协议,所述通信协议用于指示目标设备与业务服务器之间的数据传输规则。通过所述方法可以提高通信质量。After acquiring the device information of the target device and the communication-related data between the target device and the service server, the communication control method according to the embodiment of the present invention takes the device information and the communication-related data as inputs, and uses the pre-trained communication protocol as input. The decision-making model determines the target communication protocol, and then informs the target device and the service server of the target communication protocol, so that the target device and the service server use the target communication protocol for data transmission. The communication protocol decision model is used to determine a communication protocol that meets the network transmission requirements of the target device, and the communication protocol is used to indicate the data transmission rules between the target device and the service server. The communication quality can be improved by the method.

附图说明Description of drawings

通过以下参照附图对本发明实施例的描述,本发明的上述以及其它目的、特征和优点将更为清楚,在附图中:The above and other objects, features and advantages of the present invention will become more apparent from the following description of embodiments of the present invention with reference to the accompanying drawings, in which:

图1为本发明实施例的应用系统的示意图;1 is a schematic diagram of an application system according to an embodiment of the present invention;

图2为本发明实施例的通信控制方法的流程图;2 is a flowchart of a communication control method according to an embodiment of the present invention;

图3为本发明实施例的网络状态参数确定方法的流程图;3 is a flowchart of a method for determining a network state parameter according to an embodiment of the present invention;

图4为本发明实施例的目标通信协议确定方法的流程图;4 is a flowchart of a method for determining a target communication protocol according to an embodiment of the present invention;

图5为本发明实施例的通信协议决策模型训练方法的流程图;5 is a flowchart of a communication protocol decision model training method according to an embodiment of the present invention;

图6为本发明实施例的动态数据获取方法的流程图;6 is a flowchart of a dynamic data acquisition method according to an embodiment of the present invention;

图7为本发明实施例的通信协议决策模型训练系统的示意图;7 is a schematic diagram of a communication protocol decision model training system according to an embodiment of the present invention;

图8为本发明实施例的通信协议决策模型应用系统的示意图;8 is a schematic diagram of a communication protocol decision model application system according to an embodiment of the present invention;

图9是本发明实施例的通信控制装置的示意图;9 is a schematic diagram of a communication control apparatus according to an embodiment of the present invention;

图10是本发明实施例的电子设备的示意图。FIG. 10 is a schematic diagram of an electronic device according to an embodiment of the present invention.

具体实施方式Detailed ways

以下基于实施例对本发明进行描述,但是本发明并不仅仅限于这些实施例。在下文对本发明的细节描述中,详尽描述了一些特定的细节部分。对本领域技术人员来说没有这些细节部分的描述也可以完全理解本发明。为了避免混淆本发明的实质,公知的方法、过程、流程、元件和电路并没有详细叙述。The present invention is described below based on examples, but the present invention is not limited to these examples only. In the following detailed description of the invention, some specific details are described in detail. The present invention can be fully understood by those skilled in the art without the description of these detailed parts. Well-known methods, procedures, procedures, components and circuits have not been described in detail in order to avoid obscuring the essence of the present invention.

此外,本领域普通技术人员应当理解,在此提供的附图都是为了说明的目的,并且附图不一定是按比例绘制的。Furthermore, those of ordinary skill in the art will appreciate that the drawings provided herein are for illustrative purposes and are not necessarily drawn to scale.

除非上下文明确要求,否则在本申请的“包括”、“包含”等类似词语应当解释为包含的含义而不是排他或穷举的含义;也就是说,是“包括但不限于”的含义。Unless clearly required by the context, words like "including", "comprising" and the like in this application should be construed in an inclusive rather than an exclusive or exhaustive sense; that is, in the sense of "including but not limited to".

在本申请的描述中,需要理解的是,术语“第一”、“第二”等仅用于描述目的,而不能理解为指示或暗示相对重要性。此外,在本发明的描述中,除非另有说明,“多个”的含义是两个或两个以上。In the description of the present application, it should be understood that the terms "first", "second" and the like are used for descriptive purposes only, and should not be construed as indicating or implying relative importance. Also, in the description of the present invention, unless otherwise specified, "plurality" means two or more.

远程智能设备,例如智能快递柜、智能售货柜或智能取餐柜通常需要与业务服务器建立通信连接,以便远程智能设备与业务服务器之间能够进行数据传输,从而实现远程智能设备的相关功能。Remote smart devices, such as smart express cabinets, smart vending cabinets or smart food pickup cabinets, usually need to establish a communication connection with a business server, so that data transmission can be performed between the remote smart device and the business server, so as to realize the related functions of the remote smart device.

以智能快递柜为例,在用户需要存放或取出货物的时候,会向业务服务器发送开门请求。而业务服务器在接收到开门请求后,会将相关指令下发给智能快递柜以打开相应的柜门。Taking the smart express cabinet as an example, when the user needs to store or take out the goods, a request to open the door will be sent to the business server. After receiving the door opening request, the business server will issue relevant instructions to the smart express cabinet to open the corresponding cabinet door.

在此过程中,智能快递柜需要预先将自身的状态数据,例如当前柜格被占用情况上传给业务服务器,以便业务服务器能够在接收到开门请求时,根据柜格被占用情况为用户分配可用柜格。同时,业务服务器也需要在接收到用户的开门请求时,向智能快递柜传达相关指令,以便控制智能快递柜及时打开对应的柜门,方便用户存放或取出货物。In this process, the smart express cabinet needs to upload its own status data in advance, such as the current cabinet occupancy status, to the business server, so that the business server can allocate available cabinets to users according to the occupied cabinet status when receiving the door opening request. grid. At the same time, the business server also needs to transmit relevant instructions to the smart express cabinet when receiving the user's request to open the door, so as to control the intelligent express cabinet to open the corresponding cabinet door in time, so as to facilitate the user to store or take out the goods.

在现有技术中,远程智能设备通常是通过移动通信系统(3G/4G/5G)与业务服务器通信。但在网络情况较差状态下,业务服务器下发给远程智能设备的关键信息经常无法触达,容易造成通信障碍从而带来损失,难以保证通信质量。In the prior art, the remote smart device usually communicates with the service server through a mobile communication system (3G/4G/5G). However, in a state of poor network conditions, the key information sent by the service server to the remote smart device is often inaccessible, which may easily cause communication obstacles and bring losses, and it is difficult to ensure communication quality.

对此,本发明实施例提供了一种通信控制方法及装置,以提高远程智能设备与业务服务器之间的通信质量。In this regard, embodiments of the present invention provide a communication control method and apparatus, so as to improve the communication quality between a remote intelligent device and a service server.

图1为本发明实施例的应用系统的示意图。如图1所示,所述应用系统包括业务服务器11、决策服务器12以及远程智能设备。FIG. 1 is a schematic diagram of an application system according to an embodiment of the present invention. As shown in FIG. 1 , the application system includes a business server 11 , a decision server 12 and a remote intelligent device.

其中,本实施例中的远程智能设备以智能快递柜13为例进行说明。所述业务服务器11为与所述智能快递柜13进行数据传输的服务器,所述业务服务器11需要通过数据传输来实现所述智能快递柜13的相关服务功能,例如打开柜门,数据上传以及分配柜格等。所述决策服务器12用于确定所述业务服务器11与所述智能快递柜13所采用的通信协议。The remote intelligent device in this embodiment is described by taking the intelligent express cabinet 13 as an example. The business server 11 is a server that performs data transmission with the smart express cabinet 13, and the business server 11 needs to realize the relevant service functions of the smart express cabinet 13 through data transmission, such as opening the cabinet door, data uploading and distribution. Cabinets etc. The decision server 12 is used to determine the communication protocol adopted by the business server 11 and the smart express locker 13 .

应当理解,所述相关服务功能具体可以根据智能设备的设备类型确定。不同类型的设备具有不同的相关服务功能。例如:对于智能售货机而言,所述相关服务功能还应包括结算功能。It should be understood that the relevant service function may be specifically determined according to the device type of the smart device. Different types of devices have different related service functions. For example, for a smart vending machine, the related service functions should also include a settlement function.

具体地,所述业务服务器11与所述智能快递柜13会采用预先设置的通信协议建立通信连接并传输数据。在传输数据的过程中,决策服务器12会获取智能快递柜13的设备信息以及智能快递柜13与业务服务器11之间的通信相关数据,再根据所获取的设备信息和通信相关数据使用预先训练的通信协议决策模型确定满足当前通讯场景网络传输需求的目标通信协议,并将所述目标通信协议通知业务服务器11与智能快递柜13,使得业务服务器11与智能快递柜13使用所述目标通信协议传输数据。Specifically, the service server 11 and the smart express cabinet 13 use a preset communication protocol to establish a communication connection and transmit data. In the process of data transmission, the decision server 12 will acquire the device information of the smart express cabinet 13 and the communication-related data between the smart express cabinet 13 and the business server 11, and then use the pre-trained data according to the acquired device information and communication-related data. The communication protocol decision model determines the target communication protocol that meets the network transmission requirements of the current communication scenario, and notifies the service server 11 and the smart express cabinet 13 of the target communication protocol, so that the service server 11 and the smart express cabinet 13 use the target communication protocol to transmit data.

其中,所述通信协议用于指示所述目标设备与业务服务器之间的数据传输规则。Wherein, the communication protocol is used to indicate the data transmission rule between the target device and the service server.

具体地,在OSI模型(开放式系统互联通信参考模型,Open SystemInterconnection Reference Model)的七层网络协议中,每层有很多种协议。例如物理层和数据链路层的4G、Wi-Fi等,传输层的UDP协议(用户数据包协议,User DatagramProtocol)、TCP协议(传输控制协议,Transmission Control Protocol),应用层的HTTP协议(超文本传输协议,Hyper Text Transfer Protocol)、MQTT协议(信息队列遥测传输,Message Queuing Telemetry Transport)等。其中,每种通信协议的层次性、可靠性和有效性都不同,传输相同有效数据内容所需要的数据包大小都不同。对于不同的通讯场景应当选用不同的通信协议。例如使用HTTP的通信比使用MQTT可靠性要高,但是有效性较低。使用TCP的通信比使用UDP可靠性要高,但是有效性较低。Specifically, in the seven-layer network protocol of the OSI model (Open System Interconnection Reference Model, Open System Interconnection Reference Model), each layer has many kinds of protocols. For example, 4G, Wi-Fi, etc. at the physical layer and data link layer, UDP protocol (User Datagram Protocol), TCP protocol (Transmission Control Protocol) at the transport layer, HTTP protocol at the application layer (Super Text transfer protocol, Hyper Text Transfer Protocol), MQTT protocol (Message Queuing Telemetry Transport), etc. Among them, the hierarchy, reliability and validity of each communication protocol are different, and the data packet size required to transmit the same valid data content is different. Different communication protocols should be selected for different communication scenarios. For example, communication using HTTP is more reliable than using MQTT, but less effective. Communication using TCP is more reliable than using UDP, but less effective.

在本实施例中,决策服务器12可以根据当前业务服务器11与智能快递柜13的通讯场景来选择两者之间的较优通信协议。In this embodiment, the decision server 12 may select a better communication protocol between the two according to the current communication scenario between the business server 11 and the smart express locker 13 .

例如:当业务服务器11与智能快递柜13之间的通讯场景对于稳定性有较高要求时,决策服务器12会选择相对稳定可靠的通信协议。但在网络情况较差的通讯场景中,决策服务器12可能会相对选择有效性更高的通信协议。For example, when the communication scenario between the business server 11 and the smart express cabinet 13 has high requirements for stability, the decision server 12 will select a relatively stable and reliable communication protocol. However, in a communication scenario with poor network conditions, the decision server 12 may relatively select a more effective communication protocol.

应当理解,本实施例中的通讯场景应综合考虑当前传输数据的数据类型、网络状态以及其它可能有影响的多个因素。例如设备所处环境的网络质量好坏、所传输数据的重要程度以及目标设备的重要程度等。而所选择的通信协议是在所述通讯场景之上相对较优的通信协议。It should be understood that the communication scenario in this embodiment should comprehensively consider the data type of the currently transmitted data, the network state, and other factors that may have an impact. For example, the network quality of the environment where the device is located, the importance of the transmitted data, and the importance of the target device, etc. The selected communication protocol is a relatively optimal communication protocol over the communication scenario.

图2为本发明实施例的通信控制方法的流程图。如图2所示,所述通信控制方法具体包括如下步骤:FIG. 2 is a flowchart of a communication control method according to an embodiment of the present invention. As shown in Figure 2, the communication control method specifically includes the following steps:

S100、获取目标设备的设备信息和所述目标设备与业务服务器之间的通信相关数据。S100. Acquire device information of a target device and communication-related data between the target device and a service server.

其中,所述目标设备为与业务服务器进行数据传输的远程智能设备。在本实施例中,所述目标设备具体可以为智能快递柜。Wherein, the target device is a remote intelligent device that performs data transmission with the service server. In this embodiment, the target device may specifically be an intelligent express cabinet.

具体地,目标设备会先以预定通信协议与业务服务器建立通信连接。其中,所述预定通信协议可以是能够在多种场景中应用的,适用性较广的通信协议。在建立好通信连接后,目标设备与业务服务器之间会进行正常的数据传输,决策服务器可以获取此时目标设备的设备信息和目标设备与业务服务器之间的通信相关数据。Specifically, the target device will first establish a communication connection with the service server by using a predetermined communication protocol. The predetermined communication protocol may be a communication protocol with wide applicability that can be applied in various scenarios. After the communication connection is established, normal data transmission will be performed between the target device and the service server, and the decision server can obtain the device information of the target device and the communication-related data between the target device and the service server at this time.

可选地,设备信息可以包括所述目标设备所支持的硬件参数以及网络服务参数。Optionally, the device information may include hardware parameters and network service parameters supported by the target device.

具体地,所述硬件参数包括设备接口类型、设备ID以及设备类型。所述网络服务参数包括目标设备所对应的网络运营商信息、网络类型、域名解析(DNS,Domain nameresolution)、路由器地址、无线局域网服务集标识(WIFI SSID,WIFI Service SetIdentifier)、无线局域网物理地址(WIFI MAC,Media Access Control Address)、互联网协议(IP,Internet Protocol)地址、信号强度以及动态主机配置协议(DHCP,Dynamic HostConfiguration Protocol)中的一项或多项。Specifically, the hardware parameters include device interface type, device ID, and device type. The network service parameters include network operator information corresponding to the target device, network type, domain name resolution (DNS, Domain name resolution), router address, wireless local area network service set identifier (WIFI SSID, WIFI Service Set Identifier), wireless local area network physical address ( One or more of WIFI MAC, Media Access Control Address), Internet Protocol (IP, Internet Protocol) address, signal strength, and Dynamic Host Configuration Protocol (DHCP, Dynamic Host Configuration Protocol).

其中,所述接口类型为所述目标设备支持的数据传输接口类型。所述设备ID为目标设备的唯一标识。所述设备类型为所述目标设备所述的设备类型,例如快递智能柜、智能取餐柜或智能售货柜等。The interface type is a data transmission interface type supported by the target device. The device ID is the unique identifier of the target device. The device type is the device type described by the target device, for example, a smart express cabinet, a smart food pickup cabinet, or a smart vending cabinet.

所述网络运营商信息为目标设备当前使用网络归属的网络运营商。所述网络类型为目标设备所支持的可用网络类型,例如2G、3G、4G或无线局域网等。所述域名解析、路由器地址、无线局域网服务集标识、无线局域网物理地址、互联网协议地址以及动态主机配置协议均为与目标设备对应的相关地址或目标设备所支持的相关协议。所述信号强度为目标设备所传递信号的强度。The network operator information is the network operator to which the target device currently uses the network to which it belongs. The network type is an available network type supported by the target device, such as 2G, 3G, 4G, or a wireless local area network. The domain name resolution, router address, wireless local area network service set identifier, wireless local area network physical address, Internet protocol address and dynamic host configuration protocol are all relevant addresses corresponding to the target device or relevant protocols supported by the target device. The signal strength is the strength of the signal transmitted by the target device.

可选地,所述通信相关数据可以包括所述目标设备与业务服务器之间所传输数据的数据类型和网络状态参数。其中,所述网络状态参数可以用于表征当前传输过程的网络状态。Optionally, the communication-related data may include data types and network state parameters of data transmitted between the target device and the service server. Wherein, the network state parameter may be used to represent the network state of the current transmission process.

具体地,所述数据类型可以根据所传输数据中的相关标识确定,例如对于智能快递柜来说,业务服务器向智能快递柜发送的打开柜门指令的标识可以为A,智能柜在执行开门操作后所返还的反馈信息的标识可以为B,智能快递柜上传的柜格状态数据的标识可以为C。决策服务器可以根据所传输数据中的标识来确定所传输数据的类型。Specifically, the data type can be determined according to the relevant identifiers in the transmitted data. For example, for a smart express cabinet, the identifier of the door opening instruction sent by the service server to the smart express cabinet can be A, and the smart cabinet is performing the door opening operation. The identifier of the feedback information returned afterward may be B, and the identifier of the cabinet status data uploaded by the smart express cabinet may be C. The decision server may determine the type of transmitted data based on the identification in the transmitted data.

所述网络状态参数可以根据所述目标设备和业务服务器在统计周期内的历史通信记录确定。其中,所述历史通信记录为目标设备与业务服务器在统计周期内所产生的通信记录,所述通信记录中包括每次通信的通信时间和通信结果。The network state parameter may be determined according to the historical communication records of the target device and the service server within a statistical period. Wherein, the historical communication record is a communication record generated by the target device and the service server in a statistical period, and the communication record includes the communication time and communication result of each communication.

图3为本发明实施例的网络状态参数确定方法的流程图。如图3所示,所述网络状态参数确定方法具体包括如下步骤:FIG. 3 is a flowchart of a method for determining a network state parameter according to an embodiment of the present invention. As shown in FIG. 3 , the method for determining network state parameters specifically includes the following steps:

S110、获取所述历史通信记录中的通信时间和对应的通信结果。S110. Acquire the communication time and the corresponding communication result in the historical communication record.

具体地,获取所述历史通信记录所记录的通信时间和对应的通信结果。Specifically, the communication time and the corresponding communication result recorded in the historical communication record are obtained.

S120、根据所述通信时间和所述通信结果,确定所述网络状态参数。S120. Determine the network state parameter according to the communication time and the communication result.

其中,所述网络状态参数包括通信触达率、通信速度以及通信连续失败次数中的至少一项。所述通信触达率用于表征通信成功的概率,所述通信触达率的数值具体可以为统计周期内的通信成功次数与总通信次数之比。所述通信速度用于表征通信传递速率,所述通信速度的数值具体可以为业务服务器从发起通信到接收到通信反馈所用的平均时间。所述通信连续失败次数具体可以为业务服务器发起通信但未在预设时间段内接收到通信反馈的最大连续次数。Wherein, the network state parameter includes at least one of a communication reach rate, a communication speed, and the number of consecutive communication failures. The communication reach rate is used to represent the probability of successful communication, and the value of the communication reach rate may specifically be the ratio of the number of successful communications to the total number of communications in a statistical period. The communication speed is used to represent the communication transfer rate, and the value of the communication speed may specifically be the average time taken by the service server from initiating communication to receiving communication feedback. The number of consecutive communication failures may specifically be the maximum consecutive number of times that the service server initiates communication but fails to receive communication feedback within a preset time period.

应当理解,所述网络状态参数可以根据实际情况进行确定。所述网络状态参数应最大程度上体现出当前通信过程中的网络状态。It should be understood that the network state parameters may be determined according to actual conditions. The network state parameter should reflect the network state in the current communication process to the greatest extent.

S200、以所述设备信息和所述通信相关数据为输入,基于预先训练的通信协议决策模型,确定目标通信协议。S200. Using the device information and the communication-related data as inputs, determine a target communication protocol based on a pre-trained communication protocol decision model.

其中,所述通信协议决策模型用于确定满足所述目标设备网络传输需求的通信协议。Wherein, the communication protocol decision model is used to determine a communication protocol that meets the network transmission requirements of the target device.

具体地,决策服务器在获取设备信息和通信相关数据之后,会将所述设备信息和所述通信相关数据输入通信协议决策模型,来得到目标通信协议。其中,所述目标通信协议为通信协议决策模型所确定的,能够满足目标设备和业务服务器当前网络传输需求的较优通信协议。Specifically, after acquiring the device information and the communication-related data, the decision server will input the device information and the communication-related data into the communication protocol decision model to obtain the target communication protocol. The target communication protocol is determined by the communication protocol decision model and can meet the current network transmission requirements of the target device and the service server.

可选地,本实施例中所涉及的通信协议包括但不限于UDP协议,COAP协议(TheConstrained Application Protocol)、TCP协议、IP协议(网际互联协议,InternetProtocol)、HTTP协议、RPC协议(远程过程调用,Remote Procedure Call)以及MQTT协议。所述通信协议决策模型能够从上述通信协议中选择符合网络传输需求的较优通信协议。Optionally, the communication protocols involved in this embodiment include, but are not limited to, the UDP protocol, the COAP protocol (The Constrained Application Protocol), the TCP protocol, the IP protocol (Internet Protocol, Internet Protocol), the HTTP protocol, and the RPC protocol (Remote Procedure Call). , Remote Procedure Call) and MQTT protocol. The communication protocol decision model can select a better communication protocol from the above communication protocols that meets the network transmission requirements.

应当理解,在选择出较优通信协议后,目标设备和业务服务器双方可以调用较优通信协议所对应协议接口进行数据传输。It should be understood that after selecting the better communication protocol, both the target device and the service server can call the protocol interface corresponding to the better communication protocol for data transmission.

图4为本发明实施例的目标通信协议确定方法的流程图。如图4所示,所述目标通信协议确定方法包括如下步骤:FIG. 4 is a flowchart of a method for determining a target communication protocol according to an embodiment of the present invention. As shown in Figure 4, the method for determining the target communication protocol includes the following steps:

S210、确定与所述数据类型相符合的网络传输需求。S210. Determine the network transmission requirement that conforms to the data type.

其中,所述网络传输需求为由通信协议决策模型所确定的,用于表征目标设备与业务服务器在当前通讯场景中所要满足的网络条件。所述网络传输需求具体可以为通信协议决策模型通过计算所得到的网络状态参数中的各参数所应该处于的参数范围。Wherein, the network transmission requirement is determined by the communication protocol decision model, and is used to represent the network condition to be satisfied by the target device and the service server in the current communication scenario. The network transmission requirement may specifically be a parameter range within which each parameter of the network state parameters obtained by the communication protocol decision model through calculation should be.

例如:目标设备与业务服务器当前所传数据的数据类型为开门指令时,这一通讯场景对于通信触达率有较高要求,则确定网络传输需求中的通信触达率应处于较高的范围,例如95%-100%内。For example: when the data type of the data currently transmitted by the target device and the service server is the door opening command, and this communication scenario has high requirements for the communication reach rate, it is determined that the communication reach rate in the network transmission requirement should be in a high range , for example within 95%-100%.

又例如:目标设备与业务服务器当前所传数据的数据类型为柜格状态数据时,这一通讯场景对于通信触达率无需过高的要求,则确定网络传输需求中的通信触达率可以处于相对较低的范围,例如80%-100%内。Another example: when the data type of the data currently transmitted by the target device and the service server is cabinet state data, this communication scenario does not require too high requirements for the communication reach rate, then it is determined that the communication reach rate in the network transmission requirement can be in the Relatively low range, such as within 80%-100%.

也即,网络传输需求中的各参数范围的具体应当与通讯场景相符合,以确保用户的设备使用体验。而所述数据类型可以在一定程度上体现当前的通讯场景。That is, the specifics of each parameter range in the network transmission requirement should conform to the communication scenario, so as to ensure the user's experience in using the device. The data type can reflect the current communication scene to a certain extent.

具体地,在将设备信息和通信相关数据输入通信协议决策模型后,所述通信协议决策模型会根据数据类型确定符合当前通讯场景的网络传输需求。Specifically, after the device information and communication-related data are input into the communication protocol decision model, the communication protocol decision model will determine the network transmission requirements that meet the current communication scenario according to the data type.

应当理解,通信协议决策模型在确定网络传输需求时,所参考的因素并不仅限于所传输数据的数据类型。也即,还可以根据其它相关信息,例如设备所处环境中的网络质量、所传输数据的重要程度、通信频率以及设备类型等来确定网络传输需求,使得所确定的网络传输需求与当前通讯场景尽可能一致。It should be understood that when the communication protocol decision model determines the network transmission requirement, the factors referred to are not limited to the data type of the transmitted data. That is, the network transmission requirements can also be determined according to other relevant information, such as the network quality in the environment where the device is located, the importance of the transmitted data, the communication frequency, and the device type, so that the determined network transmission requirements are consistent with the current communication scenario. Be as consistent as possible.

例如:当目标设备放置于网络质量较差的环境,例如城区时,网络传输需求可以适当降低。当目标设备放置于网络质量较好的环境,例如郊区时,网络传输需求可以适当提高。For example, when the target device is placed in an environment with poor network quality, such as an urban area, the network transmission requirement can be appropriately reduced. When the target device is placed in an environment with better network quality, such as suburban areas, the network transmission requirements can be appropriately increased.

又例如:当所传输数据的重要程度较低时,网络传输需求可以适当降低。当所传输数据的重要程度较高时,网络传输需求可以适当提高。Another example: when the importance of the transmitted data is low, the network transmission requirement can be appropriately reduced. When the importance of the transmitted data is high, the network transmission requirements can be appropriately increased.

S220、响应于所述网络状态参数满足网络通信方式切换触发条件,根据所述设备信息、数据类型和网络状态参数确定所述目标通信协议。S220. In response to the network state parameter meeting a network communication mode switching trigger condition, determine the target communication protocol according to the device information, the data type and the network state parameter.

其中,所述网络状态参数满足所述网络通信方式切换触发条件用于表征所述网络状态参数不满足所述网络传输需求。Wherein, the network state parameter satisfying the network communication mode switching trigger condition is used to indicate that the network state parameter does not meet the network transmission requirement.

具体地,在确定与当前通讯场景相符合的网络传输需求后,可以将当前的网络状态参数与所确定的网络传输需求进行比较,若网络状态参数满足网络通信方式切换触发条件,则表明当前网络状态无法满足数据传输所需的网络传输需求。通信协议决策模型会根据所述设备信息、数据类型和网络状态参数确定出目标通信协议。其中,所述目标通信协议为能够满足目标设备和业务服务器当前网络传输需求的较优通信协议。Specifically, after determining the network transmission requirement that conforms to the current communication scenario, the current network state parameter can be compared with the determined network transmission requirement. If the network state parameter satisfies the network communication mode switching trigger condition, it indicates that the current network The state cannot meet the network transfer requirements required for data transfer. The communication protocol decision model determines the target communication protocol according to the device information, data type and network state parameters. The target communication protocol is an optimal communication protocol that can meet the current network transmission requirements of the target device and the service server.

可选地,所述网络状态参数满足网络通信方式切换触发条件的具体判定条件可以是所述网络状态参数中的任一项超出所述网络传输需求中所设置的对应参数范围。Optionally, the specific determination condition that the network state parameter satisfies the network communication mode switching trigger condition may be that any one of the network state parameters exceeds the corresponding parameter range set in the network transmission requirement.

例如:网络状态参数中的通信触达率为80%,而网络传输需求中所设置的通信触达率的范围为90%-100%,则该网络状态参数满足网络通信方式切换触发条件。For example, if the communication reach rate in the network status parameter is 80%, and the range of the communication reach rate set in the network transmission requirement is 90%-100%, the network status parameter satisfies the trigger condition for switching the network communication mode.

应当理解,在实际应用中,所述通信协议决策模型的输出具体应为针对不同通信协议的评分。其中,评分最高的通信协议为目标通信协议。It should be understood that, in practical applications, the output of the communication protocol decision model should specifically be scores for different communication protocols. Among them, the communication protocol with the highest score is the target communication protocol.

S300、将所述目标通信协议通知所述目标设备与业务服务器,使得所述目标设备与业务服务器之间采用所述目标通信协议进行数据传输。S300. Notify the target device and the service server of the target communication protocol, so that the target communication protocol is used for data transmission between the target device and the service server.

具体地,在通信协议决策模型确定出目标通信协议后,决策服务器会将所述目标通信协议通知目标设备与业务服务器,使得目标设备与业务服务器之间采用目标通信协议进行数据传输。Specifically, after the communication protocol decision model determines the target communication protocol, the decision server will notify the target device and the service server of the target communication protocol, so that the target device and the service server use the target communication protocol for data transmission.

本发明实施例的通信控制方法在获取目标设备的设备信息和目标设备与业务服务器之间的通信相关数据后,会以所述设备信息和所述通信相关数据为输入,基于预先训练的通信协议决策模型,确定目标通信协议,再将目标通信协议通知目标设备与业务服务器,使得目标设备与业务服务器之间采用目标通信协议进行数据传输。其中,所述通信协议决策模型用于确定满足目标设备网络传输需求的通信协议,所述通信协议用于指示目标设备与业务服务器之间的数据传输规则。通过所述方法可以提高通信质量。After acquiring the device information of the target device and the communication-related data between the target device and the service server, the communication control method according to the embodiment of the present invention takes the device information and the communication-related data as inputs, and uses the pre-trained communication protocol as input. The decision-making model determines the target communication protocol, and then informs the target device and the service server of the target communication protocol, so that the target device and the service server use the target communication protocol for data transmission. The communication protocol decision model is used to determine a communication protocol that meets the network transmission requirements of the target device, and the communication protocol is used to indicate the data transmission rules between the target device and the service server. The communication quality can be improved by the method.

图5为本发明实施例的通信协议决策模型训练方法的流程图。如图5所示,所述通信协议决策模型训练方法包括如下步骤:FIG. 5 is a flowchart of a method for training a communication protocol decision model according to an embodiment of the present invention. As shown in Figure 5, the communication protocol decision model training method includes the following steps:

S410、获取静态数据。S410. Obtain static data.

其中,所述静态数据用于表征所述目标设备所支持的硬件参数以及网络服务参数。The static data is used to represent hardware parameters and network service parameters supported by the target device.

其中,所述硬件参数以及网络服务参数与步骤S100中所获取的硬件参数以及网络服务参数类似,在此不再赘述。Wherein, the hardware parameters and network service parameters are similar to the hardware parameters and network service parameters obtained in step S100, and will not be repeated here.

S420、获取动态数据。S420. Obtain dynamic data.

其中,所述动态数据为所述目标设备与业务服务器在数据传输过程中所产生的相关数据,所述动态数据包括正向动态数据和负向动态数据。其中,所述正向动态数据和负向动态数据分别用于生成正样本数据和负样本数据。Wherein, the dynamic data is related data generated during the data transmission process between the target device and the service server, and the dynamic data includes positive dynamic data and negative dynamic data. The positive dynamic data and the negative dynamic data are used to generate positive sample data and negative sample data, respectively.

应当理解,本实施例中获取动态数据的过程中可以保持目标设备的正常运营,也即,本实施例可以在不影响目标设备正常运行的基础上获取动态数据。It should be understood that the normal operation of the target device can be maintained during the process of acquiring the dynamic data in this embodiment, that is, the dynamic data can be acquired in this embodiment without affecting the normal operation of the target device.

具体地,图6为本发明实施例的动态数据获取方法的流程图。如图6所示,所述动态数据获取方法包括如下步骤:Specifically, FIG. 6 is a flowchart of a method for acquiring dynamic data according to an embodiment of the present invention. As shown in Figure 6, the dynamic data acquisition method includes the following steps:

S421、将通信协议集合中的第一通信协议通知所述目标设备与业务服务器,使得所述目标设备与业务服务器采用所述第一通信协议进行数据传输。S421. Notify the target device and the service server of the first communication protocol in the communication protocol set, so that the target device and the service server use the first communication protocol for data transmission.

其中,所述通信协议集合包括具有预定优先级顺序的多个通信协议。通信协议集合中的通信协议根据所述目标设备所支持的通信协议类型确定。所述通信协议集合中各通信协议的优先级可以根据通信协议的适用性确定。例如:适应性较广的通信协议的优先级较高,适应性较小的通信协议的优先级较低。Wherein, the communication protocol set includes a plurality of communication protocols with a predetermined priority order. The communication protocol in the communication protocol set is determined according to the type of communication protocol supported by the target device. The priority of each communication protocol in the communication protocol set may be determined according to the applicability of the communication protocol. For example, a communication protocol with wider adaptability has a higher priority, and a communication protocol with less adaptability has a lower priority.

具体地,根据目标设备所支持的通信协议类型确定通信协议集合中的通信协议。将通信协议集合中的第一通信协议,也即优先级最高的通信协议通知所述目标设备与业务服务器,使得所述目标设备与业务服务器采用所述第一通信协议进行数据传输。Specifically, the communication protocol in the communication protocol set is determined according to the communication protocol type supported by the target device. Notifying the target device and the service server of the first communication protocol in the communication protocol set, that is, the communication protocol with the highest priority, so that the target device and the service server use the first communication protocol for data transmission.

S422、获取在所述第一通信协议下,所述目标设备与业务服务器之间所传输数据的样本数据类型和样本网络参数。S422: Acquire a sample data type and a sample network parameter of the data transmitted between the target device and the service server under the first communication protocol.

具体地,获取第一通信协议下,所述目标设备与业务服务器之间所传输数据的样本数据类型和样本网络参数。其中,所述样本数据类型为目标设备与业务服务器之间所传输数据的数据类型,所述样本网络参数用于表征当前通讯场景下的网络状态。Specifically, the sample data type and sample network parameters of the data transmitted between the target device and the service server under the first communication protocol are acquired. The sample data type is the data type of the data transmitted between the target device and the service server, and the sample network parameter is used to represent the network state in the current communication scenario.

S423、根据所述样本数据类型确定对应的网络连接条件。S423. Determine the corresponding network connection condition according to the sample data type.

其中,所述网络连接条件用于表征传输对应数据类型的数据时所需要满足的网络条件。所述网络连接条件具体可以为由测试人员手动输入的网络状态参数中的各参数所应该处于的参数范围。Wherein, the network connection condition is used to represent the network condition that needs to be satisfied when transmitting the data of the corresponding data type. The network connection condition may specifically be a parameter range that each parameter in the network state parameters manually input by the tester should be in.

S424、响应于所述样本网络参数中的任一项超出所述网络连接条件中所设置的对应参数范围,将所述目标设备与业务服务器之间的通信协议切换为所述通信协议集合中的下一优先级的通信协议,直至确定目标样本网络参数。S424. In response to any one of the sample network parameters exceeding the corresponding parameter range set in the network connection condition, switch the communication protocol between the target device and the service server to the communication protocol in the communication protocol set The communication protocol of the next priority until the target sample network parameters are determined.

其中,所述目标样本网络参数中的任一项均未超过所述网络连接条件中所设置的对应参数范围。Wherein, none of the target sample network parameters exceeds the corresponding parameter range set in the network connection condition.

具体地,在确定网络连接条件之后,若样本网络参数中的任一参数超过网络连接条件中所设置对应参数范围,则将目标设备与业务服务器之间所采用通信协议切换为通信协议集合中的下一优先级的通信协议,直到确定目标样本网络参数。所述目标样本网络参数中的各参数均未超过网络连接条件中所设置的对应参数范围。Specifically, after the network connection conditions are determined, if any parameter in the sample network parameters exceeds the corresponding parameter range set in the network connection conditions, the communication protocol used between the target device and the service server is switched to the communication protocol set in the set of communication protocols. The next priority communication protocol until the target sample network parameters are determined. None of the parameters in the target sample network parameters exceeds the corresponding parameter range set in the network connection conditions.

S425、将所述样本数据类型、所述目标样本网络参数以及对应的目标通信协议确定为所述正向动态数据。S425. Determine the sample data type, the target sample network parameter, and the corresponding target communication protocol as the forward dynamic data.

具体地,在找到目标样本网络参数后,将此时的样本数据类型、目标样本网络参数以及目标通信协议确定为正向动态数据。Specifically, after the target sample network parameters are found, the sample data type, target sample network parameters and target communication protocol at this time are determined as forward dynamic data.

应当理解,目标设备与业务服务器会使用目标通信协议进行通信。直到通讯场景发生改变,使得目标样本网络参数不能满足改变后的通讯场景所对应的网络连接条件时,再次执行步骤S424,以确定新的目标通信协议并记录与其对应的正向动态数据。其中,在再次执行步骤S424时,会从通信协议集合中优先级最高的通信协议开始重新进行切换。It should be understood that the target device and the service server will communicate using the target communication protocol. Until the communication scenario is changed so that the target sample network parameters cannot meet the network connection conditions corresponding to the changed communication scenario, step S424 is performed again to determine a new target communication protocol and record the corresponding forward dynamic data. Wherein, when step S424 is performed again, the switching will be performed again from the communication protocol with the highest priority in the communication protocol set.

例如:当前所确定的目标通信协议为通信协议集合中的第四优先级通信协议。在第四优先级通信协议不满足改变后的通讯场景所对应的网络连接条件时,需要重新从通信协议集合中的第一优先级通信协议开始切换。For example, the currently determined target communication protocol is the fourth priority communication protocol in the communication protocol set. When the fourth-priority communication protocol does not meet the network connection conditions corresponding to the changed communication scenario, it is necessary to start switching from the first-priority communication protocol in the communication protocol set again.

S426、将所述样本数据类型、以及在所述目标通信协议之前,被切换的通信协议和对应样本网络参数确定为所述负向动态数据。S426: Determine the sample data type, the switched communication protocol and the corresponding sample network parameter before the target communication protocol as the negative dynamic data.

具体地,将样本数据类型、以及目标通信协议之前,被切换的通信协议和对应样本网络参数确定为负向动态数据。Specifically, the sample data type, the switched communication protocol and the corresponding sample network parameter before the target communication protocol are determined as negative dynamic data.

可选地,若在切换完通信协议集合中的全部通信协议后,仍未找到目标通信协议,为了满足目标设备的正常使用,可以选取符合网络连接条件项数最多的样本网络参数所对应的通信协议为目标通信协议。Optionally, if the target communication protocol is still not found after switching all communication protocols in the communication protocol set, in order to meet the normal use of the target device, the communication corresponding to the sample network parameter that meets the maximum number of network connection condition items can be selected. The protocol is the target communication protocol.

具体地,响应于未确定所述目标样本网络参数,将满足所述网络连接条件项数最多的样本网络参数所对应的通信协议确定为所述目标通信协议。Specifically, in response to the target sample network parameter not being determined, the communication protocol corresponding to the sample network parameter that satisfies the largest number of network connection condition items is determined as the target communication protocol.

通过步骤S421-S426可以在不影响目标设备正常工作的情况下,提高目标设备与业务服务器之间的通信质量,并收集动态数据。Through steps S421-S426, the communication quality between the target device and the service server can be improved and dynamic data can be collected without affecting the normal operation of the target device.

S430、根据所述静态数据和所述动态数据,生成正样本数据和负样本数据。S430. Generate positive sample data and negative sample data according to the static data and the dynamic data.

具体地,在收集好静态数据和动态数据之后,生成正样本数据和负样本数据。Specifically, after the static data and dynamic data are collected, positive sample data and negative sample data are generated.

其中,所述正样本数据由正向动态数据和静态数据生成。所述负样本数据由负向动态数据和静态数据生成。Wherein, the positive sample data is generated from forward dynamic data and static data. The negative sample data is generated from negative dynamic data and static data.

S440、根据所述正样本数据和负样本数据训练所述通信协议决策模型。S440. Train the communication protocol decision model according to the positive sample data and the negative sample data.

具体地,将所述正样本数据和负样本数据输入待训练的预设模型中,所述预设模型会根据所输入的正样本数据和负样本数据进行训练,训练好的预设模型可以作为通信协议决策模型使用。Specifically, the positive sample data and negative sample data are input into the preset model to be trained, the preset model will be trained according to the input positive sample data and negative sample data, and the trained preset model can be used as The communication protocol decision model is used.

其中,所述预设模型可以为基于PMML(预言模型标记预言,Predictive ModelMarkup Language)建立的模型。在实际应用中,训练好的PMML模型可以根据所输入的数据,输出针对不同通信协议的评分结果。The preset model may be a model established based on PMML (Predictive Model Markup Language, Predictive Model Markup Language). In practical applications, the trained PMML model can output scoring results for different communication protocols according to the input data.

图7为本发明实施例的通信协议决策模型训练系统的示意图。如图7所示,72为动态数据获取部分,所述动态数据获取部分72中包括由测试人员预先输入的各数据类型所对应的网络连接条件以及通信协议集合。所述通信协议集合中包括根据目标设备74所支持通信协议类型所确定的多个通信协议。FIG. 7 is a schematic diagram of a communication protocol decision model training system according to an embodiment of the present invention. As shown in FIG. 7 , 72 is a dynamic data acquisition part, and the dynamic data acquisition part 72 includes network connection conditions and communication protocol sets corresponding to each data type input in advance by the tester. The communication protocol set includes a plurality of communication protocols determined according to the type of communication protocol supported by the target device 74 .

所述动态数据获取部分72会将通信协议集合中具有第一优先级的通信协议通知目标设备74和业务服务器73,使得目标设备74和业务服务器73采用第一优先级的通信协议进行通信。动态数据获取部分72会将此时样本网络状态参数与所传输数据数据类型对应的网络连接条件进行对比。当样本网络状态参数满足所述网络连接条件时,维持目标设备74和业务服务器73之间的通信协议。当样本网络状态参数不满足所述网络连接条件时,将目标设备74和业务服务器73之间所采用的通信协议切换为通信协议集合中的下一级通信协议,以保持各时刻网络状态参数满足网络连接条件。The dynamic data acquisition part 72 notifies the target device 74 and the service server 73 of the communication protocol with the first priority in the communication protocol set, so that the target device 74 and the service server 73 communicate using the communication protocol of the first priority. The dynamic data acquisition part 72 will compare the sample network state parameters at this time with the network connection conditions corresponding to the data types of the transmitted data. When the sample network state parameter satisfies the network connection condition, the communication protocol between the target device 74 and the service server 73 is maintained. When the sample network state parameters do not meet the network connection conditions, the communication protocol used between the target device 74 and the service server 73 is switched to the next-level communication protocol in the communication protocol set, so as to keep the network state parameters at each moment satisfied Internet connection conditions.

在通信过程中所传输数据类型、网络状态参数以及与网络状态参数对应的通信协议会被收集部分75所收集并传输给通信协议决策模型,以供所述通信协议决策模型进行训练。The data types, network state parameters and communication protocols corresponding to the network state parameters transmitted in the communication process will be collected by the collecting part 75 and transmitted to the communication protocol decision model for training of the communication protocol decision model.

通过所述通信控制系统可以在不影响目标设备正常运营的前提下,训练通信协议决策模型。Through the communication control system, the communication protocol decision model can be trained without affecting the normal operation of the target device.

图8为本发明实施例的通信协议决策模型应用系统的示意图。如图8所示,图8中的通信协议决策模型为已经训练好的模型。FIG. 8 is a schematic diagram of a communication protocol decision model application system according to an embodiment of the present invention. As shown in FIG. 8 , the communication protocol decision model in FIG. 8 is an already trained model.

在需要进行数据传输时,目标设备74和业务服务器73会先采用预定通信协议进行通信。收集部分75会获取通信过程中所产生的通信相关数据以及目标设备的设备信息,并将所获取的通信相关数据和设备信息输入到通信协议决策模型71中。所述通信协议决策模型71在接收到通信相关数据和设备信息后,会对当前网络状态进行持续检测。在检测到网络状态较差的情况下,通信协议决策模型71会输出目标通信协议并通知目标设备74和业务服务器73,使得目标设备74和业务服务器73采用目标通信协议进行数据传输。而目标设备74和业务服务器73在使用目标通信协议进行通信的过程中所产生的相关数据仍会被收集部分75收集,用于对通信协议决策模型71进行优化。When data transmission is required, the target device 74 and the service server 73 will first use a predetermined communication protocol to communicate. The collection part 75 acquires the communication-related data and the device information of the target device generated during the communication process, and inputs the acquired communication-related data and device information into the communication protocol decision model 71 . After receiving the communication-related data and device information, the communication protocol decision model 71 will continuously detect the current network state. When it is detected that the network state is poor, the communication protocol decision model 71 will output the target communication protocol and notify the target device 74 and the service server 73, so that the target device 74 and the service server 73 use the target communication protocol for data transmission. The relevant data generated during the communication between the target device 74 and the service server 73 using the target communication protocol will still be collected by the collection part 75 for optimizing the communication protocol decision model 71 .

图9是本发明实施例的通信控制装置的示意图。如图9所示,本发明实施例的通信控制装置包括获取单元91、确定单元92以及通知单元93。FIG. 9 is a schematic diagram of a communication control apparatus according to an embodiment of the present invention. As shown in FIG. 9 , the communication control apparatus according to the embodiment of the present invention includes an acquisition unit 91 , a determination unit 92 and a notification unit 93 .

具体地,所述获取单元91用于获取目标设备的设备信息和所述目标设备与业务服务器之间的通信相关数据;Specifically, the obtaining unit 91 is configured to obtain the device information of the target device and the communication-related data between the target device and the service server;

所述确定单元92,以所述设备信息和所述通信相关数据为输入,基于预先训练的通信协议决策模型,确定目标通信协议;The determining unit 92 takes the device information and the communication-related data as inputs, and determines a target communication protocol based on a pre-trained communication protocol decision model;

所述通知单元93,用于将所述目标通信协议通知所述目标设备与业务服务器,使得所述目标设备与业务服务器之间采用所述目标通信协议进行数据传输;The notification unit 93 is configured to notify the target device and the service server of the target communication protocol, so that the target device and the service server use the target communication protocol for data transmission;

其中,所述通信协议决策模型用于确定满足所述目标设备网络传输需求的通信协议,所述通信协议用于指示所述目标设备与业务服务器之间的数据传输规则。The communication protocol decision model is used to determine a communication protocol that meets the network transmission requirements of the target device, and the communication protocol is used to indicate a data transmission rule between the target device and the service server.

本发明实施例的通信控制装置在获取目标设备的设备信息和目标设备与业务服务器之间的通信相关数据后,会以所述设备信息和所述通信相关数据为输入,基于预先训练的通信协议决策模型,确定目标通信协议,再将目标通信协议通知目标设备与业务服务器,使得目标设备与业务服务器之间采用目标通信协议进行数据传输。其中,所述通信协议决策模型用于确定满足目标设备网络传输需求的通信协议,所述通信协议用于指示目标设备与业务服务器之间的数据传输规则。通过所述装置可以提高通信质量。After acquiring the device information of the target device and the communication-related data between the target device and the service server, the communication control apparatus according to the embodiment of the present invention takes the device information and the communication-related data as input, and uses the pre-trained communication protocol as input. The decision-making model determines the target communication protocol, and then informs the target device and the service server of the target communication protocol, so that the target device and the service server use the target communication protocol for data transmission. The communication protocol decision model is used to determine a communication protocol that meets the network transmission requirements of the target device, and the communication protocol is used to indicate the data transmission rules between the target device and the service server. The communication quality can be improved by the device.

图10是本发明实施例的电子设备的示意图。在本实施例中,电子设备包括服务器、终端等。如图10所示,该电子设备:至少包括一个处理器101;以及,与至少一个处理器101通信连接的存储器102;以及,与扫描装置通信连接的通信组件103,通信组件103在处理器101的控制下接收和发送数据;其中,存储器102存储有可被至少一个处理器101执行的指令,指令被至少一个处理器101执行以实现上述通信控制方法。FIG. 10 is a schematic diagram of an electronic device according to an embodiment of the present invention. In this embodiment, the electronic device includes a server, a terminal, and the like. As shown in FIG. 10 , the electronic device: includes at least one processor 101 ; and a memory 102 communicatively connected to the at least one processor 101 ; Receive and send data under the control of the communication control; wherein, the memory 102 stores instructions executable by at least one processor 101, and the instructions are executed by at least one processor 101 to implement the above communication control method.

具体地,该电子设备包括:一个或多个处理器101以及存储器102,图10中以一个处理器101为例。处理器101、存储器102可以通过总线或者其他方式连接,图10中以通过总线连接为例。存储器102作为一种非易失性计算机可读存储介质,可用于存储非易失性软件程序、非易失性计算机可执行程序以及模块。处理器101通过运行存储在存储器102中的非易失性软件程序、指令以及模块,从而执行设备的各种功能应用以及数据处理,即实现上述通信控制方法。Specifically, the electronic device includes: one or more processors 101 and a memory 102 , and one processor 101 is taken as an example in FIG. 10 . The processor 101 and the memory 102 may be connected through a bus or in other ways, and the connection through a bus is taken as an example in FIG. 10 . The memory 102, as a non-volatile computer-readable storage medium, can be used to store non-volatile software programs, non-volatile computer-executable programs and modules. The processor 101 executes various functional applications and data processing of the device by running the non-volatile software programs, instructions and modules stored in the memory 102, ie, implements the above communication control method.

存储器102可以包括存储程序区和存储数据区,其中,存储程序区可存储操作系统、至少一个功能所需要的应用程序;存储数据区可存储选项列表等。此外,存储器102可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件、闪存器件、或其他非易失性固态存储器件。在一些实施例中,存储器102可选包括相对于处理器101远程设置的存储器,这些远程存储器可以通过网络连接至外接设备。上述网络的实例包括但不限于互联网、企业内部网、局域网、移动通信网及其组合。The memory 102 may include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required by at least one function; the storage data area may store an option list and the like. Additionally, memory 102 may include high-speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other non-volatile solid state storage device. In some embodiments, the memory 102 may optionally include memory located remotely from the processor 101, and these remote memories may be connected to external devices via a network. Examples of such networks include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.

一个或者多个模块存储在存储器102中,当被一个或者多个处理器101执行时,执行上述任意方法实施例中的通信控制方法。One or more modules are stored in the memory 102, and when executed by one or more processors 101, perform the communication control method in any of the above method embodiments.

上述产品可执行本申请实施例所提供的方法,具备执行方法相应的功能模块和有益效果,未在本实施例中详尽描述的技术细节,可参见本申请实施例所提供的方法。The above product can execute the methods provided by the embodiments of the present application, and have functional modules and beneficial effects corresponding to the execution methods. For technical details not described in detail in the present embodiments, reference may be made to the methods provided by the embodiments of the present application.

本发明的另一个实施例涉及一种非易失性存储介质,用于存储计算机可读程序,所述计算机可读程序用于供计算机执行上述部分或全部的方法实施例。Another embodiment of the present invention relates to a non-volatile storage medium for storing a computer-readable program, the computer-readable program being used for a computer to execute some or all of the above method embodiments.

即,本领域技术人员可以理解,实现上述实施例方法中的全部或部分步骤是可以通过程序来指令相关的硬件来完成,该程序存储在一个存储介质中,包括若干指令用以使得一个设备(可以是单片机,芯片等)或处理器(processor)执行本申请各实施例所述方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、只读存储器(ROM,Read-OnlyMemory)、随机存取存储器(RAM,Random Access Memory)、磁碟或者光盘等各种可以存储程序代码的介质。That is, those skilled in the art can understand that all or part of the steps in the method for implementing the above embodiments can be completed by instructing the relevant hardware through a program, and the program is stored in a storage medium and includes several instructions to make a device ( It may be a single chip microcomputer, a chip, etc.) or a processor (processor) to execute all or part of the steps of the methods described in the embodiments of the present application. The aforementioned storage medium includes: U disk, removable hard disk, Read-Only Memory (ROM, Read-Only Memory), Random Access Memory (RAM, Random Access Memory), magnetic disk or optical disk and other media that can store program codes.

本发明实施例公开了A1、一种通信控制方法,所述方法包括:The embodiment of the present invention discloses A1, a communication control method, the method includes:

获取目标设备的设备信息和所述目标设备与业务服务器之间的通信相关数据;Obtain the device information of the target device and the communication-related data between the target device and the service server;

以所述设备信息和所述通信相关数据为输入,基于预先训练的通信协议决策模型,确定目标通信协议;Taking the device information and the communication-related data as input, and based on a pre-trained communication protocol decision model, determine a target communication protocol;

将所述目标通信协议通知所述目标设备与业务服务器,使得所述目标设备与业务服务器之间采用所述目标通信协议进行数据传输;Notifying the target device and the service server of the target communication protocol, so that the target device and the service server use the target communication protocol for data transmission;

其中,所述通信协议决策模型用于确定满足所述目标设备网络传输需求的通信协议,所述通信协议用于指示所述目标设备与业务服务器之间的数据传输规则。The communication protocol decision model is used to determine a communication protocol that meets the network transmission requirements of the target device, and the communication protocol is used to indicate a data transmission rule between the target device and the service server.

A2、根据A1所述的方法,所述通信相关数据包括所述目标设备与业务服务器之间所传输数据的数据类型和网络状态参数。A2. The method according to A1, wherein the communication-related data includes the data type and network state parameters of the data transmitted between the target device and the service server.

A3、根据A2所述的方法,以所述设备信息和所述通信相关数据为输入,基于预先训练的通信协议决策模型,确定目标通信协议包括:A3. According to the method described in A2, taking the device information and the communication-related data as inputs, and based on a pre-trained communication protocol decision model, determining the target communication protocol includes:

确定与所述数据类型相符合的网络传输需求;determine the network transmission requirements compatible with the data type;

响应于所述网络状态参数满足网络通信方式切换触发条件,根据所述设备信息、数据类型和网络状态参数确定所述目标通信协议;In response to the network state parameter meeting the network communication mode switching trigger condition, determining the target communication protocol according to the device information, data type and network state parameter;

其中,所述网络状态参数满足所述网络通信方式切换触发条件用于表征所述网络状态参数不满足所述网络传输需求。Wherein, the network state parameter satisfying the network communication mode switching trigger condition is used to indicate that the network state parameter does not meet the network transmission requirement.

A4、根据A3所述的方法,所述方法还包括:A4. The method according to A3, further comprising:

根据所述目标设备和业务服务器在统计周期内的历史通信记录确定所述网络状态参数。The network state parameter is determined according to the historical communication records of the target device and the service server within a statistical period.

A5、根据A4所述的方法,根据所述目标设备和业务服务器在统计周期内的历史通信记录确定所述网络状态参数包括:A5. According to the method described in A4, determining the network state parameter according to the historical communication records of the target device and the service server in a statistical period includes:

获取所述历史通信记录中的通信时间和对应的通信结果;Obtain the communication time and the corresponding communication result in the historical communication record;

根据所述通信时间和所述通信结果,确定所述网络状态参数。The network state parameter is determined according to the communication time and the communication result.

A6、根据A5所述的方法,所述网络状态参数包括通信触达率、通信速度以及通信连续失败次数中的至少一项。A6. The method according to A5, wherein the network state parameter includes at least one of a communication reach rate, a communication speed, and the number of consecutive communication failures.

A7、根据A6所述的方法,所述网络状态参数满足所述网络通信方式切换触发条件包括:A7. The method according to A6, wherein the network state parameter meeting the triggering condition for switching the network communication mode includes:

所述网络状态参数中的任一项超出所述网络传输需求中所设置的对应参数范围。Any one of the network state parameters exceeds the corresponding parameter range set in the network transmission requirement.

A8、根据A6所述的方法,所述通信协议决策模型通过如下方式训练获得:A8. According to the method described in A6, the communication protocol decision model is obtained by training in the following manner:

获取静态数据,所述静态数据用于表征所述目标设备所支持的硬件参数以及网络服务参数;acquiring static data, where the static data is used to represent hardware parameters and network service parameters supported by the target device;

获取动态数据,所述动态数据为所述目标设备与业务服务器在数据传输过程中所产生的相关数据,所述动态数据包括正向动态数据和负向动态数据;Obtaining dynamic data, the dynamic data is the relevant data generated by the target device and the service server in the data transmission process, and the dynamic data includes positive dynamic data and negative dynamic data;

根据所述静态数据和所述动态数据,生成正样本数据和负样本数据;generating positive sample data and negative sample data according to the static data and the dynamic data;

根据所述正样本数据和负样本数据训练所述通信协议决策模型。The communication protocol decision model is trained according to the positive sample data and the negative sample data.

A9、根据A8所述的方法,获取动态数据包括:A9. According to the method described in A8, obtaining dynamic data includes:

将通信协议集合中的第一通信协议通知所述目标设备与业务服务器,使得所述目标设备与业务服务器采用所述第一通信协议进行数据传输,所述通信协议集合包括具有预定优先级顺序的多个通信协议;Notify the target device and the service server of the first communication protocol in the communication protocol set, so that the target device and the service server use the first communication protocol for data transmission, and the communication protocol set includes a predetermined priority order. multiple communication protocols;

获取在所述第一通信协议下,所述目标设备与业务服务器之间所传输数据的样本数据类型和样本网络参数;Obtain sample data types and sample network parameters of data transmitted between the target device and the service server under the first communication protocol;

根据所述样本数据类型确定对应的网络连接条件;Determine the corresponding network connection condition according to the sample data type;

响应于所述样本网络参数中的任一项超出所述网络连接条件中所设置的对应参数范围,将所述目标设备与业务服务器之间的通信协议切换为所述通信协议集合中的下一优先级的通信协议,直至确定目标样本网络参数,所述目标样本网络参数中的任一项均未超过所述网络连接条件中所设置的对应参数范围,;In response to any one of the sample network parameters exceeding the corresponding parameter range set in the network connection conditions, the communication protocol between the target device and the service server is switched to the next communication protocol set in the set. Priority communication protocol, until the target sample network parameters are determined, and none of the target sample network parameters exceeds the corresponding parameter range set in the network connection conditions,;

将所述样本数据类型、所述目标样本网络参数以及对应的目标通信协议确定为所述正向动态数据;Determining the sample data type, the target sample network parameter and the corresponding target communication protocol as the forward dynamic data;

将所述样本数据类型、以及在所述目标通信协议之前,被切换的通信协议和对应样本网络参数确定为所述负向动态数据。The sample data type, the switched communication protocol and the corresponding sample network parameter before the target communication protocol are determined as the negative dynamic data.

A10、根据A9所述的方法,所述训练方法还包括:A10. The method according to A9, the training method further comprising:

根据所述目标设备所支持的通信协议类型确定所述通信协议集合中的各通信协议。Each communication protocol in the communication protocol set is determined according to the communication protocol type supported by the target device.

A11、根据A9所述的方法,训练所述通信协议决策模型的步骤还包括:A11. According to the method described in A9, the step of training the communication protocol decision model further includes:

响应于未确定所述目标样本网络参数,将满足所述网络连接条件项数最多的样本网络参数所对应的通信协议确定为所述目标通信协议。In response to the target sample network parameter not being determined, the communication protocol corresponding to the sample network parameter satisfying the largest number of network connection condition items is determined as the target communication protocol.

A12、根据A11所述的方法,所述通信协议包括UDP协议,COAP协议、TCP协议、IP协议、HTTP协议、RPC协议和MQTT协议。A12. The method according to A11, wherein the communication protocol includes UDP protocol, COAP protocol, TCP protocol, IP protocol, HTTP protocol, RPC protocol and MQTT protocol.

A13、根据A8所述的方法,所述硬件参数包括设备接口类型、设备ID以及设备类型中的至少一项。A13. The method according to A8, wherein the hardware parameter includes at least one of a device interface type, a device ID, and a device type.

A14、根据A12所述的方法,所述网络服务参数包括网络运营商信息、网络类型、域名解析、路由器地址、无线局域网服务集标识、无线局域网物理地址、互联网协议地址、信号强度以及动态主机配置协议中的至少一项。A14. The method according to A12, wherein the network service parameters include network operator information, network type, domain name resolution, router address, wireless local area network service set identifier, wireless local area network physical address, Internet protocol address, signal strength, and dynamic host configuration at least one of the agreements.

A15、根据A1所述的方法,所述目标设备为智能快递柜、智能售货柜或智能取餐柜。A15. The method according to A1, wherein the target device is a smart express cabinet, a smart vending cabinet or a smart food pickup cabinet.

A16、根据A1所述的方法,所述方法还包括:A16. The method according to A1, further comprising:

根据所述设备信息、所述通信相关数据和所述目标通信协议优化所述通信协议决策模型。The communication protocol decision model is optimized according to the device information, the communication-related data and the target communication protocol.

本发明实施例公开了B1、一种通信控制装置,所述装置包括:The embodiment of the present invention discloses B1, a communication control device, and the device includes:

获取单元,用于获取目标设备的设备信息和所述目标设备与业务服务器之间的通信相关数据;an acquisition unit, configured to acquire device information of the target device and communication-related data between the target device and the service server;

确定单元,以所述设备信息和所述通信相关数据为输入,基于预先训练的通信协议决策模型,确定目标通信协议;a determining unit, taking the device information and the communication-related data as inputs, and determining a target communication protocol based on a pre-trained communication protocol decision model;

通知单元,用于将所述目标通信协议通知所述目标设备与业务服务器,使得所述目标设备与业务服务器之间采用所述目标通信协议进行数据传输;a notification unit, configured to notify the target device and the service server of the target communication protocol, so that the target communication protocol is used for data transmission between the target device and the service server;

其中,所述通信协议决策模型用于确定满足所述目标设备网络传输需求的通信协议,所述通信协议用于指示所述目标设备与业务服务器之间的数据传输规则。The communication protocol decision model is used to determine a communication protocol that meets the network transmission requirements of the target device, and the communication protocol is used to indicate a data transmission rule between the target device and the service server.

本发明实施例公开了C1、一种计算机可读存储介质,其上存储计算机程序指令,所述计算机程序指令在被处理器执行时实现如A1-16中任一项所述的方法。The embodiment of the present invention discloses C1, a computer-readable storage medium on which computer program instructions are stored, and when the computer program instructions are executed by a processor, implement the method described in any one of A1-16.

本发明实施例公开了D1、一种电子设备,所述设备包括:The embodiment of the present invention discloses D1, an electronic device, the device includes:

存储器,用于存储一条或多条计算机程序指令;memory for storing one or more computer program instructions;

处理器,所述一条或多条计算机程序指令被所述处理器执行以实现如A1-16中任一项所述的方法。A processor, the one or more computer program instructions being executed by the processor to implement the method of any of A1-16.

以上所述仅为本发明的优选实施例,并不用于限制本发明,对于本领域技术人员而言,本发明可以有各种改动和变化。凡在本发明的精神和原理之内所作的任何修改、等同替换、改进等,均应包含在本发明的保护范围之内。The above descriptions are only preferred embodiments of the present invention, and are not intended to limit the present invention. For those skilled in the art, the present invention may have various modifications and changes. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention shall be included within the protection scope of the present invention.

Claims (10)

1.一种通信控制方法,其特征在于,所述方法包括:1. A communication control method, wherein the method comprises: 获取目标设备的设备信息和所述目标设备与业务服务器之间的通信相关数据;Obtain the device information of the target device and the communication-related data between the target device and the service server; 以所述设备信息和所述通信相关数据为输入,基于预先训练的通信协议决策模型,确定目标通信协议;Taking the device information and the communication-related data as input, and based on a pre-trained communication protocol decision model, determine a target communication protocol; 将所述目标通信协议通知所述目标设备与业务服务器,使得所述目标设备与业务服务器之间采用所述目标通信协议进行数据传输;Notifying the target device and the service server of the target communication protocol, so that the target device and the service server use the target communication protocol for data transmission; 其中,所述通信协议决策模型用于确定满足所述目标设备网络传输需求的通信协议,所述通信协议用于指示所述目标设备与业务服务器之间的数据传输规则。The communication protocol decision model is used to determine a communication protocol that meets the network transmission requirements of the target device, and the communication protocol is used to indicate a data transmission rule between the target device and the service server. 2.根据权利要求1所述的方法,其特征在于,所述通信相关数据包括所述目标设备与业务服务器之间所传输数据的数据类型和网络状态参数。2 . The method according to claim 1 , wherein the communication-related data includes data types and network state parameters of data transmitted between the target device and the service server. 3 . 3.根据权利要求2所述的方法,其特征在于,以所述设备信息和所述通信相关数据为输入,基于预先训练的通信协议决策模型,确定目标通信协议包括:3. The method according to claim 2, wherein, taking the device information and the communication-related data as input, and based on a pre-trained communication protocol decision model, determining the target communication protocol comprises: 确定与所述数据类型相符合的网络传输需求;determine the network transmission requirements compatible with the data type; 响应于所述网络状态参数满足网络通信方式切换触发条件,根据所述设备信息、数据类型和网络状态参数确定所述目标通信协议;In response to the network state parameter meeting the network communication mode switching trigger condition, determining the target communication protocol according to the device information, data type and network state parameter; 其中,所述网络状态参数满足所述网络通信方式切换触发条件用于表征所述网络状态参数不满足所述网络传输需求。Wherein, the network state parameter satisfying the network communication mode switching trigger condition is used to indicate that the network state parameter does not meet the network transmission requirement. 4.根据权利要求3所述的方法,其特征在于,所述方法还包括:4. The method according to claim 3, wherein the method further comprises: 根据所述目标设备和业务服务器在统计周期内的历史通信记录确定所述网络状态参数。The network state parameter is determined according to the historical communication records of the target device and the service server within a statistical period. 5.根据权利要求4所述的方法,其特征在于,根据所述目标设备和业务服务器在统计周期内的历史通信记录确定所述网络状态参数包括:5. The method according to claim 4, wherein determining the network state parameter according to the historical communication records of the target device and the service server in a statistical period comprises: 获取所述历史通信记录中的通信时间和对应的通信结果;Obtain the communication time and the corresponding communication result in the historical communication record; 根据所述通信时间和所述通信结果,确定所述网络状态参数。The network state parameter is determined according to the communication time and the communication result. 6.根据权利要求5所述的方法,其特征在于,所述网络状态参数包括通信触达率、通信速度以及通信连续失败次数中的至少一项。6 . The method according to claim 5 , wherein the network state parameter comprises at least one of a communication reach rate, a communication speed, and the number of consecutive communication failures. 7 . 7.根据权利要求6所述的方法,其特征在于,所述网络状态参数满足所述网络通信方式切换触发条件包括:7. The method according to claim 6, wherein the network state parameter satisfying the triggering condition for switching the network communication mode comprises: 所述网络状态参数中的任一项超出所述网络传输需求中所设置的对应参数范围。Any one of the network state parameters exceeds the corresponding parameter range set in the network transmission requirement. 8.一种通信控制装置,其特征在于,所述装置包括:8. A communication control device, wherein the device comprises: 获取单元,用于获取目标设备的设备信息和所述目标设备与业务服务器之间的通信相关数据;an acquisition unit, configured to acquire device information of the target device and communication-related data between the target device and the service server; 确定单元,以所述设备信息和所述通信相关数据为输入,基于预先训练的通信协议决策模型,确定目标通信协议;a determining unit, taking the device information and the communication-related data as inputs, and determining a target communication protocol based on a pre-trained communication protocol decision model; 通知单元,用于将所述目标通信协议通知所述目标设备与业务服务器,使得所述目标设备与业务服务器之间采用所述目标通信协议进行数据传输;a notification unit, configured to notify the target device and the service server of the target communication protocol, so that the target communication protocol is used for data transmission between the target device and the service server; 其中,所述通信协议决策模型用于确定满足所述目标设备网络传输需求的通信协议,所述通信协议用于指示所述目标设备与业务服务器之间的数据传输规则。The communication protocol decision model is used to determine a communication protocol that meets the network transmission requirements of the target device, and the communication protocol is used to indicate a data transmission rule between the target device and the service server. 9.一种计算机可读存储介质,其上存储计算机程序指令,其特征在于,所述计算机程序指令在被处理器执行时实现如权利要求1-7中任一项所述的方法。9. A computer-readable storage medium on which computer program instructions are stored, wherein the computer program instructions, when executed by a processor, implement the method according to any one of claims 1-7. 10.一种电子设备,其特征在于,所述设备包括:10. An electronic device, characterized in that the device comprises: 存储器,用于存储一条或多条计算机程序指令;memory for storing one or more computer program instructions; 处理器,所述一条或多条计算机程序指令被所述处理器执行以实现如权利要求1-7中任一项所述的方法。A processor, the one or more computer program instructions being executed by the processor to implement the method of any of claims 1-7.
CN202210055636.0A 2022-01-18 2022-01-18 Communication control method and device Active CN114449059B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210055636.0A CN114449059B (en) 2022-01-18 2022-01-18 Communication control method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210055636.0A CN114449059B (en) 2022-01-18 2022-01-18 Communication control method and device

Publications (2)

Publication Number Publication Date
CN114449059A true CN114449059A (en) 2022-05-06
CN114449059B CN114449059B (en) 2024-07-23

Family

ID=81367031

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210055636.0A Active CN114449059B (en) 2022-01-18 2022-01-18 Communication control method and device

Country Status (1)

Country Link
CN (1) CN114449059B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN119922249A (en) * 2025-04-03 2025-05-02 微网优联科技(成都)有限公司 Communication module protocol control method and system

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20130031033A1 (en) * 2011-07-28 2013-01-31 Quova, Inc. System and method for implementing a learning model for predicting the geographic location of an internet protocol address
CN110971614A (en) * 2019-12-17 2020-04-07 软通动力信息技术(集团)有限公司 Internet of things adaptation method and system, computer equipment and storage medium
CN111510476A (en) * 2020-04-03 2020-08-07 金蝶软件(中国)有限公司 Communication method, communication apparatus, computer device, and computer-readable storage medium
CN111641733A (en) * 2020-06-07 2020-09-08 深圳市乙辰科技股份有限公司 Network bridge equipment management method and device and readable storage medium
CN111737076A (en) * 2019-05-23 2020-10-02 北京京东尚科信息技术有限公司 Server monitoring method, device, equipment and storage medium
CN113395264A (en) * 2021-05-26 2021-09-14 深圳市元征未来汽车技术有限公司 Communication connection method, apparatus, server and medium
US20210367856A1 (en) * 2020-05-22 2021-11-25 Wipro Limited Method and system for providing seamless data transfer between communication devices

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20130031033A1 (en) * 2011-07-28 2013-01-31 Quova, Inc. System and method for implementing a learning model for predicting the geographic location of an internet protocol address
CN111737076A (en) * 2019-05-23 2020-10-02 北京京东尚科信息技术有限公司 Server monitoring method, device, equipment and storage medium
CN110971614A (en) * 2019-12-17 2020-04-07 软通动力信息技术(集团)有限公司 Internet of things adaptation method and system, computer equipment and storage medium
CN111510476A (en) * 2020-04-03 2020-08-07 金蝶软件(中国)有限公司 Communication method, communication apparatus, computer device, and computer-readable storage medium
US20210367856A1 (en) * 2020-05-22 2021-11-25 Wipro Limited Method and system for providing seamless data transfer between communication devices
CN111641733A (en) * 2020-06-07 2020-09-08 深圳市乙辰科技股份有限公司 Network bridge equipment management method and device and readable storage medium
CN113395264A (en) * 2021-05-26 2021-09-14 深圳市元征未来汽车技术有限公司 Communication connection method, apparatus, server and medium

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN119922249A (en) * 2025-04-03 2025-05-02 微网优联科技(成都)有限公司 Communication module protocol control method and system

Also Published As

Publication number Publication date
CN114449059B (en) 2024-07-23

Similar Documents

Publication Publication Date Title
CN109617731A (en) Adaptive gateway role configuration method and device under a kind of multi-gateway environment
CN105099989B (en) The methods, devices and systems of service processing result are requested and obtained for processing business
CN107566429A (en) Base station, the response method of access request, apparatus and system
CN101651721B (en) Method and system for judging type of network address translation equipment
JP6097411B2 (en) Data transmission method, apparatus and system
CN101917742A (en) Data transmission method, device and system
US11496528B2 (en) P-CSCF discovery through NRF
CN107666473A (en) The method and controller of a kind of attack detecting
CN107181804A (en) The method for down loading and device of resource
CN107613023B (en) Equipment connection method and device
CN108400953A (en) Control terminal is surfed the Internet and the method for terminal online, router device and terminal
US20180123971A1 (en) Application Implementation Method and Service Controller
CN114449059A (en) Communication control method and device
CN104518968A (en) Message processing method and transparent proxy server
JP2000151606A (en) Network monitoring system, network monitoring method, network management device, network device to be managed and recording medium
CN111277449B (en) Security testing method and device for voice service equipment
US20150281986A1 (en) Server device capable of analyzing communication behavior, control device, control method for mobile terminal, and computer readable medium
CN107135091A (en) A kind of application quality index mapping method, server and client side
CN110380981B (en) Flow distribution method and equipment
CN106534046B (en) Mimic data transmission server and data transmission method
CN105681489A (en) Method and apparatus for DNS query of domain name system
EP3258655A1 (en) Method and apparatus for determining nsd to be uploaded
CN113162922B (en) Client data acquisition method and device, storage medium and electronic equipment
WO2022166591A1 (en) Method and apparatus for playing live streaming resource, and storage medium and electronic device
CN106612262B (en) Method, device and system for establishing PCC session

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant